schema_plus_columns 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -1
- data/README.md +3 -1
- data/gemfiles/activerecord-5.0/Gemfile.base +3 -0
- data/gemfiles/activerecord-5.0/Gemfile.mysql2 +10 -0
- data/gemfiles/activerecord-5.0/Gemfile.postgresql +10 -0
- data/gemfiles/activerecord-5.0/Gemfile.sqlite3 +10 -0
- data/lib/schema_plus/columns/version.rb +1 -1
- data/schema_dev.yml +2 -1
- data/schema_plus_columns.gemspec +3 -2
- data/spec/column_spec.rb +8 -1
- metadata +31 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28b49c78e85fd4964057ab0ca8e73cd48179aa5c
|
4
|
+
data.tar.gz: 97ed88d66e38674010d9afc9afae04ce36b16890
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cee74eb298206d67927410e6245298eadba2bc9e5edc7f99a28a3f551a4224303ffe0de0e3e30ed183bbb2d39395604d1aac4e5e1b88acbef0c2caba6b259765
|
7
|
+
data.tar.gz: 417aaa33286bc8c25b591691f0478726c0a8246d26a0f12591f65ed4fa6b51abe78ce56dbb4cc00cb25d6571bddb4988aedcbf19c376116b0c94785d45b090e1
|
data/.travis.yml
CHANGED
@@ -5,11 +5,14 @@
|
|
5
5
|
---
|
6
6
|
sudo: false
|
7
7
|
rvm:
|
8
|
-
- 2.1
|
8
|
+
- 2.3.1
|
9
9
|
gemfile:
|
10
10
|
- gemfiles/activerecord-4.2/Gemfile.mysql2
|
11
11
|
- gemfiles/activerecord-4.2/Gemfile.postgresql
|
12
12
|
- gemfiles/activerecord-4.2/Gemfile.sqlite3
|
13
|
+
- gemfiles/activerecord-5.0/Gemfile.mysql2
|
14
|
+
- gemfiles/activerecord-5.0/Gemfile.postgresql
|
15
|
+
- gemfiles/activerecord-5.0/Gemfile.sqlite3
|
13
16
|
env: POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis
|
14
17
|
addons:
|
15
18
|
postgresql: '9.4'
|
data/README.md
CHANGED
@@ -57,13 +57,15 @@ SchemaPlus::Columns is tested on:
|
|
57
57
|
|
58
58
|
<!-- SCHEMA_DEV: MATRIX - begin -->
|
59
59
|
<!-- These lines are auto-generated by schema_dev based on schema_dev.yml -->
|
60
|
-
* ruby **2.1
|
60
|
+
* ruby **2.3.1** with activerecord **4.2**, using **mysql2**, **sqlite3** or **postgresql**
|
61
|
+
* ruby **2.3.1** with activerecord **5.0**, using **mysql2**, **sqlite3** or **postgresql**
|
61
62
|
|
62
63
|
<!-- SCHEMA_DEV: MATRIX - end -->
|
63
64
|
|
64
65
|
|
65
66
|
## History
|
66
67
|
|
68
|
+
* 0.1.3 - AR 5.0 Support
|
67
69
|
* 0.1.2 - Missing require
|
68
70
|
* 0.1.1 - Explicit gem dependencies
|
69
71
|
* 0.1.0 - Initial release, extracted from SchemaPlus 1.x
|
data/schema_dev.yml
CHANGED
data/schema_plus_columns.gemspec
CHANGED
@@ -17,8 +17,9 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
-
gem.add_dependency "activerecord", "
|
21
|
-
gem.add_dependency "
|
20
|
+
gem.add_dependency "activerecord", ">= 4.2", "< 5.1"
|
21
|
+
gem.add_dependency "schema_plus_core"
|
22
|
+
gem.add_dependency "schema_plus_indexes", "~> 0.2"
|
22
23
|
gem.add_dependency "its-it", "~> 1.2"
|
23
24
|
|
24
25
|
gem.add_development_dependency "bundler", "~> 1.7"
|
data/spec/column_spec.rb
CHANGED
@@ -22,7 +22,14 @@ describe "Column" do
|
|
22
22
|
when SchemaDev::Rspec::Helpers.sqlite3?
|
23
23
|
{ "sql_type" => "varchar" }
|
24
24
|
end
|
25
|
-
|
25
|
+
if Gem::Requirement.new('< 5.0.0.alpha.1').satisfied_by?(::ActiveRecord.version)
|
26
|
+
expect(JSON.parse(@login.to_json)).to include(type.merge("name" => "login"))
|
27
|
+
else
|
28
|
+
expect(JSON.parse(@login.to_json)).to include(
|
29
|
+
"name" => "login",
|
30
|
+
"sql_type_metadata" => a_hash_including(type)
|
31
|
+
)
|
32
|
+
end
|
26
33
|
end
|
27
34
|
end
|
28
35
|
|
metadata
CHANGED
@@ -1,43 +1,63 @@
|
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ronen barzel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4.2'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5.1'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '4.2'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5.1'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: schema_plus_core
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
27
47
|
- !ruby/object:Gem::Dependency
|
28
48
|
name: schema_plus_indexes
|
29
49
|
requirement: !ruby/object:Gem::Requirement
|
30
50
|
requirements:
|
31
51
|
- - "~>"
|
32
52
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
53
|
+
version: '0.2'
|
34
54
|
type: :runtime
|
35
55
|
prerelease: false
|
36
56
|
version_requirements: !ruby/object:Gem::Requirement
|
37
57
|
requirements:
|
38
58
|
- - "~>"
|
39
59
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
60
|
+
version: '0.2'
|
41
61
|
- !ruby/object:Gem::Dependency
|
42
62
|
name: its-it
|
43
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,6 +174,10 @@ files:
|
|
154
174
|
- gemfiles/activerecord-4.2/Gemfile.mysql2
|
155
175
|
- gemfiles/activerecord-4.2/Gemfile.postgresql
|
156
176
|
- gemfiles/activerecord-4.2/Gemfile.sqlite3
|
177
|
+
- gemfiles/activerecord-5.0/Gemfile.base
|
178
|
+
- gemfiles/activerecord-5.0/Gemfile.mysql2
|
179
|
+
- gemfiles/activerecord-5.0/Gemfile.postgresql
|
180
|
+
- gemfiles/activerecord-5.0/Gemfile.sqlite3
|
157
181
|
- lib/schema_plus/columns.rb
|
158
182
|
- lib/schema_plus/columns/active_record/connection_adapters/column.rb
|
159
183
|
- lib/schema_plus/columns/middleware/model.rb
|
@@ -184,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
208
|
version: '0'
|
185
209
|
requirements: []
|
186
210
|
rubyforge_project:
|
187
|
-
rubygems_version: 2.
|
211
|
+
rubygems_version: 2.5.1
|
188
212
|
signing_key:
|
189
213
|
specification_version: 4
|
190
214
|
summary: Adds useful accessors to ActiveRecord's Column object.
|