ud 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/lib/ud.rb +3 -3
  5. metadata +13 -14
  6. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da20a8c734f36a7a31f9a27c069390bde91207d30420f4dc90d1299c1cff6fc9
4
- data.tar.gz: 4b2efbe5e2cc596e6da5b4cf35d757395946a2357c4d90921262da045b5f13d2
3
+ metadata.gz: 6ea932203fe0c903b5218ce5b146d90654404dc2eebfac0c07e88336aaf37e47
4
+ data.tar.gz: f62d445b4149d6a1741b33f95760db705f3992462e3ad8d32a6cf19f594b18d0
5
5
  SHA512:
6
- metadata.gz: b82fbc1da03bf072abebc2afad46c9e065f082741b92435afff61fd4949b070b9b9289523fc6a65da4bc0e9838bc7945a320e3d55d4888d3afa18f24f1ab08a0
7
- data.tar.gz: 26e8d65aa79a1b76a021306a3a4cb7cfabedfec3385868fee5174f1585234a7570ba5c87bb779c04065bcdad235785d59ed987a4b48432a342f815a261abfd66
6
+ metadata.gz: e3c13f592deea95981d2315ad90cab736e2fa4ff3eecbc0d277d0f764159fa08c5c5691a485ec2105e7679265151640d10d5ce67f5740b6011735c51ef417fee
7
+ data.tar.gz: b4eee17c59a33c63ef6c7f0796c9595f9724c213279b55f0e68d2d89e3f92e508c9f827cc7ea13a5fb387ead4ef18612c9dcac6bdb9cc000d8c7a7fe66be3ed0
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/ud.rb CHANGED
@@ -12,7 +12,7 @@ module UD
12
12
  class << self
13
13
  # @return [String] the current gem's version
14
14
  def version
15
- "0.3.1"
15
+ "0.3.2"
16
16
  end
17
17
 
18
18
  API_ROOT = "https://api.urbandictionary.com/v0"
@@ -64,13 +64,13 @@ module UD
64
64
  # +:count+ is the maximum number of results to return
65
65
  # @return [Array<Hash>]
66
66
  def query(term, opts = {})
67
- parse_response(open(search_url(term)).read, opts)
67
+ parse_response(OpenURI.open_uri(search_url(term)).read, opts)
68
68
  end
69
69
 
70
70
  # Return a random definition
71
71
  # @param opts [Hash] options.
72
72
  def random(opts = {})
73
- parse_response(open(random_url).read, opts)
73
+ parse_response(OpenURI.open_uri(random_url).read, opts)
74
74
  end
75
75
 
76
76
  # Parse a response from the Urban Dictionnary website.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Baptiste Fontaine
@@ -34,7 +34,7 @@ cert_chain:
34
34
  T1ACML6wkYk8FexGDaL0txwG/y+b+3sHyUArpv8/rLGqpo+g2TYlqJhdwuA10W2k
35
35
  H0Dpo4eQ8PCwqU7AgGTli19gHcox4Ne0O+6QaiB4eSw=
36
36
  -----END CERTIFICATE-----
37
- date: 2018-12-08 00:00:00.000000000 Z
37
+ date: 2020-03-04 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: optimist
@@ -70,70 +70,70 @@ dependencies:
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '0.7'
73
+ version: '0.18'
74
74
  type: :development
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: '0.7'
80
+ version: '0.18'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: rake
83
83
  requirement: !ruby/object:Gem::Requirement
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: '10.1'
87
+ version: '12.3'
88
88
  type: :development
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: '10.1'
94
+ version: '12.3'
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: test-unit
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '2.5'
101
+ version: '3.3'
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
- version: '2.5'
108
+ version: '3.3'
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: webmock
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: '3.4'
115
+ version: '3.8'
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: '3.4'
122
+ version: '3.8'
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: coveralls
125
125
  requirement: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - "~>"
128
128
  - !ruby/object:Gem::Version
129
- version: '0.7'
129
+ version: '0.8'
130
130
  type: :development
131
131
  prerelease: false
132
132
  version_requirements: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - "~>"
135
135
  - !ruby/object:Gem::Version
136
- version: '0.7'
136
+ version: '0.8'
137
137
  description: Get words' definitions from Urban Dictionary on the command-line.
138
138
  email: b@ptistefontaine.fr
139
139
  executables:
@@ -166,8 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
- rubyforge_project:
170
- rubygems_version: 2.7.7
169
+ rubygems_version: 3.1.2
171
170
  signing_key:
172
171
  specification_version: 4
173
172
  summary: Urban Dictionary unofficial scrapper
metadata.gz.sig CHANGED
Binary file