activerecord_accessible_json 0.3.7 → 1.0.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
  SHA256:
3
- metadata.gz: 06e6c99633cb7f99066440a9dddf58c647a36185b988a605aec5db3db6bde82f
4
- data.tar.gz: 9865b72314f04edcada686e9a39f9c6e26f9e11676e14201d4d172b10e7a9467
3
+ metadata.gz: c2abb99ee5eff40c3ff9cb41b29185fe83eabd2ef32caf418a3e2fd78cd9377c
4
+ data.tar.gz: ff9191f8509f7053f03c8bf7ef7c68bd561cfd62b52cf87a4c44a5190d870df9
5
5
  SHA512:
6
- metadata.gz: 5327ae6bc47d4f9eaa12405e78b640528e65d53a9e6e59a7bdc71b46672a95cfc8593a211e89c828d27244e81026f2894e59456ca96319a849f9b20140cf3a68
7
- data.tar.gz: bb1a833c58ed7cd9817110a5446aa18624df00fb559e28a5e3910c349e31e7a5c0377f8da49cf69bd6475ab174e2816af2c4548fbfed49e593f979b591aee8c4
6
+ metadata.gz: 40be30d39a575d63567d5d0d0bfe3e6cc8f563bcab08387274c2f86d75150ddda38704a4cc37e7c372845b1b2a820fa943388b6b9139a7c50a2f2c419452ae6c
7
+ data.tar.gz: 20ccab9eb5fdf9b5fb1ebb3b780db7589fdd86272a783a43a819fa3223834041d6fffb7ab1f5a3bfa034c35758a5c4754edf547930993d6fdae1477f82d3e6fb
data/README.md CHANGED
@@ -27,13 +27,13 @@ post.tags.class #=> Array
27
27
 
28
28
  ## Version Compatibility
29
29
 
30
- | | Rails 5.2 | Rails 6.0 | Rails 6.1 | Rails head |
30
+ | | Rails 6.0 | Rails 6.1 | Rails 7.0 | Rails head |
31
31
  | :---: | :---: | :---: | :---: | :---: |
32
- | Ruby 2.5 | ✅ | ✅ | ✅ | ❌ |
33
- | Ruby 2.6 | ✅ | ✅ | ✅ | ❌ |
34
32
  | Ruby 2.7 | ✅ | ✅ | ✅ | ✅ |
35
- | Ruby 3.0 | | ✅ | ✅ | ✅ |
36
- | Ruby head | ❌ | | ✅ | ✅ |
33
+ | Ruby 3.0 | | ✅ | ✅ | ✅ |
34
+ | Ruby 3.1 | ❌ | | ✅ | ✅ |
35
+ | Ruby 3.2 | ❌ | ❌ | ✅ | ✅ |
36
+ | Ruby head | ❌ | ❌ | ✅ | ✅ |
37
37
 
38
38
  Version compatibility is checked everyday on [CI](https://github.com/yamat47/activerecord_accessible_json/actions).
39
39
 
@@ -60,13 +60,12 @@ $ gem install activerecord_accessible_json
60
60
  ## Release
61
61
 
62
62
  1. [Check if CI is passed on `main`.](https://github.com/yamat47/activerecord_accessible_json/actions)
63
- 1. Decide next versioning and update [version.rb](https://github.com/yamat47/activerecord_accessible_json/blob/v0.2.0/lib/activerecord_accessible_json/version.rb).
63
+ 1. Decide next versioning and update [version.rb](https://github.com/yamat47/activerecord_accessible_json/blob/main/lib/activerecord_accessible_json/version.rb).
64
64
  1. `bundle install`.
65
65
  1. Commit these changes with happy message (like "Release v0.2.0 🎉").
66
- 1. `ghch --format=markdown --next-version={{ NEXT_VERSION }}` to generate changelog.
67
- 1. [Create new release.](https://github.com/yamat47/activerecord_accessible_json/releases/new)
68
66
  1. `bundle exec rake build`.
69
67
  1. `bundle exec rake release`.
68
+ 1. [Create new release.](https://github.com/yamat47/activerecord_accessible_json/releases/new)
70
69
 
71
70
  ## License
72
71
 
data/Rakefile CHANGED
@@ -1,5 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bundler/setup'
4
-
5
3
  require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require 'rubocop/rake_task'
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiverecordAccessibleJson
4
- #:nodoc:
4
+ # :nodoc:
5
5
  module JsonExtension
6
6
  # This patch is strongly dependent with ActiveRecord::Type::Json implementation.
7
7
  # https://github.com/rails/rails/blob/8b3fc5ce30629cb098e923396c3eb797365c88d2/activerecord/lib/active_record/type/json.rb#L12
@@ -3,7 +3,7 @@
3
3
  require 'activerecord_accessible_json/json_extension'
4
4
 
5
5
  module ActiverecordAccessibleJson
6
- #:nodoc:
6
+ # :nodoc:
7
7
  class Railtie < ::Rails::Railtie
8
8
  initializer 'activerecord_accessible_json' do |_app|
9
9
  ActiveSupport.on_load(:active_record) do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiverecordAccessibleJson
4
- VERSION = '0.3.7'
4
+ VERSION = '1.0.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_accessible_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yamaguchi Takuya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-01 00:00:00.000000000 Z
11
+ date: 2023-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.0
19
+ version: 6.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 5.2.0
26
+ version: 6.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  description: Using this gem, ActiveRecord's JSON attribute is deserialized into HashWithIndifferentAccess.
98
112
  email:
99
113
  - yamat47.thirddown@gmail.com
@@ -116,6 +130,7 @@ metadata:
116
130
  homepage_uri: https://github.com/yamat47/activerecord_accessible_json
117
131
  source_code_uri: https://github.com/yamat47/activerecord_accessible_json
118
132
  changelog_uri: https://github.com/yamat47/activerecord_accessible_json/blob/main/CHANGELOG.md
133
+ rubygems_mfa_required: 'true'
119
134
  post_install_message:
120
135
  rdoc_options: []
121
136
  require_paths:
@@ -124,14 +139,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
139
  requirements:
125
140
  - - ">="
126
141
  - !ruby/object:Gem::Version
127
- version: 2.5.0
142
+ version: 2.7.0
128
143
  required_rubygems_version: !ruby/object:Gem::Requirement
129
144
  requirements:
130
145
  - - ">="
131
146
  - !ruby/object:Gem::Version
132
147
  version: '0'
133
148
  requirements: []
134
- rubygems_version: 3.2.15
149
+ rubygems_version: 3.3.26
135
150
  signing_key:
136
151
  specification_version: 4
137
152
  summary: Make ActiveRecord's JSON attribute more accessible.