dm-serializer 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/.gitignore +35 -0
  2. data/Gemfile +9 -10
  3. data/Rakefile +1 -22
  4. data/dm-serializer.gemspec +20 -91
  5. metadata +31 -51
  6. data/VERSION +0 -1
@@ -0,0 +1,35 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## Rubinius
17
+ *.rbc
18
+
19
+ ## PROJECT::GENERAL
20
+ *.gem
21
+ coverage
22
+ rdoc
23
+ pkg
24
+ tmp
25
+ doc
26
+ log
27
+ .yardoc
28
+ measurements
29
+
30
+ ## BUNDLER
31
+ .bundle
32
+ Gemfile.*
33
+
34
+ ## PROJECT::SPECIFIC
35
+ spec/db/
data/Gemfile CHANGED
@@ -10,31 +10,30 @@ DO_VERSION = '~> 0.10.6'
10
10
  DM_DO_ADAPTERS = %w[ sqlite postgres mysql oracle sqlserver ]
11
11
  CURRENT_BRANCH = ENV.fetch('GIT_BRANCH', 'master')
12
12
 
13
+ gem 'fastercsv', '~> 1.5'
14
+ gem 'multi_json', '~> 1.0'
15
+ gem 'json', '~> 1.6', :platforms => [ :ruby_18, :jruby ]
16
+ gem 'json_pure', '~> 1.6', :platforms => [ :mswin ]
17
+
13
18
  gem 'dm-core', DM_VERSION,
14
19
  SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}",
15
20
  :branch => CURRENT_BRANCH
16
21
 
17
- gem 'fastercsv', '~> 1.5.4'
18
- gem 'multi_json', '~> 1.0.3'
19
- gem 'json', '~> 1.6.1', :platforms => [ :ruby_18, :jruby ]
20
- gem 'json_pure', '~> 1.6.1', :platforms => [ :mswin ]
21
-
22
22
  group :development do
23
23
 
24
24
  gem 'dm-validations', DM_VERSION,
25
25
  SOURCE => "#{DATAMAPPER}/dm-validations#{REPO_POSTFIX}",
26
26
  :branch => CURRENT_BRANCH
27
27
 
28
- gem 'jeweler', '~> 1.6.4'
29
- gem 'rake', '~> 0.9.2'
30
- gem 'rspec', '~> 1.3.2'
28
+ gem 'rake', '~> 0.9'
29
+ gem 'rspec', '~> 1.3'
31
30
 
32
31
  end
33
32
 
34
33
  group :testing do
35
34
 
36
- gem 'nokogiri', '~> 1.4.4'
37
- gem 'libxml-ruby', '~> 1.1.4', :platforms => [ :mri, :mswin ]
35
+ gem 'nokogiri', '~> 1.4'
36
+ gem 'libxml-ruby', '~> 2.0', :platforms => [ :mri, :mswin ]
38
37
 
39
38
  end
40
39
 
data/Rakefile CHANGED
@@ -1,25 +1,4 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
3
 
4
- begin
5
- gem 'jeweler', '~> 1.6.4'
6
- require 'jeweler'
7
-
8
- Jeweler::Tasks.new do |gem|
9
- gem.name = 'dm-serializer'
10
- gem.summary = 'DataMapper plugin for serializing Resources and Collections'
11
- gem.description = gem.summary
12
- gem.email = 'vandenberg.guy [a] gmail [d] com'
13
- gem.homepage = 'http://github.com/datamapper/%s' % gem.name
14
- gem.authors = [ 'Guy van den Berg' ]
15
- gem.has_rdoc = 'yard'
16
-
17
- gem.rubyforge_project = 'datamapper'
18
- end
19
-
20
- Jeweler::GemcutterTasks.new
21
-
22
- FileList['tasks/**/*.rake'].each { |task| import task }
23
- rescue LoadError
24
- puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler -v 1.6.4'
25
- end
4
+ FileList['tasks/**/*.rake'].each { |task| import task }
@@ -1,97 +1,26 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
5
2
 
