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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17a9af8503db5d084ade7fe944161376b15f00425c59e2a329ba974e13618c1f
4
- data.tar.gz: d02c7d5937cd1a3568165a951fe45580c46557f32421a698fa697dfad0e933d9
3
+ metadata.gz: 9a821587d71ae914633510e231870309eff650ad1b5cd2cb619cf7cc3b1610fa
4
+ data.tar.gz: c4e449c08ea2303c2fa639196c5f6b3acf276c1e6af6b65285cb781ec69e86e7
5
5
  SHA512:
6
- metadata.gz: a26a90082c19ddf7317bc37b4e79fe673a781fb04acbaabe06b761433e5a429e3acf635ca94dfd3724369e30d4f2698f4a8852bf27ce8bfdad7ba56b4aa9f853
7
- data.tar.gz: 908c5d0231989d24be70fcd4c9fe231af6b80f5e0ed6883afd4b897c946402b7f54990ae969e48b22e43b76a66ceb125e8ad27ebf151f80393607f3003eb3e9d
6
+ metadata.gz: 56d3de89da695b516c2c5476dc8be5016c91cd5a6ff726f70209afd833aa885d9dac5545588bdbd209c25b5ea98636075bcbfe531b332f02be1b7e3abc5820a2
7
+ data.tar.gz: 698fb1b414194e87285ee0a4a199de5f75432ac2a1a51e719d3de51495f6d38302fb18ab4695593cbab282932f6684ffb9645a76d7c75162c09413482707e96f
@@ -8,20 +8,24 @@ jobs:
8
8
  strategy:
9
9
  fail-fast: false
10
10
  matrix:
11
- ruby_version: ["3.0", 3.2]
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@v3
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
@@ -1,14 +1,11 @@
1
1
  .bundle/
2
- coverage/
2
+ /coverage/
3
3
  .watchr
4
4
 
5
5
  *.gem
6
6
  *.log
7
7
  *.lock
8
- *.sqlite3
9
- **/*.gem
10
- **/*.log
11
- **/*.lock
12
- **/test.sqlite3*
13
8
 
14
- test/internal/tmp/
9
+ **/db/test.sqlite*
10
+ /test/internal/storage/
11
+ /test/internal/tmp/
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails-7.1
1
+ rails-7.2
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.2.2
1
+ ruby-3.3.5
data/Appraisals CHANGED
@@ -1,16 +1,20 @@
1
- appraise "rails-7.1" do
2
- gem "rails", "~> 7.1"
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-6.1" do
10
- gem "rails", "~> 6.1"
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
@@ -4,8 +4,9 @@ gemspec
4
4
  gem "rails"
5
5
 
6
6
  group :test do
7
- gem "observr"
7
+ gem "cuco"
8
8
  gem "ricecream"
9
+ gem "sqlite3"
9
10
  gem "simplecov", require: false
10
11
  gem "standard", require: false
11
12
  end
data/MIT-LICENSE CHANGED
@@ -1,5 +1,3 @@
1
- The MIT License (MIT)
2
-
3
1
  Copyright (c) 2010-2023 Dittmar Krall (www.matiq.com)
4
2
 
5
3
  Permission is hereby granted, free of charge, to any person obtaining
data/README.md CHANGED
@@ -1,7 +1,10 @@
1
1
  # ActWithBag
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/act_with_bag.png)](http://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-2023 Dittmar Krall (www.matiq.com),
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
@@ -22,5 +22,4 @@ Gem::Specification.new do |s|
22
22
  s.add_development_dependency "combustion"
23
23
 
24
24
  s.add_development_dependency "minitest"
25
- s.add_development_dependency "sqlite3"
26
25
  end
@@ -6,8 +6,9 @@ gem "rails", "~> 6.1"
6
6
  gem "dryer-config", "~> 6.0"
7
7
 
8
8
  group :test do
9
- gem "observr"
9
+ gem "cuco"
10
10
  gem "ricecream"
11
+ gem "sqlite3"
11
12
  gem "simplecov", require: false
12
13
  gem "standard", require: false
13
14
  end
@@ -5,8 +5,9 @@ source "https://rubygems.org"
5
5
  gem "rails", "~> 7.0"
6
6
 
7
7
  group :test do
8
- gem "observr"
8
+ gem "cuco"
9
9
  gem "ricecream"
10
+ gem "sqlite3"
10
11
  gem "simplecov", require: false
11
12
  gem "standard", require: false
12
13
  end
@@ -5,8 +5,9 @@ source "https://rubygems.org"
5
5
  gem "rails", "~> 7.1"
6
6
 
7
7
  group :test do
8
- gem "observr"
8
+ gem "cuco"
9
9
  gem "ricecream"
10
+ gem "sqlite3"
10
11
  gem "simplecov", require: false
11
12
  gem "standard", require: false
12
13
  end
@@ -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: "../"
@@ -1,5 +1,7 @@
1
1
  module ActWithBag
2
- VERSION = "1.1.3" # 2023-12-10
2
+ VERSION = "1.1.5" # 2024-10-19
3
+ # VERSION = "1.1.4" # 2024-02-13
4
+ # VERSION = "1.1.3" # 2023-12-10
3
5
  # VERSION = "1.1.2" # 2023-04-22
4
6
  # VERSION = "1.1.1" # 2022-12-11
5
7
  # VERSION = "1.1.0" # 2022-08-07
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
- # if Rails.version < "7.1.0"
7
- # serialize :bag, Hash
8
- # else
9
- # serialize :bag, type: Hash, coder: YAML
10
- # end
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=)
@@ -1,3 +1,3 @@
1
1
  class ApplicationRecord < ActiveRecord::Base
2
- primary_abstract_class
2
+ primary_abstract_class
3
3
  end
data/test/test_helper.rb CHANGED
@@ -14,4 +14,3 @@ end
14
14
  require "rails/test_help"
15
15
  require "minitest/autorun"
16
16
  require "minitest/benchmark"
17
- # require 'capybara/rails'
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.3
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: 2023-12-10 00:00:00.000000000 Z
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.4.20
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: []