schema_plus_tables 0.1.0
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.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +18 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +114 -0
- data/Rakefile +9 -0
- data/gemfiles/Gemfile.base +4 -0
- data/gemfiles/activerecord-4.2/Gemfile.base +3 -0
- data/gemfiles/activerecord-4.2/Gemfile.mysql2 +10 -0
- data/gemfiles/activerecord-4.2/Gemfile.postgresql +10 -0
- data/gemfiles/activerecord-4.2/Gemfile.sqlite3 +10 -0
- data/lib/schema_plus/tables/middleware.rb +35 -0
- data/lib/schema_plus/tables/sql.rb +14 -0
- data/lib/schema_plus/tables/version.rb +5 -0
- data/lib/schema_plus/tables.rb +7 -0
- data/lib/schema_plus_tables.rb +1 -0
- data/schema_dev.yml +8 -0
- data/schema_plus_tables.gemspec +30 -0
- data/spec/drop_table_spec.rb +65 -0
- data/spec/spec_helper.rb +31 -0
- metadata +198 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 842f4240eaf326024a7a25694a0eefa3ef6d68b1
|
4
|
+
data.tar.gz: 1699c133c3156c318644d75e1dd95d7d5e741bf9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3c55f25406161a6a23d8de682ddf065d2142439954ccb747764e4a9fad7ce521b7ad7654ce891aa0423fe65e4a63798e339046c7fd4989ec4610be195ded3b75
|
7
|
+
data.tar.gz: 6a6c3046fe1c13aac8ee4572420e5944961c0f155d93ec1b7933c2e07050aeb2f753e8c20a1e22b93977d9fb8b835ec601fb900d0cf8383ab7e9e555b099fc9e
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file was auto-generated by the schema_dev tool, based on the data in
|
2
|
+
# ./schema_dev.yml
|
3
|
+
# Please do not edit this file; any changes will be overwritten next time
|
4
|
+
# schema_dev gets run.
|
5
|
+
---
|
6
|
+
sudo: false
|
7
|
+
rvm:
|
8
|
+
- 2.1.5
|
9
|
+
gemfile:
|
10
|
+
- gemfiles/activerecord-4.2/Gemfile.mysql2
|
11
|
+
- gemfiles/activerecord-4.2/Gemfile.postgresql
|
12
|
+
- gemfiles/activerecord-4.2/Gemfile.sqlite3
|
13
|
+
env: POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis
|
14
|
+
addons:
|
15
|
+
postgresql: '9.3'
|
16
|
+
before_script: bundle exec rake create_databases
|
17
|
+
after_script: bundle exec rake drop_databases
|
18
|
+
script: bundle exec rake travis
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 ronen barzel
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
[](http://badge.fury.io/rb/schema_plus_tables)
|
2
|
+
[](http://travis-ci.org/SchemaPlus/schema_plus_tables)
|
3
|
+
[](https://coveralls.io/r/SchemaPlus/schema_plus_tables)
|
4
|
+
[](https://gemnasium.com/SchemaPlus/schema_plus_tables)
|
5
|
+
|
6
|
+
# SchemaPlus::Tables
|
7
|
+
|
8
|
+
SchemaPlus::Tables adds useful features to ActiveSupport's handling of tables. (Actually, only one for now)
|
9
|
+
|
10
|
+
SchemaPlus::Tables is part of the [SchemaPlus](https://github.com/SchemaPlus/) family of Ruby on Rails extension gems.
|
11
|
+
|
12
|
+
## Installation
|
13
|
+
|
14
|
+
<!-- SCHEMA_DEV: TEMPLATE INSTALLATION - begin -->
|
15
|
+
<!-- These lines are auto-inserted from a schema_dev template -->
|
16
|
+
As usual:
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
gem "schema_plus_tables" # in a Gemfile
|
20
|
+
gem.add_dependency "schema_plus_tables" # in a .gemspec
|
21
|
+
```
|
22
|
+
|
23
|
+
To use with a rails app, also include
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
gem "schema_monkey_rails"
|
27
|
+
```
|
28
|
+
|
29
|
+
which creates a Railtie to that will insert SchemaPlus::Tables appropriately into the rails stack. To use with Padrino, see [schema_monkey_padrino](https://github.com/SchemaPlus/schema_monkey_padrino).
|
30
|
+
|
31
|
+
<!-- SCHEMA_DEV: TEMPLATE INSTALLATION - end -->
|
32
|
+
|
33
|
+
## Usage
|
34
|
+
|
35
|
+
### drop_table if exists
|
36
|
+
|
37
|
+
SchemaPlus::Tables adds the `if_exists:` option:
|
38
|
+
|
39
|
+
```ruby
|
40
|
+
ActiveRecord::Migration.drop_table "table_name", if_exists: true
|
41
|
+
```
|
42
|
+
|
43
|
+
## Deprecations
|
44
|
+
|
45
|
+
SchemaPlus 1.8.x provided some options and accessors that are now available in ActiveRecord 4.2, but in slightly different form. SchemaPlus::Tables still supports the SchemaPlus 1.8.x form but issues deprecation warnings in favor of the rails
|
46
|
+
form:
|
47
|
+
|
48
|
+
* `Migration.drop_table` deprecates option
|
49
|
+
* `cascade: true` => `force: :cascade`
|
50
|
+
|
51
|
+
|
52
|
+
## Compatibility
|
53
|
+
|
54
|
+
SchemaPlus::Tables is tested on:
|
55
|
+
|
56
|
+
<!-- SCHEMA_DEV: MATRIX - begin -->
|
57
|
+
<!-- These lines are auto-generated by schema_dev based on schema_dev.yml -->
|
58
|
+
* ruby **2.1.5** with activerecord **4.2**, using **mysql2**, **sqlite3** or **postgresql**
|
59
|
+
|
60
|
+
<!-- SCHEMA_DEV: MATRIX - end -->
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
## History
|
65
|
+
|
66
|
+
* 0.1.0 - Initial release, extracted from SchemaPlus 1.x
|
67
|
+
|
68
|
+
## Development & Testing
|
69
|
+
|
70
|
+
Are you interested in contributing to SchemaPlus::Tables? Thanks! Please follow
|
71
|
+
the standard protocol: fork, feature branch, develop, push, and issue pull
|
72
|
+
request.
|
73
|
+
|
74
|
+
Some things to know about to help you develop and test:
|
75
|
+
|
76
|
+
<!-- SCHEMA_DEV: TEMPLATE USES SCHEMA_DEV - begin -->
|
77
|
+
<!-- These lines are auto-inserted from a schema_dev template -->
|
78
|
+
* **schema_dev**: SchemaPlus::Tables uses [schema_dev](https://github.com/SchemaPlus/schema_dev) to
|
79
|
+
facilitate running rspec tests on the matrix of ruby, activerecord, and database
|
80
|
+
versions that the gem supports, both locally and on
|
81
|
+
[travis-ci](http://travis-ci.org/SchemaPlus/schema_plus_tables)
|
82
|
+
|
83
|
+
To to run rspec locally on the full matrix, do:
|
84
|
+
|
85
|
+
$ schema_dev bundle install
|
86
|
+
$ schema_dev rspec
|
87
|
+
|
88
|
+
You can also run on just one configuration at a time; For info, see `schema_dev --help` or the [schema_dev](https://github.com/SchemaPlus/schema_dev) README.
|
89
|
+
|
90
|
+
The matrix of configurations is specified in `schema_dev.yml` in
|
91
|
+
the project root.
|
92
|
+
|
93
|
+
|
94
|
+
<!-- SCHEMA_DEV: TEMPLATE USES SCHEMA_DEV - end -->
|
95
|
+
|
96
|
+
<!-- SCHEMA_DEV: TEMPLATE USES SCHEMA_PLUS_CORE - begin -->
|
97
|
+
<!-- These lines are auto-inserted from a schema_dev template -->
|
98
|
+
* **schema_plus_core**: SchemaPlus::Tables uses the SchemaPlus::Core API that
|
99
|
+
provides middleware callback stacks to make it easy to extend
|
100
|
+
ActiveRecord's behavior. If that API is missing something you need for
|
101
|
+
your contribution, please head over to
|
102
|
+
[schema_plus_core](https://github/SchemaPlus/schema_plus_core) and open
|
103
|
+
an issue or pull request.
|
104
|
+
|
105
|
+
<!-- SCHEMA_DEV: TEMPLATE USES SCHEMA_PLUS_CORE - end -->
|
106
|
+
|
107
|
+
<!-- SCHEMA_DEV: TEMPLATE USES SCHEMA_MONKEY - begin -->
|
108
|
+
<!-- These lines are auto-inserted from a schema_dev template -->
|
109
|
+
* **schema_monkey**: SchemaPlus::Tables is implemented as a
|
110
|
+
[schema_monkey](https://github.com/SchemaPlus/schema_monkey) client,
|
111
|
+
using [schema_monkey](https://github.com/SchemaPlus/schema_monkey)'s
|
112
|
+
convention-based protocols for extending ActiveRecord and using middleware stacks.
|
113
|
+
|
114
|
+
<!-- SCHEMA_DEV: TEMPLATE USES SCHEMA_MONKEY - end -->
|
data/Rakefile
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
module SchemaPlus::Tables
|
2
|
+
module Middleware
|
3
|
+
|
4
|
+
module Migration
|
5
|
+
module DropTable
|
6
|
+
|
7
|
+
def before(env)
|
8
|
+
if env.options[:cascade]
|
9
|
+
ActiveSupport::Deprecation.warn "drop_table option `cascade: true` is deprecated, use `force: :cascade` instead"
|
10
|
+
env.options[:force] = :cascade
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
module Mysql
|
15
|
+
def implement(env)
|
16
|
+
env.connection.execute Sql.drop_table(env, support_temporary: true, support_cascade: true)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
module Postgresql
|
21
|
+
def implement(env)
|
22
|
+
env.connection.execute Sql.drop_table(env, support_temporary: false, support_cascade: true)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
module Sqlite3
|
27
|
+
def implement(env)
|
28
|
+
env.connection.execute Sql.drop_table(env, support_temporary: false, support_cascade: false)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module SchemaPlus::Tables
|
2
|
+
module Sql
|
3
|
+
|
4
|
+
def self.drop_table(env, support_temporary:, support_cascade:)
|
5
|
+
sql = "DROP"
|
6
|
+
sql += ' TEMPORARY' if env.options[:temporary] and support_temporary
|
7
|
+
sql += " TABLE"
|
8
|
+
sql += " IF EXISTS" if env.options[:if_exists] # added by schema_plus
|
9
|
+
sql += " #{env.connection.quote_table_name(env.table_name)}"
|
10
|
+
sql += " CASCADE" if env.options[:force] == :cascade and support_cascade
|
11
|
+
sql
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative 'schema_plus/tables'
|
data/schema_dev.yml
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'schema_plus/tables/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "schema_plus_tables"
|
8
|
+
gem.version = SchemaPlus::Tables::VERSION
|
9
|
+
gem.authors = ["ronen barzel"]
|
10
|
+
gem.email = ["ronen@barzel.org"]
|
11
|
+
gem.summary = %q{Extends ActiveRecord's handling of tables}
|
12
|
+
gem.homepage = "https://github.com/SchemaPlus/schema_plus_tables"
|
13
|
+
gem.license = "MIT"
|
14
|
+
|
15
|
+
gem.files = `git ls-files -z`.split("\x0")
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
+
gem.require_paths = ["lib"]
|
19
|
+
|
20
|
+
gem.add_dependency "activerecord", "~> 4.2"
|
21
|
+
gem.add_dependency "schema_plus_core", "~> 0.2"
|
22
|
+
|
23
|
+
gem.add_development_dependency "bundler", "~> 1.7"
|
24
|
+
gem.add_development_dependency "rake", "~> 10.0"
|
25
|
+
gem.add_development_dependency "rspec", "~> 3.0"
|
26
|
+
gem.add_development_dependency "rspec-given"
|
27
|
+
gem.add_development_dependency "schema_dev", "~> 3.2", ">= 3.2.2"
|
28
|
+
gem.add_development_dependency "simplecov"
|
29
|
+
gem.add_development_dependency "simplecov-gem-profile"
|
30
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "Drop Table" do
|
4
|
+
|
5
|
+
let(:migration) { ActiveRecord::Migration }
|
6
|
+
let(:connection) { ActiveRecord::Base.connection }
|
7
|
+
|
8
|
+
before (:each) do
|
9
|
+
migration.create_table "things"
|
10
|
+
end
|
11
|
+
|
12
|
+
context "deprecation" do
|
13
|
+
|
14
|
+
before(:each) do
|
15
|
+
migration.create_table("referer") { |t| t.integer :thing_id }
|
16
|
+
migration.add_foreign_key "referer", "things"
|
17
|
+
expect { migration.drop_table "things" }.to raise_error ActiveRecord::StatementInvalid, /cannot.*drop/i
|
18
|
+
end if SchemaDev::Rspec::Helpers.postgresql?
|
19
|
+
|
20
|
+
it "deprecates :cascade => true" do
|
21
|
+
expect(ActiveSupport::Deprecation).to receive(:warn).with(/cascade/)
|
22
|
+
migration.drop_table "things", cascade: true
|
23
|
+
expect(connection.tables).not_to include "things"
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
context "if_exists" do
|
29
|
+
|
30
|
+
When(:drop) { migration.drop_table table, if_exists: if_exists }
|
31
|
+
|
32
|
+
context "not specified" do
|
33
|
+
|
34
|
+
Given(:if_exists) { false }
|
35
|
+
|
36
|
+
context "on existing table" do
|
37
|
+
Given(:table) { "things" }
|
38
|
+
Then { expect(connection.tables).to be_blank }
|
39
|
+
end
|
40
|
+
|
41
|
+
context "on nonexistent table" do
|
42
|
+
Given(:table) { "nonesuch" }
|
43
|
+
Then { expect(drop).to have_failed }
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
|
48
|
+
context "specified" do
|
49
|
+
|
50
|
+
Given(:if_exists) { true }
|
51
|
+
|
52
|
+
context "on existing table" do
|
53
|
+
Given(:table) { "things" }
|
54
|
+
Then { expect(connection.tables).to be_blank }
|
55
|
+
end
|
56
|
+
|
57
|
+
context "on nonexistent table" do
|
58
|
+
Given(:table) { "nonesuch" }
|
59
|
+
Then { expect(drop).not_to have_failed }
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
require 'simplecov-gem-profile'
|
3
|
+
SimpleCov.start "gem"
|
4
|
+
|
5
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
6
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
7
|
+
|
8
|
+
require 'rspec'
|
9
|
+
require 'rspec/given'
|
10
|
+
require 'active_record'
|
11
|
+
require 'schema_plus_tables'
|
12
|
+
require 'schema_dev/rspec'
|
13
|
+
|
14
|
+
SchemaDev::Rspec.setup
|
15
|
+
|
16
|
+
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}
|
17
|
+
|
18
|
+
RSpec.configure do |config|
|
19
|
+
config.warnings = true
|
20
|
+
config.around(:each) do |example|
|
21
|
+
ActiveRecord::Migration.suppress_messages do
|
22
|
+
ActiveRecord::Base.connection.tables.each do |table|
|
23
|
+
ActiveRecord::Migration.drop_table table, force: :cascade
|
24
|
+
end
|
25
|
+
example.run
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
SimpleCov.command_name "[ruby #{RUBY_VERSION} - ActiveRecord #{::ActiveRecord::VERSION::STRING} - #{ActiveRecord::Base.connection.adapter_name}]"
|
31
|
+
|
metadata
ADDED
@@ -0,0 +1,198 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: schema_plus_tables
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ronen barzel
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-02-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activerecord
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: schema_plus_core
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.2'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.7'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.7'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec-given
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: schema_dev
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.2'
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 3.2.2
|
107
|
+
type: :development
|
108
|
+
prerelease: false
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - "~>"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '3.2'
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 3.2.2
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: simplecov
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: simplecov-gem-profile
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
description:
|
146
|
+
email:
|
147
|
+
- ronen@barzel.org
|
148
|
+
executables: []
|
149
|
+
extensions: []
|
150
|
+
extra_rdoc_files: []
|
151
|
+
files:
|
152
|
+
- ".gitignore"
|
153
|
+
- ".travis.yml"
|
154
|
+
- Gemfile
|
155
|
+
- LICENSE.txt
|
156
|
+
- README.md
|
157
|
+
- Rakefile
|
158
|
+
- gemfiles/Gemfile.base
|
159
|
+
- gemfiles/activerecord-4.2/Gemfile.base
|
160
|
+
- gemfiles/activerecord-4.2/Gemfile.mysql2
|
161
|
+
- gemfiles/activerecord-4.2/Gemfile.postgresql
|
162
|
+
- gemfiles/activerecord-4.2/Gemfile.sqlite3
|
163
|
+
- lib/schema_plus/tables.rb
|
164
|
+
- lib/schema_plus/tables/middleware.rb
|
165
|
+
- lib/schema_plus/tables/sql.rb
|
166
|
+
- lib/schema_plus/tables/version.rb
|
167
|
+
- lib/schema_plus_tables.rb
|
168
|
+
- schema_dev.yml
|
169
|
+
- schema_plus_tables.gemspec
|
170
|
+
- spec/drop_table_spec.rb
|
171
|
+
- spec/spec_helper.rb
|
172
|
+
homepage: https://github.com/SchemaPlus/schema_plus_tables
|
173
|
+
licenses:
|
174
|
+
- MIT
|
175
|
+
metadata: {}
|
176
|
+
post_install_message:
|
177
|
+
rdoc_options: []
|
178
|
+
require_paths:
|
179
|
+
- lib
|
180
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
181
|
+
requirements:
|
182
|
+
- - ">="
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: '0'
|
185
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - ">="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
requirements: []
|
191
|
+
rubyforge_project:
|
192
|
+
rubygems_version: 2.2.2
|
193
|
+
signing_key:
|
194
|
+
specification_version: 4
|
195
|
+
summary: Extends ActiveRecord's handling of tables
|
196
|
+
test_files:
|
197
|
+
- spec/drop_table_spec.rb
|
198
|
+
- spec/spec_helper.rb
|