onyphe 0.2.1 → 0.2.2

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: 3fdf5767656d9b9c169eef9c558ea24f419ce33e3ab2035b8d1ab7b158a6e81e
4
- data.tar.gz: 4adf3e68343be7bcf3c90116af0474d013a5d4ec995adbec9108bff54b101116
3
+ metadata.gz: d77aab933e1575b21cbec0ca03555a792a27b83cf0dfab5cc84e23f16c500d6c
4
+ data.tar.gz: 18cd6a2511b5c5cb4c29c6f61c6304af4105c303f8bb453ff8a4e399d5c1a5eb
5
5
  SHA512:
6
- metadata.gz: cfbd5a0f03b88b9bd82faf34015e85e7bb0e8ad02063225e40452b16dc91dc2e9023b79cb3e23f5e96203384fc7bb1cbf1c8e8c19b28e1acb461e598a8dafba8
7
- data.tar.gz: e476f9957a6727185a1f1962a3ca95ec3d4b426568960449a63753b76ecc21d3a86cfbcbfc6bc53de73f5633397634b42917a3f853d7e5608924a1a72986b0fb
6
+ metadata.gz: ece03ebb6273519218505c4c6a598ce9fc99d92341e2a46595835f95c41249772f40859bc7ebf179f4655db464cb47e91f0e72ae6e595a543e17794af9b220c2
7
+ data.tar.gz: 12de2ffb3f55da4092c6a6d3d752f12dbaa537bbc134215121466124681656417ea127db913d6449a7491bbfcbcc5f02c6e680323f82bd2387a3e313f8f1a8ef
@@ -1,9 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "addressable/uri"
4
+
3
5
  module Onyphe
4
6
  module Clients
5
7
  class Datascan < Client
6
8
  def get_by_query(query, page = 1)
9
+ query = Addressable::URI.encode(query)
7
10
  get("/datascan/#{query}", page: page) { |json| json }
8
11
  end
9
12
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onyphe
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
25
  spec.require_paths = ["lib"]
26
26
 
27
- spec.add_dependency "addressable", "~> 2.5"
27
+ spec.add_dependency "addressable", "~> 2.6"
28
28
  spec.add_dependency "thor", "~> 0.19"
29
29
 
30
30
  spec.add_development_dependency "bundler", "~> 1.17"
@@ -33,5 +33,5 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency "rake", "~> 10.0"
34
34
  spec.add_development_dependency "rspec", "~> 3.0"
35
35
  spec.add_development_dependency "vcr", "~> 4.0"
36
- spec.add_development_dependency "webmock", "~> 3.4"
36
+ spec.add_development_dependency "webmock", "~> 3.5"
37
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onyphe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-18 00:00:00.000000000 Z
11
+ date: 2019-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.5'
19
+ version: '2.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.5'
26
+ version: '2.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '3.4'
131
+ version: '3.5'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '3.4'
138
+ version: '3.5'
139
139
  description: ONYPHE API wrapper for Ruby
140
140
  email:
141
141
  - manabu.niseki@gmail.com
@@ -196,8 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  - !ruby/object:Gem::Version
197
197
  version: '0'
198
198
  requirements: []
199
- rubyforge_project:
200
- rubygems_version: 2.7.6
199
+ rubygems_version: 3.0.2
201
200
  signing_key:
202
201
  specification_version: 4
203
202
  summary: ONYPHE API wrapper for Ruby