veritas-do-adapter 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +10 -4
- data/Gemfile +3 -3
- data/config/flay.yml +1 -1
- data/config/roodi.yml +2 -2
- data/config/site.reek +5 -2
- data/lib/veritas/adapter/data_objects/version.rb +1 -1
- data/lib/veritas/relation/gateway.rb +13 -2
- data/spec/rcov.opts +1 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +2 -1
- data/spec/support/example_group_methods.rb +7 -0
- data/spec/unit/veritas/relation/gateway/extend_spec.rb +6 -4
- data/spec/unit/veritas/relation/gateway/join_spec.rb +6 -6
- data/spec/unit/veritas/relation/gateway/restrict_spec.rb +6 -4
- data/spec/unit/veritas/relation/gateway/sort_by_spec.rb +6 -4
- data/spec/unit/veritas/relation/gateway/summarize_spec.rb +19 -13
- data/tasks/metrics/ci.rake +2 -2
- data/tasks/metrics/flay.rake +1 -1
- data/tasks/metrics/flog.rake +5 -3
- data/tasks/metrics/heckle.rake +4 -5
- data/tasks/metrics/reek.rake +1 -1
- data/tasks/spec.rake +23 -14
- data/veritas-do-adapter.gemspec +10 -9
- metadata +36 -35
data/.travis.yml
CHANGED
@@ -1,11 +1,17 @@
|
|
1
|
+
language: ruby
|
1
2
|
bundler_args: --without guard metrics
|
2
3
|
script: "bundle exec rake spec"
|
3
4
|
rvm:
|
4
5
|
- 1.8.7
|
5
6
|
- 1.9.2
|
6
7
|
- 1.9.3
|
7
|
-
-
|
8
|
+
- jruby-18mode
|
9
|
+
- jruby-19mode
|
10
|
+
- rbx-18mode
|
11
|
+
- rbx-19mode
|
8
12
|
- ree
|
9
|
-
-
|
10
|
-
-
|
11
|
-
|
13
|
+
- ruby-head
|
14
|
+
- jruby-head
|
15
|
+
notifications:
|
16
|
+
email:
|
17
|
+
- dan.kubb@gmail.com
|
data/Gemfile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
source
|
3
|
+
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
gem 'data_objects', '~> 0.10.6', :git => 'git://github.com/datamapper/do.git'
|
6
|
-
gem 'veritas', '~> 0.0.
|
7
|
-
gem 'veritas-sql-generator', '~> 0.0.
|
6
|
+
gem 'veritas', '~> 0.0.7', :git => 'git://github.com/dkubb/veritas.git'
|
7
|
+
gem 'veritas-sql-generator', '~> 0.0.7', :git => 'git://github.com/dkubb/veritas-sql-generator.git'
|
8
8
|
|
9
9
|
group :development do
|
10
10
|
gem 'backports', '~> 2.3.0'
|
data/config/flay.yml
CHANGED
data/config/roodi.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
AbcMetricMethodCheck: { score: 11.8 }
|
3
3
|
AssignmentInConditionalCheck: { }
|
4
4
|
CaseMissingElseCheck: { }
|
5
|
-
ClassLineCountCheck: { line_count:
|
5
|
+
ClassLineCountCheck: { line_count: 368 }
|
6
6
|
ClassNameCheck: { pattern: !ruby/regexp /\A(?:[A-Z]+|[A-Z][a-z](?:[A-Z]?[a-z])+)\z/ }
|
7
7
|
ClassVariableCheck: { }
|
8
8
|
CyclomaticComplexityBlockCheck: { complexity: 2 }
|
@@ -11,6 +11,6 @@ EmptyRescueBodyCheck: { }
|
|
11
11
|
ForLoopCheck: { }
|
12
12
|
MethodLineCountCheck: { line_count: 9 }
|
13
13
|
MethodNameCheck: { pattern: !ruby/regexp /\A(?:[a-z\d](?:_?[a-z\d])+[?!=]?|\[\]=?|==|<=>|[+*&|-])\z/ }
|
14
|
-
ModuleLineCountCheck: { line_count:
|
14
|
+
ModuleLineCountCheck: { line_count: 370 }
|
15
15
|
ModuleNameCheck: { pattern: !ruby/regexp /\A(?:[A-Z]+|[A-Z][a-z](?:[A-Z]?[a-z])+)\z/ }
|
16
16
|
ParameterNumberCheck: { parameter_count: 3 }
|
data/config/site.reek
CHANGED
@@ -8,7 +8,7 @@ UncommunicativeParameterName:
|
|
8
8
|
- !ruby/regexp /[0-9]$/
|
9
9
|
- !ruby/regexp /[A-Z]/
|
10
10
|
LargeClass:
|
11
|
-
max_methods:
|
11
|
+
max_methods: 19
|
12
12
|
exclude: []
|
13
13
|
enabled: true
|
14
14
|
max_instance_variables: 5
|
@@ -29,6 +29,7 @@ FeatureEnvy:
|
|
29
29
|
exclude: [
|
30
30
|
'Veritas::Adapter::DataObjects::Statement#each_row',
|
31
31
|
'Veritas::Relation::Gateway#same_adapter?',
|
32
|
+
'Veritas::Relation::Gateway#gateway?',
|
32
33
|
'Veritas::Relation::Gateway#summarize_merge?',
|
33
34
|
'Veritas::Relation::Gateway#summarize_merge'
|
34
35
|
]
|
@@ -79,7 +80,9 @@ UncommunicativeVariableName:
|
|
79
80
|
- !ruby/regexp /[0-9]$/
|
80
81
|
- !ruby/regexp /[A-Z]/
|
81
82
|
SimulatedPolymorphism:
|
82
|
-
exclude: [
|
83
|
+
exclude: [
|
84
|
+
'Veritas::Relation::Gateway'
|
85
|
+
]
|
83
86
|
enabled: true
|
84
87
|
max_ifs: 1
|
85
88
|
DataClump:
|
@@ -309,6 +309,17 @@ module Veritas
|
|
309
309
|
end
|
310
310
|
end
|
311
311
|
|
312
|
+
# Test if the other object is a Gateway
|
313
|
+
#
|
314
|
+
# @param [Gateway, Relation] other
|
315
|
+
#
|
316
|
+
# @return [Boolean]
|
317
|
+
#
|
318
|
+
# @api private
|
319
|
+
def gateway?(other)
|
320
|
+
other.kind_of?(Gateway)
|
321
|
+
end
|
322
|
+
|
312
323
|
# Test if the other object uses the same adapter
|
313
324
|
#
|
314
325
|
# @param [Gateway, Relation] other
|
@@ -317,7 +328,7 @@ module Veritas
|
|
317
328
|
#
|
318
329
|
# @api private
|
319
330
|
def same_adapter?(other)
|
320
|
-
|
331
|
+
gateway?(other) && adapter.eql?(other.adapter)
|
321
332
|
end
|
322
333
|
|
323
334
|
# Test if the summarize_with object can be merged into the summarization
|
@@ -341,7 +352,7 @@ module Veritas
|
|
341
352
|
#
|
342
353
|
# @api private
|
343
354
|
def summarize_merge(summarize_with, &block)
|
344
|
-
summarize_with = summarize_with.relation if
|
355
|
+
summarize_with = summarize_with.relation if gateway?(summarize_with)
|
345
356
|
forward(:summarize, summarize_with, &block)
|
346
357
|
end
|
347
358
|
|
data/spec/rcov.opts
CHANGED
data/spec/spec.opts
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'backports'
|
5
|
-
require 'backports/basic_object'
|
5
|
+
require 'backports/basic_object' unless RUBY_VERSION >= '1.9.2' && (RUBY_PLATFORM.include?('java') || RUBY_ENGINE == 'rbx')
|
6
6
|
require 'spec'
|
7
7
|
require 'spec/autorun'
|
8
8
|
require 'veritas'
|
@@ -14,6 +14,7 @@ include Veritas
|
|
14
14
|
Dir[File.expand_path('../{support,shared}/**/*.rb', __FILE__)].each { |f| require f }
|
15
15
|
|
16
16
|
Spec::Runner.configure do |config|
|
17
|
+
config.extend Spec::ExampleGroupMethods
|
17
18
|
|
18
19
|
# Record the original Attribute descendants
|
19
20
|
config.before do
|
@@ -11,7 +11,7 @@ describe Relation::Gateway, '#extend' do
|
|
11
11
|
let(:response) { mock('New Relation', :kind_of? => true) }
|
12
12
|
let!(:object) { described_class.new(adapter, relation) }
|
13
13
|
let(:args) { stub }
|
14
|
-
let(:block) {
|
14
|
+
let(:block) { lambda { |context| } }
|
15
15
|
|
16
16
|
it_should_behave_like 'a unary relation method'
|
17
17
|
|
@@ -20,8 +20,10 @@ describe Relation::Gateway, '#extend' do
|
|
20
20
|
subject
|
21
21
|
end
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
unless testing_block_passing_broken?
|
24
|
+
it 'forwards the block to relation#extend' do
|
25
|
+
relation.stub!(:extend) { |_args, proc| proc.should equal(block) }
|
26
|
+
subject
|
27
|
+
end
|
26
28
|
end
|
27
29
|
end
|
@@ -21,23 +21,23 @@ describe Relation::Gateway, '#join' do
|
|
21
21
|
let(:other_relation) { mock('Other Relation') }
|
22
22
|
let(:other) { described_class.new(adapter, other_relation) }
|
23
23
|
let(:gateway) { mock('Other Gateway') }
|
24
|
-
let(:
|
24
|
+
let(:join) { mock('Join', :restrict => gateway) }
|
25
25
|
let(:yields) { [] }
|
26
26
|
|
27
27
|
before do
|
28
|
-
|
28
|
+
Algebra::Join.stub!(:new).with(relation, other_relation).and_return(join)
|
29
29
|
end
|
30
30
|
|
31
31
|
it { should equal(gateway) }
|
32
32
|
|
33
|
-
it 'passes the
|
34
|
-
|
33
|
+
it 'passes the relations to the join constructor' do
|
34
|
+
Algebra::Join.should_receive(:new).with(relation, other_relation)
|
35
35
|
subject
|
36
36
|
end
|
37
37
|
|
38
|
-
it 'passes the block to the
|
38
|
+
it 'passes the block to the join relation' do
|
39
39
|
context = mock('Context')
|
40
|
-
|
40
|
+
join.should_receive(:restrict).and_yield(context)
|
41
41
|
expect { subject }.to change { yields.dup }.from([]).to([ context ])
|
42
42
|
end
|
43
43
|
end
|
@@ -11,7 +11,7 @@ describe Relation::Gateway, '#restrict' do
|
|
11
11
|
let(:response) { mock('New Relation', :kind_of? => true) }
|
12
12
|
let!(:object) { described_class.new(adapter, relation) }
|
13
13
|
let(:args) { stub }
|
14
|
-
let(:block) {
|
14
|
+
let(:block) { lambda { |context| } }
|
15
15
|
|
16
16
|
it_should_behave_like 'a unary relation method'
|
17
17
|
|
@@ -20,8 +20,10 @@ describe Relation::Gateway, '#restrict' do
|
|
20
20
|
subject
|
21
21
|
end
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
unless testing_block_passing_broken?
|
24
|
+
it 'forwards the block to relation#restrict' do
|
25
|
+
relation.stub!(:restrict) { |_args, proc| proc.should equal(block) }
|
26
|
+
subject
|
27
|
+
end
|
26
28
|
end
|
27
29
|
end
|
@@ -11,7 +11,7 @@ describe Relation::Gateway, '#sort_by' do
|
|
11
11
|
let(:response) { mock('New Relation', :kind_of? => true) }
|
12
12
|
let!(:object) { described_class.new(adapter, relation) }
|
13
13
|
let(:args) { stub }
|
14
|
-
let(:block) {
|
14
|
+
let(:block) { lambda { |context| } }
|
15
15
|
|
16
16
|
it_should_behave_like 'a unary relation method'
|
17
17
|
|
@@ -20,8 +20,10 @@ describe Relation::Gateway, '#sort_by' do
|
|
20
20
|
subject
|
21
21
|
end
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
unless testing_block_passing_broken?
|
24
|
+
it 'forwards the block to relation#sort_by' do
|
25
|
+
relation.stub!(:sort_by) { |_args, proc| proc.should equal(block) }
|
26
|
+
subject
|
27
|
+
end
|
26
28
|
end
|
27
29
|
end
|
@@ -8,7 +8,7 @@ describe Relation::Gateway, '#summarize' do
|
|
8
8
|
let(:adapter) { mock('Adapter') }
|
9
9
|
let(:relation) { mock('Relation', :summarize => summarization) }
|
10
10
|
let!(:object) { described_class.new(adapter, relation) }
|
11
|
-
let(:block) {
|
11
|
+
let(:block) { lambda { |context| } }
|
12
12
|
|
13
13
|
context 'with no arguments' do
|
14
14
|
subject { object.summarize(&block) }
|
@@ -28,11 +28,13 @@ describe Relation::Gateway, '#summarize' do
|
|
28
28
|
subject
|
29
29
|
end
|
30
30
|
|
31
|
-
|
32
|
-
relation
|
33
|
-
|
31
|
+
unless testing_block_passing_broken?
|
32
|
+
it 'forwards the block to relation#summarize' do
|
33
|
+
relation.stub!(:summarize) do |_summarize_with, proc|
|
34
|
+
proc.should equal(block)
|
35
|
+
end
|
36
|
+
subject
|
34
37
|
end
|
35
|
-
subject
|
36
38
|
end
|
37
39
|
|
38
40
|
it 'initializes the gateway with the adapter and summarization' do
|
@@ -60,11 +62,13 @@ describe Relation::Gateway, '#summarize' do
|
|
60
62
|
subject
|
61
63
|
end
|
62
64
|
|
63
|
-
|
64
|
-
relation
|
65
|
-
|
65
|
+
unless testing_block_passing_broken?
|
66
|
+
it 'forwards the block to relation#summarize' do
|
67
|
+
relation.stub!(:summarize) do |_summarize_with, proc|
|
68
|
+
proc.should equal(block)
|
69
|
+
end
|
70
|
+
subject
|
66
71
|
end
|
67
|
-
subject
|
68
72
|
end
|
69
73
|
|
70
74
|
it 'initializes the gateway with the adapter and summarization' do
|
@@ -94,11 +98,13 @@ describe Relation::Gateway, '#summarize' do
|
|
94
98
|
subject
|
95
99
|
end
|
96
100
|
|
97
|
-
|
98
|
-
relation
|
99
|
-
|
101
|
+
unless testing_block_passing_broken?
|
102
|
+
it 'forwards the block to relation#summarize' do
|
103
|
+
relation.stub!(:summarize) do |_summarize_with, proc|
|
104
|
+
proc.should equal(block)
|
105
|
+
end
|
106
|
+
subject
|
100
107
|
end
|
101
|
-
subject
|
102
108
|
end
|
103
109
|
|
104
110
|
it 'initializes the gateway with the adapter and summarization' do
|
data/tasks/metrics/ci.rake
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
desc 'Run metrics with Heckle'
|
2
|
-
task :ci => [
|
2
|
+
task :ci => %w[ ci:metrics heckle ]
|
3
3
|
|
4
4
|
namespace :ci do
|
5
5
|
desc 'Run metrics'
|
6
|
-
task :metrics => [
|
6
|
+
task :metrics => %w[ verify_measurements flog flay reek roodi metrics:all ]
|
7
7
|
end
|
data/tasks/metrics/flay.rake
CHANGED
@@ -15,7 +15,7 @@ begin
|
|
15
15
|
flay = Flay.new(:fuzzy => false, :verbose => false, :mass => 0)
|
16
16
|
flay.process(*files)
|
17
17
|
|
18
|
-
max = flay.masses.map { |hash, mass| mass.to_f / flay.hashes[hash].size }.max
|
18
|
+
max = (flay.masses.map { |hash, mass| mass.to_f / flay.hashes[hash].size }.max) || 0
|
19
19
|
unless max >= threshold
|
20
20
|
raise "Adjust flay threshold down to #{max}"
|
21
21
|
end
|
data/tasks/metrics/flog.rake
CHANGED
@@ -22,9 +22,11 @@ begin
|
|
22
22
|
map { |name, score| [ name, score.round_to(1) ] }.
|
23
23
|
sort_by { |name, score| score }
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
if totals.any?
|
26
|
+
max = totals.last[1]
|
27
|
+
unless max >= threshold
|
28
|
+
raise "Adjust flog score down to #{max}"
|
29
|
+
end
|
28
30
|
end
|
29
31
|
|
30
32
|
bad_methods = totals.select { |name, score| score > threshold }
|
data/tasks/metrics/heckle.rake
CHANGED
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
|
|
6
6
|
begin
|
7
7
|
require 'pathname'
|
8
8
|
require 'backports'
|
9
|
-
require 'backports/basic_object'
|
9
|
+
require 'backports/basic_object' unless RUBY_VERSION >= '1.9.2' && (RUBY_PLATFORM.include?('java') || RUBY_ENGINE == 'rbx')
|
10
10
|
require 'active_support/inflector'
|
11
11
|
require 'heckle'
|
12
12
|
require 'mspec'
|
@@ -27,7 +27,7 @@ begin
|
|
27
27
|
end
|
28
28
|
|
29
29
|
desc 'Heckle each module and class'
|
30
|
-
task :heckle => :
|
30
|
+
task :heckle => :rcov do
|
31
31
|
unless Ruby2Ruby::VERSION == '1.2.2'
|
32
32
|
raise "ruby2ruby version #{Ruby2Ruby::VERSION} may not work properly, 1.2.2 *only* is recommended for use with heckle"
|
33
33
|
end
|
@@ -141,7 +141,7 @@ begin
|
|
141
141
|
ObjectSpace.each_object(Module) do |descedant|
|
142
142
|
next unless descedant.name =~ /\A#{root_module_regexp}(?::|\z)/ && mod >= descedant
|
143
143
|
descedant_spec_prefix = spec_dir.join(descedant.name.underscore)
|
144
|
-
descedant_specs
|
144
|
+
descedant_specs << descedant_spec_prefix
|
145
145
|
|
146
146
|
if method.to_s == 'initialize'
|
147
147
|
descedant_specs.concat(Pathname.glob(descedant_spec_prefix.join('class_methods/new_spec.rb')))
|
@@ -156,8 +156,7 @@ begin
|
|
156
156
|
|
157
157
|
ObjectSpace.each_object(Module) do |descedant|
|
158
158
|
next unless descedant.name =~ /\A#{root_module_regexp}(?::|\z)/ && mod >= descedant
|
159
|
-
|
160
|
-
descedant_specs.concat(Pathname.glob(descedant_spec_prefix.join('class_methods/*_spec.rb')))
|
159
|
+
descedant_specs << spec_dir.join(descedant.name.underscore).join('class_methods')
|
161
160
|
end
|
162
161
|
|
163
162
|
specs << [ ".#{method}", descedant_specs ]
|
data/tasks/metrics/reek.rake
CHANGED
data/tasks/spec.rake
CHANGED
@@ -1,37 +1,46 @@
|
|
1
1
|
spec_defaults = lambda do |spec|
|
2
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
3
|
-
spec.libs << 'lib' << 'spec'
|
4
2
|
spec.spec_opts << '--options' << 'spec/spec.opts'
|
5
3
|
end
|
6
4
|
|
7
5
|
begin
|
8
6
|
require 'spec/rake/spectask'
|
9
7
|
|
10
|
-
|
8
|
+
desc 'Run all specs'
|
9
|
+
task :spec => %w[ spec:unit spec:integration ]
|
10
|
+
|
11
|
+
namespace :spec do
|
12
|
+
desc 'Run unit specs'
|
13
|
+
Spec::Rake::SpecTask.new(:unit) do |unit|
|
14
|
+
spec_defaults.call(unit)
|
15
|
+
unit.pattern = 'spec/unit/**/*_spec.rb'
|
16
|
+
end
|
17
|
+
|
18
|
+
desc 'Run integration specs'
|
19
|
+
Spec::Rake::SpecTask.new(:integration) do |integration|
|
20
|
+
spec_defaults.call(integration)
|
21
|
+
integration.pattern = 'spec/integration/**/*_spec.rb'
|
22
|
+
end
|
23
|
+
end
|
11
24
|
rescue LoadError
|
12
|
-
|
13
|
-
|
25
|
+
%w[ spec spec:unit spec:integration ].each do |name|
|
26
|
+
task name do
|
27
|
+
abort "rspec is not available. In order to run #{name}, you must: gem install rspec"
|
28
|
+
end
|
14
29
|
end
|
15
30
|
end
|
16
31
|
|
17
32
|
begin
|
18
33
|
require 'rcov'
|
19
|
-
require 'spec/rake/verify_rcov'
|
20
34
|
|
21
35
|
Spec::Rake::SpecTask.new(:rcov) do |rcov|
|
22
36
|
spec_defaults.call(rcov)
|
23
37
|
rcov.rcov = true
|
38
|
+
rcov.pattern = 'spec/unit/**/*_spec.rb'
|
24
39
|
rcov.rcov_opts = File.read('spec/rcov.opts').split(/\s+/)
|
25
40
|
end
|
26
|
-
|
27
|
-
RCov::VerifyTask.new(:verify_rcov => :rcov) do |rcov|
|
28
|
-
rcov.threshold = 100
|
29
|
-
end
|
30
41
|
rescue LoadError
|
31
|
-
|
32
|
-
|
33
|
-
abort "rcov is not available. In order to run #{name}, you must: gem install rcov"
|
34
|
-
end
|
42
|
+
task :rcov do
|
43
|
+
abort 'rcov is not available. In order to run rcov, you must: gem install rcov'
|
35
44
|
end
|
36
45
|
end
|
37
46
|
|
data/veritas-do-adapter.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "veritas-do-adapter"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.7"
|
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 = "
|
12
|
+
s.date = "2012-03-08"
|
13
13
|
s.description = "Use Veritas relations with an RDBMS"
|
14
14
|
s.email = "dan.kubb@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -46,6 +46,7 @@ Gem::Specification.new do |s|
|
|
46
46
|
"spec/shared/unary_relation_method_behaviour.rb",
|
47
47
|
"spec/spec.opts",
|
48
48
|
"spec/spec_helper.rb",
|
49
|
+
"spec/support/example_group_methods.rb",
|
49
50
|
"spec/unit/veritas/adapter/data_objects/class_methods/new_spec.rb",
|
50
51
|
"spec/unit/veritas/adapter/data_objects/read_spec.rb",
|
51
52
|
"spec/unit/veritas/adapter/data_objects/statement/class_methods/new_spec.rb",
|
@@ -85,7 +86,7 @@ Gem::Specification.new do |s|
|
|
85
86
|
]
|
86
87
|
s.homepage = "https://github.com/dkubb/veritas-do-adapter"
|
87
88
|
s.require_paths = ["lib"]
|
88
|
-
s.rubygems_version = "1.8.
|
89
|
+
s.rubygems_version = "1.8.16"
|
89
90
|
s.summary = "Vertias DataObjects adapter"
|
90
91
|
|
91
92
|
if s.respond_to? :specification_version then
|
@@ -93,8 +94,8 @@ Gem::Specification.new do |s|
|
|
93
94
|
|
94
95
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
95
96
|
s.add_runtime_dependency(%q<data_objects>, ["~> 0.10.6"])
|
96
|
-
s.add_runtime_dependency(%q<veritas>, ["~> 0.0.
|
97
|
-
s.add_runtime_dependency(%q<veritas-sql-generator>, ["~> 0.0.
|
97
|
+
s.add_runtime_dependency(%q<veritas>, ["~> 0.0.7"])
|
98
|
+
s.add_runtime_dependency(%q<veritas-sql-generator>, ["~> 0.0.7"])
|
98
99
|
s.add_development_dependency(%q<backports>, ["~> 2.3.0"])
|
99
100
|
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
100
101
|
s.add_development_dependency(%q<rake>, ["~> 0.9.2"])
|
@@ -102,8 +103,8 @@ Gem::Specification.new do |s|
|
|
102
103
|
s.add_development_dependency(%q<yard>, ["~> 0.7.2"])
|
103
104
|
else
|
104
105
|
s.add_dependency(%q<data_objects>, ["~> 0.10.6"])
|
105
|
-
s.add_dependency(%q<veritas>, ["~> 0.0.
|
106
|
-
s.add_dependency(%q<veritas-sql-generator>, ["~> 0.0.
|
106
|
+
s.add_dependency(%q<veritas>, ["~> 0.0.7"])
|
107
|
+
s.add_dependency(%q<veritas-sql-generator>, ["~> 0.0.7"])
|
107
108
|
s.add_dependency(%q<backports>, ["~> 2.3.0"])
|
108
109
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
109
110
|
s.add_dependency(%q<rake>, ["~> 0.9.2"])
|
@@ -112,8 +113,8 @@ Gem::Specification.new do |s|
|
|
112
113
|
end
|
113
114
|
else
|
114
115
|
s.add_dependency(%q<data_objects>, ["~> 0.10.6"])
|
115
|
-
s.add_dependency(%q<veritas>, ["~> 0.0.
|
116
|
-
s.add_dependency(%q<veritas-sql-generator>, ["~> 0.0.
|
116
|
+
s.add_dependency(%q<veritas>, ["~> 0.0.7"])
|
117
|
+
s.add_dependency(%q<veritas-sql-generator>, ["~> 0.0.7"])
|
117
118
|
s.add_dependency(%q<backports>, ["~> 2.3.0"])
|
118
119
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
119
120
|
s.add_dependency(%q<rake>, ["~> 0.9.2"])
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: veritas-do-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dan Kubb
|
@@ -15,12 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-03-08 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
22
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
23
|
none: false
|
25
24
|
requirements:
|
26
25
|
- - ~>
|
@@ -31,44 +30,44 @@ dependencies:
|
|
31
30
|
- 10
|
32
31
|
- 6
|
33
32
|
version: 0.10.6
|
34
|
-
|
33
|
+
prerelease: false
|
34
|
+
requirement: *id001
|
35
35
|
name: data_objects
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
type: :runtime
|
38
|
-
|
39
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
39
|
none: false
|
41
40
|
requirements:
|
42
41
|
- - ~>
|
43
42
|
- !ruby/object:Gem::Version
|
44
|
-
hash:
|
43
|
+
hash: 17
|
45
44
|
segments:
|
46
45
|
- 0
|
47
46
|
- 0
|
48
|
-
-
|
49
|
-
version: 0.0.
|
50
|
-
|
47
|
+
- 7
|
48
|
+
version: 0.0.7
|
49
|
+
prerelease: false
|
50
|
+
requirement: *id002
|
51
51
|
name: veritas
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
53
|
type: :runtime
|
54
|
-
|
55
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
56
55
|
none: false
|
57
56
|
requirements:
|
58
57
|
- - ~>
|
59
58
|
- !ruby/object:Gem::Version
|
60
|
-
hash:
|
59
|
+
hash: 17
|
61
60
|
segments:
|
62
61
|
- 0
|
63
62
|
- 0
|
64
|
-
-
|
65
|
-
version: 0.0.
|
66
|
-
|
63
|
+
- 7
|
64
|
+
version: 0.0.7
|
65
|
+
prerelease: false
|
66
|
+
requirement: *id003
|
67
67
|
name: veritas-sql-generator
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
type: :development
|
70
|
-
|
71
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
70
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
72
71
|
none: false
|
73
72
|
requirements:
|
74
73
|
- - ~>
|
@@ -79,12 +78,12 @@ dependencies:
|
|
79
78
|
- 3
|
80
79
|
- 0
|
81
80
|
version: 2.3.0
|
82
|
-
|
81
|
+
prerelease: false
|
82
|
+
requirement: *id004
|
83
83
|
name: backports
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
type: :development
|
86
|
-
|
87
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
86
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
88
87
|
none: false
|
89
88
|
requirements:
|
90
89
|
- - ~>
|
@@ -95,12 +94,12 @@ dependencies:
|
|
95
94
|
- 6
|
96
95
|
- 4
|
97
96
|
version: 1.6.4
|
98
|
-
|
97
|
+
prerelease: false
|
98
|
+
requirement: *id005
|
99
99
|
name: jeweler
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
101
|
type: :development
|
102
|
-
|
103
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
102
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
104
103
|
none: false
|
105
104
|
requirements:
|
106
105
|
- - ~>
|
@@ -111,12 +110,12 @@ dependencies:
|
|
111
110
|
- 9
|
112
111
|
- 2
|
113
112
|
version: 0.9.2
|
114
|
-
|
113
|
+
prerelease: false
|
114
|
+
requirement: *id006
|
115
115
|
name: rake
|
116
116
|
- !ruby/object:Gem::Dependency
|
117
117
|
type: :development
|
118
|
-
|
119
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
118
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
120
119
|
none: false
|
121
120
|
requirements:
|
122
121
|
- - ~>
|
@@ -127,12 +126,12 @@ dependencies:
|
|
127
126
|
- 3
|
128
127
|
- 2
|
129
128
|
version: 1.3.2
|
130
|
-
|
129
|
+
prerelease: false
|
130
|
+
requirement: *id007
|
131
131
|
name: rspec
|
132
132
|
- !ruby/object:Gem::Dependency
|
133
133
|
type: :development
|
134
|
-
|
135
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
134
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
136
135
|
none: false
|
137
136
|
requirements:
|
138
137
|
- - ~>
|
@@ -143,7 +142,8 @@ dependencies:
|
|
143
142
|
- 7
|
144
143
|
- 2
|
145
144
|
version: 0.7.2
|
146
|
-
|
145
|
+
prerelease: false
|
146
|
+
requirement: *id008
|
147
147
|
name: yard
|
148
148
|
description: Use Veritas relations with an RDBMS
|
149
149
|
email: dan.kubb@gmail.com
|
@@ -184,6 +184,7 @@ files:
|
|
184
184
|
- spec/shared/unary_relation_method_behaviour.rb
|
185
185
|
- spec/spec.opts
|
186
186
|
- spec/spec_helper.rb
|
187
|
+
- spec/support/example_group_methods.rb
|
187
188
|
- spec/unit/veritas/adapter/data_objects/class_methods/new_spec.rb
|
188
189
|
- spec/unit/veritas/adapter/data_objects/read_spec.rb
|
189
190
|
- spec/unit/veritas/adapter/data_objects/statement/class_methods/new_spec.rb
|
@@ -249,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
249
250
|
requirements: []
|
250
251
|
|
251
252
|
rubyforge_project:
|
252
|
-
rubygems_version: 1.8.
|
253
|
+
rubygems_version: 1.8.16
|
253
254
|
signing_key:
|
254
255
|
specification_version: 3
|
255
256
|
summary: Vertias DataObjects adapter
|