jsonb_accessor 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +13 -0
- data/Appraisals +4 -0
- data/Rakefile +18 -2
- data/db/config.yml +2 -3
- data/db/schema.rb +6 -6
- data/gemfiles/activerecord_6.1.0.gemfile +8 -0
- data/jsonb_accessor.gemspec +1 -3
- data/lib/jsonb_accessor/version.rb +1 -1
- metadata +9 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12a9ef2a6ecf012dd86338b0962ea0338ac8950f
|
4
|
+
data.tar.gz: ffb75c6ce59fa8eeb1a6917c822853f0aa63cead
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddb76f1639699f471680602e9d3f7601eca9666e7c3c03d2f3dce80d8e810a22940712668e0190f2469bccb54f9ae10a7f0b2fb7e763ea8818da32c34893ea91
|
7
|
+
data.tar.gz: 11e77edee1f60874eb313da3301483beb5cc4a962ad14b8f202e923511a1378a10b664fcb00fb4eae161e06f73b4f3c20878871753a693cc5fd733665a0dd2c4
|
data/.travis.yml
CHANGED
@@ -4,6 +4,8 @@ rvm:
|
|
4
4
|
- 2.4.5
|
5
5
|
- 2.5.3
|
6
6
|
- 2.6.1
|
7
|
+
- 2.7.2
|
8
|
+
- 3.0.0
|
7
9
|
addons:
|
8
10
|
postgresql: "9.4"
|
9
11
|
before_install:
|
@@ -18,3 +20,14 @@ cache: bundler
|
|
18
20
|
gemfile:
|
19
21
|
- gemfiles/activerecord_5.0.0.gemfile
|
20
22
|
- gemfiles/activerecord_5.1.0.gemfile
|
23
|
+
- gemfiles/activerecord_6.1.0.gemfile
|
24
|
+
jobs:
|
25
|
+
exclude:
|
26
|
+
- rvm: 2.3.8
|
27
|
+
gemfile: gemfiles/activerecord_6.1.0.gemfile
|
28
|
+
- rvm: 2.4.5
|
29
|
+
gemfile: gemfiles/activerecord_6.1.0.gemfile
|
30
|
+
- rvm: 3.0.0
|
31
|
+
gemfile: gemfiles/activerecord_5.0.0.gemfile
|
32
|
+
- rvm: 3.0.0
|
33
|
+
gemfile: gemfiles/activerecord_5.1.0.gemfile
|
data/Appraisals
CHANGED
data/Rakefile
CHANGED
@@ -5,10 +5,26 @@ require "bundler/setup"
|
|
5
5
|
require "bundler/gem_tasks"
|
6
6
|
require "rspec/core/rake_task"
|
7
7
|
require "rubocop/rake_task"
|
8
|
-
require "standalone_migrations"
|
9
|
-
StandaloneMigrations::Tasks.load_tasks
|
10
8
|
|
11
9
|
RSpec::Core::RakeTask.new
|
12
10
|
RuboCop::RakeTask.new
|
13
11
|
|
12
|
+
require "active_record"
|
13
|
+
include ActiveRecord::Tasks
|
14
|
+
|
15
|
+
root = File.expand_path "..", __FILE__
|
16
|
+
db_dir = File.join(root, "db")
|
17
|
+
DatabaseTasks.root = root
|
18
|
+
DatabaseTasks.db_dir = db_dir
|
19
|
+
DatabaseTasks.database_configuration = YAML.load(File.read(File.join(db_dir, "config.yml")))
|
20
|
+
DatabaseTasks.migrations_paths = [File.join(db_dir, "migrate")]
|
21
|
+
DatabaseTasks.env = "test"
|
22
|
+
|
23
|
+
task :environment do
|
24
|
+
ActiveRecord::Base.configurations = DatabaseTasks.database_configuration
|
25
|
+
ActiveRecord::Base.establish_connection DatabaseTasks.env.to_sym
|
26
|
+
end
|
27
|
+
|
28
|
+
load "active_record/railties/databases.rake"
|
29
|
+
|
14
30
|
task(default: %i[rubocop spec])
|
data/db/config.yml
CHANGED
data/db/schema.rb
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
# of editing this file, please use the migrations feature of Active Record to
|
3
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
4
4
|
#
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
# from scratch.
|
9
|
-
#
|
5
|
+
# This file is the source Rails uses to define your schema when running `rails
|
6
|
+
# db:schema:load`. When creating a new database, `rails db:schema:load` tends to
|
7
|
+
# be faster and is potentially less error prone than running all of your
|
8
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
+
# migrations use external dependencies or application code.
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2015_04_07_031737) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
16
|
enable_extension "plpgsql"
|
data/jsonb_accessor.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.description = "Adds typed jsonb backed fields to your ActiveRecord models."
|
16
16
|
spec.homepage = "https://github.com/devmynd/jsonb_accessor"
|
17
17
|
spec.license = "MIT"
|
18
|
-
spec.required_ruby_version = "
|
18
|
+
spec.required_ruby_version = ">= 2"
|
19
19
|
|
20
20
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) || f.match(/png\z/) }
|
21
21
|
spec.bindir = "exe"
|
@@ -27,7 +27,6 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_dependency "pg", ">= 0.18.1"
|
28
28
|
|
29
29
|
spec.add_development_dependency "appraisal", "~> 2.2.0"
|
30
|
-
spec.add_development_dependency "bundler", "~> 2.1.4"
|
31
30
|
spec.add_development_dependency "database_cleaner", "~> 1.6.0"
|
32
31
|
spec.add_development_dependency "awesome_print"
|
33
32
|
spec.add_development_dependency "pry"
|
@@ -36,5 +35,4 @@ Gem::Specification.new do |spec|
|
|
36
35
|
spec.add_development_dependency "rake", ">= 12.3.3"
|
37
36
|
spec.add_development_dependency "rspec", "~> 3.6.0"
|
38
37
|
spec.add_development_dependency "rubocop", "~> 0.48.1"
|
39
|
-
spec.add_development_dependency "standalone_migrations", "~> 5.2.0"
|
40
38
|
end
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonb_accessor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Crismali
|
8
8
|
- Joe Hirn
|
9
9
|
- Jason Haruska
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-05-
|
13
|
+
date: 2021-05-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|
@@ -68,20 +68,6 @@ dependencies:
|
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: 2.2.0
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: bundler
|
73
|
-
requirement: !ruby/object:Gem::Requirement
|
74
|
-
requirements:
|
75
|
-
- - "~>"
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 2.1.4
|
78
|
-
type: :development
|
79
|
-
prerelease: false
|
80
|
-
version_requirements: !ruby/object:Gem::Requirement
|
81
|
-
requirements:
|
82
|
-
- - "~>"
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: 2.1.4
|
85
71
|
- !ruby/object:Gem::Dependency
|
86
72
|
name: database_cleaner
|
87
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -194,20 +180,6 @@ dependencies:
|
|
194
180
|
- - "~>"
|
195
181
|
- !ruby/object:Gem::Version
|
196
182
|
version: 0.48.1
|
197
|
-
- !ruby/object:Gem::Dependency
|
198
|
-
name: standalone_migrations
|
199
|
-
requirement: !ruby/object:Gem::Requirement
|
200
|
-
requirements:
|
201
|
-
- - "~>"
|
202
|
-
- !ruby/object:Gem::Version
|
203
|
-
version: 5.2.0
|
204
|
-
type: :development
|
205
|
-
prerelease: false
|
206
|
-
version_requirements: !ruby/object:Gem::Requirement
|
207
|
-
requirements:
|
208
|
-
- - "~>"
|
209
|
-
- !ruby/object:Gem::Version
|
210
|
-
version: 5.2.0
|
211
183
|
description: Adds typed jsonb backed fields to your ActiveRecord models.
|
212
184
|
email:
|
213
185
|
- michael@crismali.com
|
@@ -236,6 +208,7 @@ files:
|
|
236
208
|
- db/schema.rb
|
237
209
|
- gemfiles/activerecord_5.0.0.gemfile
|
238
210
|
- gemfiles/activerecord_5.1.0.gemfile
|
211
|
+
- gemfiles/activerecord_6.1.0.gemfile
|
239
212
|
- jsonb_accessor.gemspec
|
240
213
|
- lib/jsonb_accessor.rb
|
241
214
|
- lib/jsonb_accessor/macro.rb
|
@@ -246,24 +219,24 @@ homepage: https://github.com/devmynd/jsonb_accessor
|
|
246
219
|
licenses:
|
247
220
|
- MIT
|
248
221
|
metadata: {}
|
249
|
-
post_install_message:
|
222
|
+
post_install_message:
|
250
223
|
rdoc_options: []
|
251
224
|
require_paths:
|
252
225
|
- lib
|
253
226
|
required_ruby_version: !ruby/object:Gem::Requirement
|
254
227
|
requirements:
|
255
|
-
- - "
|
228
|
+
- - ">="
|
256
229
|
- !ruby/object:Gem::Version
|
257
|
-
version: '2
|
230
|
+
version: '2'
|
258
231
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
259
232
|
requirements:
|
260
233
|
- - ">="
|
261
234
|
- !ruby/object:Gem::Version
|
262
235
|
version: '0'
|
263
236
|
requirements: []
|
264
|
-
rubyforge_project:
|
237
|
+
rubyforge_project:
|
265
238
|
rubygems_version: 2.6.11
|
266
|
-
signing_key:
|
239
|
+
signing_key:
|
267
240
|
specification_version: 4
|
268
241
|
summary: Adds typed jsonb backed fields to your ActiveRecord models.
|
269
242
|
test_files: []
|