dbagile 0.0.1 → 0.0.2

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.
Files changed (55) hide show
  1. data/lib/dbagile.rb +2 -2
  2. data/lib/dbagile/adapter/sequel/data/transaction_driven.rb +1 -0
  3. data/lib/dbagile/adapter/sequel/schema/concrete_script.rb +18 -0
  4. data/lib/dbagile/adapter/sequel/schema/table_driven.rb +10 -1
  5. data/lib/dbagile/adapter/sequel/sequel_tracer.rb +1 -0
  6. data/lib/dbagile/command/bulk/commons.rb +7 -2
  7. data/lib/dbagile/command/bulk/export.rb +4 -1
  8. data/lib/dbagile/command/bulk/import.rb +32 -2
  9. data/lib/dbagile/command/schema/check.rb +2 -1
  10. data/lib/dbagile/command/schema/commons.rb +16 -1
  11. data/lib/dbagile/command/schema/dump.rb +85 -4
  12. data/lib/dbagile/command/schema/sql_script.rb +1 -0
  13. data/lib/dbagile/contract/data/dataset.rb +9 -0
  14. data/lib/dbagile/core/schema/builder.rb +8 -4
  15. data/lib/dbagile/core/schema/builder/concept_factory.rb +5 -0
  16. data/lib/dbagile/core/schema/composite.rb +1 -1
  17. data/lib/dbagile/core/schema/computations/merge.rb +1 -1
  18. data/lib/dbagile/core/schema/errors.rb +1 -3
  19. data/lib/dbagile/core/schema/logical.rb +1 -0
  20. data/lib/dbagile/core/schema/logical/attribute.rb +11 -2
  21. data/lib/dbagile/core/schema/logical/relview.rb +42 -0
  22. data/lib/dbagile/core/schema/migrate/abstract_script.rb +2 -0
  23. data/lib/dbagile/core/schema/migrate/create_view.rb +15 -0
  24. data/lib/dbagile/core/schema/migrate/drop_view.rb +15 -0
  25. data/lib/dbagile/core/schema/migrate/operation.rb +8 -6
  26. data/lib/dbagile/core/schema/migrate/stager.rb +12 -3
  27. data/lib/dbagile/core/schema/part.rb +0 -49
  28. data/lib/dbagile/core/schema/schema_object.rb +54 -0
  29. data/lib/dbagile/environment/repository.rb +2 -2
  30. data/lib/dbagile/errors.rb +3 -0
  31. data/lib/dbagile/io.rb +7 -3
  32. data/lib/dbagile/io/html.rb +48 -0
  33. data/lib/dbagile/restful.rb +1 -1
  34. data/lib/dbagile/restful/middleware/one_database.rb +1 -0
  35. data/lib/dbagile/restful/middleware/post.rb +16 -1
  36. data/lib/dbagile/tools/tuple.rb +7 -0
  37. data/test/assumptions/sequel/connect.spec +12 -9
  38. data/test/assumptions/sequel/test.db +0 -0
  39. data/test/commands.spec +4 -4
  40. data/test/commands/bulk/import.spec +26 -3
  41. data/test/commands/schema/check.spec +20 -13
  42. data/test/commands/schema/dump.spec +23 -0
  43. data/test/fixtures/basics/dbagile.idx +7 -7
  44. data/test/fixtures/basics/robust.db +0 -0
  45. data/test/fixtures/basics/test.db +0 -0
  46. data/test/fixtures/empty/dbagile.idx +1 -1
  47. data/test/restful/get/html_format.ex +12 -0
  48. data/test/run_all_suite.rb +1 -1
  49. data/test/spec_helper.rb +0 -2
  50. data/test/support/be_a_valid_json_string.rb +1 -1
  51. data/test/support/be_a_valid_yaml_string.rb +1 -1
  52. data/test/unit/core/schema/fixtures/views.yaml +5 -0
  53. data/test/unit/core/schema/part_keys.spec +12 -0
  54. data/test/unit/core/schema/yaml_load.spec +5 -0
  55. metadata +414 -244
@@ -6,4 +6,4 @@ module DbAgile
6
6
  #
7
7
  module Restful
8
8
  end # module Restful
9
- end # module DbAgile
9
+ end # module DbAgile
@@ -10,6 +10,7 @@ module DbAgile
10
10
  include Middleware::Get
11
11
  include Middleware::Post
12
12
  include Middleware::Delete
13
+ include DbAgile::Tools::Tuple
13
14
 
14
15
  # Database instance
15
16
  attr_reader :database
@@ -8,11 +8,26 @@ module DbAgile
8
8
  request = Rack::Request.new(env)
9
9
  decode(env) do |connection, table, format|
10
10
  format = :json if format.nil?
11
+
12
+ # Retrieve heading and keys
11
13
  heading = connection.heading(table)
14
+ keys = connection.keys(table)
15
+
16
+ # Tuple to insert/update
12
17
  tuple = params_to_tuple(request.POST, heading)
13
18
  inserted = connection.transaction do |t|
14
- t.insert(table, tuple)
19
+ if tuple_has_key?(tuple, keys)
20
+ key_projected = tuple_key(tuple, keys)
21
+ if connection.exists?(table, key_projected)
22
+ t.update(table, tuple, key_projected)
23
+ else
24
+ t.insert(table, tuple)
25
+ end
26
+ else
27
+ t.insert(table, tuple)
28
+ end
15
29
  end
30
+
16
31
  [format, to_xxx_enumerable(format, [ inserted ], tuple.keys)]
17
32
  end
18
33
  end
@@ -31,6 +31,13 @@ module DbAgile
31
31
  proj
32
32
  end
33
33
 
34
+ # Checks if a given tuple contains value for at least one
35
+ # key.
36
+ def tuple_has_key?(tuple, keys)
37
+ return false if keys.nil?
38
+ !keys.find{|k| k.all?{|a| !tuple[a].nil? }}.nil?
39
+ end
40
+
34
41
  # Extract the key/value pairs that form a key on a tuple, given
35
42
  # keys information. Returns tuple if no such better tuple can be found.
36
43
  def tuple_key(tuple, keys)
@@ -14,16 +14,19 @@ describe "Sequel::connect /" do
14
14
  it "allows connecting and using SQL tools on unexisting databases" do
15
15
  uris.each{|uri|
16
16
  lambda{
17
- db = Sequel::connect(uri)
18
- gen = Sequel::Schema::Generator.new(db){
19
- column :id, Integer
20
- column :name, String
21
- primary_key [:id]
22
- }
23
- res = db.send(:create_table_sql, :mytable, gen, {})
24
- res.should =~ /CREATE TABLE/
17
+ begin
18
+ db = Sequel::connect(uri)
19
+ gen = Sequel::Schema::Generator.new(db){
20
+ column :id, Integer
21
+ column :name, String
22
+ primary_key [:id]
23
+ }
24
+ res = db.send(:create_table_sql, :mytable, gen, {})
25
+ res.should =~ /CREATE TABLE/
26
+ rescue Sequel::AdapterNotFound => ex
27
+ end
25
28
  }.should_not raise_error
26
29
  }
