jsonb_accessor 1.3.6 → 1.3.7

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
  SHA256:
3
- metadata.gz: b9c291219f0d8fa746d82718410e4eb6743a2e53b0c7f55b2d4770b0ab40b4de
4
- data.tar.gz: 92cb5a1e680f3bcab2aff0ad1c459e1f67714083337a1cf0675837aba3f01a65
3
+ metadata.gz: e5a442265e4c3a26f2f725af683b94d3f6485688994c9c950852384e656ec81e
4
+ data.tar.gz: 9180a9f379d982c65ccb4e7b54df42e999b5001cc9b49c38aac7c24f0084b901
5
5
  SHA512:
6
- metadata.gz: cf6c29dba63cdc774387bc4e8146b7884188ef6219e29a901367cc380da7257501401a4788534016ea6c8c95a1a2cfb526e8657ae6f8606caa4e91748c4358dd
7
- data.tar.gz: f8805f9278ca28e29b2521b3283e132e2264687a5dfaee01c18de82ede3de38465228092a96571bbb66d24a24cd3a01b5d61732ef2cbacca75fc02679860eb39
6
+ metadata.gz: 06e5645cc017da30a5b7452bc40d621a413429c66e2460a55db8dee76eb06424d7c5f64330f6aa909c93aa6b9d95d3b516ef4a877efbe3ef6310344fd2f3c01b
7
+ data.tar.gz: 1a1800490983e8013f8ba35cad25408ea3c50ca193b2f6ba49e290864fa485e4b9f9a87b810895c693be486714e4a6060e9396dc98fa5ead5096e325a1d7f150
@@ -38,49 +38,95 @@ jobs:
38
38
  matrix:
39
39
  include:
40
40
  - gemfile: activerecord_5.0.0
41
- ruby: 2.4.5
41
+ ruby: '2.4'
42
42
 
43
43
  - gemfile: activerecord_5.1.0
44
- ruby: 2.4.5
44
+ ruby: '2.4'
45
+
46
+ - gemfile: activerecord_5.2.0
47
+ ruby: '2.4'
45
48
 
46
49
  - gemfile: activerecord_5.0.0
47
- ruby: 2.5.3
50
+ ruby: '2.5'
48
51
 
49
52
  - gemfile: activerecord_5.1.0
50
- ruby: 2.5.3
53
+ ruby: '2.5'
54
+
55
+ - gemfile: activerecord_5.2.0
56
+ ruby: '2.5'
57
+
58
+ - gemfile: activerecord_6.0.0
59
+ ruby: '2.5'
51
60
 
52
61
  - gemfile: activerecord_6.1.0
53
- ruby: 2.5.3
62
+ ruby: '2.5'
54
63
 
55
64
  - gemfile: activerecord_5.0.0
56
- ruby: 2.6.1
65
+ ruby: '2.6'
57
66
 
58
67
  - gemfile: activerecord_5.1.0
59
- ruby: 2.6.1
68
+ ruby: '2.6'
69
+
70
+ - gemfile: activerecord_5.2.0
71
+ ruby: '2.6'
72
+
73
+ - gemfile: activerecord_6.0.0
74
+ ruby: '2.6'
60
75
 
61
76
  - gemfile: activerecord_6.1.0
62
- ruby: 2.6.1
77
+ ruby: '2.6'
63
78
 
64
79
  - gemfile: activerecord_5.0.0
65
- ruby: 2.7.2
80
+ ruby: '2.7'
66
81
 
67
82
  - gemfile: activerecord_5.1.0
68
- ruby: 2.7.2
83
+ ruby: '2.7'
84
+
85
+ - gemfile: activerecord_5.2.0
86
+ ruby: '2.7'
87
+
88
+ - gemfile: activerecord_6.0.0
89
+ ruby: '2.7'
69
90
 
70
91
  - gemfile: activerecord_6.1.0
71
- ruby: 2.7.2
92
+ ruby: '2.7'
72
93
 
73
94
  - gemfile: activerecord_7.0.1
74
- ruby: 2.7.2
95
+ ruby: '2.7'
96
+
97
+ - gemfile: activerecord_6.1.0
98
+ ruby: '3.0'
99
+
100
+ - gemfile: activerecord_6.1.0
101
+ ruby: '3.1'
75
102
 
76
103
  - gemfile: activerecord_6.1.0
77
- ruby: 3.0.0
104
+ ruby: '3.2'
105
+
106
+ - gemfile: activerecord_7.0.1
107
+ ruby: '3.0'
78
108
 
79
109
  - gemfile: activerecord_7.0.1
80
- ruby: 3.0.0
110
+ ruby: '3.1'
81
111
 
82
112
  - gemfile: activerecord_7.0.1