6
- Gem::Specification.new do |s|
7
- s.name = "dm-serializer"
8
- s.version = "1.2.1"
3
+ Gem::Specification.new do |gem|
4
+ gem.authors = [ 'Guy van den Berg', 'Dan Kubb' ]
5
+ gem.email = [ "dan.kubb@gmail.com" ]
6
+ gem.summary = "DataMapper plugin for serializing Resources and Collections"
7
+ gem.description = gem.summary
8
+ gem.homepage = "http://datamapper.org"
9
9
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Guy van den Berg"]
12
- s.date = "2011-10-24"
13
- s.description = "DataMapper plugin for serializing Resources and Collections"
14
- s.email = "vandenberg.guy [a] gmail [d] com"
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.rdoc"
18
- ]
19
- s.files = [
20
- "Gemfile",
21
- "LICENSE",
22
- "README.rdoc",
23
- "Rakefile",
24
- "VERSION",
25
- "benchmarks/to_json.rb",
26
- "benchmarks/to_xml.rb",
27
- "dm-serializer.gemspec",
28
- "lib/dm-serializer.rb",
29
- "lib/dm-serializer/common.rb",
30
- "lib/dm-serializer/to_csv.rb",
31
- "lib/dm-serializer/to_json.rb",
32
- "lib/dm-serializer/to_xml.rb",
33
- "lib/dm-serializer/to_yaml.rb",
34
- "lib/dm-serializer/xml.rb",
35
- "lib/dm-serializer/xml/libxml.rb",
36
- "lib/dm-serializer/xml/nokogiri.rb",
37
- "lib/dm-serializer/xml/rexml.rb",
38
- "spec/fixtures/cow.rb",
39
- "spec/fixtures/planet.rb",
40
- "spec/fixtures/quan_tum_cat.rb",
41
- "spec/fixtures/vehicle.rb",
42
- "spec/lib/serialization_method_shared_spec.rb",
43
- "spec/public/serializer_spec.rb",
44
- "spec/public/to_csv_spec.rb",
45
- "spec/public/to_json_spec.rb",
46
- "spec/public/to_xml_spec.rb",
47
- "spec/public/to_yaml_spec.rb",
48
- "spec/rcov.opts",
49
- "spec/spec.opts",
50
- "spec/spec_helper.rb",
51
- "tasks/spec.rake",
52
- "tasks/yard.rake",
53
- "tasks/yardstick.rake"
54
- ]
55
- s.homepage = "http://github.com/datamapper/dm-serializer"
56
- s.require_paths = ["lib"]
57
- s.rubyforge_project = "datamapper"
58
- s.rubygems_version = "1.8.11"
59
- s.summary = "DataMapper plugin for serializing Resources and Collections"
10
+ gem.files = `git ls-files`.split("\n")
11
+ gem.test_files = `git ls-files -- {spec}/*`.split("\n")
12
+ gem.extra_rdoc_files = %w[LICENSE README.rdoc]
60
13
 
61
- if s.respond_to? :specification_version then
62
- s.specification_version = 3
14
+ gem.name = "dm-serializer"
15
+ gem.require_paths = [ "lib" ]
16
+ gem.version = '1.2.2'
63
17
 
