Skip to content
Browse files

Fixing VERSION setting and in mail.gemspec

  • Loading branch information...
1 parent cde5d9b commit 5ca4ebccd4a44eb3191e46b35c9a4ad9b42b2c28 @mikel mikel committed Jun 7, 2010
Showing with 5 additions and 5 deletions.
  1. +1 −1 VERSION.yml
  2. +4 −4 mail.gemspec
View
2 VERSION.yml
@@ -2,4 +2,4 @@
:patch: 2
:major: 2
:build:
-:minor: 3
+:minor: 2
View
8 mail.gemspec
@@ -1,6 +1,6 @@
-def load_version
- version_hash = YAML.load(File.join(File.dirname(__FILE__), @name, 'VERSION.yml'))
- [vh.major, vh.minor, vh.patch, vh.build].compact.join(".")
+def self.load_version
+ vh = YAML.load_file(File.join(File.dirname(__FILE__), 'VERSION.yml'))
+ [ vh[:major], vh[:minor], vh[:patch], vh[:build] ].compact.join(".")
end
Gem::Specification.new do |s|
@@ -21,5 +21,5 @@ Gem::Specification.new do |s|
s.add_dependency('treetop', '>= 1.4.5')
s.require_path = 'lib'
- s.files = %w(README.rdoc Rakefile TODO.rdoc) + Dir.glob("lib/**/*")
+ s.files = %w(README.rdoc Rakefile TODO.rdoc VERSION.yml) + Dir.glob("lib/**/*")
end

0 comments on commit 5ca4ebc

Please sign in to comment.
Something went wrong with that request. Please try again.