act_with_bag 1.1.5 → 1.1.7

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: 9a821587d71ae914633510e231870309eff650ad1b5cd2cb619cf7cc3b1610fa
4
- data.tar.gz: c4e449c08ea2303c2fa639196c5f6b3acf276c1e6af6b65285cb781ec69e86e7
3
+ metadata.gz: 1ec69fd4c9c1d2228768ff03715fd4df0e7a3e0309731fe24f68119c3bb7bb83
4
+ data.tar.gz: 51e7803f10db1e8f1e4902fdf14531d7d0564a306e271d19b307b7d0849662d2
5
5
  SHA512:
6
- metadata.gz: 56d3de89da695b516c2c5476dc8be5016c91cd5a6ff726f70209afd833aa885d9dac5545588bdbd209c25b5ea98636075bcbfe531b332f02be1b7e3abc5820a2
7
- data.tar.gz: 698fb1b414194e87285ee0a4a199de5f75432ac2a1a51e719d3de51495f6d38302fb18ab4695593cbab282932f6684ffb9645a76d7c75162c09413482707e96f
6
+ metadata.gz: 490299026bb11283599fc825d81244929f1375f4e4e134ab2a97efe37578e3b3b6a99709e2c93b755d3219265cb7371919d234696d32c3a6d74f69b8005a0043
7
+ data.tar.gz: cc9008a56db234815265ad6b3b6080973caf57454126bd3e7518bff60cc8ed29be9661b8314f96f09f85af1f251f975d9b240c069b606ec8ce369290779587b2
@@ -8,10 +8,10 @@ jobs:
8
8
  strategy:
9
9
  fail-fast: false
10
10
  matrix:
11
- ruby_version: ["3.2", "3.3"]
11
+ ruby_version: [head, "3.4"]
12
12
  gemfile:
13
13
  - Gemfile
14
- - gemfiles/Gemfile.rails-7.1
14
+ - gemfiles/Gemfile.rails-8.0
15
15
  - gemfiles/Gemfile.rails-7.2
16
16
  runs-on: ubuntu-latest
17
17
 
@@ -24,6 +24,7 @@ jobs:
24
24
  bundler-cache: true
25
25
  - name: Bundle install
26
26
  run: |
27
+ bundle config set frozen false
27
28
  bundle config path /home/runner/bundle
28
29
  bundle install
29
30
  bundle update
data/.gitignore CHANGED
@@ -1,11 +1,13 @@
1
- .bundle/
2
- /coverage/
3
- .watchr
1
+ # ~/.gitignore included
4
2
 
5
- *.gem
6
- *.log
7
- *.lock
3
+ **/*.lock
8
4
 
9
- **/db/test.sqlite*
10
5
  /test/internal/storage/
11
6
  /test/internal/tmp/
