Sha256: 670115a12a0cbfdc9f135e34f0dca8380e42e7b10c81b04651fdb0145675c414
Contents?: true
Size: 856 Bytes
Versions: 4
Compression:
Stored size: 856 Bytes
Contents
# # # # Get gemspec info gemspec_file = Dir["*.gemspec"].first gemspec = eval File.read(gemspec_file), binding, gemspec_file info = "#{gemspec.name} | #{gemspec.version} | " \ "#{gemspec.runtime_dependencies.size} dependencies | " \ "#{gemspec.files.size} files" # # # # Gem build and install task desc info task :gem do puts info + "\n\n" print " "; sh "gem build #{gemspec_file}" FileUtils.mkdir_p "pkg" FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", "pkg" puts; sh %{gem install --no-document pkg/#{gemspec.name}-#{gemspec.version}.gem} end # # # # Start an IRB session with the gem loaded desc "#{gemspec.name} | IRB" task :irb do sh "irb -I ./lib -r #{gemspec.name.gsub '-','/'}" end # # # # Run specs desc "#{gemspec.name} | Spec" task :spec do ruby "spec/unicode_version_spec.rb" end task default: :spec
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
unicode-version-1.4.0 | Rakefile |
unicode-version-1.3.0 | Rakefile |
unicode-version-1.2.0 | Rakefile |
unicode-version-1.1.0 | Rakefile |