oauth 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of oauth might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/oauth/cli.rb +6 -0
- data/lib/oauth/cli/base_command.rb +6 -1
- data/lib/oauth/cli/version_command.rb +1 -1
- data/lib/oauth/version.rb +1 -1
- metadata +21 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29fe1f105a51dedb366646ca34148b6273a47d38
|
4
|
+
data.tar.gz: 11aba170f8b29621abcf596661917cf6aaaf29cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e0803a6c13174958a094cc048338575507a33d0b8f3556789ae315213790acb1628725a6c0104e05283d1903f712f2b25b5dd7978538cbbcf3c8c7b089ec727
|
7
|
+
data.tar.gz: 27745d6f08bb244209a706ee5c5d8180f3fc8f45f2608c74696c851bf2fb98b5e46f5c916e5b5b3b9d02ca1c5163e819784509d38be2ce24e420a865815e4455
|
data/lib/oauth/cli.rb
CHANGED
@@ -5,9 +5,14 @@ require 'oauth/cli/query_command'
|
|
5
5
|
require 'oauth/cli/authorize_command'
|
6
6
|
require 'oauth/cli/sign_command'
|
7
7
|
require 'oauth/cli/version_command'
|
8
|
+
require 'active_support/core_ext/string/inflections'
|
8
9
|
|
9
10
|
module OAuth
|
10
11
|
class CLI
|
12
|
+
def self.puts_red(string)
|
13
|
+
puts "\033[0;91m#{string}\033[0m"
|
14
|
+
end
|
15
|
+
|
11
16
|
ALIASES = {
|
12
17
|
'h' => 'help',
|
13
18
|
'v' => 'version',
|
@@ -43,6 +48,7 @@ module OAuth
|
|
43
48
|
when *ALIASES.values
|
44
49
|
command
|
45
50
|
else
|
51
|
+
OAuth::CLI.puts_red "Command '#{command}' not found"
|
46
52
|
'help'
|
47
53
|
end
|
48
54
|
end
|
@@ -12,7 +12,7 @@ class OAuth::CLI
|
|
12
12
|
if missing.empty?
|
13
13
|
_run
|
14
14
|
else
|
15
|
-
|
15
|
+
show_missing(missing)
|
16
16
|
puts option_parser.help
|
17
17
|
end
|
18
18
|
end
|
@@ -25,6 +25,11 @@ class OAuth::CLI
|
|
25
25
|
|
26
26
|
attr_reader :options
|
27
27
|
|
28
|
+
def show_missing(array)
|
29
|
+
array = array.map { |s| "--#{s}" }.join(' ')
|
30
|
+
OAuth::CLI.puts_red "Options missing to OAuth CLI: #{array}"
|
31
|
+
end
|
32
|
+
|
28
33
|
def xmpp?
|
29
34
|
options[:xmpp]
|
30
35
|
end
|
data/lib/oauth/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pelle Braendgaard
|
@@ -15,48 +15,48 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2017-05-
|
18
|
+
date: 2017-05-24 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rake
|
22
22
|
requirement: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
type: :development
|
28
28
|
prerelease: false
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: minitest
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
type: :development
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: byebug
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
- !ruby/object:Gem::Dependency
|
@@ -77,14 +77,14 @@ dependencies:
|
|
77
77
|
name: iconv
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
- !ruby/object:Gem::Dependency
|
@@ -105,23 +105,20 @@ dependencies:
|
|
105
105
|
name: rack-test
|
106
106
|
requirement: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
type: :development
|
112
112
|
prerelease: false
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
- !ruby/object:Gem::Dependency
|
119
119
|
name: mocha
|
120
120
|
requirement: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0.9'
|
125
122
|
- - ">="
|
126
123
|
- !ruby/object:Gem::Version
|
127
124
|
version: 0.9.12
|
@@ -129,9 +126,6 @@ dependencies:
|
|
129
126
|
prerelease: false
|
130
127
|
version_requirements: !ruby/object:Gem::Requirement
|
131
128
|
requirements:
|
132
|
-
- - "~>"
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
version: '0.9'
|
135
129
|
- - ">="
|
136
130
|
- !ruby/object:Gem::Version
|
137
131
|
version: 0.9.12
|
@@ -139,9 +133,6 @@ dependencies:
|
|
139
133
|
name: typhoeus
|
140
134
|
requirement: !ruby/object:Gem::Requirement
|
141
135
|
requirements:
|
142
|
-
- - "~>"
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: '0.1'
|
145
136
|
- - ">="
|
146
137
|
- !ruby/object:Gem::Version
|
147
138
|
version: 0.1.13
|
@@ -149,9 +140,6 @@ dependencies:
|
|
149
140
|
prerelease: false
|
150
141
|
version_requirements: !ruby/object:Gem::Requirement
|
151
142
|
requirements:
|
152
|
-
- - "~>"
|
153
|
-
- !ruby/object:Gem::Version
|
154
|
-
version: '0.1'
|
155
143
|
- - ">="
|
156
144
|
- !ruby/object:Gem::Version
|
157
145
|
version: 0.1.13
|
@@ -173,14 +161,14 @@ dependencies:
|
|
173
161
|
name: curb
|
174
162
|
requirement: !ruby/object:Gem::Requirement
|
175
163
|
requirements:
|
176
|
-
- - "
|
164
|
+
- - ">="
|
177
165
|
- !ruby/object:Gem::Version
|
178
166
|
version: '0'
|
179
167
|
type: :development
|
180
168
|
prerelease: false
|
181
169
|
version_requirements: !ruby/object:Gem::Requirement
|
182
170
|
requirements:
|
183
|
-
- - "
|
171
|
+
- - ">="
|
184
172
|
- !ruby/object:Gem::Version
|
185
173
|
version: '0'
|
186
174
|
- !ruby/object:Gem::Dependency
|
@@ -201,42 +189,42 @@ dependencies:
|
|
201
189
|
name: codeclimate-test-reporter
|
202
190
|
requirement: !ruby/object:Gem::Requirement
|
203
191
|
requirements:
|
204
|
-
- - "
|
192
|
+
- - ">="
|
205
193
|
- !ruby/object:Gem::Version
|
206
194
|
version: '0'
|
207
195
|
type: :development
|
208
196
|
prerelease: false
|
209
197
|
version_requirements: !ruby/object:Gem::Requirement
|
210
198
|
requirements:
|
211
|
-
- - "
|
199
|
+
- - ">="
|
212
200
|
- !ruby/object:Gem::Version
|
213
201
|
version: '0'
|
214
202
|
- !ruby/object:Gem::Dependency
|
215
203
|
name: simplecov
|
216
204
|
requirement: !ruby/object:Gem::Requirement
|
217
205
|
requirements:
|
218
|
-
- - "
|
206
|
+
- - ">="
|
219
207
|
- !ruby/object:Gem::Version
|
220
208
|
version: '0'
|
221
209
|
type: :development
|
222
210
|
prerelease: false
|
223
211
|
version_requirements: !ruby/object:Gem::Requirement
|
224
212
|
requirements:
|
225
|
-
- - "
|
213
|
+
- - ">="
|
226
214
|
- !ruby/object:Gem::Version
|
227
215
|
version: '0'
|
228
216
|
- !ruby/object:Gem::Dependency
|
229
217
|
name: rest-client
|
230
218
|
requirement: !ruby/object:Gem::Requirement
|
231
219
|
requirements:
|
232
|
-
- - "
|
220
|
+
- - ">="
|
233
221
|
- !ruby/object:Gem::Version
|
234
222
|
version: '0'
|
235
223
|
type: :development
|
236
224
|
prerelease: false
|
237
225
|
version_requirements: !ruby/object:Gem::Requirement
|
238
226
|
requirements:
|
239
|
-
- - "
|
227
|
+
- - ">="
|
240
228
|
- !ruby/object:Gem::Version
|
241
229
|
version: '0'
|
242
230
|
description:
|
@@ -299,7 +287,7 @@ files:
|
|
299
287
|
- lib/oauth/tokens/server_token.rb
|
300
288
|
- lib/oauth/tokens/token.rb
|
301
289
|
- lib/oauth/version.rb
|
302
|
-
homepage:
|
290
|
+
homepage:
|
303
291
|
licenses:
|
304
292
|
- MIT
|
305
293
|
metadata: {}
|