mashed 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MTA2ODM4Y2I2YjI3ZTYwZjgwOTM3Y2RhZTljMjVjYzU3OTE1OWUzZA==
5
+ data.tar.gz: !binary |-
6
+ ZjdkNjk2YmExZjJmNmQwMjAwMmU3NmY0Mjk2NmRmNTJjZmUyNjI1Mg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ZWMzMDVkNzRjNDBlYjFkNGI4MDUzYThlYjdlNWMwNmMxMzg2YjZhZGZlM2Q3
10
+ MTdlNzVmOGNiMjU3ZWQzZDA2N2RlZmY3MDE2N2Q0ZGU0MTJlYzFkYzA5MWE5
11
+ NmM5Nzg2MjJkN2FlMmI2NDIzYjVlZDk3NTg1ZmQxNzA5NjVhMjk=
12
+ data.tar.gz: !binary |-
13
+ OTc5NWQzYzlhZGNlNzFjZGMzNzkzMzdhZjZhMmVjZTkzNzRhNGNmNTJlYjMw
14
+ MjdmOTZkMTI1YzAwYjJiZGRhN2Q3ZDU0ODk0YmIzNGY4ZjRjZDY5MmZhOWQ2
15
+ ZjhkNTcxZTQzY2FjMzgyNzM4YWYxOTcyY2JlYjU0OTI0ZWEwOTk=
@@ -36,19 +36,19 @@ module Mashed
36
36
  end
37
37
 
38
38
  def merge(other_hash, &blk)
39
- super(other_hash.stringify, &blk)
39
+ super(self.class.stringify(other_hash), &blk)
40
40
  end
41
41
 
42
42
  def merge!(other_hash, &blk)
43
- super(other_hash.stringify, &blk)
43
+ super(self.class.stringify(other_hash), &blk)
44
44
  end
45
45
 
46
46
  def replace(other_hash, &blk)
47
- super(other_hash.stringify, &blk)
47
+ super(self.class.stringify(other_hash), &blk)
48
48
  end
49
49
 
50
50
  def update(other_hash, &blk)
51
- super(other_hash.stringify, &blk)
51
+ super(self.class.stringify(other_hash), &blk)
52
52
  end
53
53
  end
54
54
  end
@@ -1,3 +1,3 @@
1
1
  module Mashed
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -36,4 +36,8 @@ describe Mashed::StringyHash do
36
36
  }
37
37
  it { expect(s[klass.new]).to eq(1) }
38
38
  end
39
+
40
+ describe "#merge" do
41
+ it { expect(stringify.merge({hello: "world"})).to include("hello"=>"world") }
42
+ end
39
43
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mashed
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
5
- prerelease:
4
+ version: 1.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - myobie
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-03-27 00:00:00.000000000 Z
11
+ date: 2014-04-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -101,27 +94,26 @@ files:
101
94
  homepage: http://github.com/6wunderkinder/mashed
102
95
  licenses:
103
96
  - MIT
97
+ metadata: {}
104
98
  post_install_message:
105
99
  rdoc_options: []
106
100
  require_paths:
107
101
  - lib
108
102
  required_ruby_version: !ruby/object:Gem::Requirement
109
- none: false
110
103
  requirements:
111
104
  - - ! '>='
112
105
  - !ruby/object:Gem::Version
113
106
  version: '0'
114
107
  required_rubygems_version: !ruby/object:Gem::Requirement
115
- none: false
116
108
  requirements:
117
109
  - - ! '>='
118
110
  - !ruby/object:Gem::Version
119
111
  version: '0'
120
112
  requirements: []
121
113
  rubyforge_project:
122
- rubygems_version: 1.8.23
114
+ rubygems_version: 2.2.2
123
115
  signing_key:
124
- specification_version: 3
116
+ specification_version: 4
125
117
  summary: A Mash which is an object that uses method_missing to provide methods for
126
118
  a Hash's keys.
127
119
  test_files: