ruby_version_reader 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78c1f3b88afaaf0f0db9269eeb7cb732f203b412
4
- data.tar.gz: 5e0249a48e804eea1bec2193faa345e12b5326ec
3
+ metadata.gz: d962c9bfaa8c115d227f0b95afebb42a20158617
4
+ data.tar.gz: b91168fa501edb7eed78c9bdb698c98c903bf7ef
5
5
  SHA512:
6
- metadata.gz: 79b94c053902dbe9fbf7327c02b50e4b91f41e94a968ee508f698ba1fd95452343418592942217994379fba14a2526e3de2fa8aceb1ff467f9c786a07ed1c005
7
- data.tar.gz: 303d4ac392a8c34ea5058398bdc15f5c90c24b259ed754aa7884953b88d6ac42a0eb296415e8028783abf5b2ec870df75a785a84f0bcfe43eb8a316f977c7b61
6
+ metadata.gz: 440dd0f58f8a64c5cd702664e93a05acedcf5f3a8b1ae64fdb178952c3922abb31843fa6908d3f1be20d6d4f51c79050e7a8d14dbbfdcc5e8b757f40dd7c0ceb
7
+ data.tar.gz: 937e6f94c332a8eb575c9da2261c2468914b680a115dfc00c07d90cefb3782b2cae21905d642875de8ebc71211bc8187dbe73b45697b24a598aaa87af2e3d778
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.1.1 - 2014-12-03
4
+ ### Added
5
+ - Ability to initialize a RubyVersionReader with no arguments (like the README says you can)
6
+
7
+ ### Deprecated, Removed
8
+ - Nothing
9
+
10
+ ### Fixed
11
+ - Fixed `#environment_manager_load_string` for RVM
12
+
3
13
  ## 0.1.0 - 2014-12-03
4
14
  ### Added
5
15
  - Initial Release with tested rvm support
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_version_reader (0.1.0)
4
+ ruby_version_reader (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -2,14 +2,12 @@ require 'date'
2
2
  require 'time'
3
3
 
4
4
  class RubyVersionReader
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
 
7
7
  attr_accessor :path, :environment_manager
8
8
 
9
- def initialize(given_path, given_environment_manager = 'rvm')
10
- given_path = './' if given_path.empty?
9
+ def initialize(given_path = './', given_environment_manager = 'rvm')
11
10
  @path = File.expand_path(given_path)
12
-
13
11
  @environment_manager = given_environment_manager
14
12
  end
15
13
 
@@ -30,7 +28,7 @@ class RubyVersionReader
30
28
  def environment_manager_load_string
31
29
  case environment_manager
32
30
  when 'rvm'
33
- "rvm use #{to_s}"
31
+ "rvm #{to_s} do"
34
32
  when 'rbenv'
35
33
  "RBENV_VERSION=#{to_s}"
36
34
  when 'chruby'
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_version_reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos Wright-Kuhns
@@ -97,6 +97,7 @@ files:
97
97
  - README.rdoc
98
98
  - Rakefile
99
99
  - lib/ruby_version_reader.rb
100
+ - pkg/ruby_version_reader-0.1.0.gem
100
101
  - ruby_version_reader.gemspec
101
102
  - spec/ruby_version_reader_spec.rb
102
103
  - spec/spec_helper.rb