27
30
  end
28
31
 
29
- end
32
+ end
@@ -64,9 +64,9 @@ describe "DbAgile::Command::API /" do
64
64
  dba.output_buffer = StringIO.new
65
65
  }
66
66
 
67
- describe "bulk:export /" do
68
- it_should_behave_like "The bulk:export command"
69
- end
67
+ # describe "bulk:export /" do
68
+ # it_should_behave_like "The bulk:export command"
69
+ # end
70
70
 
71
71
  describe "bulk:import /" do
72
72
  it_should_behave_like "The bulk:import command"
@@ -121,7 +121,7 @@ describe "DbAgile::Command::API /" do
121
121
  describe "schema:sql-script" do
122
122
  it_should_behave_like "The schema:sql-script command"
123
123
  end
124
-
124
+
125
125
  describe "schema:diff" do
126
126
  it_should_behave_like "The schema:diff command"
127
127
  end
@@ -3,7 +3,7 @@ shared_examples_for("The bulk:import command") do
3
3
  # --ruby
4
4
 
5
5
  describe "When used with a --ruby option" do
6
-
6
+
7
7
  it "should work on input buffer by default" do
8
8
  File.open(DbAgile::Fixtures::basic_values_path, "r"){|io|
9
9
  dba.input_buffer = io
@@ -12,7 +12,7 @@ shared_examples_for("The bulk:import command") do
12
12
  }
13
13
  dba.dataset(:basic_values_copy).to_a.should == DbAgile::Fixtures::basic_values
14
14
  end
15
-
15
+
16
16
  it "should accept a --input option" do
17
17
  dba.bulk_import ['--input', DbAgile::Fixtures::basic_values_path] + %w{--ruby --drop-table basic_values_copy}
18
18
  dba.sql_send "UPDATE basic_values_copy SET ruby_nil = null"
@@ -26,9 +26,32 @@ shared_examples_for("The bulk:import command") do
26
26
  dba.bulk_import %w{--ruby --create-table basic_values_copy}
27
27
  dba.dataset(:basic_values_copy).to_a.should == DbAgile::Fixtures::basic_values
28
28
  end
29
-
29
+
30
30
  end # --ruby
31
31
 
32
+ # --dry-run
33
+ describe "When a --dry-run option is set" do
34
+
35
+ it "should do nothing at all" do
36
+ dba.with_current_connection do |c|
37
+ dba.environment.with_testing_methods!
38
+ if c.has_table?(:basic_values_copy)
39
+ c.transaction{|t| t.drop_table(:basic_values_copy)}
40
+ end
41
+ end
42
+ File.open(DbAgile::Fixtures::basic_values_path, "r"){|io|
43
+ dba.input_buffer = io
44
+ dba.output_buffer = StringIO.new
45
+ dba.bulk_import %w{--dry-run --ruby --create-table basic_values_copy}
46
+ dba.environment.should have_flushed(/CREATE TABLE/)
47
+ }
48
+ dba.with_current_connection do |c|
49
+ c.has_table?(:basic_values_copy).should be_false
50
+ end
51
+ end
52
+
53
+ end
54
+
32
55
  # --format=x --type-safe
33
56
  [:csv, :json, :yaml, :ruby].each do |format|
34
57
 
@@ -1,25 +1,32 @@
1
1
  shared_examples_for("The schema:check command") do
2
2
 
3
- describe "when the shema is valid" do
3
+ it "should return a Schema and Errors on valid schema" do
4
+ schema, errors = dba.schema_check
5
+ schema.should be_kind_of(DbAgile::Core::Schema::DatabaseSchema)
6
+ errors.should be_kind_of(DbAgile::SchemaSemanticsError)
7
+ errors.should be_empty
8
+ end
4
9
 
5
- it "should return a Schema and Errors" do
6
- schema, errors = dba.schema_check
7
- schema.should be_kind_of(DbAgile::Core::Schema::DatabaseSchema)
8
- errors.should be_kind_of(DbAgile::SchemaSemanticsError)
9
- errors.should be_empty
10
- end
11
-
10
+ it "should return a Schema and Errors on invalid schema" do
11
+ schema, errors = dba.schema_check [ File.expand_path('../fixtures/invalid.yaml', __FILE__) ]
12
+ schema.should be_kind_of(DbAgile::Core::Schema::DatabaseSchema)
13
+ errors.should be_kind_of(DbAgile::SchemaSemanticsError)
14
+ errors.should_not be_empty
12
15
  end
13
16
 
14
- describe "when the shema is invalid" do
15
-
16
- it "should return a Schema and Errors" do
17
- schema, errors = dba.schema_check [ File.expand_path('../fixtures/invalid.yaml', __FILE__) ]
17
+ it "should support a --stdin option" do
18
+ old_buffer = dba.input_buffer
19
+ begin
20
+ text = File.read(File.expand_path('../fixtures/invalid.yaml', __FILE__))
21
+ dba.input_buffer = StringIO.new text
22
+ schema, errors = dba.schema_check [ "--stdin" ]
18
23
  schema.should be_kind_of(DbAgile::Core::Schema::DatabaseSchema)
19
24
  errors.should be_kind_of(DbAgile::SchemaSemanticsError)
20
25
  errors.should_not be_empty
26
+ schema.schema_identifier.should == "--stdin"
27
+ ensure
28
+ dba.input_buffer = old_buffer
21
29
  end
22
-
23
30
  end
24
31
 
25
32
  end
@@ -1,6 +1,7 @@
1
1
  shared_examples_for("The schema:dump command") do
2
2
 
3
3
  let(:invalid){ File.expand_path('../fixtures/invalid.yaml', __FILE__) }
4
+ let(:announced){ File.expand_path('../fixtures/announced.yaml', __FILE__) }
4
5
 
5
6
  it "should return a Schema instance" do
6
7
  dba.schema_dump.should be_kind_of(DbAgile::Core::Schema::DatabaseSchema)
@@ -19,5 +20,27 @@ shared_examples_for("The schema:dump command") do
19
20
  it "should not raise an error on invalid schema with --no-check" do
20
21
  lambda{ dba.schema_dump ['--no-check', invalid] }.should_not raise_error(DbAgile::SchemaSemanticsError)
21
22
  end
23
+
24
+ it "should support an --include option" do
25
+ res = dba.schema_dump [ announced, "--include=logical" ]
26
+ res.should be_kind_of(DbAgile::Core::Schema::DatabaseSchema)
27
+ res.logical.should_not be_empty
28
+ res.physical.should be_empty
29
+ end
30
+
31
+ it "should support an --exclude option" do
32
+ res = dba.schema_dump [ announced, "--exclude=logical" ]
33
+ res.should be_kind_of(DbAgile::Core::Schema::DatabaseSchema)
34
+ res.logical.should be_empty
35
+ res.physical.should_not be_empty
36
+ end
37
+
38
+ it "should support --include and --exclude with a 'include and NOT exclude' semantics" do
39
+ res = dba.schema_dump [ announced, "--include=logical", "--exclude=constraint"]
40
+ res.should be_kind_of(DbAgile::Core::Schema::DatabaseSchema)
41
+ res.logical.should_not be_empty
42
+ res.logical[:SUPPLIES].constraints.should be_empty
43
+ res.physical.should be_empty
44
+ end
22
45
 
