hash_order_helper 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hash_order_helper.gemspec +1 -1
- data/lib/hash_order_helper.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07e5129af5fcf29854a8770f7cb19330381cb21c
|
4
|
+
data.tar.gz: a53ce05d4277f921c3576bd1bd3df0f98a37f889
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5359868791279063784a0cb07d364baaf8f9dff112653bf3f5dfe4c79112f29fb4b7937fbc1cd43f79f4808db6299ab52ef733691abc8ad2260723eee37f38df
|
7
|
+
data.tar.gz: 26562ef20322400fb9a7946e92c53ae32f3d7bbeded5e8e509aed929dcc0aad9d8de9fec83f0ece6db8f92760111a2daf0bed7b20980e8a397271719efa49081
|
data/hash_order_helper.gemspec
CHANGED
data/lib/hash_order_helper.rb
CHANGED
@@ -66,7 +66,7 @@ module HashOrderHelper
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def push(push_hash)
|
69
|
-
hash_keys = self.keys
|
69
|
+
hash_keys = self.keys - push_hash.keys
|
70
70
|
hash_keys.push(*push_hash.keys)
|
71
71
|
new_hash = {}
|
72
72
|
hash_keys.each do |key|
|
@@ -78,7 +78,7 @@ module HashOrderHelper
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def unshift(unshift_hash)
|
81
|
-
hash_keys = self.keys
|
81
|
+
hash_keys = self.keys - unshift_hash.keys
|
82
82
|
hash_keys.unshift(*unshift_hash.keys)
|
83
83
|
new_hash = {}
|
84
84
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hash_order_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|