dm-active_model 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +6 -6
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/dm-active_model.gemspec +11 -11
- data/tasks/local_gemfile.rake +6 -8
- metadata +8 -17
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -71,13 +71,13 @@
|
|
71
71
|
source 'http://rubygems.org'
|
72
72
|
|
73
73
|
DATAMAPPER = 'git://github.com/datamapper'
|
74
|
-
DM_VERSION = '~> 1.0.
|
74
|
+
DM_VERSION = '~> 1.0.1'
|
75
75
|
|
76
76
|
group :runtime do # Runtime dependencies (as in the gemspec)
|
77
77
|
|
78
|
-
gem 'dm-core', DM_VERSION,
|
79
|
-
gem 'activesupport', '~> 3.0.0
|
80
|
-
gem 'activemodel', '~> 3.0.0
|
78
|
+
gem 'dm-core', DM_VERSION, :git => "#{DATAMAPPER}/dm-core.git"
|
79
|
+
gem 'activesupport', '~> 3.0.0', :git => 'git://github.com/rails/rails.git', :branch => '3-0-stable', :require => nil
|
80
|
+
gem 'activemodel', '~> 3.0.0', :git => 'git://github.com/rails/rails.git', :branch => '3-0-stable', :require => nil
|
81
81
|
|
82
82
|
end
|
83
83
|
|
@@ -86,7 +86,7 @@ group(:development) do # Development dependencies (as in the gemspec)
|
|
86
86
|
gem 'dm-validations', DM_VERSION, :git => "#{DATAMAPPER}/dm-validations.git"
|
87
87
|
|
88
88
|
gem 'rake', '~> 0.8.7'
|
89
|
-
gem 'rspec', '~> 1.3'
|
89
|
+
gem 'rspec', '~> 1.3', :git => 'git://github.com/snusnu/rspec', :branch => 'heckle_fix_plus_gemfile'
|
90
90
|
gem 'jeweler', '~> 1.4'
|
91
91
|
gem 'test-unit', '= 1.2.3'
|
92
92
|
|
@@ -106,7 +106,7 @@ end
|
|
106
106
|
group :datamapper do # We need this because we want to pin these dependencies to their git master sources
|
107
107
|
|
108
108
|
plugins = ENV['PLUGINS'] || ENV['PLUGIN']
|
109
|
-
plugins =
|
109
|
+
plugins = plugins.to_s.tr(',', ' ').split.uniq
|
110
110
|
|
111
111
|
plugins.each do |plugin|
|
112
112
|
gem plugin, DM_VERSION, :git => "#{DATAMAPPER}/#{plugin}.git"
|
data/Rakefile
CHANGED
@@ -15,10 +15,10 @@ begin
|
|
15
15
|
|
16
16
|
gem.rubyforge_project = 'datamapper'
|
17
17
|
|
18
|
-
gem.add_dependency 'dm-core', '~> 1.0.
|
19
|
-
gem.add_dependency 'activemodel', '~> 3.0.0
|
18
|
+
gem.add_dependency 'dm-core', '~> 1.0.1'
|
19
|
+
gem.add_dependency 'activemodel', '~> 3.0.0'
|
20
20
|
|
21
|
-
gem.add_development_dependency 'dm-validations', '~> 1.0.
|
21
|
+
gem.add_development_dependency 'dm-validations', '~> 1.0.1'
|
22
22
|
gem.add_development_dependency 'rspec', '~> 1.3'
|
23
23
|
gem.add_development_dependency 'test-unit', '= 1.2.3'
|
24
24
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/dm-active_model.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dm-active_model}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Martin Gamsjaeger (snusnu)"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-07}
|
13
13
|
s.description = %q{A datamapper plugin for active_model compliance and thus rails 3 compatibility.}
|
14
14
|
s.email = %q{gamsnjaga [a] gmail [d] com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -62,22 +62,22 @@ Gem::Specification.new do |s|
|
|
62
62
|
s.specification_version = 3
|
63
63
|
|
64
64
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
65
|
-
s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.
|
66
|
-
s.add_runtime_dependency(%q<activemodel>, ["~> 3.0.0
|
67
|
-
s.add_development_dependency(%q<dm-validations>, ["~> 1.0.
|
65
|
+
s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.1"])
|
66
|
+
s.add_runtime_dependency(%q<activemodel>, ["~> 3.0.0"])
|
67
|
+
s.add_development_dependency(%q<dm-validations>, ["~> 1.0.1"])
|
68
68
|
s.add_development_dependency(%q<rspec>, ["~> 1.3"])
|
69
69
|
s.add_development_dependency(%q<test-unit>, ["= 1.2.3"])
|
70
70
|
else
|
71
|
-
s.add_dependency(%q<dm-core>, ["~> 1.0.
|
72
|
-
s.add_dependency(%q<activemodel>, ["~> 3.0.0
|
73
|
-
s.add_dependency(%q<dm-validations>, ["~> 1.0.
|
71
|
+
s.add_dependency(%q<dm-core>, ["~> 1.0.1"])
|
72
|
+
s.add_dependency(%q<activemodel>, ["~> 3.0.0"])
|
73
|
+
s.add_dependency(%q<dm-validations>, ["~> 1.0.1"])
|
74
74
|
s.add_dependency(%q<rspec>, ["~> 1.3"])
|
75
75
|
s.add_dependency(%q<test-unit>, ["= 1.2.3"])
|
76
76
|
end
|
77
77
|
else
|
78
|
-
s.add_dependency(%q<dm-core>, ["~> 1.0.
|
79
|
-
s.add_dependency(%q<activemodel>, ["~> 3.0.0
|
80
|
-
s.add_dependency(%q<dm-validations>, ["~> 1.0.
|
78
|
+
s.add_dependency(%q<dm-core>, ["~> 1.0.1"])
|
79
|
+
s.add_dependency(%q<activemodel>, ["~> 3.0.0"])
|
80
|
+
s.add_dependency(%q<dm-validations>, ["~> 1.0.1"])
|
81
81
|
s.add_dependency(%q<rspec>, ["~> 1.3"])
|
82
82
|
s.add_dependency(%q<test-unit>, ["= 1.2.3"])
|
83
83
|
end
|
data/tasks/local_gemfile.rake
CHANGED
@@ -1,16 +1,14 @@
|
|
1
|
-
desc "Support bundling from local source code (allows BUNDLE_GEMFILE=Gemfile.local bundle
|
1
|
+
desc "Support bundling from local source code (allows BUNDLE_GEMFILE=Gemfile.local bundle foo)"
|
2
2
|
task :local_gemfile do |t|
|
3
3
|
|
4
|
-
root
|
5
|
-
datamapper
|
6
|
-
|
7
|
-
source_regex = /datamapper = 'git:\/\/github.com\/datamapper'/
|
8
|
-
gem_source_regex = /:git => \"#\{datamapper\}\/(.+?)(?:\.git)?\"/
|
4
|
+
root = Pathname(__FILE__).dirname.parent
|
5
|
+
datamapper = root.parent
|
9
6
|
|
10
7
|
root.join('Gemfile.local').open('w') do |f|
|
11
8
|
root.join('Gemfile').open.each do |line|
|
12
|
-
line.sub!(
|
13
|
-
line.sub!(
|
9
|
+
line.sub!(/DATAMAPPER = 'git:\/\/github.com\/datamapper'/, "DATAMAPPER = '#{datamapper}'")
|
10
|
+
line.sub!(/:git => \"#\{DATAMAPPER\}\/(.+?)(?:\.git)?\"/, ':path => "#{DATAMAPPER}/\1"')
|
11
|
+
line.sub!(/do_options\[:git\] = \"#\{DATAMAPPER\}\/(.+?)(?:\.git)?\"/, 'do_options[:path] = "#{DATAMAPPER}/\1"')
|
14
12
|
f.puts line
|
15
13
|
end
|
16
14
|
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-active_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 23
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Martin Gamsjaeger (snusnu)
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-
|
17
|
+
date: 2010-09-07 00:00:00 -07:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +25,11 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ~>
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 23
|
30
28
|
segments:
|
31
29
|
- 1
|
32
30
|
- 0
|
33
|
-
-
|
34
|
-
version: 1.0.
|
31
|
+
- 1
|
32
|
+
version: 1.0.1
|
35
33
|
type: :runtime
|
36
34
|
version_requirements: *id001
|
37
35
|
- !ruby/object:Gem::Dependency
|
@@ -42,13 +40,11 @@ dependencies:
|
|
42
40
|
requirements:
|
43
41
|
- - ~>
|
44
42
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 299253627
|
46
43
|
segments:
|
47
44
|
- 3
|
48
45
|
- 0
|
49
46
|
- 0
|
50
|
-
|
51
|
-
version: 3.0.0.beta3
|
47
|
+
version: 3.0.0
|
52
48
|
type: :runtime
|
53
49
|
version_requirements: *id002
|
54
50
|
- !ruby/object:Gem::Dependency
|
@@ -59,12 +55,11 @@ dependencies:
|
|
59
55
|
requirements:
|
60
56
|
- - ~>
|
61
57
|
- !ruby/object:Gem::Version
|
62
|
-
hash: 23
|
63
58
|
segments:
|
64
59
|
- 1
|
65
60
|
- 0
|
66
|
-
-
|
67
|
-
version: 1.0.
|
61
|
+
- 1
|
62
|
+
version: 1.0.1
|
68
63
|
type: :development
|
69
64
|
version_requirements: *id003
|
70
65
|
- !ruby/object:Gem::Dependency
|
@@ -75,7 +70,6 @@ dependencies:
|
|
75
70
|
requirements:
|
76
71
|
- - ~>
|
77
72
|
- !ruby/object:Gem::Version
|
78
|
-
hash: 9
|
79
73
|
segments:
|
80
74
|
- 1
|
81
75
|
- 3
|
@@ -90,7 +84,6 @@ dependencies:
|
|
90
84
|
requirements:
|
91
85
|
- - "="
|
92
86
|
- !ruby/object:Gem::Version
|
93
|
-
hash: 25
|
94
87
|
segments:
|
95
88
|
- 1
|
96
89
|
- 2
|
@@ -148,7 +141,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
141
|
requirements:
|
149
142
|
- - ">="
|
150
143
|
- !ruby/object:Gem::Version
|
151
|
-
hash: 3
|
152
144
|
segments:
|
153
145
|
- 0
|
154
146
|
version: "0"
|
@@ -157,7 +149,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
149
|
requirements:
|
158
150
|
- - ">="
|
159
151
|
- !ruby/object:Gem::Version
|
160
|
-
hash: 3
|
161
152
|
segments:
|
162
153
|
- 0
|
163
154
|
version: "0"
|