humanize-bytes.gemspec in humanize-bytes-1.0.0 vs humanize-bytes.gemspec in humanize-bytes-2.0.0
- old
+ new
@@ -1,20 +1,22 @@
# -*- encoding: utf-8 -*-
-require File.expand_path('../lib/humanize-bytes/version', __FILE__)
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+require 'humanize/bytes'
Gem::Specification.new do |gem|
- gem.authors = ["Paulo Henrique Lopes Ribeiro"]
- gem.email = %q{plribeiro3000@gmail.com}
- gem.description = %q{Convert Byte, Kbyte, MByte, Gbyte into each other}
- gem.summary = %q{Humanize bytes Gem}
- gem.homepage = ""
+ gem.name = 'humanize-bytes'
+ gem.version = Humanize::Bytes::VERSION
+ gem.authors = %q{Paulo Henrique Lopes Ribeiro}
+ gem.email = %q{plribeiro3000@gmail.com}
+ gem.summary = %q{Convert Byte, Kbyte, MByte, Gbyte into each other}
gem.files = `git ls-files`.split($\)
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
- gem.name = "humanize-bytes"
+ gem.test_files = `git ls-files -- {test,spec,features,examples,gemfiles}/*`.split("\n")
+ gem.executables = `git ls-files -- bin/*`.split('\n').map{ |f| File.basename(f) }
gem.require_paths = %w(lib)
- gem.version = Humanize::Bytes::VERSION
- gem.add_development_dependency "rake"
- gem.add_development_dependency "rspec", ">= 2.0.0"
+ gem.license = 'MIT'
+
+ gem.add_development_dependency 'rake'
+ gem.add_development_dependency 'rspec'
end
\ No newline at end of file