attr_json 1.2.0 → 1.3.0
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 +74 -0
- data/.github/workflows/future_rails_ci.yml +66 -0
- data/Appraisals +8 -1
- data/CHANGELOG.md +5 -1
- data/README.md +3 -2
- data/attr_json.gemspec +1 -1
- data/gemfiles/rails_6_0.gemfile +1 -1
- data/gemfiles/rails_6_1.gemfile +18 -0
- data/lib/attr_json/version.rb +1 -1
- metadata +10 -8
- data/.travis.yml +0 -64
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 026a86cb550ed91faef1a0aa1eca9dd0fa1985d1d3ac3221da2a165d19145ef9
|
4
|
+
data.tar.gz: be400202cc1016c053ffcdced03d17706601141e402d8998da7c0a3d3cea4815
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98e164f55a903e7babe2a94cfb794d448391bfc75f080d9309f766764e15762f47f524aff7faa5933957302ad36af6f3b0e2ee0e323e0f32f20abbd8eb6e1e2f
|
7
|
+
data.tar.gz: 17e789b630a3a131a57cb8f5805a53641c9802f5e711cad38af73440aa37beb33f1f9a636479fcc63a5b892251c09408a7478746ceeb2df960d207945bea2668
|
@@ -0,0 +1,74 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ '**' ]
|
8
|
+
# UTC Tuesdays 0900. note, no notifications will be sent for failed scheduled builds. :(
|
9
|
+
schedule:
|
10
|
+
- cron: '0 9 * * TUE'
|
11
|
+
|
12
|
+
|
13
|
+
env:
|
14
|
+
POSTGRES_USER: postgres
|
15
|
+
POSTGRES_PASSWORD: postgres
|
16
|
+
|
17
|
+
jobs:
|
18
|
+
tests:
|
19
|
+
services:
|
20
|
+
db:
|
21
|
+
image: postgres:9.4
|
22
|
+
env:
|
23
|
+
POSTGRES_USER: postgres
|
24
|
+
POSTGRES_PASSWORD: postgres
|
25
|
+
ports: ['5432:5432']
|
26
|
+
|
27
|
+
runs-on: ubuntu-latest
|
28
|
+
strategy:
|
29
|
+
fail-fast: false
|
30
|
+
matrix:
|
31
|
+
include:
|
32
|
+
- gemfile: rails_5_0
|
33
|
+
ruby: 2.4
|
34
|
+
|
35
|
+
- gemfile: rails_5_0
|
36
|
+
ruby: 2.5
|
37
|
+
|
38
|
+
- gemfile: rails_5_1
|
39
|
+
ruby: 2.4
|
40
|
+
|
41
|
+
- gemfile: rails_5_2
|
42
|
+
ruby: 2.4
|
43
|
+
|
44
|
+
- gemfile: rails_5_2
|
45
|
+
ruby: 2.6
|
46
|
+
|
47
|
+
- gemfile: rails_6_0
|
48
|
+
ruby: 2.6
|
49
|
+
|
50
|
+
- gemfile: rails_6_0
|
51
|
+
ruby: 2.7
|
52
|
+
|
53
|
+
- gemfile: rails_6_1
|
54
|
+
ruby: 2.7
|
55
|
+
|
56
|
+
name: ${{ matrix.gemfile }}, ruby ${{ matrix.ruby }}
|
57
|
+
|
58
|
+
steps:
|
59
|
+
- uses: actions/checkout@v2
|
60
|
+
|
61
|
+
- name: Set up Ruby
|
62
|
+
uses: ruby/setup-ruby@v1
|
63
|
+
with:
|
64
|
+
ruby-version: ${{ matrix.ruby }}
|
65
|
+
bundler-cache: false
|
66
|
+
|
67
|
+
- name: Bundle install
|
68
|
+
run: |
|
69
|
+
bundle config set gemfile "${GITHUB_WORKSPACE}/gemfiles/${{ matrix.gemfile }}.gemfile"
|
70
|
+
bundle install --jobs 4 --retry 3
|
71
|
+
|
72
|
+
- name: Run tests
|
73
|
+
run: |
|
74
|
+
bundle exec rspec
|
@@ -0,0 +1,66 @@
|
|
1
|
+
name: CI on Future Rails Versions
|
2
|
+
|
3
|
+
# Experimenting with separate github actions workflow
|
4
|
+
# for gemfiles for FUTURE Rails vesions, we'd like to keep an eye on
|
5
|
+
# if they pass, but they aren't required to do so.
|
6
|
+
#
|
7
|
+
# This has to just be a copy-and-paste copy of our main ci.yml,
|
8
|
+
# but with different gemfiles in the matrix. That is not great.
|
9
|
+
# We also choose NOT to run this one on pull_request, we just
|
10
|
+
# run it on master, see how that works.
|
11
|
+
#
|
12
|
+
# These jobs can be left out of "required" for merge in github settings
|
13
|
+
# for "Branch Protection Rules" at https://github.com/jrochkind/attr_json/settings/branches
|
14
|
+
#
|
15
|
+
# You can move a Rails version between this file and ci.yml, and (un)check it in those
|
16
|
+
# github settings. (I wish whether it was required to pass could be in this file
|
17
|
+
# too, to keep things together)
|
18
|
+
|
19
|
+
on:
|
20
|
+
push:
|
21
|
+
branches: [ master ]
|
22
|
+
# UTC Sundays 0900. note, no notifications will be sent for failed scheduled builds. :(
|
23
|
+
schedule:
|
24
|
+
- cron: '0 9 * * SUN'
|
25
|
+
|
26
|
+
env:
|
27
|
+
POSTGRES_USER: postgres
|
28
|
+
POSTGRES_PASSWORD: postgres
|
29
|
+
|
30
|
+
jobs:
|
31
|
+
tests:
|
32
|
+
services:
|
33
|
+
db:
|
34
|
+
image: postgres:9.4
|
35
|
+
env:
|
36
|
+
POSTGRES_USER: postgres
|
37
|
+
POSTGRES_PASSWORD: postgres
|
38
|
+
ports: ['5432:5432']
|
39
|
+
|
40
|
+
runs-on: ubuntu-latest
|
41
|
+
|
42
|
+
strategy:
|
43
|
+
fail-fast: false
|
44
|
+
matrix:
|
45
|
+
include:
|
46
|
+
|
47
|
+
- gemfile: rails_edge
|
48
|
+
ruby: 2.7
|
49
|
+
|
50
|
+
name: ${{ matrix.gemfile }}, ruby ${{ matrix.ruby }}
|
51
|
+
|
52
|
+
steps:
|
53
|
+
- uses: actions/checkout@v2
|
54
|
+
|
55
|
+
- name: Set up Ruby
|
56
|
+
uses: ruby/setup-ruby@v1
|
57
|
+
with:
|
58
|
+
ruby-version: ${{ matrix.ruby }}
|
59
|
+
|
60
|
+
- name: Bundle install
|
61
|
+
run: |
|
62
|
+
bundle config set gemfile "${GITHUB_WORKSPACE}/gemfiles/${{ matrix.gemfile }}.gemfile"
|
63
|
+
bundle install --jobs 4 --retry 3
|
64
|
+
|
65
|
+
- name: Run tests
|
66
|
+
run: bundle exec rspec
|
data/Appraisals
CHANGED
@@ -28,7 +28,14 @@ end
|
|
28
28
|
appraise "rails-6-0" do
|
29
29
|
gem 'combustion', "~> 1.0"
|
30
30
|
|
31
|
-
gem "rails", ">= 6.0.0
|
31
|
+
gem "rails", ">= 6.0.0", "< 6.1"
|
32
|
+
gem "pg", "~> 1.0"
|
33
|
+
end
|
34
|
+
|
35
|
+
appraise "rails-6-1" do
|
36
|
+
gem 'combustion', "~> 1.0"
|
37
|
+
|
38
|
+
gem "rails", ">= 6.0.0.rc1", "< 6.2.0.a"
|
32
39
|
gem "pg", "~> 1.0"
|
33
40
|
end
|
34
41
|
|
data/CHANGELOG.md
CHANGED
@@ -4,9 +4,13 @@ Notable changes to this project will be documented in this file.
|
|
4
4
|
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
|
-
## [Unreleased](https://github.com/jrochkind/attr_json/compare/v1.
|
7
|
+
## [Unreleased](https://github.com/jrochkind/attr_json/compare/v1.3.0...HEAD)
|
8
8
|
|
9
|
+
## [1.3.0](https://github.com/jrochkind/attr_json/compare/v1.2.0...v1.3.0)
|
9
10
|
|
11
|
+
### Added
|
12
|
+
|
13
|
+
* Gemspec allows use with ActiveRecord 6.1.x
|
10
14
|
|
11
15
|
## [1.2.0](https://github.com/jrochkind/attr_json/compare/v1.1.0...v1.2.0)
|
12
16
|
|
data/README.md
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
# AttrJson
|
2
|
-
[](https://github.com/jrochkind/attr_json/actions?query=workflow%3ACI+branch%3Amaster)
|
3
|
+
[](https://github.com/jrochkind/attr_json/actions?query=workflow%3A%22CI+on+Future+Rails+Versions%22+branch%3Amaster)
|
3
4
|
[](https://badge.fury.io/rb/attr_json)
|
4
5
|
|
5
6
|
|
6
|
-
ActiveRecord attributes stored serialized in a json column, super smooth. For Rails 5.0
|
7
|
+
ActiveRecord attributes stored serialized in a json column, super smooth. For Rails 5.0 through 6.1. Ruby 2.4+.
|
7
8
|
|
8
9
|
Typed and cast like Active Record. Supporting [nested models](#nested), [dirty tracking](#dirty), some [querying](#querying) (with postgres [jsonb](https://www.postgresql.org/docs/9.5/static/datatype-json.html) contains), and [working smoothy with form builders](#forms).
|
9
10
|
|
data/attr_json.gemspec
CHANGED
@@ -45,7 +45,7 @@ attributes use as much of the existing ActiveRecord architecture as we can.}
|
|
45
45
|
# Only to get CI to work on versions of Rails other than we release with,
|
46
46
|
# should never release a gem with RAILS_GEM set!
|
47
47
|
unless ENV['APPRAISAL_INITIALIZED'] || ENV["TRAVIS"]
|
48
|
-
spec.add_runtime_dependency "activerecord", ">= 5.0.0", "< 6.
|
48
|
+
spec.add_runtime_dependency "activerecord", ">= 5.0.0", "< 6.2"
|
49
49
|
end
|
50
50
|
|
51
51
|
spec.add_development_dependency "bundler"
|
data/gemfiles/rails_6_0.gemfile
CHANGED
@@ -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", "~> 6.1"
|
7
|
+
gem "railties"
|
8
|
+
gem "pg", "~> 1.0"
|
9
|
+
gem "rspec-rails", "~> 4.0"
|
10
|
+
gem "simple_form", ">= 4.0"
|
11
|
+
gem "cocoon", ">= 1.2"
|
12
|
+
gem "jquery-rails"
|
13
|
+
gem "capybara", "~> 3.0"
|
14
|
+
gem "webdrivers", "~> 4.0"
|
15
|
+
gem "selenium-webdriver"
|
16
|
+
gem "byebug"
|
17
|
+
|
18
|
+
gemspec path: "../"
|
data/lib/attr_json/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attr_json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 5.0.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '6.
|
22
|
+
version: '6.2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 5.0.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '6.
|
32
|
+
version: '6.2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,9 +128,10 @@ executables: []
|
|
128
128
|
extensions: []
|
129
129
|
extra_rdoc_files: []
|
130
130
|
files:
|
131
|
+
- ".github/workflows/ci.yml"
|
132
|
+
- ".github/workflows/future_rails_ci.yml"
|
131
133
|
- ".gitignore"
|
132
134
|
- ".rspec"
|
133
|
-
- ".travis.yml"
|
134
135
|
- ".yardopts"
|
135
136
|
- Appraisals
|
136
137
|
- CHANGELOG.md
|
@@ -151,6 +152,7 @@ files:
|
|
151
152
|
- gemfiles/rails_5_1.gemfile
|
152
153
|
- gemfiles/rails_5_2.gemfile
|
153
154
|
- gemfiles/rails_6_0.gemfile
|
155
|
+
- gemfiles/rails_6_1.gemfile
|
154
156
|
- gemfiles/rails_edge.gemfile
|
155
157
|
- gemfiles/rails_edge_6.gemfile
|
156
158
|
- lib/attr_json.rb
|
@@ -180,7 +182,7 @@ licenses:
|
|
180
182
|
metadata:
|
181
183
|
homepage_uri: https://github.com/jrochkind/attr_json
|
182
184
|
source_code_uri: https://github.com/jrochkind/attr_json
|
183
|
-
post_install_message:
|
185
|
+
post_install_message:
|
184
186
|
rdoc_options: []
|
185
187
|
require_paths:
|
186
188
|
- lib
|
@@ -196,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
198
|
version: '0'
|
197
199
|
requirements: []
|
198
200
|
rubygems_version: 3.0.3
|
199
|
-
signing_key:
|
201
|
+
signing_key:
|
200
202
|
specification_version: 4
|
201
203
|
summary: ActiveRecord attributes stored serialized in a json column, super smooth.
|
202
204
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
#
|
2
|
-
sudo: false
|
3
|
-
addons:
|
4
|
-
postgresql: '9.4'
|
5
|
-
chrome: stable
|
6
|
-
language: ruby
|
7
|
-
cache: bundler
|
8
|
-
|
9
|
-
# rvm:
|
10
|
-
# - 2.4.5
|
11
|
-
# - 2.5.3
|
12
|
-
# - 2.6.5
|
13
|
-
# - 2.7.0
|
14
|
-
# gemfile:
|
15
|
-
# - gemfiles/rails_5_0.gemfile
|
16
|
-
# - gemfiles/rails_5_1.gemfile
|
17
|
-
# - gemfiles/rails_5_2.gemfile
|
18
|
-
# - gemfiles/rails_6_0.gemfile
|
19
|
-
# - gemfiles/rails_edge.gemfile
|
20
|
-
|
21
|
-
before_install:
|
22
|
-
- gem install bundler -v "~> 2.0"
|
23
|
-
|
24
|
-
matrix:
|
25
|
-
include:
|
26
|
-
- rvm: 2.4.5
|
27
|
-
gemfile: gemfiles/rails_5_0.gemfile
|
28
|
-
|
29
|
-
- rvm: 2.4.5
|
30
|
-
gemfile: gemfiles/rails_5_1.gemfile
|
31
|
-
|
32
|
-
- rvm: 2.4.5
|
33
|
-
gemfile: gemfiles/rails_5_2.gemfile
|
34
|
-
|
35
|
-
- rvm: 2.5.3
|
36
|
-
gemfile: gemfiles/rails_5_0.gemfile
|
37
|
-
|
38
|
-
- rvm: 2.5.3
|
39
|
-
gemfile: gemfiles/rails_5_1.gemfile
|
40
|
-
|
41
|
-
- rvm: 2.5.3
|
42
|
-
gemfile: gemfiles/rails_5_2.gemfile
|
43
|
-
|
44
|
-
- rvm: 2.5.3
|
45
|
-
gemfile: gemfiles/rails_6_0.gemfile
|
46
|
-
|
47
|
-
- rvm: 2.6.5
|
48
|
-
gemfile: gemfiles/rails_5_2.gemfile
|
49
|
-
|
50
|
-
- rvm: 2.6.5
|
51
|
-
gemfile: gemfiles/rails_6_0.gemfile
|
52
|
-
|
53
|
-
- rvm: 2.7.0
|
54
|
-
gemfile: gemfiles/rails_6_0.gemfile
|
55
|
-
|
56
|
-
- rvm: 2.7.0
|
57
|
-
gemfile: gemfiles/rails_edge.gemfile
|
58
|
-
|
59
|
-
allow_failures:
|
60
|
-
- gemfile: gemfiles/rails_edge.gemfile
|
61
|
-
fast_finish: true
|
62
|
-
|
63
|
-
|
64
|
-
|