bools 0.5.0 → 0.5.1

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/bools.gemspec +1 -1
  4. data/lib/bools.rb +1 -1
  5. metadata +6 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18bb7c86f9e8d827350e3a5eca69da9bf8178693a11b04f09dea813210652ca3
4
- data.tar.gz: dcbfc9eec87c102073c9d50867d61f23800bff32a24802ced02ff0de37941f58
3
+ metadata.gz: d6e6999c8281dfe44baff03d74462a776762f512969fc67225be9fcc7f7d806e
4
+ data.tar.gz: 49b805b89258561dbf37e7feb368be6556fa1d00bf8fd32c15c111d928c35393
5
5
  SHA512:
6
- metadata.gz: 2c0336d44e61cae6e0585dba03d4e887f3971c33827e54d986f86f11873322193f436c4b56eeae2c29564d8cf6513a5f9166cbdb6491c231567b165af02b7da6
7
- data.tar.gz: 515c8ba0a643ea29f3272aae08e94ba426114631720bdf824901056a175615977080df709eb0c1f8381ec0413e281c15a994f71bc8a787658b94f93d28c78b32
6
+ metadata.gz: 0f9ed7042f794abe36dd17a93f0c419389962f175b8de982d40abc5a0e5e4574a7a2d0e232135e970e93edd2a859f26e2611b685cfd6c5ad3821dd7bcc3eb0a9
7
+ data.tar.gz: 75127f604c64ef3f8a256ed1ed8340017b64274395599969d2709c27daee41ad89439a828083771317bb4a9e43f1b01987cf6a79302ce03d83f501dfb46e4c99
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5
1
+ 3.1.2
data/bools.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "bools"
5
- s.version = "0.5.0"
5
+ s.version = "0.5.1"
6
6
  s.author = "Steve Shreeve"
7
7
  s.email = "steve.shreeve@gmail.com"
8
8
  s.summary = "Bools is a Ruby gem that makes it easy to evaluate boolean conditionals"
data/lib/bools.rb CHANGED
@@ -4,7 +4,7 @@ def bools!
4
4
  puts
5
5
  puts [*list, '|', 'result'] * ' '
6
6
  puts ['--' * list.size, '-' * 6] * '+-'
7
- (vars << 1).times do |i|
7
+ (1 << vars).times do |i|
8
8
  list = ("%0*b" % [vars, i]).split('')
9
9
  vals = list.map {|item| item == '1'}
10
10
  resu = !!test(*vals) ? '1' : '0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-10 00:00:00.000000000 Z
11
+ date: 2022-10-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Write one method and bools will test all input combinations
14
14
  email: steve.shreeve@gmail.com
@@ -26,7 +26,7 @@ homepage: https://github.com/shreeve/bools
26
26
  licenses:
27
27
  - MIT
28
28
  metadata: {}
29
- post_install_message:
29
+ post_install_message:
30
30
  rdoc_options: []
31
31
  require_paths:
32
32
  - lib
@@ -41,9 +41,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  requirements: []
44
- rubyforge_project:
45
- rubygems_version: 2.7.7
46
- signing_key:
44
+ rubygems_version: 3.3.7
45
+ signing_key:
47
46
  specification_version: 4
48
47
  summary: Bools is a Ruby gem that makes it easy to evaluate boolean conditionals
49
48
  test_files: []