Skip to content

Commit

Permalink
gem desc
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoward committed Feb 13, 2014
1 parent d877162 commit 42330c2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Rakefile
Expand Up @@ -93,6 +93,7 @@ task :gemspec do
test_files = "test/#{ lib }.rb" if File.file?("test/#{ lib }.rb")
summary = object.respond_to?(:summary) ? object.summary : "summary: #{ lib } kicks the ass"
description = object.respond_to?(:description) ? object.description : "description: #{ lib } kicks the ass"
license = object.respond_to?(:license) ? object.license : "same as ruby's"

if This.extensions.nil?
This.extensions = []
Expand All @@ -118,6 +119,7 @@ task :gemspec do
spec.platform = Gem::Platform::RUBY
spec.summary = #{ lib.inspect }
spec.description = #{ description.inspect }
spec.license = #{ license.inspect }
spec.files =\n#{ files.sort.pretty_inspect }
spec.executables = #{ executables.inspect }
Expand Down Expand Up @@ -178,8 +180,8 @@ task :readme do
end

template =
if test(?e, 'readme.erb')
Template{ IO.read('readme.erb') }
if test(?e, 'README.erb')
Template{ IO.read('README.erb') }
else
Template {
<<-__
Expand Down
7 changes: 6 additions & 1 deletion lib/map.rb
@@ -1,13 +1,17 @@
# -*- encoding : utf-8 -*-
class Map < Hash
Version = '6.5.1' unless defined?(Version)
Version = '6.5.2' unless defined?(Version)
Load = Kernel.method(:load) unless defined?(Load)

class << Map
def version
Map::Version
end

def description
"the awesome ruby container you've always wanted: a string/symbol indifferent ordered hash that works in all rubies"
end

def libdir(*args, &block)
@libdir ||= File.expand_path(__FILE__).sub(/\.rb$/,'')
libdir = args.empty? ? @libdir : File.join(@libdir, *args.map{|arg| arg.to_s})
Expand Down Expand Up @@ -1182,3 +1186,4 @@ def Map(*args, &block)
Map.load('struct.rb')
Map.load('options.rb')
Map.load('params.rb')

6 changes: 4 additions & 2 deletions map.gemspec
Expand Up @@ -3,15 +3,17 @@

Gem::Specification::new do |spec|
spec.name = "map"
spec.version = "6.5.1"
spec.version = "6.5.2"
spec.platform = Gem::Platform::RUBY
spec.summary = "map"
spec.description = "description: map kicks the ass"
spec.description = "the awesome ruby container you've always wanted: a string/symbol indifferent ordered hash that works in all rubies"
spec.license = "same as ruby's"

spec.files =
["LICENSE",
"README",
"Rakefile",
"a",
"a.rb",
"lib",
"lib/map",
Expand Down
Binary file added pkg/map-6.5.2.gem
Binary file not shown.

0 comments on commit 42330c2

Please sign in to comment.