schema_plus_columns 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +2 -9
- data/gemfiles/activerecord-4.2/Gemfile.base +1 -1
- data/gemfiles/activerecord-4.2/Gemfile.mysql2 +2 -2
- data/lib/schema_plus/columns/version.rb +1 -1
- data/schema_plus_columns.gemspec +2 -1
- data/spec/column_spec.rb +1 -1
- metadata +18 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3401890ad9df369ce6f1cda193178c0b8731337
|
4
|
+
data.tar.gz: 5408a812f383e8550220208f6c29044d0c0980a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5ee167c0b47059d51a503cd6195be1fd88ba1b95fae81ea4c00eb68da6495f131f66565d2b6d5ed4f9f912ca462c79254f8743a22afd6eab3638019a084a8a8
|
7
|
+
data.tar.gz: 5e8852254b4055c37fbae8a1b92e30c669a1af843cfc220884ebf03e9f69f148371053a555106a6d9b2f8ccaf2b788de7cb97f806b007cbb70d882d73ac509ca
|
data/.travis.yml
CHANGED
@@ -12,7 +12,7 @@ gemfile:
|
|
12
12
|
- gemfiles/activerecord-4.2/Gemfile.sqlite3
|
13
13
|
env: POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis
|
14
14
|
addons:
|
15
|
-
postgresql: '9.
|
15
|
+
postgresql: '9.4'
|
16
16
|
before_script: bundle exec rake create_databases
|
17
17
|
after_script: bundle exec rake drop_databases
|
18
18
|
script: bundle exec rake travis
|
data/README.md
CHANGED
@@ -20,14 +20,6 @@ gem "schema_plus_columns" # in a Gemfile
|
|
20
20
|
gem.add_dependency "schema_plus_columns" # in a .gemspec
|
21
21
|
```
|
22
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::Columns appropriately into the rails stack. To use with Padrino, see [schema_monkey_padrino](https://github.com/SchemaPlus/schema_monkey_padrino).
|
30
|
-
|
31
23
|
<!-- SCHEMA_DEV: TEMPLATE INSTALLATION - end -->
|
32
24
|
|
33
25
|
## Usage
|
@@ -72,6 +64,7 @@ SchemaPlus::Columns is tested on:
|
|
72
64
|
|
73
65
|
## History
|
74
66
|
|
67
|
+
* 0.1.1 - Explicit gem dependencies
|
75
68
|
* 0.1.0 - Initial release, extracted from SchemaPlus 1.x
|
76
69
|
|
77
70
|
## Development & Testing
|
@@ -108,7 +101,7 @@ Some things to know about to help you develop and test:
|
|
108
101
|
provides middleware callback stacks to make it easy to extend
|
109
102
|
ActiveRecord's behavior. If that API is missing something you need for
|
110
103
|
your contribution, please head over to
|
111
|
-
[schema_plus_core](https://github/SchemaPlus/schema_plus_core) and open
|
104
|
+
[schema_plus_core](https://github.com/SchemaPlus/schema_plus_core) and open
|
112
105
|
an issue or pull request.
|
113
106
|
|
114
107
|
<!-- SCHEMA_DEV: TEMPLATE USES SCHEMA_PLUS_CORE - end -->
|
data/schema_plus_columns.gemspec
CHANGED
@@ -19,11 +19,12 @@ Gem::Specification.new do |gem|
|
|
19
19
|
|
20
20
|
gem.add_dependency "activerecord", "~> 4.2"
|
21
21
|
gem.add_dependency "schema_plus_indexes", "~> 0.1"
|
22
|
+
gem.add_dependency "its-it", "~> 1.2"
|
22
23
|
|
23
24
|
gem.add_development_dependency "bundler", "~> 1.7"
|
24
25
|
gem.add_development_dependency "rake", "~> 10.0"
|
25
26
|
gem.add_development_dependency "rspec", "~> 3.0"
|
26
|
-
gem.add_development_dependency "schema_dev", "~> 3.
|
27
|
+
gem.add_development_dependency "schema_dev", "~> 3.6"
|
27
28
|
gem.add_development_dependency "simplecov"
|
28
29
|
gem.add_development_dependency "simplecov-gem-profile"
|
29
30
|
end
|
data/spec/column_spec.rb
CHANGED
@@ -144,7 +144,7 @@ describe "Column" do
|
|
144
144
|
|
145
145
|
def create_table(model, columns_with_options)
|
146
146
|
migration.suppress_messages do
|
147
|
-
migration.create_table model.table_name, :force =>
|
147
|
+
migration.create_table model.table_name, :force => :cascade do |t|
|
148
148
|
columns_with_options.each_pair do |column, options|
|
149
149
|
t.send :string, column, options
|
150
150
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schema_plus_columns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ronen barzel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: its-it
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.2'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.2'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,20 +100,14 @@ dependencies:
|
|
86
100
|
requirements:
|
87
101
|
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version: '3.
|
90
|
-
- - ">="
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: 3.2.2
|
103
|
+
version: '3.6'
|
93
104
|
type: :development
|
94
105
|
prerelease: false
|
95
106
|
version_requirements: !ruby/object:Gem::Requirement
|
96
107
|
requirements:
|
97
108
|
- - "~>"
|
98
109
|
- !ruby/object:Gem::Version
|
99
|
-
version: '3.
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: 3.2.2
|
110
|
+
version: '3.6'
|
103
111
|
- !ruby/object:Gem::Dependency
|
104
112
|
name: simplecov
|
105
113
|
requirement: !ruby/object:Gem::Requirement
|