dm-ar-finders 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,26 +5,26 @@ 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
13
 
14
14
  group :development do
15
15
 
16
- gem 'jeweler', '~> 1.5.2'
17
- gem 'rake', '~> 0.8.7'
18
- gem 'rspec', '~> 1.3.1'
16
+ gem 'jeweler', '~> 1.6.4'
17
+ gem 'rake', '~> 0.9.2'
18
+ gem 'rspec', '~> 1.3.2'
19
19
 
20
20
  end
21
21
 
22
22
  platforms :mri_18 do
23
23
  group :quality do
24
24
 
25
- gem 'rcov', '~> 0.9.9'
26
- gem 'yard', '~> 0.6'
27
- gem 'yardstick', '~> 0.2'
25
+ gem 'rcov', '~> 0.9.10'
26
+ gem 'yard', '~> 0.7.2'
27
+ gem 'yardstick', '~> 0.4'
28
28
 
29
29
  end
30
30
  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-ar-finders}
8
- s.version = "1.1.0"
7
+ s.name = "dm-ar-finders"
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 = ["John W Higgins"]
12
- s.date = %q{2011-03-16}
13
- s.description = %q{DataMapper plugin providing ActiveRecord-style finders}
14
- s.email = %q{john [a] wishVPS [d] com}
12
+ s.date = "2011-09-09"
13
+ s.description = "DataMapper plugin providing ActiveRecord-style finders"
14
+ s.email = "john [a] wishVPS [d] com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
17
  "README.rdoc"
@@ -32,35 +32,31 @@ Gem::Specification.new do |s|
32
32
  "tasks/yard.rake",
33
33
  "tasks/yardstick.rake"
34
34
  ]