64
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
65
- s.add_runtime_dependency(%q<dm-core>, ["~> 1.2.0"])
66
- s.add_runtime_dependency(%q<fastercsv>, ["~> 1.5.4"])
67
- s.add_runtime_dependency(%q<multi_json>, ["~> 1.0.3"])
68
- s.add_runtime_dependency(%q<json>, ["~> 1.6.1"])
69
- s.add_runtime_dependency(%q<json_pure>, ["~> 1.6.1"])
70
- s.add_development_dependency(%q<dm-validations>, ["~> 1.2.0"])
71
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
72
- s.add_development_dependency(%q<rake>, ["~> 0.9.2"])
73
- s.add_development_dependency(%q<rspec>, ["~> 1.3.2"])
74
- else
75
- s.add_dependency(%q<dm-core>, ["~> 1.2.0"])
76
- s.add_dependency(%q<fastercsv>, ["~> 1.5.4"])
77
- s.add_dependency(%q<multi_json>, ["~> 1.0.3"])
78
- s.add_dependency(%q<json>, ["~> 1.6.1"])
79
- s.add_dependency(%q<json_pure>, ["~> 1.6.1"])
80
- s.add_dependency(%q<dm-validations>, ["~> 1.2.0"])
81
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
82
- s.add_dependency(%q<rake>, ["~> 0.9.2"])
83
- s.add_dependency(%q<rspec>, ["~> 1.3.2"])
84
- end
85
- else
86
- s.add_dependency(%q<dm-core>, ["~> 1.2.0"])
87
- s.add_dependency(%q<fastercsv>, ["~> 1.5.4"])
88
- s.add_dependency(%q<multi_json>, ["~> 1.0.3"])
89
- s.add_dependency(%q<json>, ["~> 1.6.1"])
90
- s.add_dependency(%q<json_pure>, ["~> 1.6.1"])
91
- s.add_dependency(%q<dm-validations>, ["~> 1.2.0"])
92
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
93
- s.add_dependency(%q<rake>, ["~> 0.9.2"])
94
- s.add_dependency(%q<rspec>, ["~> 1.3.2"])
95
- end
96
- end
18
+ gem.add_runtime_dependency('fastercsv', '~> 1.5')
19
+ gem.add_runtime_dependency('multi_json', '~> 1.0')
20
+ gem.add_runtime_dependency('json', '~> 1.6')
21
+ gem.add_runtime_dependency('json_pure', '~> 1.6')
22
+ gem.add_runtime_dependency('dm-core', '~> 1.2.0')
97
23
 
24
+ gem.add_development_dependency('rake', '~> 0.9')
25
+ gem.add_development_dependency('rspec', '~> 1.3')
26
+ end
metadata CHANGED
@@ -1,128 +1,108 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Guy van den Berg
9
+ - Dan Kubb
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2011-10-24 00:00:00.000000000Z
13
+ date: 2012-08-02 00:00:00.000000000 Z
13
14
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: dm-core
16
- requirement: &70365218042700 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 1.2.0
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: *70365218042700
25
15
  - !ruby/object:Gem::Dependency
26
16
  name: fastercsv
27
- requirement: &70365218041980 !ruby/object:Gem::Requirement
17
+ requirement: &70118659740880 !ruby/object:Gem::Requirement
28
18
  none: false
29
19
  requirements:
30
20
  - - ~>
31
21
  - !ruby/object:Gem::Version
32
- version: 1.5.4
22
+ version: '1.5'
33
23
  type: :runtime
34
24
  prerelease: false
35
- version_requirements: *70365218041980
25
+ version_requirements: *70118659740880
36
26
  - !ruby/object:Gem::Dependency
37
27
  name: multi_json
38
- requirement: &70365218026560 !ruby/object:Gem::Requirement
28
+ requirement: &70118659740360 !ruby/object:Gem::Requirement
39
29
  none: false
40
30
  requirements:
41
31
  - - ~>
42
32
  - !ruby/object:Gem::Version
43
- version: 1.0.3
33
+ version: '1.0'
44
34
  type: :runtime
45
35
  prerelease: false
46
- version_requirements: *70365218026560
36
+ version_requirements: *70118659740360
47
37
  - !ruby/object:Gem::Dependency
48
38
  name: json
49
- requirement: &70365218025020 !ruby/object:Gem::Requirement
39
+ requirement: &70118659739680 !ruby/object:Gem::Requirement
50
40
  none: false
51
41
  requirements:
52
42
  - - ~>
53
43
  - !ruby/object:Gem::Version
54
- version: 1.6.1
44
+ version: '1.6'
55
45
  type: :runtime
56
46
  prerelease: false
57
- version_requirements: *70365218025020
47
+ version_requirements: *70118659739680
58
48
  - !ruby/object:Gem::Dependency
