act_with_bag 1.1.2 → 1.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 871f3f51d537f9fb7c8c3ae382f5d7f2c7349deb804800ca542234efbb6a5610
4
- data.tar.gz: 02d895e0fe5e183359a251ab4471251e72cd712fb857b58bd2c4da97dd7bf12a
3
+ metadata.gz: 17a9af8503db5d084ade7fe944161376b15f00425c59e2a329ba974e13618c1f
4
+ data.tar.gz: d02c7d5937cd1a3568165a951fe45580c46557f32421a698fa697dfad0e933d9
5
5
  SHA512:
6
- metadata.gz: 0cdfeb658c20412bb3bc41ab5356c339da8441bda6fbaea054ebb58aa9feb7bb969ed95fb6821a77193e1f564b6a7e5a39af87230359e7011f93d578910ab3be
7
- data.tar.gz: 4eb41d1ffc191cc1f52a2cf35cb50d7c3b0144fa04bb8b91c439514a09c62df61c37c60cab26054d57c768b6134fe38501cb224c4c4eccf2f04d6bebe4845df1
6
+ metadata.gz: a26a90082c19ddf7317bc37b4e79fe673a781fb04acbaabe06b761433e5a429e3acf635ca94dfd3724369e30d4f2698f4a8852bf27ce8bfdad7ba56b4aa9f853
7
+ data.tar.gz: 908c5d0231989d24be70fcd4c9fe231af6b80f5e0ed6883afd4b897c946402b7f54990ae969e48b22e43b76a66ceb125e8ad27ebf151f80393607f3003eb3e9d
@@ -8,19 +8,20 @@ jobs:
8
8
  strategy:
9
9
  fail-fast: false
10
10
  matrix:
11
- os: [ubuntu-latest]
12
- ruby: ["2.7", "3.0", "3.2", head]
13
- test_command: ["bundle exec rake test"]
14
- runs-on: ${{ matrix.os }}
11
+ ruby_version: ["3.0", 3.2]
12
+ gemfile:
13
+ - Gemfile
14
+ - gemfiles/Gemfile.rails-6.1
15
+ - gemfiles/Gemfile.rails-7.0
16
+ - gemfiles/Gemfile.rails-7.1
17
+ runs-on: ubuntu-latest
15
18
 
16
19
  steps:
17
- - uses: actions/checkout@v3
18
- - uses: ruby/setup-ruby@v1
19
- with:
20
- ruby-version: ${{ matrix.ruby }}
21
- - name: Bundle install
22
- run: |
23
- bundle config path /home/runner/bundle
24
- bundle install
25
- bundle update
26
- - run: ${{ matrix.test_command }}
20
+ - uses: actions/checkout@v3
21
+ - name: Set up Ruby
22
+ uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby_version }}
25
+ bundler-cache: true
26
+ - name: Build and test with Rake
27
+ run: bundle exec rake
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  .bundle/
2
2
  coverage/
3
+ .watchr
3
4
 
4
5
  *.gem
5
6
  *.log
@@ -8,3 +9,6 @@ coverage/
8
9
  **/*.gem
9
10
  **/*.log
10
11
  **/*.lock
12
+ **/test.sqlite3*
13
+
14
+ test/internal/tmp/
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails-7.0
1
+ rails-7.1
data/Appraisals CHANGED
@@ -1,6 +1,9 @@
1
+ appraise "rails-7.1" do
2
+ gem "rails", "~> 7.1"
3
+ end
4
+
1
5
  appraise "rails-7.0" do
2
6
  gem "rails", "~> 7.0"
3
- gem "dryer-config", "~> 7.0"
4
7
  end
5
8
 