35
- s.homepage = %q{http://github.com/datamapper/dm-ar-finders}
35
+ s.homepage = "http://github.com/datamapper/dm-ar-finders"
36
36
  s.require_paths = ["lib"]
37
- s.rubyforge_project = %q{datamapper}
38
- s.rubygems_version = %q{1.6.2}
39
- s.summary = %q{DataMapper plugin providing ActiveRecord-style finders}
40
- s.test_files = [
41
- "spec/integration/ar-finders_spec.rb",
42
- "spec/spec_helper.rb"
43
- ]
37
+ s.rubyforge_project = "datamapper"
38
+ s.rubygems_version = "1.8.10"
39
+ s.summary = "DataMapper plugin providing ActiveRecord-style finders"
44
40
 
45
41
  if s.respond_to? :specification_version then
46
42
  s.specification_version = 3
47
43
 
48
44
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
- s.add_runtime_dependency(%q<dm-core>, ["~> 1.1.0"])
50
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
51
- s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
52
- s.add_development_dependency(%q<rspec>, ["~> 1.3.1"])
45
+ s.add_runtime_dependency(%q<dm-core>, ["~> 1.2.0.rc1"])
46
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
47
+ s.add_development_dependency(%q<rake>, ["~> 0.9.2"])
48
+ s.add_development_dependency(%q<rspec>, ["~> 1.3.2"])
53
49
  else
54
- s.add_dependency(%q<dm-core>, ["~> 1.1.0"])
55
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
56
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
57
- s.add_dependency(%q<rspec>, ["~> 1.3.1"])
50
+ s.add_dependency(%q<dm-core>, ["~> 1.2.0.rc1"])
51
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
52
+ s.add_dependency(%q<rake>, ["~> 0.9.2"])
53
+ s.add_dependency(%q<rspec>, ["~> 1.3.2"])
58
54
  end
59
55
  else
60
- s.add_dependency(%q<dm-core>, ["~> 1.1.0"])
61
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
62
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
63
- s.add_dependency(%q<rspec>, ["~> 1.3.1"])
56
+ s.add_dependency(%q<dm-core>, ["~> 1.2.0.rc1"])
57
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
58
+ s.add_dependency(%q<rake>, ["~> 0.9.2"])
59
+ s.add_dependency(%q<rspec>, ["~> 1.3.2"])
64
60
  end
65
61
  end
66
62
 
data/lib/dm-ar-finders.rb CHANGED
@@ -127,7 +127,7 @@ module DataMapper
127
127
 
128
128
  begin
129
129
  while reader.next!
130
- records << DataMapper::Ext::Array.to_hash(fields.zip(reader.values))
130
+ records << Hash[ fields.zip(reader.values) ]
131
131
  end
132
132
  ensure
133
133
  reader.close
@@ -150,7 +150,7 @@ module DataMapper
150
150
  finder = determine_finder(match)
151
151
  attribute_names = extract_attribute_names_from_match(match)
152
152
 
153
- send(finder, DataMapper::Ext::Array.to_hash(attribute_names.zip(args)))
153
+ send(finder, Hash[ attribute_names.zip(args) ])
154
154
  else
155
155
  method_missing_without_find_by(method, *args, &block)
156
156
  end
metadata CHANGED
@@ -1,8 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-ar-finders
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
  - John W Higgins
@@ -10,53 +17,74 @@ 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: jeweler
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.5.2
35
- type: :development
47
+ hash: 7
48
+ segments:
49
+ - 1
50
+ - 6
51
+ - 4
52
+ version: 1.6.4
36
53
  prerelease: false
37
- version_requirements: *id002
54
+ requirement: *id002
55
+ name: jeweler
38
56
  - !ruby/object:Gem::Dependency
39
- name: rake
40
- requirement: &id003 !ruby/object:Gem::Requirement
57
+ type: :development
58
+ version_requirements: &id003 !ruby/object:Gem::Requirement
41
59
  none: false
42
60
  requirements:
43
61
  - - ~>
44
62
  - !ruby/object:Gem::Version
45
- version: 0.8.7
46
- type: :development
63
+ hash: 63
64
+ segments:
65
+ - 0
66
+ - 9
67
+ - 2
68
+ version: 0.9.2
47
69
  prerelease: false
48
- version_requirements: *id003
70
+ requirement: *id003
71
+ name: rake
49
72
  - !ruby/object:Gem::Dependency
50
- name: rspec
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.3.1
57
- type: :development
79
+ hash: 31
80
+ segments:
81
+ - 1
82
+ - 3
83
+ - 2
84
+ version: 1.3.2
58
85
  prerelease: false
59
- version_requirements: *id004
86
+ requirement: *id004
87
+ name: rspec
60
88
  description: DataMapper plugin providing ActiveRecord-style finders
61
89
  email: john [a] wishVPS [d] com
62
90
  executables: []
@@ -81,7 +109,6 @@ files:
81
109
  - tasks/spec.rake
82
110
  - tasks/yard.rake
83
111
  - tasks/yardstick.rake
84
- has_rdoc: true
85
112
  homepage: http://github.com/datamapper/dm-ar-finders
86
113
  licenses: []
87
114
 
@@ -95,20 +122,27 @@ required_ruby_version: !ruby/object:Gem::Requirement
95
122
  requirements:
96
123
  - - ">="
97
124
  - !ruby/object:Gem::Version
125
+ hash: 3
126
+ segments:
127
+ - 0
98
128
  version: "0"
99
129
  required_rubygems_version: !ruby/object:Gem::Requirement
100
130
  none: false
101
131
  requirements:
102
- - - ">="
132
+ - - ">"
103
133
  - !ruby/object:Gem::Version
104
- version: "0"
134
+ hash: 25
135
+ segments:
136
+ - 1
137
+ - 3
138
+ - 1
139
+ version: 1.3.1
105
140
  requirements: []
106
141
 
107
142
  rubyforge_project: datamapper
108
- rubygems_version: 1.6.2
143
+ rubygems_version: 1.8.10
109
144
  signing_key:
110
145
  specification_version: 3
111
146
  summary: DataMapper plugin providing ActiveRecord-style finders
112
- test_files:
113
- - spec/integration/ar-finders_spec.rb
114
- - spec/spec_helper.rb
147
+ test_files: []
148
+