dm-do-adapter 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 +9 -6
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/dm-do-adapter.gemspec +8 -8
- data/lib/dm-do-adapter/adapter.rb +1 -1
- data/tasks/local_gemfile.rake +5 -7
- metadata +7 -13
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
3
|
DATAMAPPER = 'git://github.com/datamapper'
|
4
|
-
DM_VERSION = '~> 1.0.
|
5
|
-
DO_VERSION = '~> 0.10.
|
4
|
+
DM_VERSION = '~> 1.0.1'
|
5
|
+
DO_VERSION = '~> 0.10.2'
|
6
6
|
|
7
7
|
group :runtime do # Runtime dependencies (as in the gemspec)
|
8
8
|
|
9
|
-
|
9
|
+
do_options = {}
|
10
|
+
do_options[:git] = "#{DATAMAPPER}/do.git" if ENV['DO_GIT'] == 'true'
|
11
|
+
|
12
|
+
gem 'data_objects', DO_VERSION, do_options.dup
|
10
13
|
gem 'dm-core', DM_VERSION, :git => "#{DATAMAPPER}/dm-core.git"
|
11
14
|
|
12
15
|
end
|
@@ -14,7 +17,7 @@ end
|
|
14
17
|
group(:development) do # Development dependencies
|
15
18
|
|
16
19
|
gem 'rake', '~> 0.8.7'
|
17
|
-
gem 'rspec', '~> 1.3'
|
20
|
+
gem 'rspec', '~> 1.3', :git => 'git://github.com/snusnu/rspec', :branch => 'heckle_fix_plus_gemfile'
|
18
21
|
gem 'jeweler', '~> 1.4'
|
19
22
|
|
20
23
|
end
|
@@ -22,9 +25,9 @@ end
|
|
22
25
|
group :datamapper do # We need this because we want to pin these dependencies to their git master sources
|
23
26
|
|
24
27
|
if ENV['EXTLIB']
|
25
|
-
gem 'extlib', '~> 0.9.15',
|
28
|
+
gem 'extlib', '~> 0.9.15', :git => "#{DATAMAPPER}/extlib.git", :require => nil
|
26
29
|
else
|
27
|
-
gem 'activesupport', '~> 3.0.0
|
30
|
+
gem 'activesupport', '~> 3.0.0', :git => 'git://github.com/rails/rails.git', :branch => '3-0-stable', :require => nil
|
28
31
|
end
|
29
32
|
|
30
33
|
end
|
data/Rakefile
CHANGED
@@ -15,8 +15,8 @@ begin
|
|
15
15
|
|
16
16
|
gem.rubyforge_project = 'datamapper'
|
17
17
|
|
18
|
-
gem.add_dependency 'data_objects', '~> 0.10.
|
19
|
-
gem.add_dependency 'dm-core', '~> 1.0.
|
18
|
+
gem.add_dependency 'data_objects', '~> 0.10.2'
|
19
|
+
gem.add_dependency 'dm-core', '~> 1.0.1'
|
20
20
|
|
21
21
|
gem.add_development_dependency 'rspec', '~> 1.3'
|
22
22
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/dm-do-adapter.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dm-do-adapter}
|
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 = ["Dan Kubb"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-07}
|
13
13
|
s.description = %q{DataObjects Adapter for DataMapper}
|
14
14
|
s.email = %q{dan.kubb@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -43,17 +43,17 @@ Gem::Specification.new do |s|
|
|
43
43
|
s.specification_version = 3
|
44
44
|
|
45
45
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
46
|
-
s.add_runtime_dependency(%q<data_objects>, ["~> 0.10.
|
47
|
-
s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.
|
46
|
+
s.add_runtime_dependency(%q<data_objects>, ["~> 0.10.2"])
|
47
|
+
s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.1"])
|
48
48
|
s.add_development_dependency(%q<rspec>, ["~> 1.3"])
|
49
49
|
else
|
50
|
-
s.add_dependency(%q<data_objects>, ["~> 0.10.
|
51
|
-
s.add_dependency(%q<dm-core>, ["~> 1.0.
|
50
|
+
s.add_dependency(%q<data_objects>, ["~> 0.10.2"])
|
51
|
+
s.add_dependency(%q<dm-core>, ["~> 1.0.1"])
|
52
52
|
s.add_dependency(%q<rspec>, ["~> 1.3"])
|
53
53
|
end
|
54
54
|
else
|
55
|
-
s.add_dependency(%q<data_objects>, ["~> 0.10.
|
56
|
-
s.add_dependency(%q<dm-core>, ["~> 1.0.
|
55
|
+
s.add_dependency(%q<data_objects>, ["~> 0.10.2"])
|
56
|
+
s.add_dependency(%q<dm-core>, ["~> 1.0.1"])
|
57
57
|
s.add_dependency(%q<rspec>, ["~> 1.3"])
|
58
58
|
end
|
59
59
|
end
|
@@ -267,7 +267,7 @@ module DataMapper
|
|
267
267
|
|
268
268
|
# @api private
|
269
269
|
def select_fields(reader, fields)
|
270
|
-
fields = fields.map { |field|
|
270
|
+
fields = fields.map { |field| DataMapper::Inflector.underscore(field).to_sym }
|
271
271
|
struct = Struct.new(*fields)
|
272
272
|
|
273
273
|
results = []
|
data/tasks/local_gemfile.rake
CHANGED
@@ -1,16 +1,14 @@
|
|
1
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-do-adapter
|
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
|
- Dan Kubb
|
@@ -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: 53
|
30
28
|
segments:
|
31
29
|
- 0
|
32
30
|
- 10
|
33
|
-
-
|
34
|
-
version: 0.10.
|
31
|
+
- 2
|
32
|
+
version: 0.10.2
|
35
33
|
type: :runtime
|
36
34
|
version_requirements: *id001
|
37
35
|
- !ruby/object:Gem::Dependency
|
@@ -42,12 +40,11 @@ dependencies:
|
|
42
40
|
requirements:
|
43
41
|
- - ~>
|
44
42
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 23
|
46
43
|
segments:
|
47
44
|
- 1
|
48
45
|
- 0
|
49
|
-
-
|
50
|
-
version: 1.0.
|
46
|
+
- 1
|
47
|
+
version: 1.0.1
|
51
48
|
type: :runtime
|
52
49
|
version_requirements: *id002
|
53
50
|
- !ruby/object:Gem::Dependency
|
@@ -58,7 +55,6 @@ dependencies:
|
|
58
55
|
requirements:
|
59
56
|
- - ~>
|
60
57
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 9
|
62
58
|
segments:
|
63
59
|
- 1
|
64
60
|
- 3
|
@@ -102,7 +98,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
98
|
requirements:
|
103
99
|
- - ">="
|
104
100
|
- !ruby/object:Gem::Version
|
105
|
-
hash: 3
|
106
101
|
segments:
|
107
102
|
- 0
|
108
103
|
version: "0"
|
@@ -111,7 +106,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
106
|
requirements:
|
112
107
|
- - ">="
|
113
108
|
- !ruby/object:Gem::Version
|
114
|
-
hash: 3
|
115
109
|
segments:
|
116
110
|
- 0
|
117
111
|
version: "0"
|