dm-sweatshop 1.1.0 → 1.2.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -5,29 +5,29 @@ source 'http://rubygems.org'
5
5
  SOURCE = ENV.fetch('SOURCE', :git).to_sym
6
6
  REPO_POSTFIX = SOURCE == :path ? '' : '.git'
7
7
  DATAMAPPER = SOURCE == :path ? Pathname(__FILE__).dirname.parent : 'http://github.com/datamapper'
8
- DM_VERSION = '~> 1.1.0'
9
- DO_VERSION = '~> 0.10.2'
8
+ DM_VERSION = '~> 1.2.0.rc1'
9
+ DO_VERSION = '~> 0.10.6'
10
10
  DM_DO_ADAPTERS = %w[ sqlite postgres mysql oracle sqlserver ]
11
11
 
12
12
  gem 'dm-core', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}"
13
- gem 'randexp', '~> 0.1.5', :git => 'git://github.com/snusnu/randexp', :branch => 'no_parsetree'
13
+ gem 'randexp', '~> 0.1.5'
14
14
  gem 'ParseTree', '~> 3.0.7', :platforms => :mri_18
15
15
 
16
16
  group :development do
17
17
 
18
18
  gem 'dm-validations', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-validations#{REPO_POSTFIX}"
19
- gem 'jeweler', '~> 1.5.2'
20
- gem 'rake', '~> 0.8.7'
21
- gem 'rspec', '~> 1.3.1'
19
+ gem 'jeweler', '~> 1.6.4'
20
+ gem 'rake', '~> 0.9.2'
21
+ gem 'rspec', '~> 1.3.2'
22
22
 
23
23
  end
24
24
 
25
25
  platforms :mri_18 do
26
26
  group :quality do
27
27
 
28
- gem 'rcov', '~> 0.9.9'
29
- gem 'yard', '~> 0.6'
30
- gem 'yardstick', '~> 0.2'
28
+ gem 'rcov', '~> 0.9.10'
29
+ gem 'yard', '~> 0.7.2'
30
+ gem 'yardstick', '~> 0.4'
31
31
 
32
32
  end
33
33
  end
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
 
4
4
  begin
5
- gem 'jeweler', '~> 1.5.2'
5
+ gem 'jeweler', '~> 1.6.4'
6
6
  require 'jeweler'
7
7
 
8
8
  Jeweler::Tasks.new do |gem|
@@ -21,5 +21,5 @@ begin
21
21
 
22
22
  FileList['tasks/**/*.rake'].each { |task| import task }
23
23
  rescue LoadError
24
- puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler -v 1.5.2'
24
+ puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler -v 1.6.4'
25
25
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0.rc1
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{dm-sweatshop}
8
- s.version = "1.1.0"
7
+ s.name = "dm-sweatshop"
8
+ s.version = "1.2.0.rc1"
9
9
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
10
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Burkert"]
12
- s.date = %q{2011-03-16}
13
- s.description = %q{DataMapper plugin for building pseudo random models}
14
- s.email = %q{ben [a] benburkert [d] com}
12
+ s.date = "2011-09-09"
13
+ s.description = "DataMapper plugin for building pseudo random models"
14
+ s.email = "ben [a] benburkert [d] com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
17
  "README.rdoc"
@@ -38,46 +38,40 @@ Gem::Specification.new do |s|
38
38
  "tasks/yard.rake",
39
39
  "tasks/yardstick.rake"
40
40
  ]
