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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e4138ba8ee71e3573f86f0d8088d7cf11a76752
4
- data.tar.gz: a585a6ef25fb5479f5271164425e7fc0802d8696
3
+ metadata.gz: d69e7eacde021a7d6e0d6d22f1c7aa8139303895
4
+ data.tar.gz: 5a14ab41432ca81b60a27b7c4ce1df7e82ff428d
5
5
  SHA512:
6
- metadata.gz: 79ed2d44f9a5304daa7fec253a94ee5853ef6fc12a7a1b16afdcc8b69b32ce0af47997ecd21f4931125918be12a7c9cd29b27ee3125dc5d830423098bbe8aa9d
7
- data.tar.gz: dccf1c3c9f17f1eb8e56e24a72aa0332d3e810cc4047d08fbf4a612918722de6177957f9cfe30e3f4a04484ad8b62aaff6f48ad8c8ceec0a4be7d3d0557b4a66
6
+ metadata.gz: ee6d8ab691d2f8dbe34ac9e58c07a0c8bc09e79720abd6b1a0535891d11af169448434ed04680fc92878f344ae37be840a488c0cd8a4dc20dc2c4355991ec30c
7
+ data.tar.gz: 2c63c45a2639c3b15482e9f3690d53c3f3c94bf37516aadba5a41c6a78f13222b758e07959a1621a58d7155aee0118fe2d4255859e9165a5184fc51ca80bcb53
data/Gemfile.lock CHANGED
@@ -33,3 +33,6 @@ DEPENDENCIES
33
33
  rake
34
34
  terminal-table (~> 1.4, >= 1.4.5)
35
35
  viaduct-api (~> 1.0, >= 1.0.7)
36
+
37
+ BUNDLED WITH
38
+ 1.10.6
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
- error "The login request was rejected. Ensure that you approve the login request."
30
+ raise Viaduct::Toolkit::Error, "The login request was rejected. Ensure that you approve the login request."
31
31
  end
32
32
  else
33
- error "Couldn't successfully exchange login token for an API token. Please try again later."
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
- error "We couldn't verify your user details. Please try again."
50
+ raise Viaduct::Toolkit::Error, "We couldn't verify your user details. Please try again."
51
51
  end
52
52
  else
53
- error "We didn't receive a login response in a timely manner. Please try again."
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
- error "Couldn't generate a remote login token. Please try again."
57
+ raise Viaduct::Toolkit::Error, "Couldn't generate a remote login token. Please try again."
58
58
  end
59
59
 
60
60
  end
@@ -1,5 +1,5 @@
1
1
  module Viaduct
2
2
  module Toolkit
3
- VERSION = '1.0.10'
3
+ VERSION = '1.0.11'
4
4
  end
5
5
  end
@@ -50,6 +50,7 @@ module Viaduct
50
50
  Viaduct::API.port = 5000
51
51
  Viaduct::API.ssl = false
52
52
  Viaduct::API.application_token = 'example'
53
+ Viaduct::API.push_port = 8155
53
54
  end
54
55
  Viaduct::API::Client.new(env_config['token'], env_config['secret'])
55
56
  end
@@ -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.10
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-04 00:00:00.000000000 Z
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.2.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: