mongoid-indifferent-access 0.0.3 → 0.0.4
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.
- data/Gemfile.lock +13 -14
- data/lib/mongoid_indifferent_access.rb +2 -2
- data/mongoid-indifferent-access.gemspec +3 -3
- data/spec/mongoid-indifferent-access/indifferent_access_spec.rb +3 -3
- data/spec/spec_helper.rb +6 -15
- data/spec/support/guitar.rb +0 -3
- data/spec/support/mandolin.rb +4 -0
- metadata +3 -3
- data/spec/support/mandalin.rb +0 -2
data/Gemfile.lock
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mongoid-indifferent-access (0.0.
|
4
|
+
mongoid-indifferent-access (0.0.4)
|
5
5
|
mongoid
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (3.2.
|
11
|
-
activesupport (= 3.2.
|
10
|
+
activemodel (3.2.8)
|
11
|
+
activesupport (= 3.2.8)
|
12
12
|
builder (~> 3.0.0)
|
13
|
-
activesupport (3.2.
|
13
|
+
activesupport (3.2.8)
|
14
14
|
i18n (~> 0.6)
|
15
15
|
multi_json (~> 1.0)
|
16
16
|
builder (3.0.0)
|
17
17
|
diff-lcs (1.1.3)
|
18
18
|
i18n (0.6.0)
|
19
|
-
mongoid (3.0.
|
19
|
+
mongoid (3.0.4)
|
20
20
|
activemodel (~> 3.1)
|
21
21
|
moped (~> 1.1)
|
22
22
|
origin (~> 1.0)
|
@@ -25,18 +25,17 @@ GEM
|
|
25
25
|
multi_json (1.3.6)
|
26
26
|
origin (1.0.6)
|
27
27
|
rake (0.9.2.2)
|
28
|
-
rspec (2.
|
29
|
-
rspec-core (~> 2.
|
30
|
-
rspec-expectations (~> 2.
|
31
|
-
rspec-mocks (~> 2.
|
32
|
-
rspec-core (2.
|
33
|
-
rspec-expectations (2.
|
34
|
-
diff-lcs (~> 1.1.
|
35
|
-
rspec-mocks (2.
|
28
|
+
rspec (2.11.0)
|
29
|
+
rspec-core (~> 2.11.0)
|
30
|
+
rspec-expectations (~> 2.11.0)
|
31
|
+
rspec-mocks (~> 2.11.0)
|
32
|
+
rspec-core (2.11.1)
|
33
|
+
rspec-expectations (2.11.2)
|
34
|
+
diff-lcs (~> 1.1.3)
|
35
|
+
rspec-mocks (2.11.2)
|
36
36
|
tzinfo (0.3.33)
|
37
37
|
|
38
38
|
PLATFORMS
|
39
|
-
java
|
40
39
|
ruby
|
41
40
|
|
42
41
|
DEPENDENCIES
|
@@ -3,7 +3,7 @@ module Mongoid
|
|
3
3
|
module Hash
|
4
4
|
module IndifferentAccess
|
5
5
|
|
6
|
-
VERSION = "0.0.
|
6
|
+
VERSION = "0.0.4"
|
7
7
|
|
8
8
|
def self.included(klass)
|
9
9
|
klass.class_eval do
|
@@ -11,7 +11,7 @@ module Mongoid
|
|
11
11
|
def self.field(name, options={})
|
12
12
|
field = super(name, options)
|
13
13
|
|
14
|
-
if options[:type].name == 'Hash'
|
14
|
+
if options[:type] && options[:type].name == 'Hash'
|
15
15
|
getter_name = name.to_sym
|
16
16
|
setter_name = "#{getter_name}=".to_sym
|
17
17
|
|
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'mongoid-indifferent-access'
|
16
|
-
s.version = '0.0.
|
17
|
-
s.date = '2012-08-
|
16
|
+
s.version = '0.0.4'
|
17
|
+
s.date = '2012-08-15'
|
18
18
|
s.rubyforge_project = 'mongoid-indifferent-access'
|
19
19
|
|
20
20
|
## Make sure your summary is short. The description may be as long
|
@@ -63,7 +63,7 @@ Gem::Specification.new do |s|
|
|
63
63
|
spec/mongoid.yml
|
64
64
|
spec/spec_helper.rb
|
65
65
|
spec/support/guitar.rb
|
66
|
-
spec/support/
|
66
|
+
spec/support/mandolin.rb
|
67
67
|
]
|
68
68
|
# = MANIFEST =
|
69
69
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'support/guitar'
|
3
|
-
require 'support/
|
3
|
+
require 'support/mandolin'
|
4
4
|
|
5
5
|
module Mongoid::Extensions::Hash
|
6
6
|
|
@@ -26,7 +26,7 @@ module Mongoid::Extensions::Hash
|
|
26
26
|
describe 'subclasses' do
|
27
27
|
|
28
28
|
before :each do
|
29
|
-
@sub_subject =
|
29
|
+
@sub_subject = Mandolin.new
|
30
30
|
@sub_subject.config = {:value => 123}
|
31
31
|
end
|
32
32
|
|
@@ -46,7 +46,7 @@ module Mongoid::Extensions::Hash
|
|
46
46
|
|
47
47
|
before :each do
|
48
48
|
load 'support/guitar.rb'
|
49
|
-
@sub_subject =
|
49
|
+
@sub_subject = Mandolin.new
|
50
50
|
@sub_subject.config = {:value => 123}
|
51
51
|
end
|
52
52
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,16 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
#
|
7
|
-
# RSpec.configure do |config|
|
8
|
-
# config.treat_symbols_as_metadata_keys_with_true_values = true
|
9
|
-
# config.run_all_when_everything_filtered = true
|
10
|
-
# config.filter_run :focus
|
11
|
-
# end
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler/setup'
|
3
|
+
require 'mongoid'
|
4
|
+
require 'mongoid_indifferent_access'
|
5
|
+
|
6
|
+
#Dir['./spec/support/*.rb'].map {|f| require f }
|
12
7
|
|
13
|
-
require 'rspec/autorun'
|
14
|
-
ROOT = File.expand_path('../..', __FILE__)
|
15
|
-
Dir[File.join(ROOT, "spec/support/**/*.rb")].each {|f| require f}
|
16
|
-
$LOAD_PATH.unshift(File.expand_path('lib', ROOT))
|
data/spec/support/guitar.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-indifferent-access
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mongoid
|
@@ -76,7 +76,7 @@ files:
|
|
76
76
|
- spec/mongoid.yml
|
77
77
|
- spec/spec_helper.rb
|
78
78
|
- spec/support/guitar.rb
|
79
|
-
- spec/support/
|
79
|
+
- spec/support/mandolin.rb
|
80
80
|
homepage: https://github.com/mindscratch/mongoid-indifferent-access
|
81
81
|
licenses: []
|
82
82
|
post_install_message:
|
data/spec/support/mandalin.rb
DELETED