activerecord-typedstore 1.2.0 → 1.2.1
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 +5 -5
- data/.travis.yml +17 -2
- data/README.md +4 -4
- data/activerecord-typedstore.gemspec +1 -1
- data/gemfiles/Gemfile.ar-4.2 +3 -8
- data/gemfiles/Gemfile.ar-5.0 +3 -8
- data/gemfiles/Gemfile.ar-5.1 +2 -8
- data/gemfiles/Gemfile.ar-5.2 +3 -9
- data/gemfiles/Gemfile.ar-master +5 -0
- data/lib/active_record/typed_store/extension.rb +1 -0
- data/lib/active_record/typed_store/version.rb +1 -1
- metadata +4 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c64a99347b862a3a9b8a8dc80e69c41d7c0fe591504e2f24ff866847e519fcc2
|
4
|
+
data.tar.gz: 5a1253ee1d02872cece94c24bd66b1c0bd9eaff62149d3459ad8a1a1e038fc63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
- 2.4.
|
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
|
98
|
-
Actually the only difference is that you
|
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
|
-
|
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'
|
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'
|
data/gemfiles/Gemfile.ar-4.2
CHANGED
@@ -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
|
data/gemfiles/Gemfile.ar-5.0
CHANGED
@@ -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
|
data/gemfiles/Gemfile.ar-5.1
CHANGED
@@ -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
|
data/gemfiles/Gemfile.ar-5.2
CHANGED
@@ -1,11 +1,5 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
gem '
|
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'
|
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.
|
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:
|
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
|
-
|
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
|