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 +4 -4
- data/README.md +9 -1
- data/lib/statusable/has_statuses.rb +2 -1
- data/lib/statusable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08042127a22da0aacac6b596858eadf3dbbcbf4e0afdd3ff8713807a579f0960'
|
4
|
+
data.tar.gz: cca9c44afb9772931d2a8b3e6b1c06ce9b765674762d0c47423e61b87ac1a634
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|
108
|
+
Array(a_status).any?(public_send(col_name))
|
108
109
|
end
|
109
110
|
|
110
111
|
# #not_status?("Ready")
|
data/lib/statusable/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|