activerecord-typedstore 1.2.0 → 1.2.1

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
- SHA1:
3
- metadata.gz: aa72e9f075af5501961f90eac06098f00a6c2f6a
4
- data.tar.gz: a32a4b9b052cd8174756e9adf3062e5fd002da7b
2
+ SHA256:
3
+ metadata.gz: c64a99347b862a3a9b8a8dc80e69c41d7c0fe591504e2f24ff866847e519fcc2
4
+ data.tar.gz: 5a1253ee1d02872cece94c24bd66b1c0bd9eaff62149d3459ad8a1a1e038fc63
5
5
  SHA512:
6
- metadata.gz: 131bed9f1753d59907ad67582491a8b3dec85b597b15a3b458eecdf1ee33292bb75be81657e8778b2b49d3b7462aeff5e3671d411f6ea9def139cf1444738ee6
7
- data.tar.gz: d3ec0ae6531e13aa6a7217ee202f8d1342425a259217fe7d3b5e7c190987786becd6fcfea9e087a93442476918e5fe93010a6d9fc5aa7f3fd7c988529c6fb543
6
+ metadata.gz: fb8685fad1216a6c5de17fa5a440d0b6da5b4dbf6ecd6f4779159508b1995bc554972f513d72e13f0ed67628af2ca03197f920fa271cb8bb032b0d450479c370
7
+ data.tar.gz: 922692983a37101df34dc6491072190ce53aa6068f1e435c86c39e9d8f6727eec6733861c26f4e330d67c3e839ea1922cfaf627292e87d1e4e2df03e124272ff
data/.travis.yml CHANGED
@@ -1,12 +1,20 @@
1
1
  language: ruby
2
2
 
3
+ before_install:
4
+ - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
5
+ - gem install bundler -v '< 2'
6
+
3
7
  rvm:
4
- - 2.3.5
5
- - 2.4.2
8
+ - 2.3.8
9
+ - 2.4.6
10
+ - 2.5.5
11
+ - 2.6.2
6
12
  gemfile:
7
13
  - gemfiles/Gemfile.ar-4.2
8
14
  - gemfiles/Gemfile.ar-5.0
9
15
  - gemfiles/Gemfile.ar-5.1
16
+ - gemfiles/Gemfile.ar-5.2
17
+ - gemfiles/Gemfile.ar-master
10
18
 
11
19
  env:
12
20
  - TIMEZONE_AWARE=1 POSTGRES=1 MYSQL=1
@@ -14,6 +22,13 @@ env:
14
22
  - TIMEZONE_AWARE=1 POSTGRES=1 POSTGRES_JSON=1
15
23
  - TIMEZONE_AWARE=0 POSTGRES=1 POSTGRES_JSON=1
16
24
 
25
+ matrix:
26
+ exclude:
27
+ - rvm: 2.3.8
28
+ gemfile: 'gemfiles/Gemfile.ar-master'
29
+ - rvm: 2.4.6
30
+ gemfile: 'gemfiles/Gemfile.ar-master'
31
+
17
32
  addons:
18
33
  postgresql: 9.3
19
34
 
data/README.md CHANGED
@@ -94,10 +94,10 @@ end
94
94
 
