dm_ruby_extensions 1.0.6 → 1.0.7

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: f72e11f58e106fd495b75ef27df70e180a49a0e0
4
- data.tar.gz: c5b429ee99f6c14c2519b311d6f6122adf009c04
3
+ metadata.gz: 495c281086684ca0b062b6440bc975356ce14be8
4
+ data.tar.gz: c6a2f4277cb2623fd067f201ead719646c0ab831
5
5
  SHA512:
6
- metadata.gz: bcedfcd588d98bb65f021d3ce51c8ff4ff2fd3cf0c6e5fa10f0c2838de93eb62453edc665fe49137c6dfcf335906a8b381b45521906e9a9817be2aa8b1990c72
7
- data.tar.gz: 86955966a9e1b429a5165d309dbd5f9268efd8be4cd13c40bd71382266c83b665888886bde060cc222280c51c8a5e67e3616d7ff672dc1ee7eb4579485c269b6
6
+ metadata.gz: d1f6624fe65d40ff828e241488ad1437d8d2e7961e5af6609933ea241061ff905d5f896c6daa2ce9bb3fa0b4e055dfcb70edcd650e66b26cfaee9388ecf43a9b
7
+ data.tar.gz: f04aadd4e2006153593e9ed54a58f629d8aa58f383676341e9c5dc1d19c863ed72e01be958100fa72f3f327e16e18f235c341e59b89e127a6a8f858cc8c22a76
@@ -11,6 +11,8 @@ require "dm_ruby_extensions/extend_string"
11
11
  require "dm_ruby_extensions/extend_time"
12
12
  require "dm_ruby_extensions/extend_fixnum"
13
13
  require "dm_ruby_extensions/extend_numeric"
14
+ require "dm_ruby_extensions/extend_true"
15
+ require "dm_ruby_extensions/extend_false"
14
16
 
15
17
  module DmRubyExtensions
16
18
  end
@@ -0,0 +1,8 @@
1
+ class FalseClass #:nodoc:
2
+
3
+ def as_boolean
4
+ false
5
+ end
6
+
7
+ end
8
+
@@ -0,0 +1,8 @@
1
+ class TrueClass #:nodoc:
2
+
3
+ def as_boolean
4
+ true
5
+ end
6
+
7
+ end
8
+
@@ -1,3 +1,3 @@
1
1
  module DmRubyExtensions
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+ require 'dm_ruby_extensions'
3
+
4
+ describe FalseClass do
5
+
6
+ describe 'as_boolean' do
7
+ specify { expect(false.as_boolean).to eq false }
8
+ end
9
+
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+ require 'dm_ruby_extensions'
3
+
4
+ describe TrueClass do
5
+
6
+ describe 'as_boolean' do
7
+ specify { expect(true.as_boolean).to eq true }
8
+ end
9
+
10
+
11
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm_ruby_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Walker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-01 00:00:00.000000000 Z
11
+ date: 2017-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -42,22 +42,26 @@ files:
42
42
  - lib/dm_ruby_extensions/extend_array.rb
43
43
  - lib/dm_ruby_extensions/extend_date.rb
44
44
  - lib/dm_ruby_extensions/extend_datetime.rb
45
+ - lib/dm_ruby_extensions/extend_false.rb
45
46
  - lib/dm_ruby_extensions/extend_fixnum.rb
46
47
  - lib/dm_ruby_extensions/extend_hash.rb
47
48
  - lib/dm_ruby_extensions/extend_nil.rb
48
49
  - lib/dm_ruby_extensions/extend_numeric.rb
49
50
  - lib/dm_ruby_extensions/extend_string.rb
50
51
  - lib/dm_ruby_extensions/extend_time.rb
52
+ - lib/dm_ruby_extensions/extend_true.rb
51
53
  - lib/dm_ruby_extensions/version.rb
52
54
  - spec/extensions/array_spec.rb
53
55
  - spec/extensions/date_spec.rb
54
56
  - spec/extensions/datetime_spec.rb
57
+ - spec/extensions/false_spec.rb
55
58
  - spec/extensions/fixnum_spec.rb
56
59
  - spec/extensions/hash_spec.rb
57
60
  - spec/extensions/nil_spec.rb
58
61
  - spec/extensions/numeric_spec.rb
59
62
  - spec/extensions/string_spec.rb
60
63
  - spec/extensions/time_spec.rb
64
+ - spec/extensions/true_spec.rb
61
65
  - spec/spec_helper.rb
62
66
  homepage: https://github.com/digitalmoksha/dm_ruby_extensions
63
67
  licenses:
@@ -87,10 +91,12 @@ test_files:
87
91
  - spec/extensions/array_spec.rb
88
92
  - spec/extensions/date_spec.rb
89
93
  - spec/extensions/datetime_spec.rb
94
+ - spec/extensions/false_spec.rb
90
95
  - spec/extensions/fixnum_spec.rb
91
96
  - spec/extensions/hash_spec.rb
92
97
  - spec/extensions/nil_spec.rb
93
98
  - spec/extensions/numeric_spec.rb
94
99
  - spec/extensions/string_spec.rb
95
100
  - spec/extensions/time_spec.rb
101
+ - spec/extensions/true_spec.rb
96
102
  - spec/spec_helper.rb