service_actor-promptable 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/CONTRIBUTING.md +24 -5
- data/README.md +201 -2
- data/SECURITY.md +13 -0
- data/lib/service_actor/promptable/version.rb +3 -1
- data/lib/service_actor/promptable.rb +9 -2
- metadata +35 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8800d1583285536b5b23e60a3bbf1a54b19df3e388d763c55f93ad4536f1c12c
|
4
|
+
data.tar.gz: 62d24c3fcc870b8bc69e9a63d7af2eb7c5047cf4ce9414041edfab33b8be7762
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cad2618d0d12523d4e4cfc6fe32887ed3f613397c0be38bc9ee83b4ef742faef97afa8698cf9b4932f3a68b8d96462b20b273abc766585b8925cdfd1c237d463
|
7
|
+
data.tar.gz: 1d0b7712bc6dd38c056bf07935c0440afdf6c5466513524a81b2e158c4ae1c5c48d2831b591403bfe91083e602e9ddb16827ac9575de3c41d7d26b437e6ce2ce
|
data/CHANGELOG.md
CHANGED
@@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
13
|
|
14
14
|
### Removed
|
15
15
|
|
16
|
+
## [1.0.1] - 2022-06-30
|
17
|
+
### Added
|
18
|
+
- Introspectable Version module
|
19
|
+
- Better documentation
|
20
|
+
- Code coverage analysis in CI
|
21
|
+
|
16
22
|
## [1.0.0] - 2022-06-09
|
17
23
|
### Added
|
18
24
|
- Initial release
|
@@ -20,5 +26,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
20
26
|
- DSL => `prompt_with`
|
21
27
|
- Class attribute => `prompt`
|
22
28
|
|
23
|
-
[Unreleased]: https://github.com/pboling/service_actor-promptable/compare/v1.0.
|
29
|
+
[Unreleased]: https://github.com/pboling/service_actor-promptable/compare/v1.0.1...HEAD
|
30
|
+
[1.0.1]: https://github.com/pboling/service_actor-promptable/compare/1.0.0...v1.0.1
|
24
31
|
[1.0.0]: https://github.com/pboling/service_actor-promptable/compare/3079772bb43c02ebfca364d27d062e573acdb091...v1.0.0
|
data/CONTRIBUTING.md
CHANGED
@@ -1,25 +1,44 @@
|
|
1
1
|
## Contributing
|
2
2
|
|
3
|
-
Bug reports and pull requests are welcome on GitHub at [https://github.com/
|
3
|
+
Bug reports and pull requests are welcome on GitHub at [https://github.com/pboling/service_actor-promptable][source]
|
4
4
|
. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
|
5
5
|
the [code of conduct][conduct].
|
6
6
|
|
7
7
|
To submit a patch, please fork the project and create a patch with tests. Once you're happy with it send a pull request!
|
8
8
|
|
9
|
+
## Detailed instructions on Submitting a Pull Request
|
10
|
+
1. [Fork the repository.][fork]
|
11
|
+
2. [Create a topic branch.][branch]
|
12
|
+
3. Add specs for your unimplemented feature or bug fix.
|
13
|
+
4. Run `bundle exec rake spec`. If your specs pass, return to step 3.
|
14
|
+
5. Implement your feature or bug fix.
|
15
|
+
6. Run `bundle exec rake`. If your specs fail, return to step 5.
|
16
|
+
7. Run `open coverage/index.html`. If your changes are not completely covered
|
17
|
+
by your tests, return to step 3.
|
18
|
+
8. Add documentation for your feature or bug fix.
|
19
|
+
9. Run `bundle exec rake verify_measurements`. If your changes are not 100%
|
20
|
+
documented, go back to step 8.
|
21
|
+
10. Commit and push your changes.
|
22
|
+
11. [Submit a pull request.][pr]
|
23
|
+
|
24
|
+
[fork]: http://help.github.com/fork-a-repo/
|
25
|
+
[branch]: http://learn.github.com/p/branching.html
|
26
|
+
[pr]: http://help.github.com/send-pull-requests/
|
27
|
+
|
9
28
|
## Contributors
|
10
29
|
|
11
|
-
[![Contributors](https://contrib.rocks/image?repo=
|
30
|
+
[![Contributors](https://contrib.rocks/image?repo=pboling/service_actor-promptable)][contributors]
|
12
31
|
|
13
32
|
Made with [contributors-img][contrib-rocks].
|
14
33
|
|
15
34
|
[comment]: <> (Following links are used by README, CONTRIBUTING)
|
16
35
|
|
17
|
-
[conduct]: https://github.com/
|
36
|
+
[conduct]: https://github.com/pboling/service_actor-promptable/blob/main/CODE_OF_CONDUCT.md
|
18
37
|
|
19
38
|
[contrib-rocks]: https://contrib.rocks
|
20
39
|
|
21
|
-
[contributors]: https://github.com/
|
40
|
+
[contributors]: https://github.com/pboling/service_actor-promptable/graphs/contributors
|
22
41
|
|
23
42
|
[comment]: <> (Following links are used by README, CONTRIBUTING, Homepage)
|
24
43
|
|
25
|
-
[source]: https://github.com/
|
44
|
+
[source]: https://github.com/pboling/service_actor-promptable
|
data/README.md
CHANGED
@@ -2,6 +2,136 @@
|
|
2
2
|
|
3
3
|
Easily add a TTY prompt to your Service Actors!
|
4
4
|
|
5
|
+
<!--
|
6
|
+
Numbering rows and badges in each row as a visual "database" lookup,
|
7
|
+
as the table is extremely dense, and it can be very difficult to find anything
|
8
|
+
Putting one on each row here, to document the emoji that should be used, and for ease of copy/paste.
|
9
|
+
|
10
|
+
row #s:
|
11
|
+
1️⃣
|
12
|
+
2️⃣
|
13
|
+
3️⃣
|
14
|
+
4️⃣
|
15
|
+
5️⃣
|
16
|
+
6️⃣
|
17
|
+
7️⃣
|
18
|
+
|
19
|
+
badge #s:
|
20
|
+
⛳️
|
21
|
+
🖇
|
22
|
+
🏘
|
23
|
+
🚎
|
24
|
+
🖐
|
25
|
+
🧮
|
26
|
+
📗
|
27
|
+
|
28
|
+
appended indicators:
|
29
|
+
♻️ - URL needs to be updated from SAAS integration. Find / Replace is insufficient.
|
30
|
+
-->
|
31
|
+
|
32
|
+
| | Project | bundle add service_actor-promptable |
|
33
|
+
|:----|--------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
34
|
+
| 1️⃣ | name, license, docs, standards | [![RubyGems.org][⛳️name-img]][⛳️gem] [![License: MIT][🖇src-license-img]][🖇src-license] [![RubyDoc.info][🚎yard-img]][🚎yard] [![SemVer 2.0.0][🧮semver-img]][semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog] |
|
35
|
+
| 2️⃣ | version & activity | [![Gem Version][⛳️version-img]][⛳️gem] [![Total Downloads][🖇DL-total-img]][⛳️gem] [![Download Rank][🏘DL-rank-img]][⛳️gem] [![Source Code][🚎src-home-img]][🚎src-home] [![Open PRs][🖐prs-o-img]][🖐prs-o] [![Closed PRs][🧮prs-c-img]][🧮prs-c] |
|
36
|
+
| 3️⃣ | maintanence & linting | [![Maintainability][⛳cclim-maint-img♻️]][⛳cclim-maint] [![Helpers][🖇triage-help-img]][🖇triage-help] [![Depfu][🏘depfu-img♻️]][🏘depfu♻️] [![Contributors][🚎contributors-img]][🚎contributors] [![Style][🖐style-wf-img]][🖐style-wf] [![Kloc Roll][🧮kloc-img]][🧮kloc] |
|
37
|
+
| 4️⃣ | testing | [![Open Issues][⛳iss-o-img]][⛳iss-o] [![Closed Issues][🖇iss-c-img]][🖇iss-c] [![Supported][🏘sup-wf-img]][🏘sup-wf] [![Heads][🚎heads-wf-img]][🚎heads-wf] [![Unofficial Support][🖐uns-wf-img]][🖐uns-wf] |
|
38
|
+
| 5️⃣ | coverage & security | [![CodeClimate][⛳cclim-cov-img♻️]][⛳cclim-cov] [![CodeCov][🖇codecov-img♻️]][🖇codecov] [![Coveralls][🏘coveralls-img]][🏘coveralls] [![Security Policy][🚎sec-pol-img]][🚎sec-pol] [![CodeQL][🖐codeQL-img]][🖐codeQL] [![Code Coverage][🧮cov-wf-img]][🧮cov-wf] |
|
39
|
+
| 6️⃣ | resources | [![Discussion][⛳gh-discussions-img]][⛳gh-discussions] [![Get help on Codementor][🖇codementor-img]][🖇codementor] [![Chat][🏘chat-img]][🏘chat] [![Blog][🚎blog-img]][🚎blog] [![Wiki][🖐wiki-img]][🖐wiki] |
|
40
|
+
| 7️⃣ | spread 💖 | [![Liberapay Patrons][⛳liberapay-img]][⛳liberapay] [![Sponsor Me][🖇sponsor-img]][🖇sponsor] [![Tweet @ Peter][🏘tweet-img]][🏘tweet] [🌏][aboutme] [👼][angelme] [💻][coderme] |
|
41
|
+
|
42
|
+
<!--
|
43
|
+
The link tokens in the following sections should be kept ordered by the row and badge numbering scheme
|
44
|
+
-->
|
45
|
+
|
46
|
+
<!-- 1️⃣ name, license, docs -->
|
47
|
+
[⛳️gem]: https://rubygems.org/gems/service_actor-promptable
|
48
|
+
[⛳️name-img]: https://img.shields.io/badge/name-service_actor--promptable-brightgreen.svg?style=flat
|
49
|
+
[🖇src-license]: https://opensource.org/licenses/MIT
|
50
|
+
[🖇src-license-img]: https://img.shields.io/badge/License-MIT-green.svg
|
51
|
+
[🚎yard]: https://www.rubydoc.info/github/pboling/service_actor-promptable
|
52
|
+
[🚎yard-img]: https://img.shields.io/badge/documentation-rubydoc-brightgreen.svg?style=flat
|
53
|
+
[🧮semver-img]: https://img.shields.io/badge/semver-2.0.0-FFDD67.svg?style=flat
|
54
|
+
[📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
|
55
|
+
[📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
|
56
|
+
|
57
|
+
<!-- 2️⃣ version & activity -->
|
58
|
+
[⛳️version-img]: http://img.shields.io/gem/v/service_actor-promptable.svg
|
59
|
+
[🖇DL-total-img]: https://img.shields.io/gem/dt/service_actor-promptable.svg
|
60
|
+
[🏘DL-rank-img]: https://img.shields.io/gem/rt/service_actor-promptable.svg
|
61
|
+
[🚎src-home]: https://github.com/pboling/service_actor-promptable
|
62
|
+
[🚎src-home-img]: https://img.shields.io/badge/source-github-brightgreen.svg?style=flat
|
63
|
+
[🖐prs-o]: https://github.com/pboling/service_actor-promptable/pulls
|
64
|
+
[🖐prs-o-img]: https://img.shields.io/github/issues-pr/pboling/service_actor-promptable
|
65
|
+
[🧮prs-c]: https://github.com/pboling/service_actor-promptable/pulls?q=is%3Apr+is%3Aclosed
|
66
|
+
[🧮prs-c-img]: https://img.shields.io/github/issues-pr-closed/pboling/service_actor-promptable
|
67
|
+
|
68
|
+
<!-- 3️⃣ maintenance & linting -->
|
69
|
+
[⛳cclim-maint]: https://codeclimate.com/github/pboling/service_actor-promptable/maintainability
|
70
|
+
[⛳cclim-maint-img♻️]: https://api.codeclimate.com/v1/badges/e3d930bcbfe3fdc1b144/maintainability
|
71
|
+
[🖇triage-help]: https://www.codetriage.com/pboling/service_actor-promptable
|
72
|
+
[🖇triage-help-img]: https://www.codetriage.com/pboling/service_actor-promptable/badges/users.svg
|
73
|
+
[🏘depfu♻️]: https://depfu.com/github/pboling/service_actor-promptable?project_id=35841
|
74
|
+
[🏘depfu-img♻️]: https://badges.depfu.com/badges/0813b6634ef735b352dc593196953773/count.svg
|
75
|
+
[🚎contributors]: https://github.com/pboling/service_actor-promptable/graphs/contributors
|
76
|
+
[🚎contributors-img]: https://img.shields.io/github/contributors-anon/pboling/service_actor-promptable
|
77
|
+
[🖐style-wf]: https://github.com/pboling/service_actor-promptable/actions/workflows/style.yml
|
78
|
+
[🖐style-wf-img]: https://github.com/pboling/service_actor-promptable/actions/workflows/style.yml/badge.svg
|
79
|
+
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
80
|
+
[🧮kloc-img]: https://img.shields.io/tokei/lines/github.com/pboling/service_actor-promptable
|
81
|
+
|
82
|
+
<!-- 4️⃣ testing -->
|
83
|
+
[⛳iss-o]: https://github.com/pboling/service_actor-promptable/issues
|
84
|
+
[⛳iss-o-img]: https://img.shields.io/github/issues-raw/pboling/service_actor-promptable
|
85
|
+
[🖇iss-c]: https://github.com/pboling/service_actor-promptable/issues?q=is%3Aissue+is%3Aclosed
|
86
|
+
[🖇iss-c-img]: https://img.shields.io/github/issues-closed-raw/pboling/service_actor-promptable
|
87
|
+
[🏘sup-wf]: https://github.com/pboling/service_actor-promptable/actions/workflows/current.yml
|
88
|
+
[🏘sup-wf-img]: https://github.com/pboling/service_actor-promptable/actions/workflows/current.yml/badge.svg
|
89
|
+
[🚎heads-wf]: https://github.com/pboling/service_actor-promptable/actions/workflows/heads.yml
|
90
|
+
[🚎heads-wf-img]: https://github.com/pboling/service_actor-promptable/actions/workflows/heads.yml/badge.svg
|
91
|
+
[🖐uns-wf]: https://github.com/pboling/service_actor-promptable/actions/workflows/legacy.yml
|
92
|
+
[🖐uns-wf-img]: https://github.com/pboling/service_actor-promptable/actions/workflows/legacy.yml/badge.svg
|
93
|
+
|
94
|
+
<!-- 5️⃣ coverage & security -->
|
95
|
+
[⛳cclim-cov]: https://codeclimate.com/github/pboling/service_actor-promptable/test_coverage
|
96
|
+
[⛳cclim-cov-img♻️]: https://api.codeclimate.com/v1/badges/e3d930bcbfe3fdc1b144/test_coverage
|
97
|
+
[🖇codecov-img♻️]: https://codecov.io/gh/pboling/service_actor-promptable/branch/main/graph/badge.svg?token=79c3X4vtfO
|
98
|
+
[🖇codecov]: https://codecov.io/gh/pboling/service_actor-promptable
|
99
|
+
[🏘coveralls]: https://coveralls.io/github/pboling/service_actor-promptable?branch=main
|
100
|
+
[🏘coveralls-img]: https://coveralls.io/repos/github/pboling/service_actor-promptable/badge.svg?branch=main
|
101
|
+
[🚎sec-pol]: https://github.com/pboling/service_actor-promptable/blob/main/SECURITY.md
|
102
|
+
[🚎sec-pol-img]: https://img.shields.io/badge/security-policy-brightgreen.svg?style=flat
|
103
|
+
[🖐codeQL]: https://github.com/pboling/service_actor-promptable/security/code-scanning
|
104
|
+
[🖐codeQL-img]: https://github.com/pboling/service_actor-promptable/actions/workflows/codeql-analysis.yml/badge.svg
|
105
|
+
[🧮cov-wf]: https://github.com/pboling/service_actor-promptable/actions/workflows/coverage.yml
|
106
|
+
[🧮cov-wf-img]: https://github.com/pboling/service_actor-promptable/actions/workflows/coverage.yml/badge.svg
|
107
|
+
|
108
|
+
<!-- 6️⃣ resources -->
|
109
|
+
[⛳gh-discussions]: https://github.com/pboling/service_actor-promptable/discussions
|
110
|
+
[⛳gh-discussions-img]: https://img.shields.io/github/discussions/pboling/service_actor-promptable
|
111
|
+
[🖇codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
|
112
|
+
[🖇codementor-img]: https://cdn.codementor.io/badges/get_help_github.svg
|
113
|
+
[🏘chat]: https://gitter.im/pboling/service_actor-promptable
|
114
|
+
[🏘chat-img]: https://img.shields.io/gitter/room/pboling/service_actor-promptable.svg
|
115
|
+
[🚎blog]: http://www.railsbling.com/tags/service_actor-promptable/
|
116
|
+
[🚎blog-img]: https://img.shields.io/badge/blog-railsbling-brightgreen.svg?style=flat
|
117
|
+
[🖐wiki]: https://github.com/pboling/service_actor-promptable/wiki
|
118
|
+
[🖐wiki-img]: https://img.shields.io/badge/wiki-examples-brightgreen.svg?style=flat
|
119
|
+
|
120
|
+
<!-- 7️⃣ spread 💖 -->
|
121
|
+
[⛳liberapay-img]: https://img.shields.io/liberapay/patrons/pboling.svg?logo=liberapay
|
122
|
+
[⛳liberapay]: https://liberapay.com/pboling/donate
|
123
|
+
[🖇sponsor-img]: https://img.shields.io/badge/sponsor-pboling.svg?style=social&logo=github
|
124
|
+
[🖇sponsor]: https://github.com/sponsors/pboling
|
125
|
+
[🏘tweet-img]: https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow
|
126
|
+
[🏘tweet]: http://twitter.com/galtzo
|
127
|
+
|
128
|
+
<!-- Maintainer Contact Links -->
|
129
|
+
[railsbling]: http://www.railsbling.com
|
130
|
+
[peterboling]: http://www.peterboling.com
|
131
|
+
[aboutme]: https://about.me/peter.boling
|
132
|
+
[angelme]: https://angel.co/peter-boling
|
133
|
+
[coderme]:http://coderwall.com/pboling
|
134
|
+
|
5
135
|
## Installation
|
6
136
|
|
7
137
|
Install the gem and add to the application's Gemfile by executing:
|
@@ -31,9 +161,36 @@ class ShouldContinue < Actor
|
|
31
161
|
|
32
162
|
prompt_with TTY::Prompt.new
|
33
163
|
output :answer, type: String
|
164
|
+
# or
|
165
|
+
# output :answer, type: [TrueClass, FalseClass]
|
34
166
|
|
35
167
|
def call
|
36
168
|
self.answer = prompt.ask("What is the capital of Assyria?", default: "Uh, I don't know that")
|
169
|
+
# or for a Yes/No query:
|
170
|
+
# self.answer = prompt.yes?("Do it?") # (Y/n)
|
171
|
+
end
|
172
|
+
end
|
173
|
+
```
|
174
|
+
|
175
|
+
### How to test
|
176
|
+
|
177
|
+
Let's say you have the `ShouldContinue` class above, how do you provide user input to test the Actor?
|
178
|
+
|
179
|
+
```ruby
|
180
|
+
require "tty/prompt"
|
181
|
+
require "tty/prompt/test"
|
182
|
+
|
183
|
+
describe ShouldContinue do
|
184
|
+
around do |example|
|
185
|
+
original = ShouldContinue.prompt
|
186
|
+
ShouldContinue.prompt = TTY::Prompt::Test.new
|
187
|
+
# Prepare a response from the user
|
188
|
+
ShouldContinue.prompt.input << "New Jack City\n"
|
189
|
+
# or for a Yes/No response:
|
190
|
+
# ShouldContinue.prompt.input << "Y\n"
|
191
|
+
ShouldContinue.prompt.input.rewind
|
192
|
+
example.run
|
193
|
+
ShouldContinue.prompt = original
|
37
194
|
end
|
38
195
|
end
|
39
196
|
```
|
@@ -46,12 +203,54 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
46
203
|
|
47
204
|
## Contributing
|
48
205
|
|
49
|
-
|
206
|
+
See [CONTRIBUTING.md][contributing]
|
207
|
+
|
208
|
+
[contributing]: https://github.com/pboling/service_actor-promptable/blob/main/CONTRIBUTING.md
|
209
|
+
|
210
|
+
## Contributors
|
211
|
+
|
212
|
+
[![Contributors](https://contrib.rocks/image?repo=pboling/service_actor-promptable)]("https://github.com/pboling/service_actor-promptable/graphs/contributors")
|
213
|
+
|
214
|
+
Made with [contributors-img](https://contrib.rocks).
|
215
|
+
|
216
|
+
## Versioning
|
217
|
+
|
218
|
+
This library aims to adhere to [Semantic Versioning 2.0.0][semver].
|
219
|
+
Violations of this scheme should be reported as bugs. Specifically,
|
220
|
+
if a minor or patch version is released that breaks backward
|
221
|
+
compatibility, a new version should be immediately released that
|
222
|
+
restores compatibility. Breaking changes to the public API will
|
223
|
+
only be introduced with new major versions.
|
224
|
+
|
225
|
+
As a result of this policy, you can (and should) specify a
|
226
|
+
dependency on this gem using the [Pessimistic Version Constraint][pvc] with two digits of precision.
|
227
|
+
|
228
|
+
For example:
|
229
|
+
|
230
|
+
```ruby
|
231
|
+
spec.add_dependency 'service_actor-promptable', '~> 1.0'
|
232
|
+
```
|
233
|
+
|
234
|
+
[semver]: http://semver.org/
|
235
|
+
[pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
|
50
236
|
|
51
237
|
## License
|
52
238
|
|
53
|
-
The gem is available as open source under the terms of
|
239
|
+
The gem is available as open source under the terms of
|
240
|
+
the [MIT License][license] [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)][license-ref].
|
241
|
+
See [LICENSE][license] for the official [Copyright Notice][copyright-notice-explainer].
|
242
|
+
|
243
|
+
* Copyright (c) 2022 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
244
|
+
|
245
|
+
[license]: https://github.com/pboling/service_actor-promptable/blob/main/LICENSE.txt
|
246
|
+
[license-ref]: https://opensource.org/licenses/MIT
|
247
|
+
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
54
248
|
|
55
249
|
## Code of Conduct
|
56
250
|
|
57
251
|
Everyone interacting in the ServiceActor::Promptable project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/pboling/service_actor-promptable/blob/main/CODE_OF_CONDUCT.md).
|
252
|
+
|
253
|
+
## Security
|
254
|
+
|
255
|
+
See [SECURITY.md](https://github.com/pboling/service_actor-promptable/blob/main/SECURITY.md).
|
256
|
+
|
data/SECURITY.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
## Supported Versions
|
4
|
+
|
5
|
+
| Version | Supported |
|
6
|
+
|----------|-----------|
|
7
|
+
| 1.latest | ✅ |
|
8
|
+
|
9
|
+
## Reporting a Vulnerability
|
10
|
+
|
11
|
+
Peter Boling is the primary maintainer of this gem. Please find a way
|
12
|
+
to [contact him directly](https://railsbling.com/contact) to report the issue. Include as much relevant information as
|
13
|
+
possible.
|
@@ -1,8 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
# External libraries
|
4
|
+
require "version_gem"
|
4
5
|
|
5
|
-
|
6
|
+
# This library
|
7
|
+
require "service_actor"
|
8
|
+
require "service_actor/promptable/version"
|
6
9
|
|
7
10
|
module ServiceActor
|
8
11
|
# Add a prompt to an actor class
|
@@ -43,3 +46,7 @@ module ServiceActor
|
|
43
46
|
end
|
44
47
|
end
|
45
48
|
end
|
49
|
+
|
50
|
+
ServiceActor::Promptable::Version.class_eval do
|
51
|
+
extend VersionGem::Basic
|
52
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: service_actor-promptable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: service_actor
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: version_gem
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.1'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rspec
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +52,20 @@ dependencies:
|
|
38
52
|
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-block_is_expected
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.0'
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: rake
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,6 +196,7 @@ files:
|
|
168
196
|
- CONTRIBUTING.md
|
169
197
|
- LICENSE.txt
|
170
198
|
- README.md
|
199
|
+
- SECURITY.md
|
171
200
|
- lib/service_actor/promptable.rb
|
172
201
|
- lib/service_actor/promptable/version.rb
|
173
202
|
- sig/service_actor/promptable.rbs
|
@@ -176,10 +205,10 @@ licenses:
|
|
176
205
|
- MIT
|
177
206
|
metadata:
|
178
207
|
homepage_uri: https://github.com/pboling/service_actor-promptable
|
179
|
-
source_code_uri: https://github.com/pboling/service_actor-promptable/tree/v1.0.
|
180
|
-
changelog_uri: https://github.com/pboling/service_actor-promptable/blob/v1.0.
|
208
|
+
source_code_uri: https://github.com/pboling/service_actor-promptable/tree/v1.0.1
|
209
|
+
changelog_uri: https://github.com/pboling/service_actor-promptable/blob/v1.0.1/CHANGELOG.md
|
181
210
|
bug_tracker_uri: https://github.com/pboling/service_actor-promptable/issues
|
182
|
-
documentation_uri: https://www.rubydoc.info/gems/service_actor-promptable/1.0.
|
211
|
+
documentation_uri: https://www.rubydoc.info/gems/service_actor-promptable/1.0.1
|
183
212
|
wiki_uri: https://github.com/pboling/service_actor-promptable/wiki
|
184
213
|
rubygems_mfa_required: 'true'
|
185
214
|
post_install_message:
|
@@ -197,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
226
|
- !ruby/object:Gem::Version
|
198
227
|
version: '0'
|
199
228
|
requirements: []
|
200
|
-
rubygems_version: 3.
|
229
|
+
rubygems_version: 3.3.16
|
201
230
|
signing_key:
|
202
231
|
specification_version: 4
|
203
232
|
summary: TTY Prompt plugin for service_actor
|