viaduct-toolkit 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -0
- data/Rakefile +1 -0
- data/lib/viaduct/toolkit/commands/login.rb +5 -5
- data/lib/viaduct/toolkit/version.rb +1 -1
- data/lib/viaduct/toolkit.rb +1 -0
- data/viaduct-toolkit.gemspec +1 -0
- metadata +17 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d69e7eacde021a7d6e0d6d22f1c7aa8139303895
|
4
|
+
data.tar.gz: 5a14ab41432ca81b60a27b7c4ce1df7e82ff428d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee6d8ab691d2f8dbe34ac9e58c07a0c8bc09e79720abd6b1a0535891d11af169448434ed04680fc92878f344ae37be840a488c0cd8a4dc20dc2c4355991ec30c
|
7
|
+
data.tar.gz: 2c63c45a2639c3b15482e9f3690d53c3f3c94bf37516aadba5a41c6a78f13222b758e07959a1621a58d7155aee0118fe2d4255859e9165a5184fc51ca80bcb53
|
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
@@ -2,6 +2,7 @@ task :add_dependencies_to_gemspec do
|
|
2
2
|
root = File.expand_path('..', __FILE__)
|
3
3
|
dep_list = []
|
4
4
|
gemfile = Bundler::LockfileParser.new(File.read(File.join(root, 'Gemfile.lock')))
|
5
|
+
dep_list << " s.add_dependency 'bundler', '>= 1.10.5'"
|
5
6
|
gemfile.specs.each do |dep|
|
6
7
|
dep_list << " s.add_dependency '#{dep.name}', '= #{dep.version}'"
|
7
8
|
end
|
@@ -27,10 +27,10 @@ Viaduct::Toolkit.cli.command "login" do |c|
|
|
27
27
|
@authorised = true
|
28
28
|
break
|
29
29
|
elsif check_response.data['status'] == 'denied'
|
30
|
-
|
30
|
+
raise Viaduct::Toolkit::Error, "The login request was rejected. Ensure that you approve the login request."
|
31
31
|
end
|
32
32
|
else
|
33
|
-
|
33
|
+
raise Viaduct::Toolkit::Error, "Couldn't successfully exchange login token for an API token. Please try again later."
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
@@ -47,14 +47,14 @@ Viaduct::Toolkit.cli.command "login" do |c|
|
|
47
47
|
puts "stored in a .viaduct file in your home directory.".magenta
|
48
48
|
puts
|
49
49
|
else
|
50
|
-
|
50
|
+
raise Viaduct::Toolkit::Error, "We couldn't verify your user details. Please try again."
|
51
51
|
end
|
52
52
|
else
|
53
|
-
|
53
|
+
raise Viaduct::Toolkit::Error, "We didn't receive a login response in a timely manner. Please try again."
|
54
54
|
end
|
55
55
|
|
56
56
|
else
|
57
|
-
|
57
|
+
raise Viaduct::Toolkit::Error, "Couldn't generate a remote login token. Please try again."
|
58
58
|
end
|
59
59
|
|
60
60
|
end
|
data/lib/viaduct/toolkit.rb
CHANGED
data/viaduct-toolkit.gemspec
CHANGED
@@ -13,6 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.files = Dir["{bin,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md", "Gemfile", "Gemfile.lock", "viaduct-toolkit.gemspec", "cacert.pem"]
|
14
14
|
s.executables << "vdt"
|
15
15
|
s.licenses = ["MIT"]
|
16
|
+
s.add_dependency 'bundler', '>= 1.10.5'
|
16
17
|
s.add_dependency 'addressable', '= 2.3.6'
|
17
18
|
s.add_dependency 'colorize', '= 0.7.3'
|
18
19
|
s.add_dependency 'commander', '= 4.2.1'
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: viaduct-toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03
|
11
|
+
date: 2015-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.10.5
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.10.5
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: addressable
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -251,9 +265,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
265
|
version: '0'
|
252
266
|
requirements: []
|
253
267
|
rubyforge_project:
|
254
|
-
rubygems_version: 2.
|
268
|
+
rubygems_version: 2.4.5
|
255
269
|
signing_key:
|
256
270
|
specification_version: 4
|
257
271
|
summary: A developer toolkit for working with Viaduct from an CLI
|
258
272
|
test_files: []
|
259
|
-
has_rdoc:
|