act_with_bag 1.1.3 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +8 -4
- data/.gitignore +4 -7
- data/.ruby-gemset +1 -1
- data/.ruby-version +1 -1
- data/Appraisals +13 -9
- data/Gemfile +2 -1
- data/MIT-LICENSE +0 -2
- data/README.md +5 -2
- data/act_with_bag.gemspec +0 -1
- data/gemfiles/rails_6.1.gemfile +2 -1
- data/gemfiles/rails_7.0.gemfile +2 -1
- data/gemfiles/rails_7.1.gemfile +2 -1
- data/gemfiles/rails_7.2.gemfile +15 -0
- data/lib/act_with_bag/version.rb +3 -1
- data/lib/act_with_bag.rb +5 -6
- data/test/internal/app/models/application_record.rb +1 -1
- data/test/test_helper.rb +0 -1
- metadata +7 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a821587d71ae914633510e231870309eff650ad1b5cd2cb619cf7cc3b1610fa
|
4
|
+
data.tar.gz: c4e449c08ea2303c2fa639196c5f6b3acf276c1e6af6b65285cb781ec69e86e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56d3de89da695b516c2c5476dc8be5016c91cd5a6ff726f70209afd833aa885d9dac5545588bdbd209c25b5ea98636075bcbfe531b332f02be1b7e3abc5820a2
|
7
|
+
data.tar.gz: 698fb1b414194e87285ee0a4a199de5f75432ac2a1a51e719d3de51495f6d38302fb18ab4695593cbab282932f6684ffb9645a76d7c75162c09413482707e96f
|
data/.github/workflows/rake.yml
CHANGED
@@ -8,20 +8,24 @@ jobs:
|
|
8
8
|
strategy:
|
9
9
|
fail-fast: false
|
10
10
|
matrix:
|
11
|
-
ruby_version: ["3.
|
11
|
+
ruby_version: ["3.2", "3.3"]
|
12
12
|
gemfile:
|
13
13
|
- Gemfile
|
14
|
-
- gemfiles/Gemfile.rails-6.1
|
15
|
-
- gemfiles/Gemfile.rails-7.0
|
16
14
|
- gemfiles/Gemfile.rails-7.1
|
15
|
+
- gemfiles/Gemfile.rails-7.2
|
17
16
|
runs-on: ubuntu-latest
|
18
17
|
|
19
18
|
steps:
|
20
|
-
- uses: actions/checkout@
|
19
|
+
- uses: actions/checkout@v4
|
21
20
|
- name: Set up Ruby
|
22
21
|
uses: ruby/setup-ruby@v1
|
23
22
|
with:
|
24
23
|
ruby-version: ${{ matrix.ruby_version }}
|
25
24
|
bundler-cache: true
|
25
|
+
- name: Bundle install
|
26
|
+
run: |
|
27
|
+
bundle config path /home/runner/bundle
|
28
|
+
bundle install
|
29
|
+
bundle update
|
26
30
|
- name: Build and test with Rake
|
27
31
|
run: bundle exec rake
|
data/.gitignore
CHANGED
data/.ruby-gemset
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rails-7.
|
1
|
+
rails-7.2
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.
|
1
|
+
ruby-3.3.5
|
data/Appraisals
CHANGED
@@ -1,16 +1,20 @@
|
|
1
|
-
appraise "rails-7.
|
2
|
-
gem "rails", "~> 7.
|
3
|
-
end
|
4
|
-
|
5
|
-
appraise "rails-7.0" do
|
6
|
-
gem "rails", "~> 7.0"
|
1
|
+
appraise "rails-7.2" do
|
2
|
+
gem "rails", "~> 7.2"
|
7
3
|
end
|
8
4
|
|
9
|
-
appraise "rails-
|
10
|
-
gem "rails", "~>
|
11
|
-
gem "dryer-config", "~> 6.0"
|
5
|
+
appraise "rails-7.1" do
|
6
|
+
gem "rails", "~> 7.1"
|
12
7
|
end
|
13
8
|
|
9
|
+
# appraise "rails-7.0" do
|
10
|
+
# gem "rails", "~> 7.0"
|
11
|
+
# end
|
12
|
+
#
|
13
|
+
# appraise "rails-6.1" do
|
14
|
+
# gem "rails", "~> 6.1"
|
15
|
+
# gem "dryer-config", "~> 6.0"
|
16
|
+
# end
|
17
|
+
#
|
14
18
|
# appraise "rails-6.0" do
|
15
19
|
# gem "rails", "~> 6.0"
|
16
20
|
# gem "dryer-config", "~> 6.0"
|
data/Gemfile
CHANGED
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
# ActWithBag
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/act_with_bag.
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/act_with_bag.svg)](http://badge.fury.io/rb/act_with_bag)
|
4
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/)
|
5
8
|
|
6
9
|
Bag helps when fields in a Rails database table are not yet settled down
|
7
10
|
or when many fields without business logic are required.
|
@@ -115,5 +118,5 @@ In controller:
|
|
115
118
|
|
116
119
|
## Miscellaneous
|
117
120
|
|
118
|
-
Copyright (c) 2009-
|
121
|
+
Copyright (c) 2009-2024 Dittmar Krall (www.matiq.com),
|
119
122
|
released under the [MIT license](https://opensource.org/licenses/MIT).
|
data/act_with_bag.gemspec
CHANGED
data/gemfiles/rails_6.1.gemfile
CHANGED
data/gemfiles/rails_7.0.gemfile
CHANGED
data/gemfiles/rails_7.1.gemfile
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "rails", "~> 7.2"
|
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: "../"
|
data/lib/act_with_bag/version.rb
CHANGED
data/lib/act_with_bag.rb
CHANGED
@@ -3,12 +3,11 @@
|
|
3
3
|
class << ActiveRecord::Base
|
4
4
|
def add_to_bag(*baglets)
|
5
5
|
# p "baglets #{baglets.inspect}"
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
serialize :bag, Hash
|
6
|
+
if Rails.version < "7.1.0"
|
7
|
+
serialize :bag, Hash
|
8
|
+
else
|
9
|
+
serialize :bag, type: Hash, coder: YAML
|
10
|
+
end
|
12
11
|
|
13
12
|
class_eval %{
|
14
13
|
unless method_defined?(:bag=)
|
data/test/test_helper.rb
CHANGED
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.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: sqlite3
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
83
|
description: Add a bag to a Rails model
|
98
84
|
email:
|
99
85
|
- dittmar.krall@matiq.com
|
@@ -114,6 +100,7 @@ files:
|
|
114
100
|
- gemfiles/rails_6.1.gemfile
|
115
101
|
- gemfiles/rails_7.0.gemfile
|
116
102
|
- gemfiles/rails_7.1.gemfile
|
103
|
+
- gemfiles/rails_7.2.gemfile
|
117
104
|
- lib/act_with_bag.rb
|
118
105
|
- lib/act_with_bag/version.rb
|
119
106
|
- test/accessor_test.rb
|
@@ -134,7 +121,7 @@ homepage: https://github.com/matique/act_with_bag
|
|
134
121
|
licenses:
|
135
122
|
- MIT
|
136
123
|
metadata: {}
|
137
|
-
post_install_message:
|
124
|
+
post_install_message:
|
138
125
|
rdoc_options: []
|
139
126
|
require_paths:
|
140
127
|
- lib
|
@@ -149,8 +136,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
136
|
- !ruby/object:Gem::Version
|
150
137
|
version: '0'
|
151
138
|
requirements: []
|
152
|
-
rubygems_version: 3.
|
153
|
-
signing_key:
|
139
|
+
rubygems_version: 3.5.20
|
140
|
+
signing_key:
|
154
141
|
specification_version: 4
|
155
142
|
summary: act_with_bag (baggies) gem
|
156
143
|
test_files: []
|