95
95
  ```
96
96
 
97
- Type casting rules and attribute behavior are exactly the same as a for real database columns.
98
- Actually the only difference is that you wont be able to query on these attributes (unless you use JSON or Postgres HStore types) and that you don't need to do a migration to add / remove an attribute.
97
+ Type casting rules and attribute behavior are exactly the same as for real database columns.
98
+ Actually the only difference is that you won't be able to query on these attributes (unless you use JSON or Postgres HStore types) and that you don't need to do a migration to add / remove an attribute.
99
99
 
100
- If not, please fill an issue.
100
+ If not, then please fill in an issue.
101
101
 
102
102
  ## Serialization methods
103
103
 
@@ -134,7 +134,7 @@ Since HStore can only store strings:
134
134
  - `any` attributes will be converted to string
135
135
 
136
136
  If you use HStore because you need to be able to query the store from SQL, and any of these limitations are an issue for you,
137
- than you could probably use the JSON column type, which do not suffer from these limitations and is also queriable.
137
+ then you could probably use the JSON column type, which do not suffer from these limitations and is also queriable.
138
138
 
139
139
  ## Contributing
140
140
 
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'activerecord', '>= 4.2', '< 5.3'
21
+ spec.add_dependency 'activerecord', '>= 4.2'
22
22
 
23
23
  spec.add_development_dependency 'bundler', '~> 1.3'
24
24
  spec.add_development_dependency 'rake', '~> 10'
@@ -1,11 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gemspec path: '..'
4
+
5
+ gem 'sqlite3', '~> 1.3.0'
3
6
  gem 'activerecord', '~> 4.2.1'
4
- gem 'bundler', '~> 1.3'
5
- gem 'rake'
6
- gem 'rspec'
7
- gem 'sqlite3'
8
- gem 'pg', '~> 0.11'
9
- gem 'mysql2', ['>= 0.3.13', '< 0.5']
10
- gem 'database_cleaner'
11
- gem 'coveralls', require: false
@@ -1,11 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gemspec path: '..'
4
+
5
+ gem 'sqlite3', '~> 1.3.0'
3
6
  gem 'activerecord', '~> 5.0.0'
4
- gem 'bundler', '~> 1.3'
5
- gem 'rake'
6
- gem 'rspec'
7
- gem 'sqlite3'
8
- gem 'pg', '~> 0.11'
9
- gem 'mysql2', ['>= 0.3.13', '< 0.5']
10
- gem 'database_cleaner'
11
- gem 'coveralls', require: false
@@ -1,11 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gemspec path: '..'
4
+
3
5
  gem 'activerecord', '~> 5.1.0'
4
- gem 'bundler', '~> 1.3'
5
- gem 'rake'
6
- gem 'rspec'
7
- gem 'sqlite3'
8
- gem 'pg', '~> 0.11'
9
- gem 'mysql2', ['>= 0.3.13', '< 0.5']
10
- gem 'database_cleaner'
11
- gem 'coveralls', require: false
@@ -1,11 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'activerecord', ['>= 5.2.0.beta1', '< 5.3']
4
- gem 'bundler', '~> 1.3'
5
- gem 'rake'
6
- gem 'rspec'
7
- gem 'sqlite3'
8
- gem 'pg', '~> 0.11'
9
- gem 'mysql2', ['>= 0.3.13', '< 0.5']
10
- gem 'database_cleaner'
11
- gem 'coveralls', require: false
3
+ gemspec path: '..'
4
+
5
+ gem 'activerecord', '~> 5.2.0'
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '..'
4
+
5
+ gem 'activerecord', github: 'rails/rails'
@@ -1,6 +1,7 @@
1
1
  require 'active_record/typed_store/dsl'
2
2
  require 'active_record/typed_store/type'
3
3
  require 'active_record/typed_store/typed_hash'
4
+ require 'active_record/typed_store/identity_coder'
4
5
 
5
6
  module ActiveRecord::TypedStore
6
7
  module Extension
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module TypedStore
3
- VERSION = '1.2.0'
3
+ VERSION = '1.2.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-typedstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-02 00:00:00.000000000 Z
11
+ date: 2019-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -17,9 +17,6 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.2'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '5.3'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +24,6 @@ dependencies:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '4.2'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '5.3'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: bundler
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -161,6 +155,7 @@ files:
161
155
  - gemfiles/Gemfile.ar-5.0
162
156
  - gemfiles/Gemfile.ar-5.1
163
157
  - gemfiles/Gemfile.ar-5.2
158
+ - gemfiles/Gemfile.ar-master
164
159
  - lib/active_record/typed_store.rb
165
160
  - lib/active_record/typed_store/dsl.rb
166
161
  - lib/active_record/typed_store/extension.rb
@@ -194,8 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
189
  - !ruby/object:Gem::Version
195
190
  version: '0'
196
191
  requirements: []
197
- rubyforge_project:
198
- rubygems_version: 2.5.1
192
+ rubygems_version: 3.0.1
199
193
  signing_key:
200
194
  specification_version: 4
201
195
  summary: Add type casting and full method attributes support to АctiveRecord store