flex_core 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flex_core.rb +8 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 619eb501195c52ef76291b6f2befe6d1daf0c29e
4
- data.tar.gz: cfcde2a80fa311710537993f07635508096f6697
3
+ metadata.gz: 344c5912c4980bdaf83e916240dc6a2d915abe4c
4
+ data.tar.gz: 338afeecf564195282267923ed883e27311e2a1a
5
5
  SHA512:
6
- metadata.gz: 3c3eb05d4afb5c17711a879cb67bceef2760415ddb695b0c63ba43a87460fa78cc99025bde63f37b727fd1ebf5dda21341717839833cf5064e9a99c2c63bf6f6
7
- data.tar.gz: 0b9689d88bb95c89477b487449744e5550fc4cf1d80999649510da4fe3a476cd844504d31218c5c3394a083d7c8e3bdb019dbb7042931f2863756a42e455cc86
6
+ metadata.gz: 3797e06f9893adcc4194ae5efcf4c41448ef533e6257574e2398e845653bda9e5b79cef9cb41c490753ff96977a2c36471758ada7a9328a47fb65d7a2294755a
7
+ data.tar.gz: af1c839f4f6a230ce83a20afbaf845c14ad5b7900d974bfe8d3053efe7c2abaf5efc951fe42b4df567ddd0841b3a426467b7ad85275411257814df099eb2e3f5
data/lib/flex_core.rb CHANGED
@@ -133,6 +133,10 @@ class Hash
133
133
  output
134
134
  end
135
135
 
136
+ def keep! (*keys)
137
+ self.keep(*keys)
138
+ end
139
+
136
140
  def trim_off (*keys)
137
141
  output = self.dup
138
142
  keys.each { |k|
@@ -141,6 +145,10 @@ class Hash
141
145
  output
142
146
  end
143
147
 
148
+ def trim_off! (*keys)
149
+ self.trim_off(*keys)
150
+ end
151
+
144
152
  end
145
153
 
146
154
  class NilClass
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flex_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Lai
@@ -36,7 +36,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
36
36
  version: '0'
37
37
  requirements: []
38
38
  rubyforge_project:
39
- rubygems_version: 2.6.1
39
+ rubygems_version: 2.6.2
40
40
  signing_key:
41
41
  specification_version: 4
42
42
  summary: Some powerful additions to ruby core classes