mongoid-nested-serialization 0.0.2 → 0.0.3
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/.travis.yml
CHANGED
data/README.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Loads nested Mongoid documents using JSON serialization.
|
|
4
4
|
|
|
5
|
+
[![Build Status][2]][1]
|
|
6
|
+
|
|
7
|
+
[1]: http://travis-ci.org/ryantownsend/mongoid-nested-serialization
|
|
8
|
+
[2]: https://secure.travis-ci.org/ryantownsend/mongoid-nested-serialization.png?branch=master
|
|
9
|
+
|
|
5
10
|
## Installation
|
|
6
11
|
|
|
7
12
|
Add this line to your application's Gemfile:
|
|
@@ -48,7 +53,7 @@ User.find_by_json(json)
|
|
|
48
53
|
1. Fork it
|
|
49
54
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
50
55
|
3. Add your code and tests
|
|
51
|
-
4. Run the full test suite (`bundle exec
|
|
56
|
+
4. Run the full test suite (`bundle exec rake`) and ensure it passes 100%
|
|
52
57
|
5. Commit your changes (`git commit -am 'Added some feature'`)
|
|
53
58
|
6. Push to the branch (`git push origin my-new-feature`)
|
|
54
59
|
7. Create new Pull Request
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
+
require "mongoid"
|
|
1
2
|
require "mongoid/nested_serialization/version"
|
|
2
|
-
require "mongoid/nested_serialization"
|
|
3
|
+
require "mongoid/nested_serialization"
|
|
4
|
+
|
|
5
|
+
module Mongoid
|
|
6
|
+
module Document
|
|
7
|
+
def self.included(base)
|
|
8
|
+
super
|
|
9
|
+
base.send(:include, Mongoid::NestedSerialization)
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mongoid-nested-serialization
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
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-09-
|
|
12
|
+
date: 2012-09-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: mongoid
|
|
@@ -124,7 +124,6 @@ files:
|
|
|
124
124
|
- Rakefile
|
|
125
125
|
- lib/mongoid-nested-serialization.rb
|
|
126
126
|
- lib/mongoid/nested_serialization.rb
|
|
127
|
-
- lib/mongoid/nested_serialization/core_ext.rb
|
|
128
127
|
- lib/mongoid/nested_serialization/finder.rb
|
|
129
128
|
- lib/mongoid/nested_serialization/serializer.rb
|
|
130
129
|
- lib/mongoid/nested_serialization/version.rb
|
|
@@ -152,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
152
151
|
version: '0'
|
|
153
152
|
segments:
|
|
154
153
|
- 0
|
|
155
|
-
hash:
|
|
154
|
+
hash: 630815025924156660
|
|
156
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
156
|
none: false
|
|
158
157
|
requirements:
|
|
@@ -161,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
160
|
version: '0'
|
|
162
161
|
segments:
|
|
163
162
|
- 0
|
|
164
|
-
hash:
|
|
163
|
+
hash: 630815025924156660
|
|
165
164
|
requirements: []
|
|
166
165
|
rubyforge_project:
|
|
167
166
|
rubygems_version: 1.8.24
|