Permalink
Browse files

Simpler way to change version number

  • Loading branch information...
1 parent 3ee83e2 commit 464ceed0356a55bb8ad3e3ec8646d9533be5bd30 @edouard edouard committed Apr 17, 2012
Showing with 2 additions and 6 deletions.
  1. +1 −2 lib/web_translate_it/util.rb
  2. +1 −0 version
  3. +0 −4 version.yml
@@ -11,8 +11,7 @@ class Util
# Return a string representing the gem version
# For example "1.8.3"
def self.version
- hash = YAML.load_file File.expand_path('../../../version.yml', __FILE__)
- [hash[:major], hash[:minor], hash[:patch]].join('.')
+ IO.read("version")
end
# Yields a HTTP connection over SSL to Web Translate It.
View
@@ -0,0 +1 @@
+1.10.1
View
@@ -1,4 +0,0 @@
-:major: 1
-:minor: 10
-:patch: 1
-

0 comments on commit 464ceed

Please sign in to comment.