7
+
8
+ .watchr
9
+
10
+ **/log/
11
+ **/tmp/
12
+ **/db/*.sqlite3*
13
+ **/db/*.sqlite3-*
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails-7.2
1
+ rails-8.1
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.3.5
1
+ ruby-3.4.7
data/Appraisals CHANGED
@@ -1,11 +1,15 @@
1
- appraise "rails-7.2" do
2
- gem "rails", "~> 7.2"
1
+ appraise "rails-8.0" do
2
+ gem "rails", "~> 8.0"
3
3
  end
4
4
 
5
- appraise "rails-7.1" do
6
- gem "rails", "~> 7.1"
5
+ appraise "rails-7.2" do
6
+ gem "rails", "~> 7.2"
7
7
  end
8
8
 
9
+ # appraise "rails-7.1" do
10
+ # gem "rails", "~> 7.1"
11
+ # end
12
+ #
9
13
  # appraise "rails-7.0" do
10
14
  # gem "rails", "~> 7.0"
11
15
  # end
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ gem "rails"
6
6
  group :test do
7
7
  gem "cuco"
8
8
  gem "ricecream"
9
- gem "sqlite3"
10
9
  gem "simplecov", require: false
10
+ gem "sqlite3"
11
11
  gem "standard", require: false
12
12
  end
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2023 Dittmar Krall (www.matiq.com)
1
+ Copyright (c) 2010-2025 Dittmar Krall (www.matiq.com)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # ActWithBag
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/act_with_bag.svg)](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)
5
- [![rake](https://github.com/matique/act_with_bag/actions/workflows/rake.yml/badge.svg)](https://github.com/matique/act_with_bag/actions/workflows/rake.yml)
6
- [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/standardrb/standard)
7
- [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://choosealicense.com/licenses/mit/)
3
+ [![Gem Version](https://img.shields.io/gem/v/act_with_bag?color=168AFE&logo=rubygems&logoColor=FE1616)](https://rubygems.org/gems/act_with_bag)
4
+ [![Downloads](https://img.shields.io/gem/dt/act_with_bag?color=168AFE&logo=rubygems&logoColor=FE1616)](https://rubygems.org/gems/act_with_bag)
5
+ [![GitHub Build](https://img.shields.io/github/actions/workflow/status/matique/act_with_bag/rake.yml?logo=github)](https://github.com/matique/act_with_bag/actions/workflows/rake.yml)
6
+ [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-168AFE.svg)](https://github.com/standardrb/standard)
7
+ [![MIT License](https://img.shields.io/badge/license-MIT-168AFE.svg)](http://choosealicense.com/licenses/mit/)
8
8
 
9
9
  Bag helps when fields in a Rails database table are not yet settled down
10
10
  or when many fields without business logic are required.
@@ -116,7 +116,8 @@ In controller:
116
116
 
117
117
  bundle exec rake
118
118
 
119
+
119
120
  ## Miscellaneous
120
121
 
121
- Copyright (c) 2009-2024 Dittmar Krall (www.matiq.com),
122
+ Copyright (c) 2009-2025 Dittmar Krall (www.matiq.com),
122
123
  released under the [MIT license](https://opensource.org/licenses/MIT).
data/act_with_bag.gemspec CHANGED
@@ -15,11 +15,11 @@ Gem::Specification.new do |s|
15
15
 
16
16
  s.files = `git ls-files -z`.split("\x0")
17
17
  s.require_paths = ["lib"]
18
+ s.required_ruby_version = "~> 3"
18
19
 
19
20
  s.add_development_dependency "bundler"
20
21
  s.add_development_dependency "rake"
21
22
  s.add_development_dependency "appraisal"
22
23
  s.add_development_dependency "combustion"
23
-
24
24
  s.add_development_dependency "minitest"
25
25
  end
@@ -7,8 +7,8 @@ gem "rails", "~> 7.2"
7
7
  group :test do
8
8
  gem "cuco"
9
9
  gem "ricecream"
10
- gem "sqlite3"
11
10
  gem "simplecov", require: false
11
+ gem "sqlite3"
12
12
  gem "standard", require: false
13
13
  end
14
14
 
@@ -2,13 +2,13 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 7.0"
5
+ gem "rails", "~> 8.0"
6
6
 
7
7
  group :test do
8
8
  gem "cuco"
9
9
  gem "ricecream"
10
- gem "sqlite3"
11
10
  gem "simplecov", require: false
11
+ gem "sqlite3"
12
12
  gem "standard", require: false
13
13
  end
14
14
 
@@ -1,5 +1,7 @@
1
1
  module ActWithBag
2
- VERSION = "1.1.5" # 2024-10-19
2
+ VERSION = "1.1.7" # 2025-10-30
3
+ # VERSION = "1.1.6" # 2025-06-17
4
+ # VERSION = "1.1.5" # 2024-10-19
3
5
  # VERSION = "1.1.4" # 2024-02-13
4
6
  # VERSION = "1.1.3" # 2023-12-10
5
7
  # VERSION = "1.1.2" # 2023-04-22
data/lib/act_with_bag.rb CHANGED
@@ -3,11 +3,7 @@
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
+ serialize :bag, type: Hash, coder: YAML
11
7
 
12
8
  class_eval %{
13
9
  unless method_defined?(:bag=)
@@ -9,7 +9,7 @@ class AccessorTest < ActiveSupport::TestCase
9
9
  @order = Order.new
10
10
  end
11
11
 
12
- test "should reject overwriting of column category" do
12
+ test "reject overwriting of column category" do
13
13
  value = "abc"
14
14
  assert @order.respond_to?(:category)
15
15
  @order.category = value
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: act_with_bag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-10-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -97,10 +96,8 @@ files:
97
96
  - README.md
98
97
  - Rakefile
99
98
  - act_with_bag.gemspec
100
- - gemfiles/rails_6.1.gemfile
101
- - gemfiles/rails_7.0.gemfile
102
- - gemfiles/rails_7.1.gemfile
103
99
  - gemfiles/rails_7.2.gemfile
100
+ - gemfiles/rails_8.0.gemfile
104
101
  - lib/act_with_bag.rb
105
102
  - lib/act_with_bag/version.rb
106
103
  - test/accessor_test.rb
@@ -121,23 +118,21 @@ homepage: https://github.com/matique/act_with_bag
121
118
  licenses:
122
119
  - MIT
123
120
  metadata: {}
124
- post_install_message:
125
121
  rdoc_options: []
126
122
  require_paths:
127
123
  - lib
128
124
  required_ruby_version: !ruby/object:Gem::Requirement
129
125
  requirements:
130
- - - ">="
126
+ - - "~>"
131
127
  - !ruby/object:Gem::Version
132
- version: '0'
128
+ version: '3'
133
129
  required_rubygems_version: !ruby/object:Gem::Requirement
134
130
  requirements:
135
131
  - - ">="
136
132
  - !ruby/object:Gem::Version
137
133
  version: '0'
138
134
  requirements: []
139
- rubygems_version: 3.5.20
140
- signing_key:
135
+ rubygems_version: 3.6.9
141
136
  specification_version: 4
142
137
  summary: act_with_bag (baggies) gem
143
138
  test_files: []
@@ -1,16 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 6.1"
6
- gem "dryer-config", "~> 6.0"
7
-
8
- group :test do
9
- gem "cuco"
10
- gem "ricecream"
11
- gem "sqlite3"
12
- gem "simplecov", require: false
13
- gem "standard", require: false
14
- end
15
-
16
- gemspec path: "../"
@@ -1,15 +0,0 @@
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 "cuco"
9
- gem "ricecream"
10
- gem "sqlite3"
11
- gem "simplecov", require: false
12
- gem "standard", require: false
13
- end
14
-
15
- gemspec path: "../"