iron-extensions 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25e58b7dab82ea9ffef58c5d04ad58ba2d9777c9
4
- data.tar.gz: 915e17967decb24e1526328b927f1e562357a01b
3
+ metadata.gz: fd65118c887a47d1c3eea243f563344f71102730
4
+ data.tar.gz: 569fea9ae3ff29abe4c206a5aee390acfae90de1
5
5
  SHA512:
6
- metadata.gz: 63b0cbb8e2702a7645818e80e26557221b919998152f2dd0a9724672b1fa94f3d8839f64e932b31d1784d162d88e3fa379dcb7648979930339c2d150b035ab6e
7
- data.tar.gz: 916089267edf2c7735e357f2a9a0535202f6f50f1e4e0a7a2fcc6f1fc2c3f40cf4d1b5128de8e4d0909228ff3facbbe5fb87b7be19a859f1ac5ad3c4d20db004
6
+ metadata.gz: 496bf1300b56b7cc86721a9040079941ad96830ce5be14f36de1e4140ec7f929cde6a169130ba3fbccc52d9de4080ccda55d5cc19a55c4389ff2d348f584eb1b
7
+ data.tar.gz: 8ae83a13b739d8a94a17ba4161e91579438890be3c9c9f29687fb539971e7c363215eb334d055c01ed4c5f916eb2b4cf93dacfb42a39b63be54004cf7d38b15f
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.2.1 / 2015-01-27
2
+
3
+ * Instant revert - move Enumerable#blank? to Array#blank? and Hash#blank? as enumerables don't support #empty?, #count, etc.
4
+
1
5
  == 1.2.0 / 2015-01-27
2
6
 
3
7
  * BREAKING CHANGE: removed DslProxy/DslBuilder and the dsl_* accessor helpers and moved them into the iron-dsl gem
data/Version.txt CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.1
@@ -4,5 +4,9 @@ class Array
4
4
  def list_join(sep = ', ')
5
5
  self.select{|e| !e.blank?}.join(sep)
6
6
  end
7
+
8
+ def blank?
9
+ empty?
10
+ end
7
11
 
8
12
  end
@@ -16,8 +16,4 @@ module Enumerable
16
16
  delete_if {|*args| !block.call(*args)}
17
17
  end
18
18
 
19
- def blank?
20
- empty?
21
- end
22
-
23
19
  end
@@ -0,0 +1,7 @@
1
+ class Hash
2
+
3
+ def blank?
4
+ empty?
5
+ end
6
+
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Morris
@@ -41,6 +41,7 @@ files:
41
41
  - lib/iron/extensions/enumerable.rb
42
42
  - lib/iron/extensions/file.rb
43
43
  - lib/iron/extensions/fixnum.rb
44
+ - lib/iron/extensions/hash.rb
44
45
  - lib/iron/extensions/kernel.rb
45
46
  - lib/iron/extensions/math.rb
46
47
  - lib/iron/extensions/nil.rb