Sha256: c747f6af9503ef0120a24a64fe37f7356701e09c4408c8015b96d0bf85c81e97
Contents?: true
Size: 1.06 KB
Versions: 6
Compression:
Stored size: 1.06 KB
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 File.join("spec", "*_spec.rb") end task default: :spec # # # # Generate regex desc "#{gemspec.name} | Generates all regex constants and saves them to lib/unicode/emoji/{generated,generated_native} directories" task :generate_constants do load "data/generate_constants.rb", true end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
unicode-emoji-4.0.4 | Rakefile |
unicode-emoji-4.0.3 | Rakefile |
unicode-emoji-4.0.2 | Rakefile |
unicode-emoji-4.0.1 | Rakefile |
unicode-emoji-4.0.0 | Rakefile |
unicode-emoji-3.8.0 | Rakefile |