sequel 4.2.0 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +28 -0
  3. data/doc/extensions.rdoc +84 -0
  4. data/doc/model_plugins.rdoc +270 -0
  5. data/doc/release_notes/4.3.0.txt +40 -0
  6. data/doc/testing.rdoc +3 -0
  7. data/lib/sequel/adapters/jdbc/as400.rb +4 -0
  8. data/lib/sequel/adapters/shared/mysql.rb +6 -1
  9. data/lib/sequel/adapters/shared/postgres.rb +2 -0
  10. data/lib/sequel/ast_transformer.rb +2 -0
  11. data/lib/sequel/extensions/error_sql.rb +71 -0
  12. data/lib/sequel/extensions/migration.rb +0 -1
  13. data/lib/sequel/extensions/pagination.rb +6 -2
  14. data/lib/sequel/extensions/pg_array.rb +12 -5
  15. data/lib/sequel/extensions/pg_hstore.rb +5 -3
  16. data/lib/sequel/extensions/pg_inet.rb +3 -3
  17. data/lib/sequel/extensions/pg_interval.rb +3 -3
  18. data/lib/sequel/extensions/pg_json.rb +3 -3
  19. data/lib/sequel/extensions/pg_range.rb +3 -3
  20. data/lib/sequel/extensions/pg_row.rb +3 -3
  21. data/lib/sequel/extensions/server_block.rb +11 -3
  22. data/lib/sequel/plugins/rcte_tree.rb +59 -39
  23. data/lib/sequel/plugins/tree.rb +13 -6
  24. data/lib/sequel/sql.rb +1 -1
  25. data/lib/sequel/version.rb +1 -1
  26. data/spec/adapters/postgres_spec.rb +17 -0
  27. data/spec/core/dataset_spec.rb +14 -0
  28. data/spec/core/schema_spec.rb +1 -0
  29. data/spec/extensions/error_sql_spec.rb +20 -0
  30. data/spec/extensions/migration_spec.rb +15 -0
  31. data/spec/extensions/pagination_spec.rb +19 -0
  32. data/spec/extensions/pg_array_spec.rb +3 -2
  33. data/spec/extensions/rcte_tree_spec.rb +135 -0
  34. data/spec/extensions/tree_spec.rb +130 -0
  35. data/spec/integration/database_test.rb +5 -0
  36. data/spec/integration/dataset_test.rb +4 -0
  37. data/spec/integration/plugin_test.rb +163 -177
  38. data/spec/integration/spec_helper.rb +4 -0
  39. metadata +10 -2
@@ -92,6 +92,10 @@ if DB.adapter_scheme == :ibmdb || (DB.adapter_scheme == :ado && DB.database_type
92
92
  end
93
93
  end
94
94
 
95
+ if ENV['SEQUEL_ERROR_SQL']
96
+ DB.extension :error_sql
97
+ end
98
+
95
99
  if ENV['SEQUEL_CONNECTION_VALIDATOR']
96
100
  ENV['SEQUEL_NO_CHECK_SQLS'] = '1'
97
101
  DB.extension(:connection_validator)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Evans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-01 00:00:00.000000000 Z
11
+ date: 2013-10-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The Database Toolkit for Ruby
14
14
  email: code@jeremyevans.net
@@ -46,6 +46,8 @@ extra_rdoc_files:
46
46
  - doc/security.rdoc
47
47
  - doc/postgresql.rdoc
48
48
  - doc/code_order.rdoc
49
+ - doc/model_plugins.rdoc
50
+ - doc/extensions.rdoc
49
51
  - doc/release_notes/1.0.txt
50
52
  - doc/release_notes/1.1.txt
51
53
  - doc/release_notes/1.3.txt
@@ -116,6 +118,7 @@ extra_rdoc_files:
116
118
  - doc/release_notes/4.0.0.txt
117
119
  - doc/release_notes/4.1.0.txt
118
120
  - doc/release_notes/4.2.0.txt
121
+ - doc/release_notes/4.3.0.txt
119
122
  files:
120
123
  - MIT-LICENSE
121
124
  - CHANGELOG
@@ -149,6 +152,8 @@ files:
149
152
  - doc/security.rdoc
150
153
  - doc/postgresql.rdoc
151
154
  - doc/code_order.rdoc
155
+ - doc/model_plugins.rdoc
156
+ - doc/extensions.rdoc
152
157
  - doc/release_notes/1.0.txt
153
158
  - doc/release_notes/1.1.txt
154
159
  - doc/release_notes/1.3.txt
@@ -219,6 +224,7 @@ files:
219
224
  - doc/release_notes/4.0.0.txt
220
225
  - doc/release_notes/4.1.0.txt
221
226
  - doc/release_notes/4.2.0.txt
227
+ - doc/release_notes/4.3.0.txt
222
228
  - spec/adapters/firebird_spec.rb
223
229
  - spec/adapters/informix_spec.rb
224
230
  - spec/adapters/mssql_spec.rb
@@ -315,6 +321,7 @@ files:
315
321
  - spec/extensions/query_literals_spec.rb
316
322
  - spec/extensions/pg_static_cache_updater_spec.rb
317
323
  - spec/extensions/pg_inet_spec.rb
324
+ - spec/extensions/error_sql_spec.rb
318
325
  - spec/extensions/eval_inspect_spec.rb
319
326
  - spec/extensions/pg_range_spec.rb
320
327
  - spec/extensions/split_array_nil_spec.rb
@@ -564,6 +571,7 @@ files:
564
571
  - lib/sequel/extensions/mssql_emulate_lateral_with_apply.rb
565
572
  - lib/sequel/extensions/pg_loose_count.rb
566
573
  - lib/sequel/extensions/pg_static_cache_updater.rb
574
+ - lib/sequel/extensions/error_sql.rb
567
575
  - lib/sequel/version.rb
568
576
  - lib/sequel/model.rb
569
577
  - lib/sequel/model/associations.rb