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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80ed7aa0b3f529122a97b2a00b4f81011ef18014
4
- data.tar.gz: 407d572cea056870ce66d7b92c89d1b3e15bdb2d
3
+ metadata.gz: 12a9ef2a6ecf012dd86338b0962ea0338ac8950f
4
+ data.tar.gz: ffb75c6ce59fa8eeb1a6917c822853f0aa63cead
5
5
  SHA512:
6
- metadata.gz: be4ffe5fc2318edc84b98ffee5296d30d2a9d03817540c4622f04875d0a41c19022c19c0c998357f6730cad37103ce79c43b46c5aa08a46dce8078b77f03752d
7
- data.tar.gz: c02e7189b7354d5d112aa9414e9cb4e5329d57b97b75b4d07a7e64da1abab04c63a0419509335fd557728eb48df1183d2a2d00c9c84ed7216ac4461205ec1c4d
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
@@ -7,3 +7,7 @@ end
7
7
  appraise "activerecord-5.1.0" do
8
8
  gem "activerecord", "~> 5.1.3"
9
9
  end
10
+
11
+ appraise "activerecord-6.1.0" do
12
+ gem "activerecord", "~> 6.1"
13
+ end
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
@@ -1,9 +1,8 @@
1
1
  default: &default
2
2
  adapter: postgresql
3
3
  database: jsonb_accessor
4
-
5
- development:
6
- <<: *default
4
+ host: 127.0.0.1
5
+ user: postgres
7
6
 
8
7
  test:
9
8
  <<: *default
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
- # Note that this schema.rb definition is the authoritative source for your
6
- # database schema. If you need to create the application database on another
7
- # system, you should be using db:schema:load, not running all the migrations
8
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
- # you'll amass, the slower it'll run and the greater likelihood for issues).
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: 20150407031737) do
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"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "pg"
6
+ gem "activerecord", "~> 6.1"
7
+
8
+ gemspec path: "../"
@@ -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 = "~> 2.0"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JsonbAccessor
4
- VERSION = "1.2.0"
4
+ VERSION = "1.3.0"
5
5
  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.2.0
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-03 00:00:00.000000000 Z
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.0'
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: []