gems-cli 0.1.11 → 0.1.13

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c1b664ccf1473d10de481216334cd0cf8db94fe0bee8dae60152af66fd1db47
4
- data.tar.gz: 3b56bfdd5aa1cc400e35dda92b8a0ec9c24b590a3142acb12478377bed461427
3
+ metadata.gz: 7103a40d934724874b8da1cdaa20edbf2b1501e167abd16a029af3e326d86d93
4
+ data.tar.gz: 8a359ca21a27f23f96e9cf64ba624983501a4b22d947c5dd71c7914eaf66fe36
5
5
  SHA512:
6
- metadata.gz: 8bb25d5361af3801b4fb29d3633bcf679f677d77adb037912ec7dc804c7b5e239c39c70562d22f12d2ccc55364f3876bfdd6519721a1473bc03986cbbba89c08
7
- data.tar.gz: 526186fd28746916f2724c3302672a737217ec81302f05c84f2c861e871aafea084640b69190ece249b621c03d08b077d4e49a8067d5aaa2a42ced03cf89fa21
6
+ metadata.gz: d7941d72f3b20877bb918c16a5085ebb8b21fdb07331bd4c41ce5ef3305a61363128326095e8c11b5a817b41082eb852adabe652eca7a740c5cbedbfb73f395c
7
+ data.tar.gz: 591e851a5f5ca48efbeb407e298d8734c5459e737e1bf53be71c3b50f8631f0401530e93eeb86ce9cd7cda4b2bbdf45f37904452dac36205de548c6046041fbe
data/CHANGELOG.md ADDED
@@ -0,0 +1,113 @@
1
+ # Changelog
2
+
3
+ ## [Unreleased](https://github.com/chaserx/gems-cli/tree/HEAD)
4
+
5
+ [Full Changelog](https://github.com/chaserx/gems-cli/compare/v0.1.12...HEAD)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Add support for Bundler and GitHub Actions updates [\#35](https://github.com/chaserx/gems-cli/pull/35) ([chaserx](https://github.com/chaserx))
10
+ - Update config files, linting utility, and add workflows [\#34](https://github.com/chaserx/gems-cli/pull/34) ([chaserx](https://github.com/chaserx))
11
+
12
+ ## [v0.1.12](https://github.com/chaserx/gems-cli/tree/v0.1.12) (2026-02-06)
13
+
14
+ [Full Changelog](https://github.com/chaserx/gems-cli/compare/v0.1.11...v0.1.12)
15
+
16
+ **Closed issues:**
17
+
18
+ - Dependabot couldn't reach https://rubygems.org/ due to underlying error \<bad response Gateway Error 502 \(https://rubygems.org/specs.4.8.gz\)\> as it timed out [\#31](https://github.com/chaserx/gems-cli/issues/31)
19
+
20
+ **Merged pull requests:**
21
+
22
+ - Add jdlubrano to contributors list [\#33](https://github.com/chaserx/gems-cli/pull/33) ([chaserx](https://github.com/chaserx))
23
+ - Fix Ruby 3.4 error [\#32](https://github.com/chaserx/gems-cli/pull/32) ([jdlubrano](https://github.com/jdlubrano))
24
+
25
+ ## [v0.1.11](https://github.com/chaserx/gems-cli/tree/v0.1.11) (2019-05-28)
26
+
27
+ [Full Changelog](https://github.com/chaserx/gems-cli/compare/v0.1.10...v0.1.11)
28
+
29
+ **Merged pull requests:**
30
+
31
+ - Update gems requirement from ~\> 0.8, \>= 0.8.3 to \>= 0.8.3, \< 2.0 [\#28](https://github.com/chaserx/gems-cli/pull/28) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
32
+ - Update rainbow requirement from \>= 2.1.0, ~\> 2.1 to \>= 2.1.0, \< 4.0 [\#27](https://github.com/chaserx/gems-cli/pull/27) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
33
+ - Update bundler requirement from ~\> 1.11 to ~\> 2.0 [\#26](https://github.com/chaserx/gems-cli/pull/26) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
34
+ - Update highline requirement from ~\> 1.7, \>= 1.7.8 to \>= 1.7.8, \< 3.0 [\#25](https://github.com/chaserx/gems-cli/pull/25) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
35
+
36
+ ## [v0.1.10](https://github.com/chaserx/gems-cli/tree/v0.1.10) (2018-12-12)
37
+
38
+ [Full Changelog](https://github.com/chaserx/gems-cli/compare/v0.1.9...v0.1.10)
39
+
40
+ **Implemented enhancements:**
41
+
42
+ - immediately use my keystroke rather than having to hit Enter [\#6](https://github.com/chaserx/gems-cli/issues/6)
43
+
44
+ **Closed issues:**
45
+
46
+ - refactor out logic from main loop into modules [\#8](https://github.com/chaserx/gems-cli/issues/8)
47
+
48
+ **Merged pull requests:**
49
+
50
+ - upgrades dev dependencies and supported ruby version [\#24](https://github.com/chaserx/gems-cli/pull/24) ([chaserx](https://github.com/chaserx))
51
+
52
+ ## [v0.1.9](https://github.com/chaserx/gems-cli/tree/v0.1.9) (2016-05-22)
53
+
54
+ [Full Changelog](https://github.com/chaserx/gems-cli/compare/v0.1.8...v0.1.9)
55
+
56
+ **Closed issues:**
57
+
58
+ - Currently easy for Gemspec to have out-of-date dependencies. [\#10](https://github.com/chaserx/gems-cli/issues/10)
59
+
60
+ **Merged pull requests:**
61
+
62
+ - update dev and runtime dependencies [\#23](https://github.com/chaserx/gems-cli/pull/23) ([chaserx](https://github.com/chaserx))
63
+ - updates: dependencies; travis config; requires Ruby \>= 2.1.9; fixes style complaints [\#22](https://github.com/chaserx/gems-cli/pull/22) ([chaserx](https://github.com/chaserx))
64
+
65
+ ## [v0.1.8](https://github.com/chaserx/gems-cli/tree/v0.1.8) (2016-05-22)
66
+
67
+ [Full Changelog](https://github.com/chaserx/gems-cli/compare/v0.1.1...v0.1.8)
68
+
69
+ **Implemented enhancements:**
70
+
71
+ - \(optionally\) show for older gems on search [\#20](https://github.com/chaserx/gems-cli/issues/20)
72
+
73
+ **Closed issues:**
74
+
75
+ - Use BitDeli for free [\#14](https://github.com/chaserx/gems-cli/issues/14)
76
+ - Use Gemnasium for free [\#13](https://github.com/chaserx/gems-cli/issues/13)
77
+ - needs 100% more tests [\#4](https://github.com/chaserx/gems-cli/issues/4)
78
+
79
+ **Merged pull requests:**
80
+
81
+ - Allow choosing other gem versions [\#21](https://github.com/chaserx/gems-cli/pull/21) ([cheshire137](https://github.com/cheshire137))
82
+ - remove gem lockfile [\#18](https://github.com/chaserx/gems-cli/pull/18) ([chaserx](https://github.com/chaserx))
83
+ - add rubocop [\#17](https://github.com/chaserx/gems-cli/pull/17) ([chaserx](https://github.com/chaserx))
84
+ - add simplecov [\#16](https://github.com/chaserx/gems-cli/pull/16) ([chaserx](https://github.com/chaserx))
85
+ - add gemnasium badge to readme [\#15](https://github.com/chaserx/gems-cli/pull/15) ([chaserx](https://github.com/chaserx))
86
+ - update travis.yml with new bundle command [\#12](https://github.com/chaserx/gems-cli/pull/12) ([chaserx](https://github.com/chaserx))
87
+ - break and adjust spacing. minor version bump [\#7](https://github.com/chaserx/gems-cli/pull/7) ([chaserx](https://github.com/chaserx))
88
+ - \[WIP\] add more tests [\#5](https://github.com/chaserx/gems-cli/pull/5) ([chaserx](https://github.com/chaserx))
89
+
90
+ ## [v0.1.1](https://github.com/chaserx/gems-cli/tree/v0.1.1) (2014-11-22)
91
+
92
+ [Full Changelog](https://github.com/chaserx/gems-cli/compare/v0.0.1...v0.1.1)
93
+
94
+ **Closed issues:**
95
+
96
+ - change selection if less than 10 entries [\#2](https://github.com/chaserx/gems-cli/issues/2)
97
+ - actually paginate thru results [\#1](https://github.com/chaserx/gems-cli/issues/1)
98
+
99
+ **Merged pull requests:**
100
+
101
+ - pagination [\#3](https://github.com/chaserx/gems-cli/pull/3) ([chaserx](https://github.com/chaserx))
102
+
103
+ ## [v0.0.1](https://github.com/chaserx/gems-cli/tree/v0.0.1) (2014-08-18)
104
+
105
+ [Full Changelog](https://github.com/chaserx/gems-cli/compare/0.0.1...v0.0.1)
106
+
107
+ ## [0.0.1](https://github.com/chaserx/gems-cli/tree/0.0.1) (2014-08-18)
108
+
109
+ [Full Changelog](https://github.com/chaserx/gems-cli/compare/85a2728501393c57b99babe99ad52c44a6c9d5e8...0.0.1)
110
+
111
+
112
+
113
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/README.md CHANGED
@@ -83,3 +83,4 @@ To release a new version, update the version number in `version.rb`, and then ru
83
83
 
84
84
  - [moneypenney](https://github.com/moneypenny)
85
85
  - [jdickey](https://github.com/jdickey)
86
+ - [jdlubrano](https://github.com/jdlubrano)
data/Rakefile CHANGED
@@ -1,4 +1,10 @@
1
- require 'bundler/gem_tasks'
2
- require 'rake/clean'
3
- require 'rubygems'
4
- require 'rubygems/package_task'
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "standard/rake"
9
+
10
+ task default: %i[spec standard]
@@ -1,4 +1,6 @@
1
- require 'will_paginate/array'
1
+ # frozen_string_literal: true
2
+
3
+ require "will_paginate/array"
2
4
 
3
5
  class Paginator
4
6
  attr_reader :pages, :total_entries
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module GemsCli
2
- VERSION = '0.1.11'.freeze
4
+ VERSION = "0.1.13"
3
5
  end
data/lib/gems-cli.rb CHANGED
@@ -1,6 +1,8 @@
1
- require 'gems'
2
- require 'highline/import'
3
- require 'clipboard'
4
- require 'rainbow/ext/string'
5
- require 'gems-cli/version.rb'
6
- require 'gems-cli/paginator.rb'
1
+ # frozen_string_literal: true
2
+
3
+ require "gems"
4
+ require "highline/import"
5
+ require "clipboard"
6
+ require "rainbow/ext/string"
7
+ require "gems-cli/version"
8
+ require "gems-cli/paginator"
metadata CHANGED
@@ -1,43 +1,42 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gems-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chase Southard
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2019-05-28 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
18
  version: '2.0'
20
19
  type: :development
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
- - - "~>"
23
+ - - ">="
25
24
  - !ruby/object:Gem::Version
26
25
  version: '2.0'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: rake
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - "~>"
30
+ - - ">="
32
31
  - !ruby/object:Gem::Version
33
- version: '12.3'
32
+ version: '13.0'
34
33
  type: :development
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
- - - "~>"
37
+ - - ">="
39
38
  - !ruby/object:Gem::Version
40
- version: '12.3'
39
+ version: '13.0'
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: rspec
43
42
  requirement: !ruby/object:Gem::Requirement
@@ -72,48 +71,76 @@ dependencies:
72
71
  requirements:
73
72
  - - "~>"
74
73
  - !ruby/object:Gem::Version
75
- version: '0.16'
74
+ version: '0.21'
76
75
  type: :development
77
76
  prerelease: false
78
77
  version_requirements: !ruby/object:Gem::Requirement
79
78
  requirements:
80
79
  - - "~>"
81
80
  - !ruby/object:Gem::Version
82
- version: '0.16'
81
+ version: '0.21'
83
82
  - !ruby/object:Gem::Dependency
84
- name: rubocop
83
+ name: standard
85
84
  requirement: !ruby/object:Gem::Requirement
86
85
  requirements:
87
86
  - - ">="
88
87
  - !ruby/object:Gem::Version
89
- version: 0.49.0
88
+ version: 1.31.0
90
89
  type: :development
91
90
  prerelease: false
92
91
  version_requirements: !ruby/object:Gem::Requirement
93
92
  requirements:
94
93
  - - ">="
95
94
  - !ruby/object:Gem::Version
96
- version: 0.49.0
95
+ version: 1.31.0
97
96
  - !ruby/object:Gem::Dependency
98
- name: gli
97
+ name: gem-release
99
98
  requirement: !ruby/object:Gem::Requirement
100
99
  requirements:
101
100
  - - ">="
102
101
  - !ruby/object:Gem::Version
103
- version: 2.14.0
102
+ version: '2.0'
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '2.0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: github_changelog_generator
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
104
114
  - - "~>"
105
115
  - !ruby/object:Gem::Version
106
- version: '2.14'
107
- type: :runtime
116
+ version: '1.16'
117
+ type: :development
108
118
  prerelease: false
109
119
  version_requirements: !ruby/object:Gem::Requirement
110
120
  requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '1.16'
124
+ - !ruby/object:Gem::Dependency
125
+ name: gli
126
+ requirement: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '2.14'
111
131
  - - ">="
112
132
  - !ruby/object:Gem::Version
113
133
  version: 2.14.0
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ requirements:
114
138
  - - "~>"
115
139
  - !ruby/object:Gem::Version
116
140
  version: '2.14'
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: 2.14.0
117
144
  - !ruby/object:Gem::Dependency
118
145
  name: gems
119
146
  requirement: !ruby/object:Gem::Requirement
@@ -143,7 +170,7 @@ dependencies:
143
170
  version: 1.7.8
144
171
  - - "<"
145
172
  - !ruby/object:Gem::Version
146
- version: '3.0'
173
+ version: '4.0'
147
174
  type: :runtime
148
175
  prerelease: false
149
176
  version_requirements: !ruby/object:Gem::Requirement
@@ -153,27 +180,27 @@ dependencies:
153
180
  version: 1.7.8
154
181
  - - "<"
155
182
  - !ruby/object:Gem::Version
156
- version: '3.0'
183
+ version: '4.0'
157
184
  - !ruby/object:Gem::Dependency
158
185
  name: clipboard
159
186
  requirement: !ruby/object:Gem::Requirement
160
187
  requirements:
161
- - - ">="
162
- - !ruby/object:Gem::Version
163
- version: 1.1.0
164
188
  - - "~>"
165
189
  - !ruby/object:Gem::Version
166
190
  version: '1.1'
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ version: 1.1.0
167
194
  type: :runtime
168
195
  prerelease: false
169
196
  version_requirements: !ruby/object:Gem::Requirement
170
197
  requirements:
171
- - - ">="
172
- - !ruby/object:Gem::Version
173
- version: 1.1.0
174
198
  - - "~>"
175
199
  - !ruby/object:Gem::Version
176
200
  version: '1.1'
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: 1.1.0
177
204
  - !ruby/object:Gem::Dependency
178
205
  name: rainbow
179
206
  requirement: !ruby/object:Gem::Requirement
@@ -198,22 +225,22 @@ dependencies:
198
225
  name: will_paginate
199
226
  requirement: !ruby/object:Gem::Requirement
200
227
  requirements:
201
- - - ">="
202
- - !ruby/object:Gem::Version
203
- version: 3.1.0
204
228
  - - "~>"
205
229
  - !ruby/object:Gem::Version
206
230
  version: '3.1'
231
+ - - ">="
232
+ - !ruby/object:Gem::Version
233
+ version: 3.1.0
207
234
  type: :runtime
208
235
  prerelease: false
209
236
  version_requirements: !ruby/object:Gem::Requirement
210
237
  requirements:
211
- - - ">="
212
- - !ruby/object:Gem::Version
213
- version: 3.1.0
214
238
  - - "~>"
215
239
  - !ruby/object:Gem::Version
216
240
  version: '3.1'
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: 3.1.0
217
244
  description: |
218
245
  Search rubygems.org from the command line.
219
246
  Then you can copy formatted gem details for your Gemfile.
@@ -223,28 +250,22 @@ executables:
223
250
  extensions: []
224
251
  extra_rdoc_files: []
225
252
  files:
226
- - ".gitignore"
227
- - ".rspec"
228
- - ".rubocop.yml"
229
- - ".travis.yml"
230
- - CHANGELOG
253
+ - CHANGELOG.md
231
254
  - CONTRIBUTING.md
232
- - Gemfile
233
255
  - LICENSE
234
256
  - NOTES
235
257
  - README.md
236
258
  - Rakefile
237
259
  - bin/gems
238
- - gems-cli.gemspec
239
260
  - lib/gems-cli.rb
240
261
  - lib/gems-cli/paginator.rb
241
262
  - lib/gems-cli/version.rb
242
- - spec/gems-cli/paginator_spec.rb
243
- - spec/spec_helper.rb
244
263
  homepage: https://github.com/chaserx/gems-cli
245
264
  licenses:
246
265
  - MIT
247
- metadata: {}
266
+ metadata:
267
+ homepage_uri: https://github.com/chaserx/gems-cli
268
+ source_code_uri: https://github.com/chaserx/gems-cli
248
269
  post_install_message: "Thanks for installing! \ngems-cli usage: `gems s chase`"
249
270
  rdoc_options: []
250
271
  require_paths:
@@ -254,15 +275,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
254
275
  requirements:
255
276
  - - ">="
256
277
  - !ruby/object:Gem::Version
257
- version: 2.4.0
278
+ version: 3.2.10
258
279
  required_rubygems_version: !ruby/object:Gem::Requirement
259
280
  requirements:
260
281
  - - ">="
261
282
  - !ruby/object:Gem::Version
262
283
  version: '0'
263
284
  requirements: []
264
- rubygems_version: 3.0.2
265
- signing_key:
285
+ rubygems_version: 4.0.3
266
286
  specification_version: 4
267
287
  summary: Search rubygems.org from the command line. Copy formatted gem details for
268
288
  your Gemfile.
data/.gitignore DELETED
@@ -1,35 +0,0 @@
1
- *.gem
2
- *.rbc
3
- /.config
4
- /coverage/
5
- /InstalledFiles
6
- /pkg/
7
- /spec/reports/
8
- /test/tmp/
9
- /test/version_tmp/
10
- /tmp/
11
-
12
- ## Specific to RubyMotion:
13
- .dat*
14
- .repl_history
15
- build/
16
-
17
- ## Documentation cache and generated files:
18
- /.yardoc/
19
- /_yardoc/
20
- /doc/
21
- /rdoc/
22
-
23
- ## Environment normalisation:
24
- /.bundle/
25
- /lib/bundler/man/
26
-
27
- # for a library or gem, you might want to ignore these files since the code is
28
- # intended to run in multiple environments; otherwise, check them in:
29
- Gemfile.lock
30
- # .ruby-version
31
- # .ruby-gemset
32
-
33
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
34
- .rvmrc
35
- .DS_Store
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --color
2
- --format documentation
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,49 +0,0 @@
1
- AllCops:
2
- Exclude:
3
- - 'bin/**/*'
4
- - 'log/**/*'
5
- - 'Gemfile'
6
- - 'Rakefile'
7
- - '*.gemspec'
8
- - 'spec/spec_helper.rb'
9
- TargetRubyVersion: 2.2
10
-
11
- Documentation:
12
- Enabled: false
13
-
14
- Metrics/AbcSize:
15
- Enabled: false
16
-
17
- Metrics/ClassLength:
18
- Enabled: false
19
-
20
- Metrics/MethodLength:
21
- Enabled: false
22
-
23
- Style/Alias:
24
- Enabled: false
25
-
26
- Style/BlockDelimiters:
27
- Enabled: false
28
-
29
- Style/FileName:
30
- Exclude:
31
- - 'lib/gems-cli.rb'
32
-
33
- Style/Lambda:
34
- Enabled: false
35
-
36
- Style/MultilineBlockChain:
37
- Enabled: false
38
-
39
- Style/RaiseArgs:
40
- Enabled: false
41
-
42
- Style/RedundantBegin:
43
- Enabled: false
44
-
45
- Style/SpecialGlobalVars:
46
- Enabled: false
47
-
48
- TrailingBlankLines:
49
- Enabled: false
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.0
4
- - 2.2.5
5
- - 2.1.9
6
- install: bundle install
7
- script: bundle exec rspec spec
data/CHANGELOG DELETED
@@ -1,13 +0,0 @@
1
- CHANGELOG
2
-
3
- Version 0.0.1: basic search and send selection to clipboard
4
-
5
- Version 0.1.0: adds pagination to search results
6
-
7
- Version 0.1.1: require at least ruby 1.9
8
-
9
- Version 0.1.4: update gemspec, remove rdoc for yard, add some more documentation
10
-
11
- Version 0.1.7: add support for getting gem versions
12
-
13
- Version 0.1.8: update gem dependencies; clean out unused file
data/Gemfile DELETED
@@ -1,2 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
data/gems-cli.gemspec DELETED
@@ -1,39 +0,0 @@
1
- # Ensure we require the local version and not one we might have installed already
2
- require File.join([File.dirname(__FILE__),'lib','gems-cli','version.rb'])
3
- spec = Gem::Specification.new do |s|
4
- s.name = 'gems-cli'
5
- s.version = GemsCli::VERSION
6
- s.authors = ['Chase Southard']
7
- s.email = 'chase.southard@gmail.com'
8
- s.homepage = 'https://github.com/chaserx/gems-cli'
9
- s.platform = Gem::Platform::RUBY
10
- s.summary = <<-END.gsub(/^ {14}/, '')
11
- Search rubygems.org from the command line.
12
- Copy formatted gem details for your Gemfile.
13
- END
14
- s.description = <<-END.gsub(/^ {18}/, '')
15
- Search rubygems.org from the command line.
16
- Then you can copy formatted gem details for your Gemfile.
17
- END
18
- s.license = 'MIT'
19
- s.files = `git ls-files`.split(' ')
20
- s.require_paths << 'lib'
21
- s.bindir = 'bin'
22
- s.executables << 'gems'
23
- s.required_ruby_version = '>= 2.4.0'
24
- s.post_install_message = "Thanks for installing! \ngems-cli usage: `gems s chase`"
25
-
26
- s.add_development_dependency 'bundler', '~> 2.0'
27
- s.add_development_dependency 'rake', '~> 12.3'
28
- s.add_development_dependency 'rspec', '~> 3.8'
29
- s.add_development_dependency 'yard', '~> 0.9'
30
- s.add_development_dependency 'simplecov', '~> 0.16'
31
- s.add_development_dependency 'rubocop', '>= 0.49.0'
32
-
33
- s.add_runtime_dependency 'gli', '~> 2.14', '>= 2.14.0'
34
- s.add_runtime_dependency 'gems', '>= 0.8.3', '< 2.0'
35
- s.add_runtime_dependency 'highline', '>= 1.7.8', '< 3.0'
36
- s.add_runtime_dependency 'clipboard', '~> 1.1', '>= 1.1.0'
37
- s.add_runtime_dependency 'rainbow', '>= 2.1.0', '< 4.0'
38
- s.add_runtime_dependency 'will_paginate', '~> 3.1', '>= 3.1.0'
39
- end
@@ -1,90 +0,0 @@
1
- require 'spec_helper'
2
- require 'gems-cli/paginator'
3
-
4
- describe Paginator do
5
- subject { Paginator.new(ary: (1..100).to_a) }
6
-
7
- describe '#first_page?' do
8
- it 'returns true if on the first page' do
9
- expect(subject.first_page?).to eq(true)
10
- end
11
- end
12
-
13
- describe '#last_page?' do
14
- it 'returns true if on the last page' do
15
- subject.page = subject.pages
16
- expect(subject.last_page?).to eq(true)
17
- end
18
- end
19
-
20
- describe '#first_page' do
21
- it 'returns 1..10' do
22
- expect(subject.first_page).to eq((1..10).to_a)
23
- end
24
-
25
- it 'sets subject.page to 1' do
26
- subject.first_page
27
- expect(subject.page).to eq(1)
28
- end
29
- end
30
-
31
- describe '#last_page' do
32
- it 'returns 91..100' do
33
- expect(subject.last_page).to eq((91..100).to_a)
34
- end
35
- end
36
-
37
- describe '#next_page' do
38
- before { subject.next_page }
39
-
40
- context 'when on page 1' do
41
- it 'returns 11..20' do
42
- expect(subject.current_page).to eq((11..20).to_a)
43
- end
44
-
45
- it 'sets subject.page to 2' do
46
- expect(subject.page).to eq(2)
47
- end
48
- end
49
-
50
- context 'when on page 2' do
51
- subject { Paginator.new(ary: (1..100).to_a, page: 2) }
52
-
53
- before { subject.next_page }
54
-
55
- it 'returns 21..30' do
56
- expect(subject.current_page).to eq((21..30).to_a)
57
- end
58
-
59
- it 'sets subject.page to 3' do
60
- expect(subject.page).to eq(3)
61
- end
62
- end
63
- end
64
-
65
- describe '#previous_page' do
66
- before { subject.previous_page }
67
-
68
- context 'when on page 1' do
69
- it 'returns 1..10' do
70
- expect(subject.current_page).to eq((1..10).to_a)
71
- end
72
-
73
- it 'sets subject.page to 1' do
74
- expect(subject.page).to eq(1)
75
- end
76
- end
77
-
78
- context 'when on page 2' do
79
- subject { Paginator.new(ary: (1..100).to_a, page: 2) }
80
-
81
- it 'returns 1..10' do
82
- expect(subject.current_page).to eq((1..10).to_a)
83
- end
84
-
85
- it 'sets subject.page to 1' do
86
- expect(subject.page).to eq(1)
87
- end
88
- end
89
- end
90
- end
data/spec/spec_helper.rb DELETED
@@ -1,90 +0,0 @@
1
- require 'simplecov'
2
- SimpleCov.start
3
- # This file was generated by the `rspec --init` command. Conventionally, all
4
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
5
- # The generated `.rspec` file contains `--require spec_helper` which will cause this
6
- # file to always be loaded, without a need to explicitly require it in any files.
7
- #
8
- # Given that it is always loaded, you are encouraged to keep this file as
9
- # light-weight as possible. Requiring heavyweight dependencies from this file
10
- # will add to the boot time of your test suite on EVERY test run, even for an
11
- # individual file that may not need all of that loaded. Instead, consider making
12
- # a separate helper file that requires the additional dependencies and performs
13
- # the additional setup, and require it from the spec files that actually need it.
14
- #
15
- # The `.rspec` file also contains a few flags that are not defaults but that
16
- # users commonly want.
17
- #
18
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
- RSpec.configure do |config|
20
- # rspec-expectations config goes here. You can use an alternate
21
- # assertion/expectation library such as wrong or the stdlib/minitest
22
- # assertions if you prefer.
23
- config.expect_with :rspec do |expectations|
24
- # This option will default to `true` in RSpec 4. It makes the `description`
25
- # and `failure_message` of custom matchers include text for helper methods
26
- # defined using `chain`, e.g.:
27
- # be_bigger_than(2).and_smaller_than(4).description
28
- # # => "be bigger than 2 and smaller than 4"
29
- # ...rather than:
30
- # # => "be bigger than 2"
31
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
32
- end
33
-
34
- # rspec-mocks config goes here. You can use an alternate test double
35
- # library (such as bogus or mocha) by changing the `mock_with` option here.
36
- config.mock_with :rspec do |mocks|
37
- # Prevents you from mocking or stubbing a method that does not exist on
38
- # a real object. This is generally recommended, and will default to
39
- # `true` in RSpec 4.
40
- mocks.verify_partial_doubles = true
41
- end
42
-
43
- # The settings below are suggested to provide a good initial experience
44
- # with RSpec, but feel free to customize to your heart's content.
45
-
46
- # These two settings work together to allow you to limit a spec run
47
- # to individual examples or groups you care about by tagging them with
48
- # `:focus` metadata. When nothing is tagged with `:focus`, all examples
49
- # get run.
50
- # config.filter_run :focus
51
- # config.run_all_when_everything_filtered = true
52
-
53
- # Limits the available syntax to the non-monkey patched syntax that is recommended.
54
- # For more details, see:
55
- # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
56
- # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
57
- # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
58
- # config.disable_monkey_patching!
59
-
60
- # This setting enables warnings. It's recommended, but in some cases may
61
- # be too noisy due to issues in dependencies.
62
- # config.warnings = true
63
-
64
- # Many RSpec users commonly either run the entire suite or an individual
65
- # file, and it's useful to allow more verbose output when running an
66
- # individual spec file.
67
- if config.files_to_run.one?
68
- # Use the documentation formatter for detailed output,
69
- # unless a formatter has already been configured
70
- # (e.g. via a command-line flag).
71
- config.default_formatter = 'doc'
72
- end
73
-
74
- # Print the 10 slowest examples and example groups at the
75
- # end of the spec run, to help surface which specs are running
76
- # particularly slow.
77
- # config.profile_examples = 10
78
-
79
- # Run specs in random order to surface order dependencies. If you find an
80
- # order dependency and want to debug it, you can fix the order by providing
81
- # the seed, which is printed after each run.
82
- # --seed 1234
83
- config.order = :random
84
-
85
- # Seed global randomization in this process using the `--seed` CLI option.
86
- # Setting this allows you to use `--seed` to deterministically reproduce
87
- # test failures related to randomization by passing the same `--seed` value
88
- # as the one that triggered the failure.
89
- Kernel.srand config.seed
90
- end