gem-search 0.3.2 → 0.3.3

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
- SHA1:
3
- metadata.gz: a981697c5985c3862a2523e34f3f93d155a6b2f4
4
- data.tar.gz: 7eec693d8a091e8b99d475f7821142caaaf8b033
2
+ SHA256:
3
+ metadata.gz: 81618621c00872f6bc05851fe31f5d25c9e289311d6b4367b2f3fefd4c27f949
4
+ data.tar.gz: f7b15a4bc1f751b684e5503759547683dcb9f56efda8523bc22dbd1fbede7946
5
5
  SHA512:
6
- metadata.gz: 7c67d2c7267b4ff0dbb450296f9466e8fc1f6a5ce9a0a256947fdb59ca673118b08e03d1713ec21941225acf38e7a86a47fd1bb8cc161b3adb22ad30bec6a9ab
7
- data.tar.gz: 49ec264843d9070156572789e073be75847bb024e8245323cd0689ad61da447f7ce69a015ea43032c14ef35da101b63a07c0f7ac25a25ad8b8f337d76d4ac494
6
+ metadata.gz: 99a13ee987e8be5b11ecf44f6bc9cc7bb073e40036a209b8353320e80958d5349b87739c1847136ec27628c67352fdc6e7ec4dcdbe7cb5a9c47a43eb31543275
7
+ data.tar.gz: ca4cd4000bdc7312884c64f05a5ec7329c3b2b5026a432530b787d3245482c390288f04c5fd6f9fc548d083dd9760ded20a2bb08ea1112b44801ee8abe4f293d
@@ -0,0 +1,15 @@
1
+ version: 2.1
2
+ orbs:
3
+ ruby: circleci/ruby@0.1.2
4
+
5
+ jobs:
6
+ build:
7
+ docker:
8
+ - image: circleci/ruby:2.6.3-stretch-node
9
+ executor: ruby/default
10
+ steps:
11
+ - checkout
12
+ - run:
13
+ name: Which bundler?
14
+ command: bundle -v
15
+ - ruby/bundle-install
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "20:00"
8
+ open-pull-requests-limit: 10
9
+ ignore:
10
+ - dependency-name: webmock
11
+ versions:
12
+ - 3.12.0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v0.3.3
2
+ - Suppress stacktrace [3f306f8]
3
+
1
4
  ## v0.3.2
2
5
  - Fix return all search results refs:608d1c5
