attr_json 2.4.0 → 2.5.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 +4 -4
- data/.github/workflows/ci.yml +3 -15
- data/.github/workflows/future_rails_ci.yml +1 -1
- data/Appraisals +7 -0
- data/CHANGELOG.md +15 -5
- data/README.md +3 -2
- data/attr_json.gemspec +1 -1
- data/gemfiles/rails_8_0.gemfile +18 -0
- data/lib/attr_json/attribute_definition.rb +1 -2
- data/lib/attr_json/record.rb +1 -1
- data/lib/attr_json/version.rb +1 -1
- metadata +6 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c20881e34c2ba0c12d2c3f26a4b65516f392e3821d8e950b6adc3b0cb596c088
|
4
|
+
data.tar.gz: b86e73b6eb395c0b8454280f48b7e26f99a35ecfd5e8e6653935ecb8053c7135
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8897cb9ee4e99189e5bce6a47f2b1f656f46aaf5fb08b4eb65691bcf14ff776537b8eb11075b708d4afdb7a67875787b1e88f7ff76d2ca646b7b208324a9f3ac
|
7
|
+
data.tar.gz: be2bff872e38b68edaae48c6e5b84938a5864fe668aae8a4f2f900bdf4573715477c3d35d5f13eef9108beda8dce86970bb068234e5657edd9d3bd7d9bdbb329
|
data/.github/workflows/ci.yml
CHANGED
@@ -35,39 +35,27 @@ jobs:
|
|
35
35
|
- gemfile: rails_6_0
|
36
36
|
ruby: 2.7
|
37
37
|
|
38
|
-
- gemfile: rails_6_0
|
39
|
-
ruby: '3.0'
|
40
|
-
|
41
38
|
- gemfile: rails_6_1
|
42
39
|
ruby: 2.7
|
43
40
|
|
44
41
|
- gemfile: rails_6_1
|
45
42
|
ruby: '3.0'
|
46
43
|
|
47
|
-
- gemfile: rails_7_0
|
48
|
-
ruby: '3.0'
|
49
|
-
|
50
44
|
- gemfile: rails_7_0
|
51
45
|
ruby: 3.1
|
52
46
|
|
53
47
|
- gemfile: rails_7_0
|
54
48
|
ruby: 3.2
|
55
49
|
|
56
|
-
- gemfile: rails_7_1
|
57
|
-
ruby: '3.0'
|
58
|
-
|
59
|
-
- gemfile: rails_7_1
|
60
|
-
ruby: 3.1
|
61
|
-
|
62
|
-
- gemfile: rails_7_1
|
63
|
-
ruby: 3.2
|
64
|
-
|
65
50
|
- gemfile: rails_7_1
|
66
51
|
ruby: 3.3
|
67
52
|
|
68
53
|
- gemfile: rails_7_2
|
69
54
|
ruby: 3.3
|
70
55
|
|
56
|
+
- gemfile: rails_8_0
|
57
|
+
ruby: 3.3
|
58
|
+
|
71
59
|
name: ${{ matrix.gemfile }}, ruby ${{ matrix.ruby }}
|
72
60
|
|
73
61
|
steps:
|
data/Appraisals
CHANGED
@@ -44,6 +44,13 @@ appraise "rails-7-2" do
|
|
44
44
|
gem "pg", "~> 1.0"
|
45
45
|
end
|
46
46
|
|
47
|
+
appraise "rails-8-0" do
|
48
|
+
gem 'combustion', "~> 1.0"
|
49
|
+
|
50
|
+
gem "rails", "~> 8.0.0"
|
51
|
+
gem "pg", "~> 1.0"
|
52
|
+
end
|
53
|
+
|
47
54
|
|
48
55
|
appraise "rails-edge" do
|
49
56
|
# need combustion edge to work with rails edge, will no longer
|
data/CHANGELOG.md
CHANGED
@@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
7
|
|
8
|
-
## [Unreleased](https://github.com/jrochkind/attr_json/compare/v2.
|
8
|
+
## [Unreleased](https://github.com/jrochkind/attr_json/compare/v2.4.0...HEAD)
|
9
9
|
|
10
10
|
### Fixed
|
11
11
|
|
@@ -21,8 +21,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
21
21
|
|
22
22
|
*
|
23
23
|
|
24
|
-
*
|
25
|
-
|
26
24
|
### Changed
|
27
25
|
|
28
26
|
*
|
@@ -31,13 +29,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
31
29
|
|
32
30
|
*
|
33
31
|
|
34
|
-
## [2.
|
32
|
+
## [2.5.1](https://github.com/jrochkind/attr_json/compare/v2.5.0...v2.5.1)
|
33
|
+
|
34
|
+
## Fixed
|
35
|
+
|
36
|
+
* Fixed bug where date/datetime types required db to exist on app boot. https://github.com/jrochkind/attr_json/pull/242 Thanks @jNicker
|
37
|
+
|
38
|
+
|
39
|
+
## [2.5.0](https://github.com/jrochkind/attr_json/compare/v2.4.0...v2.5.0)
|
40
|
+
|
41
|
+
## Added
|
42
|
+
|
43
|
+
* Allow Rails 8.0 in gemspec (no code changes required to support) https://github.com/jrochkind/attr_json/pull/236
|
44
|
+
|
45
|
+
## [2.4.0](https://github.com/jrochkind/attr_json/compare/v2.3.1...v2.4.0)
|
35
46
|
|
36
47
|
### Added
|
37
48
|
|
38
49
|
* Allow Rails 7.2 in gemspec (no code changes required to support) https://github.com/jrochkind/attr_json/pull/228
|
39
50
|
|
40
|
-
|
41
51
|
## [2.3.1](https://github.com/jrochkind/attr_json/compare/v2.3.0...v2.3.1)
|
42
52
|
|
43
53
|
### Fixed
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# AttrJson
|
2
|
-
|
3
|
-
[](https://github.com/jrochkind/attr_json/actions/workflows/ci.yml)
|
4
|
+
[](https://github.com/jrochkind/attr_json/actions/workflows/future_rails_ci.yml)
|
4
5
|
[](https://badge.fury.io/rb/attr_json)
|
5
6
|
|
6
7
|
ActiveRecord attributes stored serialized in a json column, super smooth. For Rails 6.0.x through 7.0.x. Ruby 2.7+.
|
data/attr_json.gemspec
CHANGED
@@ -47,7 +47,7 @@ attributes use as much of the existing ActiveRecord architecture as we can.}
|
|
47
47
|
# dependency included just as it is here, should never be released
|
48
48
|
# from an env tht has any of these variables set.
|
49
49
|
unless ENV['APPRAISAL_INITIALIZED'] || ENV["TRAVIS"] || ENV['CI']
|
50
|
-
spec.add_runtime_dependency "activerecord", ">= 6.0.0", "<
|
50
|
+
spec.add_runtime_dependency "activerecord", ">= 6.0.0", "< 8.1"
|
51
51
|
end
|
52
52
|
|
53
53
|
spec.add_development_dependency "bundler"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "combustion", "~> 1.0"
|
6
|
+
gem "rails", "~> 8.0.0"
|
7
|
+
gem "pg", "~> 1.0"
|
8
|
+
gem "rspec-rails", "~> 6.0"
|
9
|
+
gem "simple_form", ">= 4.0"
|
10
|
+
gem "cocoon", ">= 1.2"
|
11
|
+
gem "jquery-rails"
|
12
|
+
gem "coffee-rails"
|
13
|
+
gem "sprockets-rails"
|
14
|
+
gem "capybara", "~> 3.0"
|
15
|
+
gem "selenium-webdriver"
|
16
|
+
gem "byebug"
|
17
|
+
|
18
|
+
gemspec path: "../"
|
@@ -130,9 +130,8 @@
|
|
130
130
|
# serializing, we're kind of stuck with this precision in current implementation.
|
131
131
|
lookup_kwargs = { adapter: nil }
|
132
132
|
if type == :datetime || type == :time
|
133
|
-
lookup_kwargs =
|
133
|
+
lookup_kwargs[:precision] = ActiveSupport::JSON::Encoding.time_precision
|
134
134
|
end
|
135
|
-
|
136
135
|
type = ActiveRecord::Type.lookup(type, **lookup_kwargs)
|
137
136
|
elsif !(type.is_a?(ActiveModel::Type::Value) || type.is_a?(ActiveRecord::AttributeMethods::TimeZoneConversion::TimeZoneConverter))
|
138
137
|
raise ArgumentError, "Second argument (#{type}) must be a symbol or instance of an ActiveModel::Type::Value subclass"
|
data/lib/attr_json/record.rb
CHANGED
data/lib/attr_json/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attr_json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: activerecord
|
@@ -19,7 +18,7 @@ dependencies:
|
|
19
18
|
version: 6.0.0
|
20
19
|
- - "<"
|
21
20
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
21
|
+
version: '8.1'
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +28,7 @@ dependencies:
|
|
29
28
|
version: 6.0.0
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
31
|
+
version: '8.1'
|
33
32
|
- !ruby/object:Gem::Dependency
|
34
33
|
name: bundler
|
35
34
|
requirement: !ruby/object:Gem::Requirement
|
@@ -166,6 +165,7 @@ files:
|
|
166
165
|
- gemfiles/rails_7_0.gemfile
|
167
166
|
- gemfiles/rails_7_1.gemfile
|
168
167
|
- gemfiles/rails_7_2.gemfile
|
168
|
+
- gemfiles/rails_8_0.gemfile
|
169
169
|
- gemfiles/rails_edge.gemfile
|
170
170
|
- lib/attr_json.rb
|
171
171
|
- lib/attr_json/attribute_definition.rb
|
@@ -194,7 +194,6 @@ licenses:
|
|
194
194
|
metadata:
|
195
195
|
homepage_uri: https://github.com/jrochkind/attr_json
|
196
196
|
source_code_uri: https://github.com/jrochkind/attr_json
|
197
|
-
post_install_message:
|
198
197
|
rdoc_options: []
|
199
198
|
require_paths:
|
200
199
|
- lib
|
@@ -209,8 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
208
|
- !ruby/object:Gem::Version
|
210
209
|
version: '0'
|
211
210
|
requirements: []
|
212
|
-
rubygems_version: 3.
|
213
|
-
signing_key:
|
211
|
+
rubygems_version: 3.7.1
|
214
212
|
specification_version: 4
|
215
213
|
summary: ActiveRecord attributes stored serialized in a json column, super smooth.
|
216
214
|
test_files: []
|