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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9fc61b1a739c8f00b831daaf288f5cb4e710527a
4
- data.tar.gz: 2a7e1a181d5763b163c6721e60ba34cf04fe5ff0
3
+ metadata.gz: 28b49c78e85fd4964057ab0ca8e73cd48179aa5c
4
+ data.tar.gz: 97ed88d66e38674010d9afc9afae04ce36b16890
5
5
  SHA512:
6
- metadata.gz: 90519812649e5475c8b59d0806277aca75a34df3479c6b6e9a8b5e4030cefe579a8c40b845b1ffc294c0a8484a7ac80df20bb6d09bf3ea8aff1a57127d2db901
7
- data.tar.gz: 316b09241dae544760774e133a84d8508fe45c9ed83843fd96a78500c5866f5418c69f62e1af2af3ccc3d23b89721c1830897dd139fcccc216a10143946bfddb
6
+ metadata.gz: cee74eb298206d67927410e6245298eadba2bc9e5edc7f99a28a3f551a4224303ffe0de0e3e30ed183bbb2d39395604d1aac4e5e1b88acbef0c2caba6b259765
7
+ data.tar.gz: 417aaa33286bc8c25b591691f0478726c0a8246d26a0f12591f65ed4fa6b51abe78ce56dbb4cc00cb25d6571bddb4988aedcbf19c376116b0c94785d45b090e1
@@ -5,11 +5,14 @@
5
5
  ---
6
6
  sudo: false
7
7
  rvm:
8
- - 2.1.5
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.5** with activerecord **4.2**, using **mysql2**, **sqlite3** or **postgresql**
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
@@ -0,0 +1,3 @@
1
+ eval File.read File.expand_path('../../Gemfile.base', __FILE__)
2
+
3
+ gem "activerecord", "~> 5.0.0"
@@ -0,0 +1,10 @@
1
+ require "pathname"
2
+ eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)
3
+
4
+ platform :ruby do
5
+ gem "mysql2"
6
+ end
7
+
8
+ platform :jruby do
9
+ gem 'activerecord-jdbcmysql-adapter'
10
+ end
@@ -0,0 +1,10 @@
1
+ require "pathname"
2
+ eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)
3
+
4
+ platform :ruby do
5
+ gem "pg"
6
+ end
7
+
8
+ platform :jruby do
9
+ gem 'activerecord-jdbcpostgresql-adapter'
10
+ end
@@ -0,0 +1,10 @@
1
+ require "pathname"
2
+ eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)
3
+
4
+ platform :ruby do
5
+ gem "sqlite3"
6
+ end
7
+
8
+ platform :jruby do
9
+ gem 'activerecord-jdbcsqlite3-adapter', '>=1.3.0.beta2'
10
+ end
@@ -1,5 +1,5 @@
1
1
  module SchemaPlus
2
2
  module Columns
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -1,7 +1,8 @@
1
1
  ruby:
2
- - 2.1.5
2
+ - 2.3.1
3
3
  activerecord:
4
4
  - 4.2
5
+ - 5.0
5
6
  db:
6
7
  - mysql2
7
8
  - sqlite3
@@ -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", "~> 4.2"
21
- gem.add_dependency "schema_plus_indexes", "~> 0.1"
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"
@@ -22,7 +22,14 @@ describe "Column" do
22
22
  when SchemaDev::Rspec::Helpers.sqlite3?
23
23
  { "sql_type" => "varchar" }
24
24
  end
25
- expect(JSON.parse(@login.to_json)).to include(type.merge("name" => "login"))
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.2
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-06-27 00:00:00.000000000 Z
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.1'
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.1'
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.2.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.