3
6
 
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
- [![CircleCI](https://img.shields.io/circleci/project/rochefort/gem-search.svg?style=flat)](https://circleci.com/gh/rochefort/gem-search)
2
- [![Dependency Status](http://img.shields.io/gemnasium/rochefort/gem-search.svg?style=flat)](https://gemnasium.com/rochefort/gem-search)
3
- [![Code Climate](http://img.shields.io/codeclimate/github/rochefort/gem-search.svg?style=flat)](https://codeclimate.com/github/rochefort/gem-search)
4
- [![Gem Version](http://img.shields.io/gem/v/gem-search.svg?style=flat)](http://badge.fury.io/rb/gem-search)
1
+ [![CircleCI](https://img.shields.io/circleci/project/rochefort/gem-search.svg)](https://circleci.com/gh/rochefort/gem-search)
2
+ [![Code Climate](https://img.shields.io/codeclimate/maintainability/rochefort/gem-search)](https://codeclimate.com/github/rochefort/gem-search/maintainability)
3
+ [![Gem Version](http://img.shields.io/gem/v/gem-search.svg)](http://badge.fury.io/rb/gem-search)
5
4
 
6
5
  # gem-search
7
6
 
data/gem-search.gemspec CHANGED
@@ -2,18 +2,10 @@ require File.expand_path("../lib/gem_search/version", __FILE__)
2
2
 
3
3
  def install_message
4
4
  s = ""
5
- s << "\xf0\x9f\x8d\xba " if or_over_mac_os_lion?
5
+ s << "\xf0\x9f\x8d\xba "
6
6
  s << "Thanks for installing!"
7
7
  end
8
8
 
9
- def or_over_mac_os_lion?
10
- return false unless RUBY_PLATFORM =~ /darwin/
11
-
12
- macos_full_version = `/usr/bin/sw_vers -productVersion`.chomp
13
- macos_version = macos_full_version[/10\.\d+/]
14
- macos_version >= "10.7" # 10.7 is lion
15
- end
16
-
17
9
  Gem::Specification.new do |gem|
18
10
  gem.authors = ["rochefort"]
19
11
  gem.email = ["terasawan@gmail.com"]
@@ -31,11 +23,11 @@ Gem::Specification.new do |gem|
31
23
 
32
24
  gem.post_install_message = install_message
33
25
 
34
- gem.add_dependency "slop", "~>4.4.1"
26
+ gem.add_dependency "slop", ">=4.4.1", "<4.10.0"
35
27
  gem.add_dependency "mem", "~>0.1.5"
36
28
 
37
- gem.add_development_dependency "webmock", "~>3.0.1"
38
- gem.add_development_dependency "rake", "~>12.0.0"
39
- gem.add_development_dependency "rspec", "~>3.5.0"
40
- gem.add_development_dependency "simplecov", "~>0.14.1"
29
+ gem.add_development_dependency "webmock", "~>3.14.0"
30
+ gem.add_development_dependency "rake", "~>13.0.0"
31
+ gem.add_development_dependency "rspec", "~>3.10.0"
32
+ gem.add_development_dependency "simplecov", "~>0.21.1"
41
33
  end
@@ -11,14 +11,14 @@ module GemSearch
11
11
 
12
12
  def puts_abort(args)
13
13
  puts args
14
- abort
14
+ exit 1
15
15
  end
16
16
 
17
17
  def unexpected_error(e)
18
18
  puts "\nAn unexpected #{e.class} has occurred."
19
19
  puts e.message
20
20
  puts e.backtrace if ENV["DEBUG"]
21
- abort
21
+ exit 1
22
22
  end
23
23
  end
24
24
  end
@@ -47,7 +47,7 @@ module GemSearch
47
47
  option[:proxy] = proxy
48
48
  end
49
49
  end
50
- JSON.parse(open(url, option).read)
50
+ JSON.parse(URI.open(url, option).read)
51
51
  end
52
52
 
53
53
  def extract_exact_match(keyword, results)
@@ -1,3 +1,3 @@
1
1
  module GemSearch
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rochefort
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-06 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.4.1
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 4.10.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: 4.4.1
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 4.10.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: mem
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -44,56 +50,56 @@ dependencies:
44
50
  requirements:
45
51
  - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: 3.0.1
53
+ version: 3.14.0
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
58
  - - "~>"
53
59
  - !ruby/object:Gem::Version
54
- version: 3.0.1
60
+ version: 3.14.0
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: rake
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
65
  - - "~>"
60
66
  - !ruby/object:Gem::Version
61
- version: 12.0.0
67
+ version: 13.0.0
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
72
  - - "~>"
67
73
  - !ruby/object:Gem::Version
68
- version: 12.0.0
74
+ version: 13.0.0
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: rspec
71
77
  requirement: !ruby/object:Gem::Requirement
72
78
  requirements:
73
79
  - - "~>"
74
80
  - !ruby/object:Gem::Version
75
- version: 3.5.0
81
+ version: 3.10.0
76
82
  type: :development
77
83
  prerelease: false
78
84
  version_requirements: !ruby/object:Gem::Requirement
79
85
  requirements:
80
86
  - - "~>"
81
87
  - !ruby/object:Gem::Version
82
- version: 3.5.0
88
+ version: 3.10.0
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: simplecov
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
93
  - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: 0.14.1
95
+ version: 0.21.1
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
100
  - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: 0.14.1
102
+ version: 0.21.1
97
103
  description: search gems with using rubygems.org API
98
104
  email:
99
105
  - terasawan@gmail.com
@@ -102,6 +108,8 @@ executables:
102
108
  extensions: []
103
109
  extra_rdoc_files: []
104
110
  files:
111
+ - ".circleci/config.yml"
112
+ - ".github/dependabot.yml"
105
113
  - ".gitignore"
106
114
  - ".rspec"
107
115
  - ".rubocop.yml"
@@ -112,7 +120,6 @@ files:
112
120
  - Rakefile
113
121
  - bin/console
114
122
  - bin/setup
115
- - circle.yml
116
123
  - exe/gem-search
117
124
  - gem-search.gemspec
118
125
  - lib/gem_search.rb
@@ -145,7 +152,7 @@ files:
145
152
  homepage: https://github.com/rochefort/gem-search
146
153
  licenses: []
147
154
  metadata: {}
148
- post_install_message: Thanks for installing!
155
+ post_install_message: "\U0001F37A Thanks for installing!"
149
156
  rdoc_options: []
150
157
  require_paths:
151
158
  - lib
@@ -160,8 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
167
  - !ruby/object:Gem::Version
161
168
  version: '0'
162
169
  requirements: []
163
- rubyforge_project:
164
- rubygems_version: 2.6.11
170
+ rubygems_version: 3.1.6
165
171
  signing_key:
166
172
  specification_version: 4
167
173
  summary: search gems with using rubygems.org API
data/circle.yml DELETED
@@ -1,6 +0,0 @@
1
- dependencies:
2
- pre:
3
- - case $CIRCLE_NODE_INDEX in 0) rvm use 2.2.0 --default ;;1) rvm use 2.3.0 --default ;; 2) rvm use 2.4.0 --default ;; esac
4
- test:
5
- override:
6
- - ruby -v ; bundle exec rspec: {parallel: true}