representable 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ h2. 1.3.4
2
+
3
+ * Replacing `json` gem with `multi_json` hoping not to cause trouble.
4
+
1
5
  h2. 1.3.3
2
6
 
3
7
  * Added new options: `:binding`, `:setter` and `:getter`.
@@ -5,7 +9,7 @@ h2. 1.3.3
5
9
 
6
10
  h2. 1.3.2
7
11
 
8
- * Some minor internal changes. Added `Config#inherit` to encasulate array push behavior.
12
+ * Some minor internal changes. Added `Config#inherit` to encasulate array push behavior.
9
13
 
10
14
  h2. 1.3.1
11
15
 
@@ -15,7 +19,7 @@ h2. 1.3.0
15
19
 
16
20
  * Remove @:exclude@ option.
17
21
  * Moving all read/write logic to @Binding@. If you did override @#read_fragment@ and friends in your representer/models this won't work anymore.
18
- * Options passed to @to_*/from_*@ are now passed to nested objects.
22
+ * Options passed to @to_*/from_*@ are now passed to nested objects.
19
23
 
20
24
  h2. 1.2.9
21
25
 
@@ -157,9 +161,9 @@ h2. 0.9.1
157
161
 
158
162
  * Extracted common serialization into @Representable#create_representation_with@ and deserialization into @#update_properties_from@.
159
163
  * Both serialization and deserialization now accept a block to make them skip elements while iterating the property definitions.
160
-
164
+
161
165
  h2. 0.9.0
162
166
 
163
167
  h3. Changes
164
- * Removed the :tag option in favor of :from. The Definition#from method is now authorative for all name mappings.
168
+ * Removed the :tag option in favor of :from. The Definition#from method is now authorative for all name mappings.
165
169
  * Removed the active_support and i18n dependency.
@@ -1,5 +1,5 @@
1
1
  require 'representable/hash'
2
- require 'json'
2
+ require 'multi_json'
3
3
 
4
4
  module Representable
5
5
  # Brings #to_json and #from_json to your object.
@@ -1,3 +1,3 @@
1
1
  module Representable
2
- VERSION = "1.3.3"
2
+ VERSION = "1.3.4"
3
3
  end
@@ -20,12 +20,13 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
 
22
22
  s.add_dependency "nokogiri"
23
- s.add_dependency "json"
24
-
23
+ s.add_dependency "multi_json"
24
+
25
25
  s.add_development_dependency "rake"
26
26
  s.add_development_dependency "test_xml"
27
27
  s.add_development_dependency "minitest", ">= 2.8.1"
28
28
  s.add_development_dependency "mocha", ">= 0.13.0"
29
29
  s.add_development_dependency "mongoid"
30
30
  s.add_development_dependency "virtus", "~> 0.5.0"
31
+ s.add_development_dependency "yajl-ruby"
31
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: representable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.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: 2013-02-15 00:00:00.000000000 Z
12
+ date: 2013-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -28,7 +28,7 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
- name: json
31
+ name: multi_json
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
@@ -139,6 +139,22 @@ dependencies:
139
139
  - - ~>
140
140
  - !ruby/object:Gem::Version
141
141
  version: 0.5.0
142
+ - !ruby/object:Gem::Dependency
143
+ name: yajl-ruby
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
142
158
  description: Maps representation documents from and to Ruby objects. Includes XML
143
159
  and JSON support, plain properties, collections and compositions.
144
160
  email: