veritas-do-adapter 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- - ruby-head
8
+ - jruby-18mode
9
+ - jruby-19mode
10
+ - rbx-18mode
11
+ - rbx-19mode
8
12
  - ree
9
- - jruby
10
- - rbx
11
- - rbx-2.0
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 :rubygems
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.6', :git => 'git://github.com/dkubb/veritas.git'
7
- gem 'veritas-sql-generator', '~> 0.0.6', :git => 'git://github.com/dkubb/veritas-sql-generator.git'
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'
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  threshold: 11
3
- total_score: 57.0
3
+ total_score: 53.0
@@ -2,7 +2,7 @@
2
2
  AbcMetricMethodCheck: { score: 11.8 }
3
3
  AssignmentInConditionalCheck: { }
4
4
  CaseMissingElseCheck: { }
5
- ClassLineCountCheck: { line_count: 357 }
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: 359 }
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 }
@@ -8,7 +8,7 @@ UncommunicativeParameterName:
8
8
  - !ruby/regexp /[0-9]$/
9
9
  - !ruby/regexp /[A-Z]/
10
10
  LargeClass:
11
- max_methods: 18
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:
@@ -3,7 +3,7 @@
3
3
  module Veritas
4
4
  module Adapter
5
5
  class DataObjects
6
- VERSION = '0.0.6'
6
+ VERSION = '0.0.7'
7
7
  end # class DataObjects
8
8
  end # module Adapter
9
9
  end # module Veritas
@@ -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
- other.respond_to?(:adapter) && adapter.eql?(other.adapter)
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 summarize_with.respond_to?(:relation)
355
+ summarize_with = summarize_with.relation if gateway?(summarize_with)
345
356
  forward(:summarize, summarize_with, &block)
346
357
  end
347
358
 
@@ -4,3 +4,4 @@
4
4
  --xrefs
5
5
  --profile
6
6
  --text-summary
7
+ --failure-threshold 100
@@ -1,3 +1,4 @@
1
1
  --color
2
2
  --loadby random
3
3
  --format profile
4
+ --timeout 0.05
@@ -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
@@ -0,0 +1,7 @@
1
+ module Spec
2
+ module ExampleGroupMethods
3
+ def testing_block_passing_broken?
4
+ RUBY_PLATFORM.include?('java') && JRUBY_VERSION <= '1.7.0.dev' && RUBY_VERSION >= '1.9.2'
5
+ end
6
+ end
7
+ end
@@ -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) { proc {} }
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
- it 'forwards the block to relation#extend' do
24
- relation.stub!(:extend) { |_args, proc| proc.should equal(block) }
25
- subject
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(:product) { mock('Product', :restrict => gateway) }
24
+ let(:join) { mock('Join', :restrict => gateway) }
25
25
  let(:yields) { [] }
26
26
 
27
27
  before do
28
- relation.stub!(:product).and_return(product)
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 other relation to the product operation' do
34
- relation.should_receive(:product).with(other_relation)
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 product relation' do
38
+ it 'passes the block to the join relation' do
39
39
  context = mock('Context')
40
- product.should_receive(:restrict).and_yield(context)
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) { proc {} }
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
- it 'forwards the block to relation#restrict' do
24
- relation.stub!(:restrict) { |_args, proc| proc.should equal(block) }
25
- subject
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) { proc {} }
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
- it 'forwards the block to relation#sort_by' do
24
- relation.stub!(:sort_by) { |_args, proc| proc.should equal(block) }
25
- subject
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) { proc {} }
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
- it 'forwards the block to relation#summarize' do
32
- relation.stub!(:summarize) do |_summarize_with, proc|
33
- proc.should equal(block)
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
- it 'forwards the block to relation#summarize' do
64
- relation.stub!(:summarize) do |_summarize_with, proc|
65
- proc.should equal(block)
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
- it 'forwards the block to relation#summarize' do
98
- relation.stub!(:summarize) do |_summarize_with, proc|
99
- proc.should equal(block)
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
@@ -1,7 +1,7 @@
1
1
  desc 'Run metrics with Heckle'