59
49
  name: json_pure
60
- requirement: &70365218024460 !ruby/object:Gem::Requirement
50
+ requirement: &70118659739000 !ruby/object:Gem::Requirement
61
51
  none: false
62
52
  requirements:
63
53
  - - ~>
64
54
  - !ruby/object:Gem::Version
65
- version: 1.6.1
55
+ version: '1.6'
66
56
  type: :runtime
67
57
  prerelease: false
68
- version_requirements: *70365218024460
58
+ version_requirements: *70118659739000
69
59
  - !ruby/object:Gem::Dependency
70
- name: dm-validations
71
- requirement: &70365218023940 !ruby/object:Gem::Requirement
60
+ name: dm-core
61
+ requirement: &70118659738240 !ruby/object:Gem::Requirement
72
62
  none: false
73
63
  requirements:
74
64
  - - ~>
75
65
  - !ruby/object:Gem::Version
76
66
  version: 1.2.0
77
- type: :development
78
- prerelease: false
79
- version_requirements: *70365218023940
80
- - !ruby/object:Gem::Dependency
81
- name: jeweler
82
- requirement: &70365218022900 !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ~>
86
- - !ruby/object:Gem::Version
87
- version: 1.6.4
88
- type: :development
67
+ type: :runtime
89
68
  prerelease: false
90
- version_requirements: *70365218022900
69
+ version_requirements: *70118659738240
91
70
  - !ruby/object:Gem::Dependency
92
71
  name: rake
93
- requirement: &70365218022040 !ruby/object:Gem::Requirement
72
+ requirement: &70118659737540 !ruby/object:Gem::Requirement
94
73
  none: false
95
74
  requirements:
96
75
  - - ~>
97
76
  - !ruby/object:Gem::Version
98
- version: 0.9.2
77
+ version: '0.9'
99
78
  type: :development
100
79
  prerelease: false
101
- version_requirements: *70365218022040
80
+ version_requirements: *70118659737540
102
81
  - !ruby/object:Gem::Dependency
103
82
  name: rspec
104
- requirement: &70365218021300 !ruby/object:Gem::Requirement
83
+ requirement: &70118659736920 !ruby/object:Gem::Requirement
105
84
  none: false
106
85
  requirements:
107
86
  - - ~>
108
87
  - !ruby/object:Gem::Version
109
- version: 1.3.2
88
+ version: '1.3'
110
89
  type: :development
111
90
  prerelease: false
112
- version_requirements: *70365218021300
91
+ version_requirements: *70118659736920
113
92
  description: DataMapper plugin for serializing Resources and Collections
114
- email: vandenberg.guy [a] gmail [d] com
93
+ email:
94
+ - dan.kubb@gmail.com
115
95
  executables: []
116
96
  extensions: []
117
97
  extra_rdoc_files:
118
98
  - LICENSE
119
99
  - README.rdoc
120
100
  files:
101
+ - .gitignore
121
102
  - Gemfile
122
103
  - LICENSE
123
104
  - README.rdoc
124
105
  - Rakefile
125
- - VERSION
126
106
  - benchmarks/to_json.rb
127
107
  - benchmarks/to_xml.rb
128
108
  - dm-serializer.gemspec
@@ -152,7 +132,7 @@ files:
152
132
  - tasks/spec.rake
153
133
  - tasks/yard.rake
154
134
  - tasks/yardstick.rake
155
- homepage: http://github.com/datamapper/dm-serializer
135
+ homepage: http://datamapper.org
156
136
  licenses: []
157
137
  post_install_message:
158
138
  rdoc_options: []
@@ -171,8 +151,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
151
  - !ruby/object:Gem::Version
172
152
  version: '0'
173
153
  requirements: []
174
- rubyforge_project: datamapper
175
- rubygems_version: 1.8.11
154
+ rubyforge_project:
155
+ rubygems_version: 1.8.15
176
156
  signing_key:
177
157
  specification_version: 3
178
158
  summary: DataMapper plugin for serializing Resources and Collections
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.2.1