y_support 2.0.29 → 2.0.30

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: d0bd1b8b70060322aaea75ad11f07890adef799e
4
- data.tar.gz: 9918e56fbed551dd5051067d92af30e3a4cd9e9e
3
+ metadata.gz: fafe4c9f6a40e514b259838ea5180f75217f7cb2
4
+ data.tar.gz: 4534223fbf66588c2ced7d5686b4b9262c9058e4
5
5
  SHA512:
6
- metadata.gz: 0275a6c4b90096fcc9299e7bd1bed593319045e46818b9a848dd67bf84f3b1f8463dd75177856ffc46cd54efe2d53c5d88e10c8b8337c2a7b2d1c2b3f90936bd
7
- data.tar.gz: fdeb2cbfe9c079b0d493c13557c72ad6dc909d7a9329bf7ad605ae3202ad52bcfcb6b82b16df29d5fa4ec4d0669c0161e8b7cc4748e2cfa3e57b107893d2c733
6
+ metadata.gz: bd540b2512452d40ebcf756b14b4e9964dabcbbeff28c0883c4d18d1e669ed0091260c42cd2d356297e57d4ccfd318f2b4ffeafbc84447df4202e237ba87d1e8
7
+ data.tar.gz: 6f6babbe0d375bd9ab298b94ccfd6a088e8d623b0b07dc452b71f9fe6a52e4087d4581a0a77c3190d57c52f06af055ed315d954dd74d3993c28f5cc2d7adfc55
@@ -87,6 +87,7 @@ class << Integer
87
87
  def additive_inverse; -self end
88
88
  def multiply( other ); self * other end
89
89
  def multiplicative_identity; 1 end
90
+ alias one multiplicative_identity
90
91
  end
91
92
 
92
93
  # Patching Float with Algebra::Field compliance methods.
@@ -68,7 +68,7 @@ class Hash
68
68
  def slice matcher
69
69
  case matcher
70
70
  when Array then select { |key, _| matcher.include? key }
71
- else select { |key, _| matcher === key } end
71
+ else self.class[ select { |key, _| matcher === key } ] end
72
72
  end
73
73
 
74
74
  # Makes hash keys accessible as methods. If the hash keys collide with
@@ -1,3 +1,3 @@
1
1
  module YSupport
2
- VERSION = "2.0.29"
2
+ VERSION = "2.0.30"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: y_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.29
4
+ version: 2.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - boris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-03 00:00:00.000000000 Z
11
+ date: 2013-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport