dm-serializer 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -16,8 +16,8 @@ gem 'dm-core', DM_VERSION,
16
16
 
17
17
  gem 'fastercsv', '~> 1.5.4'
18
18
  gem 'multi_json', '~> 1.0.3'
19
- gem 'json', '~> 1.5.4', :platforms => [ :ruby_18, :jruby ]
20
- gem 'json_pure', '~> 1.5.4', :platforms => [ :mswin ]
19
+ gem 'json', '~> 1.6.1', :platforms => [ :ruby_18, :jruby ]
20
+ gem 'json_pure', '~> 1.6.1', :platforms => [ :mswin ]
21
21
 
22
22
  group :development do
23
23
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "dm-serializer"
8
- s.version = "1.2.0"
8
+ s.version = "1.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Guy van den Berg"]
12
- s.date = "2011-10-09"
12
+ s.date = "2011-10-24"
13
13
  s.description = "DataMapper plugin for serializing Resources and Collections"
14
14
  s.email = "vandenberg.guy [a] gmail [d] com"
15
15
  s.extra_rdoc_files = [
@@ -65,8 +65,8 @@ Gem::Specification.new do |s|
65
65
  s.add_runtime_dependency(%q<dm-core>, ["~> 1.2.0"])
66
66
  s.add_runtime_dependency(%q<fastercsv>, ["~> 1.5.4"])
67
67
  s.add_runtime_dependency(%q<multi_json>, ["~> 1.0.3"])
68
- s.add_runtime_dependency(%q<json>, ["~> 1.5.4"])
69
- s.add_runtime_dependency(%q<json_pure>, ["~> 1.5.4"])
68
+ s.add_runtime_dependency(%q<json>, ["~> 1.6.1"])
69
+ s.add_runtime_dependency(%q<json_pure>, ["~> 1.6.1"])
70
70
  s.add_development_dependency(%q<dm-validations>, ["~> 1.2.0"])
71
71
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
72
72
  s.add_development_dependency(%q<rake>, ["~> 0.9.2"])
@@ -75,8 +75,8 @@ Gem::Specification.new do |s|
75
75
  s.add_dependency(%q<dm-core>, ["~> 1.2.0"])
76
76
  s.add_dependency(%q<fastercsv>, ["~> 1.5.4"])
77
77
  s.add_dependency(%q<multi_json>, ["~> 1.0.3"])
78
- s.add_dependency(%q<json>, ["~> 1.5.4"])
79
- s.add_dependency(%q<json_pure>, ["~> 1.5.4"])
78
+ s.add_dependency(%q<json>, ["~> 1.6.1"])
79
+ s.add_dependency(%q<json_pure>, ["~> 1.6.1"])
80
80
  s.add_dependency(%q<dm-validations>, ["~> 1.2.0"])
81
81
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
82
82
  s.add_dependency(%q<rake>, ["~> 0.9.2"])
@@ -86,8 +86,8 @@ Gem::Specification.new do |s|
86
86
  s.add_dependency(%q<dm-core>, ["~> 1.2.0"])
87
87
  s.add_dependency(%q<fastercsv>, ["~> 1.5.4"])
88
88
  s.add_dependency(%q<multi_json>, ["~> 1.0.3"])
89
- s.add_dependency(%q<json>, ["~> 1.5.4"])
90
- s.add_dependency(%q<json_pure>, ["~> 1.5.4"])
89
+ s.add_dependency(%q<json>, ["~> 1.6.1"])
90
+ s.add_dependency(%q<json_pure>, ["~> 1.6.1"])
91
91
  s.add_dependency(%q<dm-validations>, ["~> 1.2.0"])
92
92
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
93
93
  s.add_dependency(%q<rake>, ["~> 0.9.2"])
@@ -86,7 +86,7 @@ module DataMapper
86
86
 
87
87
  # default to making JSON
88
88
  if options.fetch(:to_json, true)
89
- collection.to_json
89
+ MultiJson.encode(collection)
90
90
  else
91
91
  collection
92
92
  end
metadata CHANGED
@@ -1,176 +1,123 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: dm-serializer
3
- version: !ruby/object:Gem::Version
4
- hash: 31
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.1
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 2
9
- - 0
10
- version: 1.2.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Guy van den Berg
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-10-09 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-10-24 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: dm-core
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70365218042700 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 31
29
- segments:
30
- - 1
31
- - 2
32
- - 0
20
+ - !ruby/object:Gem::Version
33
21
  version: 1.2.0
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: fastercsv
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70365218042700
25
+ - !ruby/object:Gem::Dependency
26
+ name: fastercsv
27
+ requirement: &70365218041980 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
29
+ requirements:
42
30
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 11
45
- segments:
46
- - 1
47
- - 5
48
- - 4
31
+ - !ruby/object:Gem::Version
49
32
  version: 1.5.4
50
33
  type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: multi_json
54
34
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70365218041980
36
+ - !ruby/object:Gem::Dependency
37
+ name: multi_json
38
+ requirement: &70365218026560 !ruby/object:Gem::Requirement
56
39
  none: false
57
- requirements:
40
+ requirements:
58
41
  - - ~>
59
- - !ruby/object:Gem::Version
60
- hash: 17
61
- segments:
62
- - 1
63
- - 0
64
- - 3
42
+ - !ruby/object:Gem::Version
65
43
  version: 1.0.3
66
44
  type: :runtime
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: json
70
45
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70365218026560
47
+ - !ruby/object:Gem::Dependency
48
+ name: json
49
+ requirement: &70365218025020 !ruby/object:Gem::Requirement
72
50
  none: false
73
- requirements:
51
+ requirements:
74
52
  - - ~>
75
- - !ruby/object:Gem::Version
76
- hash: 11
77
- segments:
78
- - 1
79
- - 5
80
- - 4
81
- version: 1.5.4
53
+ - !ruby/object:Gem::Version
54
+ version: 1.6.1
82
55
  type: :runtime
83
- version_requirements: *id004
84
- - !ruby/object:Gem::Dependency
85
- name: json_pure
86
56
  prerelease: false
87
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *70365218025020
58
+ - !ruby/object:Gem::Dependency
59
+ name: json_pure
60
+ requirement: &70365218024460 !ruby/object:Gem::Requirement
88
61
  none: false
89
- requirements:
62
+ requirements:
90
63
  - - ~>
91
- - !ruby/object:Gem::Version
92
- hash: 11
93
- segments:
94
- - 1
95
- - 5
96
- - 4
97
- version: 1.5.4
64
+ - !ruby/object:Gem::Version
65
+ version: 1.6.1
98
66
  type: :runtime
99
- version_requirements: *id005
100
- - !ruby/object:Gem::Dependency
101
- name: dm-validations
102
67
  prerelease: false
103
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *70365218024460
69
+ - !ruby/object:Gem::Dependency
70
+ name: dm-validations
71
+ requirement: &70365218023940 !ruby/object:Gem::Requirement
104
72
  none: false
105
- requirements:
73
+ requirements:
106
74
  - - ~>
107
- - !ruby/object:Gem::Version
108
- hash: 31
109
- segments:
110
- - 1
111
- - 2
112
- - 0
75
+ - !ruby/object:Gem::Version
113
76
  version: 1.2.0
114
77
  type: :development
115
- version_requirements: *id006
116
- - !ruby/object:Gem::Dependency
117
- name: jeweler
118
78
  prerelease: false
119
- requirement: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *70365218023940
80
+ - !ruby/object:Gem::Dependency
81
+ name: jeweler
82
+ requirement: &70365218022900 !ruby/object:Gem::Requirement
120
83
  none: false
121
- requirements:
84
+ requirements:
122
85
  - - ~>
123
- - !ruby/object:Gem::Version
124
- hash: 7
125
- segments:
126
- - 1
127
- - 6
128
- - 4
86
+ - !ruby/object:Gem::Version
129
87
  version: 1.6.4
130
88
  type: :development
131
- version_requirements: *id007
132
- - !ruby/object:Gem::Dependency
133
- name: rake
134
89
  prerelease: false
135
- requirement: &id008 !ruby/object:Gem::Requirement
90
+ version_requirements: *70365218022900
91
+ - !ruby/object:Gem::Dependency
92
+ name: rake
93
+ requirement: &70365218022040 !ruby/object:Gem::Requirement
136
94
  none: false
137
- requirements:
95
+ requirements:
138
96
  - - ~>
139
- - !ruby/object:Gem::Version
140
- hash: 63
141
- segments:
142
- - 0
143
- - 9
144
- - 2
97
+ - !ruby/object:Gem::Version
145
98
  version: 0.9.2
146
99
  type: :development
147
- version_requirements: *id008
148
- - !ruby/object:Gem::Dependency
149
- name: rspec
150
100
  prerelease: false
151
- requirement: &id009 !ruby/object:Gem::Requirement
101
+ version_requirements: *70365218022040
102
+ - !ruby/object:Gem::Dependency
103
+ name: rspec
104
+ requirement: &70365218021300 !ruby/object:Gem::Requirement
152
105
  none: false
153
- requirements:
106
+ requirements:
154
107
  - - ~>
155
- - !ruby/object:Gem::Version
156
- hash: 31
157
- segments:
158
- - 1
159
- - 3
160
- - 2
108
+ - !ruby/object:Gem::Version
161
109
  version: 1.3.2
162
110
  type: :development
163
- version_requirements: *id009
111
+ prerelease: false
112
+ version_requirements: *70365218021300
164
113
  description: DataMapper plugin for serializing Resources and Collections
165
114
  email: vandenberg.guy [a] gmail [d] com
166
115
  executables: []
167
-
168
116
  extensions: []
169
-
170
- extra_rdoc_files:
117
+ extra_rdoc_files:
171
118
  - LICENSE
172
119
  - README.rdoc
173
- files:
120
+ files:
174
121
  - Gemfile
175
122
  - LICENSE
176
123
  - README.rdoc
@@ -207,36 +154,26 @@ files:
207
154
  - tasks/yardstick.rake
208
155
  homepage: http://github.com/datamapper/dm-serializer
209
156
  licenses: []
210
-
211
157
  post_install_message:
212
158
  rdoc_options: []
213
-
214
- require_paths:
159
+ require_paths:
215
160
  - lib
216
- required_ruby_version: !ruby/object:Gem::Requirement
161
+ required_ruby_version: !ruby/object:Gem::Requirement
217
162
  none: false
218
- requirements:
219
- - - ">="
220
- - !ruby/object:Gem::Version
221
- hash: 3
222
- segments:
223
- - 0
224
- version: "0"
225
- required_rubygems_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ! '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ required_rubygems_version: !ruby/object:Gem::Requirement
226
168
  none: false
227
- requirements:
228
- - - ">="
229
- - !ruby/object:Gem::Version
230
- hash: 3
231
- segments:
232
- - 0
233
- version: "0"
169
+ requirements:
170
+ - - ! '>='
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
234
173
  requirements: []
235
-
236
174
  rubyforge_project: datamapper
237
175
  rubygems_version: 1.8.11
238
176
  signing_key:
239
177
  specification_version: 3
240
178
  summary: DataMapper plugin for serializing Resources and Collections
241
179
  test_files: []
242
-