6
9
  appraise "rails-6.1" do
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # ActWithBag
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/act_with_bag.png)](http://badge.fury.io/rb/act_with_bag)
4
+ [![GEM Downloads](https://img.shields.io/gem/dt/act_with_bag?color=168AFE&logo=ruby&logoColor=FE1616)](https://rubygems.org/gems/act_with_bag)
4
5
 
5
6
  Bag helps when fields in a Rails database table are not yet settled down
6
7
  or when many fields without business logic are required.
@@ -115,6 +116,4 @@ In controller:
115
116
  ## Miscellaneous
116
117
 
117
118
  Copyright (c) 2009-2023 Dittmar Krall (www.matiq.com),
118
- released under the MIT license:
119
-
120
- * https://opensource.org/licenses/MIT
119
+ released under the [MIT license](https://opensource.org/licenses/MIT).
data/act_with_bag.gemspec CHANGED
@@ -9,12 +9,10 @@ Gem::Specification.new do |s|
9
9
  s.description = "Add a bag to a Rails model"
10
10
  s.authors = ["Dittmar Krall"]
11
11
  s.email = ["dittmar.krall@matiq.com"]
12
- s.homepage = "http://matiq.com"
12
+ s.homepage = "https://github.com/matique/act_with_bag"
13
13
  s.license = "MIT"
14
14
  s.platform = Gem::Platform::RUBY
15
15
 
16
- s.metadata["source_code_uri"] = "https://github.com/matique/act_with_bag"
17
-
18
16
  s.files = `git ls-files -z`.split("\x0")
19
17
  s.require_paths = ["lib"]
20
18
 
@@ -7,9 +7,9 @@ gem "dryer-config", "~> 6.0"
7
7
 
8
8
  group :test do
9
9
  gem "observr"
10
- gem "standard", require: false
11
- gem "simplecov", require: false
12
10
  gem "ricecream"
11
+ gem "simplecov", require: false
12
+ gem "standard", require: false
13
13
  end
14
14
 
15
15
  gemspec path: "../"
@@ -2,14 +2,13 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 6.0"
6
- gem "dryer-config", "~> 6.0"
5
+ gem "rails", "~> 7.0"
7
6
 
8
7
  group :test do
9
8
  gem "observr"
10
- gem "standard", require: false
11
- gem "simplecov", require: false
12
9
  gem "ricecream"
10
+ gem "simplecov", require: false
11
+ gem "standard", require: false
13
12
  end
14
13
 
15
14
  gemspec path: "../"
@@ -0,0 +1,14 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 7.1"
6
+
7
+ group :test do
8
+ gem "observr"
9
+ gem "ricecream"
10
+ gem "simplecov", require: false
11
+ gem "standard", require: false
12
+ end
13
+
14
+ gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  module ActWithBag
2
- VERSION = "1.1.2" # 2023-04-22
2
+ VERSION = "1.1.3" # 2023-12-10
3
+ # VERSION = "1.1.2" # 2023-04-22
3
4
  # VERSION = "1.1.1" # 2022-12-11
4
5
  # VERSION = "1.1.0" # 2022-08-07
5
6
  # VERSION = "1.0.4" # 2021-06-17
data/lib/act_with_bag.rb CHANGED
@@ -3,6 +3,11 @@
3
3
  class << ActiveRecord::Base
4
4
  def add_to_bag(*baglets)
5
5
  # p "baglets #{baglets.inspect}"
6
+ # if Rails.version < "7.1.0"
7
+ # serialize :bag, Hash
8
+ # else
9
+ # serialize :bag, type: Hash, coder: YAML
10
+ # end
6
11
  serialize :bag, Hash
7
12
 
8
13
  class_eval %{
@@ -1,3 +1,3 @@
1
1
  class ApplicationRecord < ActiveRecord::Base
2
- self.abstract_class = true
2
+ primary_abstract_class
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: act_with_bag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-22 00:00:00.000000000 Z
11
+ date: 2023-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -111,8 +111,9 @@ files:
111
111
  - README.md
112
112
  - Rakefile
113
113
  - act_with_bag.gemspec
114
- - gemfiles/rails_6.0.gemfile
115
114
  - gemfiles/rails_6.1.gemfile
115
+ - gemfiles/rails_7.0.gemfile
116
+ - gemfiles/rails_7.1.gemfile
116
117
  - lib/act_with_bag.rb
117
118
  - lib/act_with_bag/version.rb
118
119
  - test/accessor_test.rb
@@ -129,11 +130,10 @@ files:
129
130
  - test/string_test.rb
130
131
  - test/test_helper.rb
131
132
  - test/type_test.rb
132
- homepage: http://matiq.com
133
+ homepage: https://github.com/matique/act_with_bag
133
134
  licenses:
134
135
  - MIT
135
- metadata:
136
- source_code_uri: https://github.com/matique/act_with_bag
136
+ metadata: {}
137
137
  post_install_message:
138
138
  rdoc_options: []
139
139
  require_paths:
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
- rubygems_version: 3.4.10
152
+ rubygems_version: 3.4.20
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: act_with_bag (baggies) gem