83
- ruby: 3.1.0
113
+ ruby: '3.2'
114
+
115
+ - gemfile: activerecord_5.1.0
116
+ ruby: 'jruby-9.3'
117
+
118
+ - gemfile: activerecord_5.2.0
119
+ ruby: 'jruby-9.3'
120
+
121
+ - gemfile: activerecord_6.0.0
122
+ ruby: 'jruby-9.3'
123
+
124
+ - gemfile: activerecord_6.1.0
125
+ ruby: 'jruby-9.3'
126
+
127
+ # waiting for https://github.com/jruby/activerecord-jdbc-adapter/issues/1125 to be addressed
128
+ # - gemfile: activerecord_7.0.1
129
+ # ruby: 'jruby-9.4'
84
130
 
85
131
  name: ${{ matrix.gemfile }}, ruby ${{ matrix.ruby }}
86
132
 
@@ -100,7 +146,7 @@ jobs:
100
146
 
101
147
  - name: Setup DB
102
148
  run: |
103
- bundle exec rake db:create db:schema:load
149
+ bundle exec rake db:schema:load
104
150
 
105
151
  - name: Run tests
106
152
  run: |
data/Appraisals CHANGED
@@ -8,6 +8,14 @@ appraise "activerecord-5.1.0" do
8
8
  gem "activerecord", "~> 5.1.3"
9
9
  end
10
10
 
11
+ appraise "activerecord-5.2.0" do
12
+ gem "activerecord", "~> 5.2.8"
13
+ end
14
+
15
+ appraise "activerecord-6.0.0" do
16
+ gem "activerecord", "~> 6.0.6"
17
+ end
18
+
11
19
  appraise "activerecord-6.1.0" do
12
20
  gem "activerecord", "~> 6.1"
13
21
  end
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
  ## [Unreleased]
3
3
 
4
+ ## [1.3.7] - 2022-12-29
5
+
6
+ - jruby support. jsonb_accessor now depends on `activerecord-jdbcpostgresql-adapter` instead of `pg` when the RUBY_PLATFORM is java. [#157](https://github.com/madeintandem/jsonb_accessor/pull/157)
7
+
4
8
  ## [1.3.6] - 2022-09-23
5
9
  ### Fixed
6
10
 
data/Gemfile CHANGED
@@ -4,6 +4,3 @@ source "https://rubygems.org"
4
4
 
5
5
  # Specify your gem's dependencies in jsonb_accessor.gemspec
6
6
  gemspec
7
-
8
- # Travis CI requires in Gemfile
9
- gem "pg"
@@ -2,7 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "pg"
6
5
  gem "activerecord", "~> 5.0.0"
7
6
 
8
7
  gemspec path: "../"
@@ -2,7 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "pg"
6
5
  gem "activerecord", "~> 5.1.3"
7
6
 
8
7
  gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 5.2.8"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 6.0.6"
6
+
7
+ gemspec path: "../"
@@ -2,7 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "pg"
6
5
  gem "activerecord", "~> 6.1"
7
6
 
8
7
  gemspec path: "../"
@@ -2,7 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "pg"
6
5
  gem "activerecord", "~> 7.0.1"
7
6
 
8
7
  gemspec path: "../"
@@ -4,11 +4,14 @@ lib = File.expand_path("lib", __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require "jsonb_accessor/version"
6
6
 
7
+ is_java = RUBY_PLATFORM == "java"
8
+
7
9
  Gem::Specification.new do |spec|
8
10
  spec.name = "jsonb_accessor"
9
11
  spec.version = JsonbAccessor::VERSION
10
12
  spec.authors = ["Michael Crismali", "Joe Hirn", "Jason Haruska"]
11
13
  spec.email = ["michael@crismali.com", "joe@devmynd.com", "jason@haruska.com"]
14
+ spec.platform = "java" if is_java
12
15
 
13
16
  spec.summary = "Adds typed jsonb backed fields to your ActiveRecord models."
14
17
  spec.description = "Adds typed jsonb backed fields to your ActiveRecord models."
@@ -23,7 +26,11 @@ Gem::Specification.new do |spec|
23
26
 
24
27
  spec.add_dependency "activerecord", ">= 5.0"
25
28
  spec.add_dependency "activesupport", ">= 5.0"
26
- spec.add_dependency "pg", ">= 0.18.1"
29
+ if is_java
30
+ spec.add_dependency "activerecord-jdbcpostgresql-adapter", ">= 50.0"
31
+ else
32
+ spec.add_dependency "pg", ">= 0.18.1"
33
+ end
27
34
 
28
35
  spec.add_development_dependency "appraisal", "~> 2.2.0"
29
36
  spec.add_development_dependency "awesome_print"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JsonbAccessor
4
- VERSION = "1.3.6"
4
+ VERSION = "1.3.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonb_accessor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Crismali
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-09-23 00:00:00.000000000 Z
13
+ date: 2022-12-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord
@@ -225,6 +225,8 @@ files:
225
225
  - docker-compose.yml
226
226
  - gemfiles/activerecord_5.0.0.gemfile
227
227
  - gemfiles/activerecord_5.1.0.gemfile
228
+ - gemfiles/activerecord_5.2.0.gemfile
229
+ - gemfiles/activerecord_6.0.0.gemfile
228
230
  - gemfiles/activerecord_6.1.0.gemfile
229
231
  - gemfiles/activerecord_7.0.1.gemfile
230
232
  - jsonb_accessor.gemspec