23
46
  end
@@ -1,20 +1,20 @@
1
1
  ---
2
2
  version: 0.0.1
3
3
  databases:
4
- unexisting:
5
- uri: postgres://dbagile@localhost/dbagile_unexisting
6
4
  sqlite:
7
5
  uri: test.db
8
6
  announced_schema:
9
7
  - fixtures.yaml
8
+ unexisting:
9
+ uri: postgres://dbagile@localhost/dbagile_unexisting
10
+ postgres:
11
+ uri: postgres://dbagile@localhost/dbagile_test
12
+ announced_schema:
13
+ - fixtures.yaml
10
14
  robust:
11
15
  uri: robust.db
12
16
  announced_schema:
13
17
  - fixtures.yaml
14
18
  plugins:
15
19
  - DbAgile::Contract::Robust::Optimistic
16
- postgres:
17
- uri: postgres://dbagile@localhost/dbagile_test
18
- announced_schema:
19
- - fixtures.yaml
20
- current: sqlite
20
+ current: robust
Binary file
@@ -1,5 +1,5 @@
1
1
  ---
2
- version: 0.0.1
2
+ version: 0.0.2
3
3
  databases: {}
4
4
 
5
5
  current: ""
@@ -0,0 +1,12 @@
1
+ # .html
2
+ describe "when called with .html extension" do
3
+
4
+ it "should return an html string" do
5
+ client.get(basic_values_uri('.html')){|res,http|
6
+ res.content_type.should == 'text/html'
7
+ res.body.should =~ /Standard values/
8
+ }
9
+ end
10
+
11
+ end # .html
12
+
@@ -30,7 +30,7 @@ tests.each do |kind|
30
30
  summary << "\nSummary for #{kind}_test (#{kind}.spec)\n"
31
31
 
32
32
  # Executes it in a subprocess
33
- IO.popen("ruby #{file} 2>&1"){|io|
33
+ IO.popen("ruby -I. -S bundle exec rspec #{file} 2>&1"){|io|
34
34
  while l = io.gets
35
35
  puts l unless $silent
36
36
  unless l =~ /^\s*\.*\s*$|\(in /
@@ -4,8 +4,6 @@ $LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
4
4
  require 'dbagile'
5
5
  require 'rubygems'
6
6
  require 'fixtures'
7
- require 'spec'
8
- require 'spec/autorun'
9
7
  require 'fileutils'
10
8
 
11
9
  def dbagile_load_all_subfiles(requester_file, match)
@@ -1,4 +1,4 @@
1
- Spec::Matchers.define :be_a_valid_json_string do
1
+ RSpec::Matchers.define :be_a_valid_json_string do
2
2
  match do |actual|
3
3
  begin
4
4
  JSON::parse(actual)
@@ -1,4 +1,4 @@
1
- Spec::Matchers.define :be_a_valid_yaml_string do
1
+ RSpec::Matchers.define :be_a_valid_yaml_string do
2
2
  match do |actual|
3
3
  begin
4
4
  !YAML::load(actual).nil?
@@ -0,0 +1,5 @@
1
+ ---
2
+ logical:
3
+ test: SELECT * FROM test
4
+ ---
5
+ physical: {}
@@ -0,0 +1,12 @@
1
+ require File.expand_path('../fixtures', __FILE__)
2
+ if RUBY_VERSION >= "1.9"
3
+ describe "DbAgile::Core::Schema part_keys on composites" do
4
+
5
+ let(:sap) { DbAgile::Fixtures::Core::Schema::schema(:suppliers_and_parts) }
6
+
7
+ it "should respect yaml file ordering" do
8
+ sap.logical.part_keys.should == [:SUPPLIERS, :PARTS, :SUPPLIES]
9
+ end
10
+
11
+ end
12
+ end
@@ -2,6 +2,7 @@ require File.expand_path('../fixtures', __FILE__)
2
2
  describe "DbAgile::Core::Schema::yaml_load /" do
3
3
 
4
4
  let(:yaml_file){ DbAgile::Fixtures::Core::Schema::schema_file(:suppliers_and_parts) }
5
+ let(:with_views){ DbAgile::Fixtures::Core::Schema::schema_file(:views) }
5
6
 
6
7
  it "should be YAML loadable from a file" do
7
8
  DbAgile::Core::Schema::yaml_file_load(yaml_file).should be_kind_of(DbAgile::Core::Schema::DatabaseSchema)
@@ -17,4 +18,8 @@ describe "DbAgile::Core::Schema::yaml_load /" do
17
18
  DbAgile::Core::Schema::yaml_load(File.read(yaml_file)).should be_kind_of(DbAgile::Core::Schema::DatabaseSchema)
18
19
  end
19
20
 
21
+ it 'should support views' do
22
+ DbAgile::Core::Schema::yaml_file_load(with_views).should be_kind_of(DbAgile::Core::Schema::DatabaseSchema)
23
+ end
24
+
20
25
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbagile
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease: false
4
+ hash: 27
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bernard Lambeau
@@ -15,13 +15,176 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-08 00:00:00 +02:00
18
+ date: 2011-06-15 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: sbyc
22
+ name: rake
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 49
30
+ segments:
31
+ - 0
32
+ - 8
33
+ - 7
34
+ version: 0.8.7
35
+ type: :development
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: bundler
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ hash: 15
46
+ segments:
47
+ - 1
48
+ - 0
49
+ version: "1.0"
50
+ type: :development
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: rspec
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ hash: 31
61
+ segments:
62
+ - 2
63
+ - 4
64
+ - 0
65
+ version: 2.4.0
66
+ type: :development
67
+ version_requirements: *id003
68
+ - !ruby/object:Gem::Dependency
69
+ name: yard
70
+ prerelease: false
71
+ requirement: &id004 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ hash: 15
77
+ segments:
78
+ - 0
79
+ - 6
80
+ - 4
81
+ version: 0.6.4
82
+ type: :development
83
+ version_requirements: *id004
84
+ - !ruby/object:Gem::Dependency
85
+ name: bluecloth
86
+ prerelease: false
87
+ requirement: &id005 !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ~>
91
+ - !ruby/object:Gem::Version
92
+ hash: 29
93
+ segments:
94
+ - 2
95
+ - 0
96
+ - 9
97
+ version: 2.0.9
98
+ type: :development
99
+ version_requirements: *id005
100
+ - !ruby/object:Gem::Dependency
101
+ name: sqlite3
102
+ prerelease: false
103
+ requirement: &id006 !ruby/object:Gem::Requirement
104
+ none: false
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ hash: 3
109
+ segments:
110
+ - 0
111
+ version: "0"
112
+ type: :development
113
+ version_requirements: *id006
114
+ - !ruby/object:Gem::Dependency
115
+ name: pg
116
+ prerelease: false
117
+ requirement: &id007 !ruby/object:Gem::Requirement
118
+ none: false
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ hash: 3
123
+ segments:
124
+ - 0
125
+ version: "0"
126
+ type: :development
127
+ version_requirements: *id007
128
+ - !ruby/object:Gem::Dependency
129
+ name: fastercsv
130
+ prerelease: false
131
+ requirement: &id008 !ruby/object:Gem::Requirement
132
+ none: false
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ hash: 3
137
+ segments:
138
+ - 0
139
+ version: "0"
140
+ type: :runtime
141
+ version_requirements: *id008
142
+ - !ruby/object:Gem::Dependency
143
+ name: json
144
+ prerelease: false
145
+ requirement: &id009 !ruby/object:Gem::Requirement
146
+ none: false
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ hash: 3
151
+ segments:
152
+ - 0
153
+ version: "0"
154
+ type: :runtime
155
+ version_requirements: *id009
156
+ - !ruby/object:Gem::Dependency
157
+ name: builder
158
+ prerelease: false
159
+ requirement: &id010 !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ hash: 3
165
+ segments:
166
+ - 0
167
+ version: "0"
168
+ type: :runtime
169
+ version_requirements: *id010
170
+ - !ruby/object:Gem::Dependency
171
+ name: rack
172
+ prerelease: false
173
+ requirement: &id011 !ruby/object:Gem::Requirement
174
+ none: false
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ hash: 3
179
+ segments:
180
+ - 0
181
+ version: "0"
182
+ type: :runtime
183
+ version_requirements: *id011
184
+ - !ruby/object:Gem::Dependency
185
+ name: sbyc
186
+ prerelease: false
187
+ requirement: &id012 !ruby/object:Gem::Requirement
25
188
  none: false
26
189
  requirements:
27
190
  - - ">="
@@ -33,11 +196,11 @@ dependencies:
33
196
  - 4
34
197
  version: 0.1.4
35
198
  type: :runtime
36
- version_requirements: *id001
199
+ version_requirements: *id012
37
200
  - !ruby/object:Gem::Dependency
38
201
  name: sequel
39
202
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
203
+ requirement: &id013 !ruby/object:Gem::Requirement
41
204
  none: false
42
205
  requirements:
43
206
  - - ">="
@@ -49,11 +212,11 @@ dependencies:
49
212
  - 8
50
213
  version: 0.3.8
51
214
  type: :runtime
52
- version_requirements: *id002
215
+ version_requirements: *id013
53
216
  - !ruby/object:Gem::Dependency
54
217
  name: highline
55
218
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
219
+ requirement: &id014 !ruby/object:Gem::Requirement
57
220
  none: false
58
221
  requirements:
59
222
  - - ">="
@@ -65,7 +228,7 @@ dependencies:
65
228
  - 2
66
229
  version: 1.5.2
67
230
  type: :runtime
68
- version_requirements: *id003
231
+ version_requirements: *id014
69
232
  description: Agile Interface on top of SQL Databases
70
233
  email: blambeau@gmail.com
71
234
  executables:
@@ -76,307 +239,314 @@ extra_rdoc_files:
76
239
  - README.textile
77
240
  - LICENCE.textile
78
241
  files:
79
- - lib/dbagile/adapter/sequel/class_methods.rb
80
- - lib/dbagile/adapter/sequel/connection.rb
81
- - lib/dbagile/adapter/sequel/data/table_driven.rb
82
- - lib/dbagile/adapter/sequel/data/transaction_driven.rb
83
- - lib/dbagile/adapter/sequel/schema/concrete_script.rb
84
- - lib/dbagile/adapter/sequel/schema/physical_dump.rb
85
- - lib/dbagile/adapter/sequel/schema/schema2sequel_args.rb
86
- - lib/dbagile/adapter/sequel/schema/table_driven.rb
87
- - lib/dbagile/adapter/sequel/schema/transaction_driven.rb
88
- - lib/dbagile/adapter/sequel/sequel_tracer.rb
89
- - lib/dbagile/adapter/sequel.rb
90
- - lib/dbagile/adapter.rb
242
+ - lib/dbagile/contract/data.rb
243
+ - lib/dbagile/contract/data/table_driven.rb
244
+ - lib/dbagile/contract/data/transaction_driven.rb
245
+ - lib/dbagile/contract/data/dataset.rb
246
+ - lib/dbagile/contract/robust/helpers.rb
247
+ - lib/dbagile/contract/robust/optimistic.rb
248
+ - lib/dbagile/contract/robust/optimistic/data/table_driven.rb
249
+ - lib/dbagile/contract/robust/optimistic/data/transaction_driven.rb
250
+ - lib/dbagile/contract/robust/optimistic/schema/table_driven.rb
251
+ - lib/dbagile/contract/robust/optimistic/schema/transaction_driven.rb
252
+ - lib/dbagile/contract/schema.rb
253
+ - lib/dbagile/contract/robust.rb
254
+ - lib/dbagile/contract/utils.rb
255
+ - lib/dbagile/contract/utils/delegate.rb
256
+ - lib/dbagile/contract/utils/full.rb
257
+ - lib/dbagile/contract/connection.rb
258
+ - lib/dbagile/contract/schema/table_driven.rb
259
+ - lib/dbagile/contract/schema/transaction_driven.rb
260
+ - lib/dbagile/command/web.rb
261
+ - lib/dbagile/command/help.rb
262
+ - lib/dbagile/command/sql/send.rb
263
+ - lib/dbagile/command/sql/show.rb
264
+ - lib/dbagile/command/sql/heading.rb
265
+ - lib/dbagile/command/sql/drop.rb
266
+ - lib/dbagile/command/db.rb
267
+ - lib/dbagile/command/repo.rb
268
+ - lib/dbagile/command/class_methods.rb
91
269
  - lib/dbagile/command/api.rb
92
- - lib/dbagile/command/bulk/commons.rb
93
- - lib/dbagile/command/bulk/export.rb
94
- - lib/dbagile/command/bulk/import.rb
270
+ - lib/dbagile/command/schema.rb
271
+ - lib/dbagile/command/robust.rb
272
+ - lib/dbagile/command/sql.rb
95
273
  - lib/dbagile/command/bulk.rb
96
- - lib/dbagile/command/class_methods.rb
97
274
  - lib/dbagile/command/db/add.rb
98
- - lib/dbagile/command/db/list.rb
275
+ - lib/dbagile/command/db/use.rb
99
276
  - lib/dbagile/command/db/ping.rb
100
- - lib/dbagile/command/db/rm.rb
277
+ - lib/dbagile/command/db/list.rb
101
278
  - lib/dbagile/command/db/stage.rb
102
- - lib/dbagile/command/db/use.rb
103
- - lib/dbagile/command/db.rb
279
+ - lib/dbagile/command/db/rm.rb
280
+ - lib/dbagile/command/bulk/commons.rb
281
+ - lib/dbagile/command/bulk/export.rb
282
+ - lib/dbagile/command/bulk/import.rb
283
+ - lib/dbagile/command/web/tools.rb
104
284
  - lib/dbagile/command/dba.rb
105
- - lib/dbagile/command/help.rb
106
285
  - lib/dbagile/command/repo/create.rb
107
- - lib/dbagile/command/repo.rb
108
- - lib/dbagile/command/robust.rb
286
+ - lib/dbagile/command/schema/diff.rb
109
287
  - lib/dbagile/command/schema/check.rb
110
288
  - lib/dbagile/command/schema/commons.rb
111
- - lib/dbagile/command/schema/diff.rb
112
- - lib/dbagile/command/schema/dump.rb
113
289
  - lib/dbagile/command/schema/merge.rb
290
+ - lib/dbagile/command/schema/dump.rb
114
291
  - lib/dbagile/command/schema/sql_script.rb
115
- - lib/dbagile/command/schema.rb
116
- - lib/dbagile/command/sql/drop.rb
117
- - lib/dbagile/command/sql/heading.rb
118
- - lib/dbagile/command/sql/send.rb
119
- - lib/dbagile/command/sql/show.rb
120
- - lib/dbagile/command/sql.rb
121
- - lib/dbagile/command/web/tools.rb
122
- - lib/dbagile/command/web.rb
123
- - lib/dbagile/command.rb
124
- - lib/dbagile/contract/connection.rb
125
- - lib/dbagile/contract/data/dataset.rb
126
- - lib/dbagile/contract/data/table_driven.rb
127
- - lib/dbagile/contract/data/transaction_driven.rb
128
- - lib/dbagile/contract/data.rb
129
- - lib/dbagile/contract/robust/helpers.rb
130
- - lib/dbagile/contract/robust/optimistic/data/table_driven.rb
131
- - lib/dbagile/contract/robust/optimistic/data/transaction_driven.rb
132
- - lib/dbagile/contract/robust/optimistic/schema/table_driven.rb
133
- - lib/dbagile/contract/robust/optimistic/schema/transaction_driven.rb
134
- - lib/dbagile/contract/robust/optimistic.rb
135
- - lib/dbagile/contract/robust.rb
136
- - lib/dbagile/contract/schema/table_driven.rb
137
- - lib/dbagile/contract/schema/transaction_driven.rb
138
- - lib/dbagile/contract/schema.rb
139
- - lib/dbagile/contract/utils/delegate.rb
140
- - lib/dbagile/contract/utils/full.rb
141
- - lib/dbagile/contract/utils.rb
292
+ - lib/dbagile/io/yaml.rb
293
+ - lib/dbagile/io/csv.rb
294
+ - lib/dbagile/io/html.rb
295
+ - lib/dbagile/io/ruby.rb
296
+ - lib/dbagile/io/xml.rb
297
+ - lib/dbagile/io/text.rb
298
+ - lib/dbagile/io/type_safe.rb
299
+ - lib/dbagile/io/json.rb
300
+ - lib/dbagile/io/pretty_table.rb
301
+ - lib/dbagile/environment.rb
302
+ - lib/dbagile/restful.rb
142
303
  - lib/dbagile/contract.rb
143
- - lib/dbagile/core/chain.rb
144
- - lib/dbagile/core/connection.rb
145
- - lib/dbagile/core/database.rb
304
+ - lib/dbagile/environment/interactions.rb
305
+ - lib/dbagile/environment/repository.rb
306
+ - lib/dbagile/environment/buffering.rb
307
+ - lib/dbagile/environment/testing.rb
308
+ - lib/dbagile/environment/on_error.rb
309
+ - lib/dbagile/environment/robustness.rb
310
+ - lib/dbagile/environment/delegator.rb
311
+ - lib/dbagile/tools/ruby.rb
312
+ - lib/dbagile/tools/string.rb
313
+ - lib/dbagile/tools/file_system.rb
314
+ - lib/dbagile/tools/ordered_hash.rb
315
+ - lib/dbagile/tools/math.rb
316
+ - lib/dbagile/tools/tuple.rb
317
+ - lib/dbagile/tools.rb
318
+ - lib/dbagile/robustness.rb
319
+ - lib/dbagile/errors.rb
320
+ - lib/dbagile/adapter.rb
321
+ - lib/dbagile/loader.rb
146
322
  - lib/dbagile/core/io/dsl.rb
147
323
  - lib/dbagile/core/io/robustness.rb
148
- - lib/dbagile/core/io.rb
149
324
  - lib/dbagile/core/repository/builder.rb
150
325
  - lib/dbagile/core/repository/yaml_methods.rb
151
326
  - lib/dbagile/core/repository.rb
152
- - lib/dbagile/core/schema/builder/coercion.rb
153
- - lib/dbagile/core/schema/builder/concept_factory.rb
154
- - lib/dbagile/core/schema/builder.rb
155
- - lib/dbagile/core/schema/composite.rb
156
- - lib/dbagile/core/schema/computations/filter.rb
157
- - lib/dbagile/core/schema/computations/merge.rb
158
- - lib/dbagile/core/schema/computations/minus.rb
159
- - lib/dbagile/core/schema/computations/split.rb
160
- - lib/dbagile/core/schema/computations.rb
161
- - lib/dbagile/core/schema/database_schema.rb
162
- - lib/dbagile/core/schema/errors.rb
327
+ - lib/dbagile/core/transaction.rb
328
+ - lib/dbagile/core/schema.rb
329
+ - lib/dbagile/core/chain.rb
330
+ - lib/dbagile/core/connection.rb
331
+ - lib/dbagile/core/io.rb
332
+ - lib/dbagile/core/database.rb
333
+ - lib/dbagile/core/schema/logical/relvar.rb
163
334
  - lib/dbagile/core/schema/logical/attribute.rb
335
+ - lib/dbagile/core/schema/logical/heading.rb
164
336
  - lib/dbagile/core/schema/logical/constraint/candidate_key.rb
165
337
  - lib/dbagile/core/schema/logical/constraint/foreign_key.rb
166
- - lib/dbagile/core/schema/logical/constraint.rb
338
+ - lib/dbagile/core/schema/logical/relview.rb
167
339
  - lib/dbagile/core/schema/logical/constraints.rb
168
- - lib/dbagile/core/schema/logical/heading.rb
169
- - lib/dbagile/core/schema/logical/relvar.rb
170
- - lib/dbagile/core/schema/logical.rb
340
+ - lib/dbagile/core/schema/logical/constraint.rb
171
341
  - lib/dbagile/core/schema/migrate/abstract_script.rb
172
- - lib/dbagile/core/schema/migrate/collapse_table.rb
173
- - lib/dbagile/core/schema/migrate/create_table.rb
174
- - lib/dbagile/core/schema/migrate/drop_table.rb
175
342
  - lib/dbagile/core/schema/migrate/expand_table.rb
176
- - lib/dbagile/core/schema/migrate/operation.rb
343
+ - lib/dbagile/core/schema/migrate/create_view.rb
177
344
  - lib/dbagile/core/schema/migrate/stager.rb
178
- - lib/dbagile/core/schema/migrate.rb
345
+ - lib/dbagile/core/schema/migrate/drop_view.rb
346
+ - lib/dbagile/core/schema/migrate/create_table.rb
347
+ - lib/dbagile/core/schema/migrate/collapse_table.rb
348
+ - lib/dbagile/core/schema/migrate/operation.rb
349
+ - lib/dbagile/core/schema/migrate/drop_table.rb
350
+ - lib/dbagile/core/schema/logical.rb
351
+ - lib/dbagile/core/schema/builder/coercion.rb
352
+ - lib/dbagile/core/schema/builder/concept_factory.rb
353
+ - lib/dbagile/core/schema/builder.rb
354
+ - lib/dbagile/core/schema/computations/minus.rb
355
+ - lib/dbagile/core/schema/computations/merge.rb
356
+ - lib/dbagile/core/schema/computations/split.rb
357
+ - lib/dbagile/core/schema/computations/filter.rb
358
+ - lib/dbagile/core/schema/computations.rb
359
+ - lib/dbagile/core/schema/physical.rb
179
360
  - lib/dbagile/core/schema/part.rb
361
+ - lib/dbagile/core/schema/composite.rb
362
+ - lib/dbagile/core/schema/database_schema.rb
363
+ - lib/dbagile/core/schema/robustness.rb
364
+ - lib/dbagile/core/schema/errors.rb
365
+ - lib/dbagile/core/schema/migrate.rb
180
366
  - lib/dbagile/core/schema/physical/index.rb
181
367
  - lib/dbagile/core/schema/physical/indexes.rb
182
- - lib/dbagile/core/schema/physical.rb
183
- - lib/dbagile/core/schema/robustness.rb
184
368
  - lib/dbagile/core/schema/schema_object.rb
185
- - lib/dbagile/core/schema.rb
186
- - lib/dbagile/core/transaction.rb
369
+ - lib/dbagile/adapter/sequel.rb
370
+ - lib/dbagile/adapter/sequel/data/table_driven.rb
371
+ - lib/dbagile/adapter/sequel/data/transaction_driven.rb
372
+ - lib/dbagile/adapter/sequel/class_methods.rb
373
+ - lib/dbagile/adapter/sequel/sequel_tracer.rb
374
+ - lib/dbagile/adapter/sequel/connection.rb
375
+ - lib/dbagile/adapter/sequel/schema/table_driven.rb
376
+ - lib/dbagile/adapter/sequel/schema/physical_dump.rb
377
+ - lib/dbagile/adapter/sequel/schema/transaction_driven.rb
378
+ - lib/dbagile/adapter/sequel/schema/schema2sequel_args.rb
379
+ - lib/dbagile/adapter/sequel/schema/concrete_script.rb
380
+ - lib/dbagile/robustness/dependencies.rb
381
+ - lib/dbagile/robustness/file_system.rb
187
382
  - lib/dbagile/core.rb
188
- - lib/dbagile/environment/buffering.rb
189
- - lib/dbagile/environment/delegator.rb
190
- - lib/dbagile/environment/interactions.rb
191
- - lib/dbagile/environment/on_error.rb
192
- - lib/dbagile/environment/repository.rb
193
- - lib/dbagile/environment/robustness.rb
194
- - lib/dbagile/environment/testing.rb
195
- - lib/dbagile/environment.rb
196
- - lib/dbagile/errors.rb
197
- - lib/dbagile/io/csv.rb
198
- - lib/dbagile/io/json.rb
199
- - lib/dbagile/io/pretty_table.rb
200
- - lib/dbagile/io/ruby.rb
201
- - lib/dbagile/io/text.rb
202
- - lib/dbagile/io/type_safe.rb
203
- - lib/dbagile/io/xml.rb
204
- - lib/dbagile/io/yaml.rb
205
383
  - lib/dbagile/io.rb
206
- - lib/dbagile/loader.rb
207
- - lib/dbagile/plugin.rb
384
+ - lib/dbagile/command.rb
385
+ - lib/dbagile/restful/middleware.rb
208
386
  - lib/dbagile/restful/client/delete.rb
209
- - lib/dbagile/restful/client/get.rb
210
387
  - lib/dbagile/restful/client/post.rb
211
388
  - lib/dbagile/restful/client/utils.rb
389
+ - lib/dbagile/restful/client/get.rb
390
+ - lib/dbagile/restful/server.rb
212
391
  - lib/dbagile/restful/client.rb
213
392
  - lib/dbagile/restful/middleware/delete.rb
214
- - lib/dbagile/restful/middleware/get.rb
215
- - lib/dbagile/restful/middleware/one_database.rb
216
393
  - lib/dbagile/restful/middleware/post.rb
394
+ - lib/dbagile/restful/middleware/one_database.rb
217
395
  - lib/dbagile/restful/middleware/utils.rb
218
- - lib/dbagile/restful/middleware.rb
219
- - lib/dbagile/restful/server.rb
220
- - lib/dbagile/restful.rb
221
- - lib/dbagile/robustness/dependencies.rb
222
- - lib/dbagile/robustness/file_system.rb
223
- - lib/dbagile/robustness.rb
224
- - lib/dbagile/tools/file_system.rb
225
- - lib/dbagile/tools/math.rb
226
- - lib/dbagile/tools/ordered_hash.rb
227
- - lib/dbagile/tools/ruby.rb
228
- - lib/dbagile/tools/string.rb
229
- - lib/dbagile/tools/tuple.rb
230
- - lib/dbagile/tools.rb
396
+ - lib/dbagile/restful/middleware/get.rb
397
+ - lib/dbagile/plugin.rb
231
398
  - lib/dbagile.rb
232
- - test/assumptions/equality.spec
233
- - test/assumptions/fixtures.rb
234
- - test/assumptions/inheritance.spec
235
- - test/assumptions/sequel/autonumber.spec
236
- - test/assumptions/sequel/connect.spec
237
- - test/assumptions/sequel/test.db
238
- - test/assumptions/stdlib/pathname.spec
239
- - test/assumptions/yaml/fixtures.rb
240
- - test/assumptions/yaml/to_yaml.spec
241
- - test/assumptions.spec
242
- - test/commands/bulk/export.spec
243
- - test/commands/bulk/import.spec
244
- - test/commands/db/add.spec
245
- - test/commands/db/list.spec
246
- - test/commands/db/ping.spec
247
- - test/commands/db/rm.spec
248
- - test/commands/db/use.spec
249
- - test/commands/dba.spec
250
- - test/commands/repo/create.spec
251
- - test/commands/schema/check.spec
252
- - test/commands/schema/diff.spec
253
- - test/commands/schema/dump.spec
254
- - test/commands/schema/fixtures/add_constraint.yaml
255
- - test/commands/schema/fixtures/announced.yaml
256
- - test/commands/schema/fixtures/effective.yaml
257
- - test/commands/schema/fixtures/invalid.yaml
258
- - test/commands/schema/sql_script.spec
259
- - test/commands/sql/drop.spec
260
- - test/commands/sql/heading.spec
261
- - test/commands/sql/scripts/delete.sql
262
- - test/commands/sql/scripts/insert.sql
263
- - test/commands/sql/send.spec
264
- - test/commands/sql/show.spec
265
- - test/commands.spec
266
- - test/contract/connection/transaction.ex
267
- - test/contract/connection.spec
268
- - test/contract/data/dataset/columns.ex
269
- - test/contract/data/dataset/count.ex
399
+ - test/contract/data/transaction_driven.spec
270
400
  - test/contract/data/dataset.spec
401
+ - test/contract/data/table_driven.spec
402
+ - test/contract/data/dataset/count.ex
403
+ - test/contract/data/dataset/columns.ex
271
404
  - test/contract/data/table_driven/dataset.ex
272
405
  - test/contract/data/table_driven/exists_q.ex
273
- - test/contract/data/table_driven.spec
274
- - test/contract/data/transaction_driven/delete.ex
275
- - test/contract/data/transaction_driven/direct_sql.ex
276
406
  - test/contract/data/transaction_driven/insert.ex
407
+ - test/contract/data/transaction_driven/direct_sql.ex
408
+ - test/contract/data/transaction_driven/delete.ex
277
409
  - test/contract/data/transaction_driven/update.ex
278
- - test/contract/data/transaction_driven.spec
279
- - test/contract/robust/data/table_driven.spec
280
410
  - test/contract/robust/data/transaction_driven.spec
281
- - test/contract/robust/schema/table_driven.spec
411
+ - test/contract/robust/data/table_driven.spec
282
412
  - test/contract/robust/schema/transaction_driven.spec
283
- - test/contract/schema/table_driven/column_names.ex
413
+ - test/contract/robust/schema/table_driven.spec
414
+ - test/contract/connection.spec
415
+ - test/contract/connection/transaction.ex
416
+ - test/contract/schema/transaction_driven.spec
417
+ - test/contract/schema/table_driven.spec
418
+ - test/contract/schema/table_driven/heading.ex
284
419
  - test/contract/schema/table_driven/has_column_q.ex
420
+ - test/contract/schema/table_driven/column_names.ex
285
421
  - test/contract/schema/table_driven/has_table_q.ex
286
- - test/contract/schema/table_driven/heading.ex
287
- - test/contract/schema/table_driven.spec
288
- - test/contract/schema/transaction_driven/create_table.ex
289
422
  - test/contract/schema/transaction_driven/drop_table.ex
290
- - test/contract/schema/transaction_driven.spec
291
- - test/contract.spec
292
- - test/fixtures/basics/data/basic_values.rb
293
- - test/fixtures/basics/data/empty_table.rb
294
- - test/fixtures/basics/data/non_empty_table.rb
295
- - test/fixtures/basics/data/parts.rb
296
- - test/fixtures/basics/data/suppliers.rb
297
- - test/fixtures/basics/data/supplies.rb
298
- - test/fixtures/basics/dbagile.idx
299
- - test/fixtures/basics/fixtures.yaml
300
- - test/fixtures/basics/robust.db
301
- - test/fixtures/basics/suppliers.yaml
302
- - test/fixtures/basics/test.db
303
- - test/fixtures/empty/dbagile.idx
423
+ - test/contract/schema/transaction_driven/create_table.ex
424
+ - test/spec_helper.rb
304
425
  - test/fixtures.rb
305
- - test/restful/delete/no_format.ex
306
- - test/restful/delete.spec
307
- - test/restful/get/csv_format.ex
308
- - test/restful/get/json_format.ex
309
- - test/restful/get/query_string.ex
310
- - test/restful/get/text_format.ex
311
- - test/restful/get/yaml_format.ex
312
- - test/restful/get.spec
313
- - test/restful/post/no_format.ex
314
- - test/restful/post.spec
426
+ - test/commands.spec
427
+ - test/commands/sql/send.spec
428
+ - test/commands/sql/scripts/delete.sql
429
+ - test/commands/sql/scripts/insert.sql
430
+ - test/commands/sql/drop.spec
431
+ - test/commands/sql/show.spec
432
+ - test/commands/sql/heading.spec
433
+ - test/commands/dba.spec
434
+ - test/commands/db/list.spec
435
+ - test/commands/db/use.spec
436
+ - test/commands/db/rm.spec
437
+ - test/commands/db/add.spec
438
+ - test/commands/db/ping.spec
439
+ - test/commands/bulk/import.spec
440
+ - test/commands/bulk/export.spec
441
+ - test/commands/repo/create.spec
442
+ - test/commands/schema/diff.spec
443
+ - test/commands/schema/sql_script.spec
444
+ - test/commands/schema/check.spec
445
+ - test/commands/schema/fixtures/effective.yaml
446
+ - test/commands/schema/fixtures/add_constraint.yaml
447
+ - test/commands/schema/fixtures/invalid.yaml
448
+ - test/commands/schema/fixtures/announced.yaml
449
+ - test/commands/schema/dump.spec
315
450
  - test/restful.spec
316
- - test/run_all_suite.rb
317
- - test/spec_helper.rb
318
- - test/support/be_a_valid_json_string.rb
319
451
  - test/support/be_a_valid_yaml_string.rb
320
- - test/unit/adapter/factor.spec
321
- - test/unit/adapter/sequel/new.spec
452
+ - test/support/be_a_valid_json_string.rb
453
+ - test/run_all_suite.rb
454
+ - test/assumptions.spec
455
+ - test/unit/contract/utils/delegate/delegate.spec
456
+ - test/unit/fixtures.rb
322
457
  - test/unit/command/api.spec
323
458
  - test/unit/command/command_for.spec
459
+ - test/unit/command/sanity.spec
324
460
  - test/unit/command/command_name_of.spec
325
461
  - test/unit/command/ruby_method_for.spec
326
- - test/unit/command/sanity.spec
327
- - test/unit/contract/utils/delegate/delegate.spec
328
- - test/unit/core/chain/chain.spec
329
- - test/unit/core/chain/connect.spec
330
- - test/unit/core/chain/delegate_chain.spec
331
- - test/unit/core/chain/initialize.spec
332
- - test/unit/core/chain/plug.spec
462
+ - test/unit/io/to_xxx.spec
463
+ - test/unit/tools/tuple/tuple_heading.spec
464
+ - test/unit/tools/tuple/tuple_project.spec
465
+ - test/unit/tools/tuple/tuple_key.spec
466
+ - test/unit/tools/ruby/fixtures.rb
467
+ - test/unit/tools/ruby/rdoc_file_paragraphs.spec
468
+ - test/unit/tools/ruby/extract_file_rdoc.spec
469
+ - test/unit/tools/ruby/optional_args_block_call.spec
470
+ - test/unit/tools/ruby/parent_module.spec
471
+ - test/unit/tools/ruby/fixtures/rdoc.txt
472
+ - test/unit/tools/ruby/class_unqualified_name.spec
473
+ - test/unit/plugin/tuple_heading.spec
474
+ - test/unit/plugin/options.spec
475
+ - test/unit/plugin/with_options.spec
333
476
  - test/unit/core/io/dsl/scope.spec
477
+ - test/unit/core/repository/fixtures.rb
334
478
  - test/unit/core/repository/create_bang.spec
335
- - test/unit/core/repository/current.spec
479
+ - test/unit/core/repository/load.spec
480
+ - test/unit/core/repository/to_yaml.spec
336
481
  - test/unit/core/repository/database.spec
337
482
  - test/unit/core/repository/fixtures/corrupted/dbagile.idx
338
483
  - test/unit/core/repository/fixtures/test_and_prod/dbagile.idx
339
- - test/unit/core/repository/fixtures.rb
340
484
  - test/unit/core/repository/has_database_q.spec
341
- - test/unit/core/repository/load.spec
342
- - test/unit/core/repository/to_yaml.spec
343
- - test/unit/core/schema/check.spec
344
- - test/unit/core/schema/empty_q.spec
485
+ - test/unit/core/repository/current.spec
486
+ - test/unit/core/transaction/transaction.spec
487
+ - test/unit/core/chain/connect.spec
488
+ - test/unit/core/chain/delegate_chain.spec
489
+ - test/unit/core/chain/chain.spec
490
+ - test/unit/core/chain/initialize.spec
491
+ - test/unit/core/chain/plug.spec
492
+ - test/unit/core/schema/fixtures.rb
493
+ - test/unit/core/schema/part_keys.spec
494
+ - test/unit/core/schema/stage_script.spec
495
+ - test/unit/core/schema/yaml_load.spec
345
496
  - test/unit/core/schema/filter.spec
346
- - test/unit/core/schema/fixtures/dbagile.yaml
347
- - test/unit/core/schema/fixtures/empty.yaml
497
+ - test/unit/core/schema/sanity.spec
498
+ - test/unit/core/schema/empty_q.spec
499
+ - test/unit/core/schema/to_yaml.spec
500
+ - test/unit/core/schema/minus.spec
501
+ - test/unit/core/schema/merge.spec
502
+ - test/unit/core/schema/check.spec
348
503
  - test/unit/core/schema/fixtures/invalid.yaml
504
+ - test/unit/core/schema/fixtures/right_minus_left.yaml
505
+ - test/unit/core/schema/fixtures/views.yaml
506
+ - test/unit/core/schema/fixtures/right.yaml
507
+ - test/unit/core/schema/fixtures/empty.yaml
349
508
  - test/unit/core/schema/fixtures/left.yaml
509
+ - test/unit/core/schema/fixtures/dbagile.yaml
350
510
  - test/unit/core/schema/fixtures/left_minus_right.yaml
351
- - test/unit/core/schema/fixtures/right.yaml
352
- - test/unit/core/schema/fixtures/right_minus_left.yaml
353
511
  - test/unit/core/schema/fixtures/suppliers_and_parts.yaml
354
- - test/unit/core/schema/fixtures.rb
355
- - test/unit/core/schema/merge.spec
356
- - test/unit/core/schema/minus.spec
357
- - test/unit/core/schema/sanity.spec
358
512
  - test/unit/core/schema/split.spec
359
- - test/unit/core/schema/stage_script.spec
360
- - test/unit/core/schema/to_yaml.spec
361
513
  - test/unit/core/schema/yaml_display.spec
362
- - test/unit/core/schema/yaml_load.spec
363
- - test/unit/core/transaction/transaction.spec
364
- - test/unit/fixtures.rb
365
- - test/unit/io/to_xxx.spec
366
- - test/unit/plugin/options.spec
367
- - test/unit/plugin/tuple_heading.spec
368
- - test/unit/plugin/with_options.spec
369
- - test/unit/tools/ruby/class_unqualified_name.spec
370
- - test/unit/tools/ruby/extract_file_rdoc.spec
371
- - test/unit/tools/ruby/fixtures/rdoc.txt
372
- - test/unit/tools/ruby/fixtures.rb
373
- - test/unit/tools/ruby/optional_args_block_call.spec
374
- - test/unit/tools/ruby/parent_module.spec
375
- - test/unit/tools/ruby/rdoc_file_paragraphs.spec
376
- - test/unit/tools/tuple/tuple_heading.spec
377
- - test/unit/tools/tuple/tuple_key.spec
378
- - test/unit/tools/tuple/tuple_project.spec
514
+ - test/unit/adapter/sequel/new.spec
515
+ - test/unit/adapter/factor.spec
379
516
  - test/unit.spec
517
+ - test/assumptions/fixtures.rb
518
+ - test/assumptions/stdlib/pathname.spec
519
+ - test/assumptions/inheritance.spec
520
+ - test/assumptions/sequel/autonumber.spec
521
+ - test/assumptions/sequel/connect.spec
522
+ - test/assumptions/sequel/test.db
523
+ - test/assumptions/yaml/fixtures.rb
524
+ - test/assumptions/yaml/to_yaml.spec
525
+ - test/assumptions/equality.spec
526
+ - test/fixtures/basics/data/basic_values.rb
527
+ - test/fixtures/basics/data/parts.rb
528
+ - test/fixtures/basics/data/supplies.rb
529
+ - test/fixtures/basics/data/non_empty_table.rb
530
+ - test/fixtures/basics/data/suppliers.rb
531
+ - test/fixtures/basics/data/empty_table.rb
532
+ - test/fixtures/basics/suppliers.yaml
533
+ - test/fixtures/basics/dbagile.idx
534
+ - test/fixtures/basics/test.db
535
+ - test/fixtures/basics/fixtures.yaml
536
+ - test/fixtures/basics/robust.db
537
+ - test/fixtures/empty/dbagile.idx
538
+ - test/restful/post/no_format.ex
539
+ - test/restful/get.spec
540
+ - test/restful/get/text_format.ex
541
+ - test/restful/get/yaml_format.ex
542
+ - test/restful/get/query_string.ex
543
+ - test/restful/get/csv_format.ex
544
+ - test/restful/get/html_format.ex
545
+ - test/restful/get/json_format.ex
546
+ - test/restful/post.spec
547
+ - test/restful/delete.spec
548
+ - test/restful/delete/no_format.ex
549
+ - test/contract.spec
380
550
  - bin/dba
381
551
  - README.textile
382
552
  - LICENCE.textile
@@ -414,7 +584,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
414
584
  requirements: []
415
585
 
416
586
  rubyforge_project:
417
- rubygems_version: 1.3.7
587
+ rubygems_version: 1.6.2
418
588
  signing_key:
419
589
  specification_version: 3
420
590
  summary: DbAgile - Agile Interface on top of SQL Databases