act_with_booleans 0.0.3 → 0.0.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: c4640236fbfd6a32e80383d4fc9d9ede303c9abdf17c50007fca2f6ffbf5f824
4
- data.tar.gz: 123d982d723a4ea0a140d6924f1f2afd7808940c36309e0e549415a19e84a43e
3
+ metadata.gz: ee31f79ad3bc2684ec406b67baac50b24931eff281eb3aebb955186c2e169d9e
4
+ data.tar.gz: '049e7d194885bf8fedf2d09f6be56a725db2be1e6f9a1b17561da55ebae96be2'
5
5
  SHA512:
6
- metadata.gz: '01794525018fc50a09c582f450e9f30190d567633d7ea32cd0d000df00e09ba80f962f9ba2479a0759f0864b8b1adbfe6db5ca0de57a4e728438ba2045775c5b'
7
- data.tar.gz: fc8efd57e21adfac8ee480efb4537920ae92972ca0f7090cd159afdfc0db3e9d9c3d3039923e26906bb06a31cc8bd9283028dbae898a5fc37e639c75b0a0ca55
6
+ metadata.gz: dc727cb213bc9c34b750069a1e3cb4cf6657fc8c1339274a58f9784591b312e326f93e9c2e1a338c876c448a9c06f568a22fce5e273d809e24cd2b2e731a923c
7
+ data.tar.gz: 534d07cac57f18f2c39e479bb1dde392717972049ca3cd34af2e20de452c9911090483324a37069f58f494c1754c6285402259c13fc2781583f7df3ccb7ff845
@@ -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.2", "3.3"]
12
+ runs-on: ubuntu-latest
15
13
 
16
14
  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 }}
15
+ - uses: actions/checkout@v4
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby_version }}
20
+ bundler-cache: true
21
+ - name: Bundle install
22
+ run: |
23
+ bundle config path /home/runner/bundle
24
+ bundle install
25
+ bundle update
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
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails-7.0
1
+ rails-7.2
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.2.2
1
+ ruby-3.3.5
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ gemspec
3
3
 
4
4
  group :test do
5
5
  gem "benchmark-ips"
6
- gem "observr"
6
+ gem "cuco"
7
7
  gem "ricecream"
8
8
  gem "simplecov", require: false
9
9
  gem "standard", require: false
data/MIT-LICENSE CHANGED
@@ -1,6 +1,4 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2022-2023 Dittmar Krall (www.matiq.com)
1
+ Copyright (c) 2022-2024 Dittmar Krall (www.matiq.com)
4
2
 
5
3
  Permission is hereby granted, free of charge, to any person obtaining
6
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,12 +1,15 @@
1
- # ActWithFlags
1
+ # ActWithBooleans
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/act_with_booleans.png)](http://badge.fury.io/rb/act_with_booleans)
3
+ [![Gem Version](https://badge.fury.io/rb/act_with_booleans.svg)](http://badge.fury.io/rb/act_with_booleans)
4
+ [![GEM Downloads](https://img.shields.io/gem/dt/act_with_booleans?color=168AFE&logo=ruby&logoColor=FE1616)](https://rubygems.org/gems/act_with_booleans)
5
+ [![rake](https://github.com/matique/act_with_booleans/actions/workflows/rake.yml/badge.svg)](https://github.com/matique/act_with_booleans/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/)
4
8
 
5
9
  A Ruby gem handling booleans placed in an integer.
6
10
 
7
11
  Defines setters and getters to access the booleans.
8
12
 
9
-
10
13
  ## Installation
11
14
 
12
15
  As usual:
@@ -115,7 +118,5 @@ Further reading:
115
118
 
116
119
  ## Miscellaneous
117
120
 
118
- Copyright (c) 2023 Dittmar Krall (www.matiq.com),
119
- released under the MIT license:
120
-
121
- * https://opensource.org/licenses/MIT
121
+ Copyright (c) 2023-2024 Dittmar Krall (www.matiq.com),
122
+ released under the [MIT license](https://opensource.org/licenses/MIT).
@@ -9,11 +9,10 @@ Gem::Specification.new do |s|
9
9
  s.description = %(Handles booleans packed in an integer)
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_booleans"
13
13
 
14
14
  s.license = "MIT"
15
15
  s.platform = Gem::Platform::RUBY
16
- s.metadata["source_code_uri"] = "https://github.com/matique/act_with_booleans"
17
16
 
18
17
  s.files = `git ls-files -z`.split("\x0")
19
18
  s.require_paths = ["lib"]
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActWithBooleans
4
- VERSION = "0.0.3" # 2023-04-23
4
+ VERSION = "0.0.5" # 2024-10-19
5
+ # VERSION = "0.0.4" # 2023-12-11
6
+ # VERSION = "0.0.3" # 2023-04-23
5
7
  # VERSION = "0.0.2" # 2022-12-11
6
8
  # VERSION = "0.0.1" # 2022-09-10
7
9
  end
@@ -20,7 +20,7 @@ describe "Internal One Flag" do
20
20
  it "checks definition of methods" do
21
21
  msg = "method '#{bool}' not defined"
22
22
  assert order.respond_to?(bool.to_s), msg
23
- assert order.respond_to?("#{bool}?"), msg
24
- assert order.respond_to?("#{bool}="), msg
23
+ assert order.respond_to?(:"#{bool}?"), msg
24
+ assert order.respond_to?(:"#{bool}="), msg
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: act_with_booleans
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.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-04-23 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
@@ -59,7 +59,6 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - ".github/workflows/lint.yml"
63
62
  - ".github/workflows/rake.yml"
64
63
  - ".gitignore"
65
64
  - ".ruby-gemset"
@@ -91,12 +90,11 @@ files:
91
90
  - test/origin_test.rb
92
91
  - test/size_test.rb
93
92
  - test/test_helper.rb
94
- homepage: http://matiq.com
93
+ homepage: https://github.com/matique/act_with_booleans
95
94
  licenses:
96
95
  - MIT
97
- metadata:
98
- source_code_uri: https://github.com/matique/act_with_booleans
99
- post_install_message:
96
+ metadata: {}
97
+ post_install_message:
100
98
  rdoc_options: []
101
99
  require_paths:
102
100
  - lib
@@ -111,8 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
109
  - !ruby/object:Gem::Version
112
110
  version: '0'
113
111
  requirements: []
114
- rubygems_version: 3.4.10
115
- signing_key:
112
+ rubygems_version: 3.5.20
113
+ signing_key:
116
114
  specification_version: 4
117
115
  summary: Ruby gem act_with_booleans
118
116
  test_files: []
@@ -1,14 +0,0 @@
1
- name: Lint
2
- on: push
3
- jobs:
4
- lint:
5
- runs-on: ubuntu-latest
6
- steps:
7
- - name: Checkout code
8
- uses: actions/checkout@v3
9
- - name: Set up Ruby
10
- uses: ruby/setup-ruby@v1
11
- with:
12
- bundler-cache: true
13
- - name: Run Standard
14
- run: bundle exec standardrb