lib/gem/release/data.rb in gem-release-2.0.0.dev.2 vs lib/gem/release/data.rb in gem-release-2.0.0.dev.3
- old
+ new
@@ -8,11 +8,11 @@
include Helper::String
def data
{
gem_name: gem_name,
- gem_path: gem_name.gsub('-', '/'),
+ gem_path: gem_path,
module_names: module_names,
author: user_name,
email: user_email,
homepage: homepage,
licenses: licenses,
@@ -28,9 +28,13 @@
gem_name.split('-').map { |part| camelize(part) }
end
def gem_name
gem.name || raise('No gem_name given.')
+ end
+
+ def gem_path
+ gem_name.gsub('-', '/').sub(/_rb$/, '')
end
def user_name
system.git_user_name || '[your name]'
end