highline_wrapper 1.2.0 → 1.3.1

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: 911a5de9b3a7c5315a0dd7983a3a3da86fc7ac39309718a93601400cdfd3e5d1
4
- data.tar.gz: 00c7153fd5d0f2d9bbc354aaa4c04113abfd507d7a42560865c472c218e4197e
3
+ metadata.gz: 66af787768004458acb367ed5a5d6ec626a430d7e7edda628b74f484f49cc20d
4
+ data.tar.gz: a7df04084c4344b00fd4185a9b608a62be31a55d2cdd9e325ed9ac9ccb2ad93d
5
5
  SHA512:
6
- metadata.gz: 8ec66bb92ec4b4e24d68b772774b04f9c5aff7efba95feea1f8d315098f88a0a7836a3ca37609fb638f43b1fadf6fe0b9fb1fa935c8a4accc279f6b8c94810fd
7
- data.tar.gz: b4582ee3283bd032c9a611bed8850e92922877fde6b378594a31bfc7088fb19a74e642d99787d0a451f08066a1e31591fec643d5ab6197e38f20fecb7690c954
6
+ metadata.gz: a9a42c0af6740fd2dbac80d338ac47f5055d934fbd9f60f4ee12ee7a2bd7d025f215166d36676376c6184f82ee7b3f54963e5ef01872f0d85bcc6ce4b0b0e055
7
+ data.tar.gz: a156ebe78d6f8949d1c37e1651313ddc98468762385dba2dbdf34c4efc69cd8e5b6314bbb7c1b00e86a6529c7d882169a887a8c441dd55ead2a06adb7437a820
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- highline_wrapper (1.2.0)
4
+ highline_wrapper (1.3.1)
5
5
  highline (~> 2.0)
6
6
 
7
7
  GEM
@@ -9,19 +9,19 @@ GEM
9
9
  specs:
10
10
  ast (2.4.2)
11
11
  coderay (1.1.3)
12
- concurrent-ruby (1.1.8)
12
+ concurrent-ruby (1.1.9)
13
13
  diff-lcs (1.4.4)
14
- faker (2.18.0)
14
+ faker (2.19.0)
15
15
  i18n (>= 1.6, < 2)
16
- ffi (1.15.1)
17
- formatador (0.2.5)
18
- guard (2.17.0)
16
+ ffi (1.15.4)
17
+ formatador (0.3.0)
18
+ guard (2.18.0)
19
19
  formatador (>= 0.2.4)
20
20
  listen (>= 2.7, < 4.0)
21
21
  lumberjack (>= 1.0.12, < 2.0)
22
22
  nenv (~> 0.1)
23
23
  notiffany (~> 0.0)
24
- pry (>= 0.9.12)
24
+ pry (>= 0.13.0)
25
25
  shellany (~> 0.0)
26
26
  thor (>= 0.18.1)
27
27
  guard-compat (1.2.1)
@@ -30,9 +30,9 @@ GEM
30
30
  guard-compat (~> 1.1)
31
31
  rspec (>= 2.99.0, < 4.0)
32
32
  highline (2.0.3)
33
- i18n (1.8.10)
33
+ i18n (1.8.11)
34
34
  concurrent-ruby (~> 1.0)
35
- listen (3.5.1)
35
+ listen (3.7.0)
36
36
  rb-fsevent (~> 0.10, >= 0.10.3)
37
37
  rb-inotify (~> 0.9, >= 0.9.10)
38
38
  lumberjack (1.2.8)
@@ -41,14 +41,13 @@ GEM
41
41
  notiffany (0.1.3)
42
42
  nenv (~> 0.1)
43
43
  shellany (~> 0.0)
44
- parallel (1.20.1)
45
- parser (3.0.1.1)
44
+ parallel (1.21.0)
45
+ parser (3.0.2.0)
46
46
  ast (~> 2.4.1)
47
47
  pry (0.14.1)
48
48
  coderay (~> 1.1)
49
49
  method_source (~> 1.0)
50
50
  rainbow (3.0.0)
51
- rake (13.0.3)
52
51
  rb-fsevent (0.11.0)
53
52
  rb-inotify (0.10.1)
54
53
  ffi (~> 1.0)
@@ -66,25 +65,25 @@ GEM
66
65
  rspec-mocks (3.10.2)
67
66
  diff-lcs (>= 1.2.0, < 2.0)
68
67
  rspec-support (~> 3.10.0)
69
- rspec-support (3.10.2)
70
- rubocop (1.16.0)
68
+ rspec-support (3.10.3)
69
+ rubocop (1.22.3)
71
70
  parallel (~> 1.10)
72
71
  parser (>= 3.0.0.0)
73
72
  rainbow (>= 2.2.2, < 4.0)
74
73
  regexp_parser (>= 1.8, < 3.0)
75
74
  rexml
76
- rubocop-ast (>= 1.7.0, < 2.0)
75
+ rubocop-ast (>= 1.12.0, < 2.0)
77
76
  ruby-progressbar (~> 1.7)
78
77
  unicode-display_width (>= 1.4.0, < 3.0)
79
- rubocop-ast (1.7.0)
78
+ rubocop-ast (1.13.0)
80
79
  parser (>= 3.0.1.1)
81
80
  ruby-progressbar (1.11.0)
82
81
  shellany (0.0.1)
83
82
  thor (1.1.0)
84
- unicode-display_width (2.0.0)
83
+ unicode-display_width (2.1.0)
85
84
 
86
85
  PLATFORMS
87
- x86_64-darwin-20
86
+ x86_64-darwin-19
88
87
 