41
- s.homepage = %q{http://github.com/datamapper/dm-sweatshop}
41
+ s.homepage = "http://github.com/datamapper/dm-sweatshop"
42
42
  s.require_paths = ["lib"]
43
- s.rubyforge_project = %q{datamapper}
44
- s.rubygems_version = %q{1.6.2}
45
- s.summary = %q{DataMapper plugin for building pseudo random models}
46
- s.test_files = [
47
- "spec/dm-sweatshop/model_spec.rb",
48
- "spec/dm-sweatshop/sweatshop_spec.rb",
49
- "spec/dm-sweatshop/unique_spec.rb",
50
- "spec/spec_helper.rb"
51
- ]
43
+ s.rubyforge_project = "datamapper"
44
+ s.rubygems_version = "1.8.10"
45
+ s.summary = "DataMapper plugin for building pseudo random models"
52
46
 
53
47
  if s.respond_to? :specification_version then
54
48
  s.specification_version = 3
55
49
 
56
50
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
57
- s.add_runtime_dependency(%q<dm-core>, ["~> 1.1.0"])
51
+ s.add_runtime_dependency(%q<dm-core>, ["~> 1.2.0.rc1"])
58
52
  s.add_runtime_dependency(%q<randexp>, ["~> 0.1.5"])
59
53
  s.add_runtime_dependency(%q<ParseTree>, ["~> 3.0.7"])
60
- s.add_development_dependency(%q<dm-validations>, ["~> 1.1.0"])
61
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
62
- s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
63
- s.add_development_dependency(%q<rspec>, ["~> 1.3.1"])
54
+ s.add_development_dependency(%q<dm-validations>, ["~> 1.2.0.rc1"])
55
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
56
+ s.add_development_dependency(%q<rake>, ["~> 0.9.2"])
57
+ s.add_development_dependency(%q<rspec>, ["~> 1.3.2"])
64
58
  else
65
- s.add_dependency(%q<dm-core>, ["~> 1.1.0"])
59
+ s.add_dependency(%q<dm-core>, ["~> 1.2.0.rc1"])
66
60
  s.add_dependency(%q<randexp>, ["~> 0.1.5"])
67
61
  s.add_dependency(%q<ParseTree>, ["~> 3.0.7"])
68
- s.add_dependency(%q<dm-validations>, ["~> 1.1.0"])
69
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
70
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
71
- s.add_dependency(%q<rspec>, ["~> 1.3.1"])
62
+ s.add_dependency(%q<dm-validations>, ["~> 1.2.0.rc1"])
63
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
64
+ s.add_dependency(%q<rake>, ["~> 0.9.2"])
65
+ s.add_dependency(%q<rspec>, ["~> 1.3.2"])
72
66
  end
73
67
  else
74
- s.add_dependency(%q<dm-core>, ["~> 1.1.0"])
68
+ s.add_dependency(%q<dm-core>, ["~> 1.2.0.rc1"])
75
69
  s.add_dependency(%q<randexp>, ["~> 0.1.5"])
76
70
  s.add_dependency(%q<ParseTree>, ["~> 3.0.7"])
77
- s.add_dependency(%q<dm-validations>, ["~> 1.1.0"])
78
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
79
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
80
- s.add_dependency(%q<rspec>, ["~> 1.3.1"])
71
+ s.add_dependency(%q<dm-validations>, ["~> 1.2.0.rc1"])
72
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
73
+ s.add_dependency(%q<rake>, ["~> 0.9.2"])
74
+ s.add_dependency(%q<rspec>, ["~> 1.3.2"])
81
75
  end
82
76
  end
83
77
 
@@ -58,11 +58,13 @@ module DataMapper
58
58
  class UniqueWorker
59
59
  MAX_TRIES = 10
60
60
 
61
- begin
62
- gem 'ParseTree', '~>3.0.3'
63
- require 'parse_tree'
64
- rescue LoadError
65
- puts "DataMapper::Sweatshop::Unique - ParseTree could not be loaded, anonymous uniques will not be allowed"
61
+ unless defined?(JRUBY_VERSION) || RUBY_VERSION >= '1.9'
62
+ begin
63
+ gem 'ParseTree', '~>3.0.3'
64
+ require 'parse_tree'
65
+ rescue LoadError
66
+ puts 'DataMapper::Sweatshop::Unique - ParseTree could not be loaded, anonymous uniques will not be allowed'
67
+ end
66
68
  end
67
69
 
68
70
  ClassAttributes.accessor(self, :count_map)
metadata CHANGED
@@ -1,8 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-sweatshop
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.1.0
4
+ hash: 15424023
5
+ prerelease: 6
6
+ segments:
7
+ - 1
8
+ - 2
9
+ - 0
10
+ - rc
11
+ - 1
12
+ version: 1.2.0.rc1
6
13
  platform: ruby
7
14
  authors:
8
15
  - Ben Burkert
@@ -10,86 +17,124 @@ autorequire:
10
17
  bindir: bin
11
18
  cert_chain: []
12
19
 
13
- date: 2011-03-16 00:00:00 -07:00
14
- default_executable:
20
+ date: 2011-09-09 00:00:00 Z
15
21
  dependencies:
16
22
  - !ruby/object:Gem::Dependency
17
- name: dm-core
18
- requirement: &id001 !ruby/object:Gem::Requirement
23
+ type: :runtime
24
+ version_requirements: &id001 !ruby/object:Gem::Requirement
19
25
  none: false
20
26
  requirements:
21
27
  - - ~>
22
28
  - !ruby/object:Gem::Version
23
- version: 1.1.0
24
- type: :runtime
29
+ hash: 15424023
30
+ segments:
31
+ - 1
32
+ - 2
33
+ - 0
34
+ - rc
35
+ - 1
36
+ version: 1.2.0.rc1
25
37
  prerelease: false
26
- version_requirements: *id001
38
+ requirement: *id001
39
+ name: dm-core
27
40
  - !ruby/object:Gem::Dependency
28
- name: randexp
29
- requirement: &id002 !ruby/object:Gem::Requirement
41
+ type: :runtime
42
+ version_requirements: &id002 !ruby/object:Gem::Requirement
30
43
  none: false
31
44
  requirements:
32
45
  - - ~>
33
46
  - !ruby/object:Gem::Version
47
+ hash: 17
48
+ segments:
49
+ - 0
50
+ - 1
51
+ - 5
34
52
  version: 0.1.5
35
- type: :runtime
36
53
  prerelease: false
37
- version_requirements: *id002
54
+ requirement: *id002
55
+ name: randexp
38
56
  - !ruby/object:Gem::Dependency
39
- name: ParseTree
40
- requirement: &id003 !ruby/object:Gem::Requirement
57
+ type: :runtime
58
+ version_requirements: &id003 !ruby/object:Gem::Requirement
41
59
  none: false
42
60
  requirements:
43
61
  - - ~>
44
62
  - !ruby/object:Gem::Version
63
+ hash: 9
64
+ segments:
65
+ - 3
66
+ - 0
67
+ - 7
45
68
  version: 3.0.7
46
- type: :runtime
47
69
  prerelease: false
48
- version_requirements: *id003
70
+ requirement: *id003
71
+ name: ParseTree
49
72
  - !ruby/object:Gem::Dependency
50
- name: dm-validations
51
- requirement: &id004 !ruby/object:Gem::Requirement
73
+ type: :development
74
+ version_requirements: &id004 !ruby/object:Gem::Requirement
52
75
  none: false
53
76
  requirements:
54
77
  - - ~>
55
78
  - !ruby/object:Gem::Version
56
- version: 1.1.0
57
- type: :development
79
+ hash: 15424023
80
+ segments:
81
+ - 1
82
+ - 2
83
+ - 0
84
+ - rc
85
+ - 1
86
+ version: 1.2.0.rc1
58
87
  prerelease: false
59
- version_requirements: *id004
88
+ requirement: *id004
89
+ name: dm-validations
60
90
  - !ruby/object:Gem::Dependency
61
- name: jeweler
62
- requirement: &id005 !ruby/object:Gem::Requirement
91
+ type: :development
92
+ version_requirements: &id005 !ruby/object:Gem::Requirement
63
93
  none: false
64
94
  requirements:
65
95
  - - ~>
66
96
  - !ruby/object:Gem::Version
67
- version: 1.5.2
68
- type: :development
97
+ hash: 7
98
+ segments:
99
+ - 1
100
+ - 6
101
+ - 4
102
+ version: 1.6.4
69
103
  prerelease: false
70
- version_requirements: *id005
104
+ requirement: *id005
105
+ name: jeweler
71
106
  - !ruby/object:Gem::Dependency
72
- name: rake
73
- requirement: &id006 !ruby/object:Gem::Requirement
107
+ type: :development
108
+ version_requirements: &id006 !ruby/object:Gem::Requirement
74
109
  none: false
75
110
  requirements:
76
111
  - - ~>
77
112
  - !ruby/object:Gem::Version
78
- version: 0.8.7
79
- type: :development
113
+ hash: 63
114
+ segments:
115
+ - 0
116
+ - 9
117
+ - 2
118
+ version: 0.9.2
80
119
  prerelease: false
81
- version_requirements: *id006
120
+ requirement: *id006
121
+ name: rake
82
122
  - !ruby/object:Gem::Dependency
83
- name: rspec
84
- requirement: &id007 !ruby/object:Gem::Requirement
123
+ type: :development
124
+ version_requirements: &id007 !ruby/object:Gem::Requirement
85
125
  none: false
86
126
  requirements:
87
127
  - - ~>
88
128
  - !ruby/object:Gem::Version
89
- version: 1.3.1
90
- type: :development
129
+ hash: 31
130
+ segments:
131
+ - 1
132
+ - 3
133
+ - 2
134
+ version: 1.3.2
91
135
  prerelease: false
92
- version_requirements: *id007
136
+ requirement: *id007
137
+ name: rspec
93
138
  description: DataMapper plugin for building pseudo random models
94
139
  email: ben [a] benburkert [d] com
95
140
  executables: []
@@ -120,7 +165,6 @@ files:
120
165
  - tasks/spec.rake
121
166
  - tasks/yard.rake
122
167
  - tasks/yardstick.rake
123
- has_rdoc: true
124
168
  homepage: http://github.com/datamapper/dm-sweatshop
125
169
  licenses: []
126
170
 
@@ -134,22 +178,27 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
178
  requirements:
135
179
  - - ">="
136
180
  - !ruby/object:Gem::Version
181
+ hash: 3
182
+ segments:
183
+ - 0
137
184
  version: "0"
138
185
  required_rubygems_version: !ruby/object:Gem::Requirement
139
186
  none: false
140
187
  requirements:
141
- - - ">="
188
+ - - ">"
142
189
  - !ruby/object:Gem::Version
143
- version: "0"
190
+ hash: 25
191
+ segments:
192
+ - 1
193
+ - 3
194
+ - 1
195
+ version: 1.3.1
144
196
  requirements: []
145
197
 
146
198
  rubyforge_project: datamapper
147
- rubygems_version: 1.6.2
199
+ rubygems_version: 1.8.10
148
200
  signing_key:
149
201
  specification_version: 3
150
202
  summary: DataMapper plugin for building pseudo random models
151
- test_files:
152
- - spec/dm-sweatshop/model_spec.rb
153
- - spec/dm-sweatshop/sweatshop_spec.rb
154
- - spec/dm-sweatshop/unique_spec.rb
155
- - spec/spec_helper.rb
203
+ test_files: []
204
+