lazyatom / gem-this Goto Github PK
View Code? Open in Web Editor NEWA super-simple tool to help turn existing code into a gem
A super-simple tool to help turn existing code into a gem
If there's no lib folder in the folder in which you run 'gem this' s.files gets set to something like Dir.glob("{}/*/"). Then, when you run rake s.files will get set to every file on your machine - or least rake will hang until it runs out of memory.
If the .gitignore file is already there, we shouldn't overwrite it. We should read it in, and ensure that we're adding (and not duplicating) any of the folders.
So it seems the rapid changes to rubygems have rendered gem-this invalid.
RudiMac:rcov_rails matthew$ rake package
rake/gempackagetask is deprecated. Use rubygems/package_task instead
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#has_rdoc= called from /Users/matthew/code/rcov_rails/Rakefile:25
The offending lines in my gemspec are
require "rake/gempackagetask"
require "rake/rdoctask"
spec = Gem::Specification.new do |s|
...
s.has_rdoc = true
s.extra_rdoc_files = %w(README)
s.rdoc_options = %w(--main README)
...
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
I'm ignoring the rdoc stuff for now.
And will instead attempt to fix the gem package stuff
Changing the require, and the task class seems to work.
require "rubygems/package_task"
Gem::PackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
But who knows if this will work in a couple of months time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.