89
88
  DEPENDENCIES
90
89
  bundler (~> 2.2)
@@ -92,9 +91,8 @@ DEPENDENCIES
92
91
  guard-rspec (~> 4.3)
93
92
  highline_wrapper!
94
93
  pry (~> 0.13)
95
- rake (~> 13.0)
96
94
  rspec (~> 3.9)
97
95
  rubocop (~> 1.10)
98
96
 
99
97
  BUNDLED WITH
100
- 2.2.19
98
+ 2.2.31
data/Guardfile CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  guard :rspec, cmd: 'bundle exec rspec', all_on_start: true do
4
4
  watch(%r{^spec/.+_spec\.rb$})
5
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
5
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
6
6
  watch('spec/spec_helper.rb') { 'spec' }
7
7
  end
data/LICENSE.md ADDED
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause "New" or "Revised" License
2
+
3
+ Copyright (c) 2021 Emma Sax.
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions, and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions, and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Highline Wrapper [![Main](https://github.com/emmahsax/highline_wrapper/actions/workflows/main.yml/badge.svg)](https://github.com/emmahsax/highline_wrapper/actions/workflows/main.yml)
1
+ # Highline Wrapper
2
2
 
3
3
  A little wrapper to help ask some easy questions via the command-line with Highline. The types of questions this wrapper supports is:
4
4
 
@@ -416,15 +416,27 @@ What are your favorite numbers of these?
416
416
 
417
417
  To run the tests, run `bundle exec rspec` from the command-line. GitHub Actions will also run the tests upon every commit to make sure they're up to date and that everything is working correctly. Locally, you can also run `bundle exec guard` to automatically run tests as you develop!
418
418
 
419
- ## Contributing
419
+ ---
420
420
 
421
- To submit a feature request, bug ticket, etc, please submit an official [GitHub Issue](https://github.com/emmahsax/highline_wrapper/issues/new).
421
+ ### Contributing
422
422
 
423
- To report any security vulnerabilities, please view this project's [Security Policy](https://github.com/emmahsax/highline_wrapper/security/policy).
423
+ To submit a feature request, bug ticket, etc, please submit an official [GitHub issue](https://github.com/emmahsax/highline_wrapper/issues/new). To copy or make changes, please [fork this repository](https://github.com/emmahsax/highline_wrapper/fork). When/if you'd like to contribute back to this upstream, please create a pull request on this repository.
424
+
425
+ Please follow included Issue Template(s) and Pull Request Template(s) when creating issues or pull requests.
426
+
427
+ ### Security Policy
428
+
429
+ To report any security vulnerabilities, please view this repository's [Security Policy](https://github.com/emmahsax/highline_wrapper/security/policy).
430
+
431
+ ### Licensing
432
+
433
+ For information on licensing, please see [LICENSE.md](https://github.com/emmahsax/highline_wrapper/blob/main/LICENSE.md).
434
+
435
+ ### Code of Conduct
424
436
 
425
437
  When interacting with this repository, please follow [Contributor Covenant's Code of Conduct](https://contributor-covenant.org).
426
438
 
427
- ## Releasing
439
+ ### Releasing
428
440
 
429
441
  To make a new release of this gem:
430
442
 
@@ -17,7 +17,7 @@ class HighlineWrapper
17
17
 
18
18
  private def ask_highline(prompt)
19
19
  indices = []
20
- super(prompt).to_s.split(',').each { |i| indices << i.strip.to_i - 1 }
20
+ super(prompt).to_s.split(',').each { |i| indices << (i.strip.to_i - 1) }
21
21
  indices
22
22
  end
23
23
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class HighlineWrapper
4
- VERSION = '1.2.0'
4
+ VERSION = '1.3.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: highline_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emma Sax
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-03 00:00:00.000000000 Z
11
+ date: 2021-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.13'
83
- - !ruby/object:Gem::Dependency
84
- name: rake
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '13.0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '13.0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: rspec
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +109,7 @@ dependencies:
123
109
  - !ruby/object:Gem::Version
124
110
  version: '1.10'
125
111
  description: Making it easier to ask simple questions, such as multiple choice questions,
126
- yes/no questions, etc, using HighLine
112
+ yes/no questions, etc, using HighLine.
127
113
  email:
128
114
  executables: []
129
115
  extensions: []
@@ -132,7 +118,7 @@ files:
132
118
  - Gemfile
133
119
  - Gemfile.lock
134
120
  - Guardfile
135
- - LICENSE
121
+ - LICENSE.md
136
122
  - README.md
137
123
  - Rakefile
138
124
  - lib/highline_wrapper.rb
@@ -150,8 +136,9 @@ files:
150
136
  - spec/spec_helper.rb
151
137
  homepage: https://github.com/emmahsax/highline_wrapper
152
138
  licenses:
153
- - MIT
154
- metadata: {}
139
+ - BSD-3-Clause
140
+ metadata:
141
+ rubygems_mfa_required: 'true'
155
142
  post_install_message:
156
143
  rdoc_options: []
157
144
  require_paths:
@@ -167,10 +154,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
154
  - !ruby/object:Gem::Version
168
155
  version: '0'
169
156
  requirements: []
170
- rubygems_version: 3.2.15
157
+ rubygems_version: 3.2.22
171
158
  signing_key:
172
159
  specification_version: 4
173
- summary: A little wrapper for HighLine
160
+ summary: A little HighLine wrapper
174
161
  test_files:
175
162
  - spec/spec_helper.rb
176
163
  - spec/highline_wrapper/checkbox_question_spec.rb
data/LICENSE DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2021 Emma Sax
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.