rego-ruby-ext 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
data/lib/string.rb CHANGED
@@ -21,9 +21,9 @@ class String
21
21
  def to_boolean
22
22
  s = self.downcase.strip
23
23
  if s == 'true'
24
- TrueClass
24
+ true
25
25
  elsif s == 'false'
26
- FalseClass
26
+ false
27
27
  else
28
28
  nil
29
29
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rego-ruby-ext}
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alex Tkachev"]
data/spec/string_spec.rb CHANGED
@@ -29,9 +29,9 @@ describe String do
29
29
  " TRuE".to_boolean.should be_true
30
30
  end
31
31
  it 'should return FalseClass for true strings' do
32
- "false".to_boolean.should be_true
33
- " false ".to_boolean.should be_true
34
- " FALse".to_boolean.should be_true
32
+ "false".to_boolean.should be_false
33
+ " false ".to_boolean.should be_false
34
+ " FALse".to_boolean.should be_false
35
35
  end
36
36
 
37
37
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rego-ruby-ext
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Tkachev