statusable 0.2.0.pre → 0.3.0.pre

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: 6abf9f62c9ce28ec0003fe73731760adc77dd2e6fad64f05165279d2cb575684
4
- data.tar.gz: db4e4a6a8dd888ee50dc489defe0e44c6b225a68a07ec1c41e02b4194eb6d4f8
3
+ metadata.gz: '08042127a22da0aacac6b596858eadf3dbbcbf4e0afdd3ff8713807a579f0960'
4
+ data.tar.gz: cca9c44afb9772931d2a8b3e6b1c06ce9b765674762d0c47423e61b87ac1a634
5
5
  SHA512:
6
- metadata.gz: db814ddca7cffb1c14facd97dadc88d341616a4357e32822f254a9b0d6196103bc17022549955f58cd4db71544295a409381fcc08e022a5a366586d8110cd793
7
- data.tar.gz: aa2482d72ee291e07f8b40f3e5e4c9d26b518508c0214974695b51687d8735f3d92a7d991372219dd88c1b87bc9be4432eb4bc8c17c0a504ad16734d58f7ffbd
6
+ metadata.gz: df801462f17e8287a0885a001d97c71906a579c296851e113698f0c6ae3c2df02d7d249cb7dd8ef74906ea07c2e451d51c186580cce9af954e5846358d79629e
7
+ data.tar.gz: 0e7b0fcaaf55e968d4d97bdcaadf4f3d8ca820498d737146f4b08fb739657cde63033567a336d1342dab38b50f56d731ed653b5b7d5134e442a897472aa6d742
data/README.md CHANGED
@@ -245,7 +245,15 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
245
245
 
246
246
  To install this gem onto your local machine, run `bundle exec rake install`.
247
247
 
248
- To release a new version, update the version number in `version.rb` and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
248
+ ### Releases
249
+
250
+ To release a new version of Statusable to RubyGems:
251
+
252
+ 1. Update the version number in `version.rb`
253
+ 2. Update the release date, etc. in `CHANGELOG.md`
254
+ 3. Run `bundle` to update Gemfile.lock with the latest version info
255
+ 4. Commit the changes. e.g. `Bump to vX.Y.Z`
256
+ 5. Run `rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
249
257
 
250
258
  ## License
251
259
 
@@ -103,8 +103,9 @@ module Statusable::HasStatuses
103
103
  end
104
104
 
105
105
  # #status?("Ready")
106
+ # #status?(["Ready", "Not Ready"])
106
107
  define_method(:"#{col_name}?") do |a_status|
107
- public_send(col_name) == a_status
108
+ Array(a_status).any?(public_send(col_name))
108
109
  end
109
110
 
110
111
  # #not_status?("Ready")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Statusable
4
- VERSION = "0.2.0.pre"
4
+ VERSION = "0.3.0.pre"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statusable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre
4
+ version: 0.3.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul DobbinSchmaltz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-16 00:00:00.000000000 Z
11
+ date: 2024-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails