dm-is-remixable 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,8 +5,8 @@ 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}"
@@ -15,18 +15,18 @@ group :development do
15
15
 
16
16
  gem 'dm-validations', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-validations#{REPO_POSTFIX}"
17
17
  gem 'dm-types', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-types#{REPO_POSTFIX}"
18
- gem 'jeweler', '~> 1.5.2'
19
- gem 'rake', '~> 0.8.7'
20
- gem 'rspec', '~> 1.3.1'
18
+ gem 'jeweler', '~> 1.6.4'
19
+ gem 'rake', '~> 0.9.2'
20
+ gem 'rspec', '~> 1.3.2'
21
21
 
22
22
  end
23
23
 
24
24
  platforms :mri_18 do
25
25
  group :quality do
26
26
 
27
- gem 'rcov', '~> 0.9.9'
28
- gem 'yard', '~> 0.6'
29
- gem 'yardstick', '~> 0.2'
27
+ gem 'rcov', '~> 0.9.10'
28
+ gem 'yard', '~> 0.7.2'
29
+ gem 'yardstick', '~> 0.4'
30
30
 
31
31
  end
32
32
  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|
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-is-remixable}
8
- s.version = "1.1.0"
7
+ s.name = "dm-is-remixable"
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 = ["Cory O'Daniel"]
12
- s.date = %q{2011-03-16}
13
- s.description = %q{dm-is-remixable allow you to create reusable data functionality}
14
- s.email = %q{dm-is-remixable [a] coryodaniel [d] com}
12
+ s.date = "2011-09-09"
13
+ s.description = "dm-is-remixable allow you to create reusable data functionality"
14
+ s.email = "dm-is-remixable [a] coryodaniel [d] com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
17
  "README.rdoc"
@@ -46,54 +46,37 @@ Gem::Specification.new do |s|
46
46
  "tasks/yard.rake",
47
47
  "tasks/yardstick.rake"
48
48
  ]