2
- task :ci => [ 'ci:metrics', :heckle ]
2
+ task :ci => %w[ ci:metrics heckle ]
3
3
 
4
4
  namespace :ci do
5
5
  desc 'Run metrics'
6
- task :metrics => [ :verify_measurements, :flog, :flay, :reek, :roodi, 'metrics:all' ]
6
+ task :metrics => %w[ verify_measurements flog flay reek roodi metrics:all ]
7
7
  end
@@ -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
@@ -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
- max = totals.last ? totals.last[1] : 0
26
- unless max >= threshold
27
- raise "Adjust flog score down to #{max}"
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 }
@@ -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 => :verify_rcov do
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.concat(Pathname.glob(descedant_spec_prefix.join('*_spec.rb')))
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
- descedant_spec_prefix = spec_dir.join(descedant.name.underscore)
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 ]
@@ -4,6 +4,6 @@ begin
4
4
  Reek::Rake::Task.new
5
5
  rescue LoadError
6
6
  task :reek do
7
- abort "Reek is not available. In order to run reek, you must: gem install reek"
7
+ abort 'Reek is not available. In order to run reek, you must: gem install reek'
8
8
  end
9
9
  end
@@ -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
- Spec::Rake::SpecTask.new(:spec, &spec_defaults)
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
- task :spec do
13
- abort 'rspec is not available. In order to run spec, you must: gem install rspec'
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
- %w[ rcov verify_rcov ].each do |name|
32
- task name do
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
 
@@ -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.6"
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 = "2011-10-04"
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.10"
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.6"])
97
- s.add_runtime_dependency(%q<veritas-sql-generator>, ["~> 0.0.6"])
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.6"])
106
- s.add_dependency(%q<veritas-sql-generator>, ["~> 0.0.6"])
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.6"])
116
- s.add_dependency(%q<veritas-sql-generator>, ["~> 0.0.6"])
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
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: 2011-10-04 00:00:00 Z
18
+ date: 2012-03-08 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime
22
- prerelease: false
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
- version_requirements: *id001
33
+ prerelease: false
34
+ requirement: *id001
35
35
  name: data_objects
36
36
  - !ruby/object:Gem::Dependency
37
37
  type: :runtime
38
- prerelease: false
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: 19
43
+ hash: 17
45
44
  segments:
46
45
  - 0
47
46
  - 0
48
- - 6
49
- version: 0.0.6
50
- version_requirements: *id002
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
- prerelease: false
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: 19
59
+ hash: 17
61
60
  segments:
62
61
  - 0
63
62
  - 0
64
- - 6
65
- version: 0.0.6
66
- version_requirements: *id003
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
- prerelease: false
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
- version_requirements: *id004
81
+ prerelease: false
82
+ requirement: *id004
83
83
  name: backports
84
84
  - !ruby/object:Gem::Dependency
85
85
  type: :development
86
- prerelease: false
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
- version_requirements: *id005
97
+ prerelease: false
98
+ requirement: *id005
99
99
  name: jeweler
100
100
  - !ruby/object:Gem::Dependency
101
101
  type: :development
102
- prerelease: false
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
- version_requirements: *id006
113
+ prerelease: false
114
+ requirement: *id006
115
115
  name: rake
116
116
  - !ruby/object:Gem::Dependency
117
117
  type: :development
118
- prerelease: false
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
- version_requirements: *id007
129
+ prerelease: false
130
+ requirement: *id007
131
131
  name: rspec
132
132
  - !ruby/object:Gem::Dependency
133
133
  type: :development
134
- prerelease: false
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
- version_requirements: *id008
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.10
253
+ rubygems_version: 1.8.16
253
254
  signing_key:
254
255
  specification_version: 3
255
256
  summary: Vertias DataObjects adapter