49
- s.homepage = %q{http://github.com/datamapper/dm-is-remixable}
49
+ s.homepage = "http://github.com/datamapper/dm-is-remixable"
50
50
  s.require_paths = ["lib"]
51
- s.rubyforge_project = %q{datamapper}
52
- s.rubygems_version = %q{1.6.2}
53
- s.summary = %q{dm-is-remixable allow you to create reusable data functionality}
54
- s.test_files = [
55
- "spec/data/addressable.rb",
56
- "spec/data/article.rb",
57
- "spec/data/billable.rb",
58
- "spec/data/bot.rb",
59
- "spec/data/commentable.rb",
60
- "spec/data/image.rb",
61
- "spec/data/project.rb",
62
- "spec/data/rating.rb",
63
- "spec/data/tag.rb",
64
- "spec/data/taggable.rb",
65
- "spec/data/topic.rb",
66
- "spec/data/user.rb",
67
- "spec/data/viewable.rb",
68
- "spec/integration/remixable_spec.rb",
69
- "spec/spec_helper.rb"
70
- ]
51
+ s.rubyforge_project = "datamapper"
52
+ s.rubygems_version = "1.8.10"
53
+ s.summary = "dm-is-remixable allow you to create reusable data functionality"
71
54
 
72
55
  if s.respond_to? :specification_version then
73
56
  s.specification_version = 3
74
57
 
75
58
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
76
- s.add_runtime_dependency(%q<dm-core>, ["~> 1.1.0"])
77
- s.add_development_dependency(%q<dm-validations>, ["~> 1.1.0"])
78
- s.add_development_dependency(%q<dm-types>, ["~> 1.1.0"])
79
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
80
- s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
81
- s.add_development_dependency(%q<rspec>, ["~> 1.3.1"])
59
+ s.add_runtime_dependency(%q<dm-core>, ["~> 1.2.0.rc1"])
60
+ s.add_development_dependency(%q<dm-validations>, ["~> 1.2.0.rc1"])
61
+ s.add_development_dependency(%q<dm-types>, ["~> 1.2.0.rc1"])
62
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
63
+ s.add_development_dependency(%q<rake>, ["~> 0.9.2"])
64
+ s.add_development_dependency(%q<rspec>, ["~> 1.3.2"])
82
65
  else
83
- s.add_dependency(%q<dm-core>, ["~> 1.1.0"])
84
- s.add_dependency(%q<dm-validations>, ["~> 1.1.0"])
85
- s.add_dependency(%q<dm-types>, ["~> 1.1.0"])
86
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
87
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
88
- s.add_dependency(%q<rspec>, ["~> 1.3.1"])
66
+ s.add_dependency(%q<dm-core>, ["~> 1.2.0.rc1"])
67
+ s.add_dependency(%q<dm-validations>, ["~> 1.2.0.rc1"])
68
+ s.add_dependency(%q<dm-types>, ["~> 1.2.0.rc1"])
69
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
70
+ s.add_dependency(%q<rake>, ["~> 0.9.2"])
71
+ s.add_dependency(%q<rspec>, ["~> 1.3.2"])
89
72
  end
90
73
  else
91
- s.add_dependency(%q<dm-core>, ["~> 1.1.0"])
92
- s.add_dependency(%q<dm-validations>, ["~> 1.1.0"])
93
- s.add_dependency(%q<dm-types>, ["~> 1.1.0"])
94
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
95
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
96
- s.add_dependency(%q<rspec>, ["~> 1.3.1"])
74
+ s.add_dependency(%q<dm-core>, ["~> 1.2.0.rc1"])
75
+ s.add_dependency(%q<dm-validations>, ["~> 1.2.0.rc1"])
76
+ s.add_dependency(%q<dm-types>, ["~> 1.2.0.rc1"])
77
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
78
+ s.add_dependency(%q<rake>, ["~> 0.9.2"])
79
+ s.add_dependency(%q<rspec>, ["~> 1.3.2"])
97
80
  end
98
81
  end
99
82
 
@@ -1,5 +1,4 @@
1
1
  require 'dm-core'
2
- require 'dm-core/support/inflector'
3
2
 
4
3
  module DataMapper::Ext::Object
5
4
  def self.full_const_defined?(obj, name = nil)
@@ -312,7 +311,6 @@ module DataMapper
312
311
  # options <Hash> options hash
313
312
  def remix_one_to_many(cardinality, model, options)
314
313
  self.has cardinality, (options[:as] || options[:table_name]).to_sym, :model => model.name
315
- model.property DataMapper::Inflector.foreign_key(self.name).intern, Integer, :min => 0, :required => true
316
314
  model.belongs_to belongs_to_name(self.name), self.name
317
315
  end
318
316
 
metadata CHANGED
@@ -1,8 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-is-remixable
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
  - Cory O'Daniel
@@ -10,75 +17,110 @@ 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: dm-validations
29
- requirement: &id002 !ruby/object:Gem::Requirement
41
+ type: :development
42
+ version_requirements: &id002 !ruby/object:Gem::Requirement
30
43
  none: false
31
44
  requirements:
32
45
  - - ~>
33
46
  - !ruby/object:Gem::Version
34
- version: 1.1.0
35
- type: :development
47
+ hash: 15424023
48
+ segments:
49
+ - 1
50
+ - 2
51
+ - 0
52
+ - rc
53
+ - 1
54
+ version: 1.2.0.rc1
36
55
  prerelease: false
37
- version_requirements: *id002
56
+ requirement: *id002
57
+ name: dm-validations
38
58
  - !ruby/object:Gem::Dependency
39
- name: dm-types
40
- requirement: &id003 !ruby/object:Gem::Requirement
59
+ type: :development
60
+ version_requirements: &id003 !ruby/object:Gem::Requirement
41
61
  none: false
42
62
  requirements:
43
63
  - - ~>
44
64
  - !ruby/object:Gem::Version
45
- version: 1.1.0
46
- type: :development
65
+ hash: 15424023
66
+ segments:
67
+ - 1
68
+ - 2
69
+ - 0
70
+ - rc
71
+ - 1
72
+ version: 1.2.0.rc1
47
73
  prerelease: false
48
- version_requirements: *id003
74
+ requirement: *id003
75
+ name: dm-types
49
76
  - !ruby/object:Gem::Dependency
50
- name: jeweler
51
- requirement: &id004 !ruby/object:Gem::Requirement
77
+ type: :development
78
+ version_requirements: &id004 !ruby/object:Gem::Requirement
52
79
  none: false
53
80
  requirements:
54
81
  - - ~>
55
82
  - !ruby/object:Gem::Version
56
- version: 1.5.2
57
- type: :development
83
+ hash: 7
84
+ segments:
85
+ - 1
86
+ - 6
87
+ - 4
88
+ version: 1.6.4
58
89
  prerelease: false
59
- version_requirements: *id004
90
+ requirement: *id004
91
+ name: jeweler
60
92
  - !ruby/object:Gem::Dependency
61
- name: rake
62
- requirement: &id005 !ruby/object:Gem::Requirement
93
+ type: :development
94
+ version_requirements: &id005 !ruby/object:Gem::Requirement
63
95
  none: false
64
96
  requirements:
65
97
  - - ~>
66
98
  - !ruby/object:Gem::Version
67
- version: 0.8.7
68
- type: :development
99
+ hash: 63
100
+ segments:
101
+ - 0
102
+ - 9
103
+ - 2
104
+ version: 0.9.2
69
105
  prerelease: false
70
- version_requirements: *id005
106
+ requirement: *id005
107
+ name: rake
71
108
  - !ruby/object:Gem::Dependency
72
- name: rspec
73
- requirement: &id006 !ruby/object:Gem::Requirement
109
+ type: :development
110
+ version_requirements: &id006 !ruby/object:Gem::Requirement
74
111
  none: false
75
112
  requirements:
76
113
  - - ~>
77
114
  - !ruby/object:Gem::Version
78
- version: 1.3.1
79
- type: :development
115
+ hash: 31
116
+ segments:
117
+ - 1
118
+ - 3
119
+ - 2
120
+ version: 1.3.2
80
121
  prerelease: false
81
- version_requirements: *id006
122
+ requirement: *id006
123
+ name: rspec
82
124
  description: dm-is-remixable allow you to create reusable data functionality
83
125
  email: dm-is-remixable [a] coryodaniel [d] com
84
126
  executables: []
@@ -117,7 +159,6 @@ files:
117
159
  - tasks/spec.rake
118
160
  - tasks/yard.rake
119
161
  - tasks/yardstick.rake
120
- has_rdoc: true
121
162
  homepage: http://github.com/datamapper/dm-is-remixable
122
163
  licenses: []
123
164
 
@@ -131,33 +172,27 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
172
  requirements:
132
173
  - - ">="
133
174
  - !ruby/object:Gem::Version
175
+ hash: 3
176
+ segments:
177
+ - 0
134
178
  version: "0"
135
179
  required_rubygems_version: !ruby/object:Gem::Requirement
136
180
  none: false
137
181
  requirements:
138
- - - ">="
182
+ - - ">"
139
183
  - !ruby/object:Gem::Version
140
- version: "0"
184
+ hash: 25
185
+ segments:
186
+ - 1
187
+ - 3
188
+ - 1
189
+ version: 1.3.1
141
190
  requirements: []
142
191
 
143
192
  rubyforge_project: datamapper
144
- rubygems_version: 1.6.2
193
+ rubygems_version: 1.8.10
145
194
  signing_key:
146
195
  specification_version: 3
147
196
  summary: dm-is-remixable allow you to create reusable data functionality
148
- test_files:
149
- - spec/data/addressable.rb
150
- - spec/data/article.rb
151
- - spec/data/billable.rb
152
- - spec/data/bot.rb
153
- - spec/data/commentable.rb
154
- - spec/data/image.rb
155
- - spec/data/project.rb
156
- - spec/data/rating.rb
157
- - spec/data/tag.rb
158
- - spec/data/taggable.rb
159
- - spec/data/topic.rb
160
- - spec/data/user.rb
161
- - spec/data/viewable.rb
162
- - spec/integration/remixable_spec.rb
163
- - spec/spec_helper.rb
197
+ test_files: []
198
+