pvdgm-svc-client 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
  SHA1:
3
- metadata.gz: c6d33d887c51525d875941b744de3d717a4bd298
4
- data.tar.gz: fecabbd6c93150bd85943a628b50269579842b80
3
+ metadata.gz: f2c225949085d0f95a1857f3f196cb30033d03d4
4
+ data.tar.gz: d4e62a2a6922dd6317754a15b5a70ef7d7950bf5
5
5
  SHA512:
6
- metadata.gz: 751cef746a37de859ad252a33972214ed4258b9784dbf6070e13361dce93cea10fa351dc693e1943b290da0765d671269cff31b2d98b65ae9613223c8020724c
7
- data.tar.gz: 7da1ff21b1334e3ac11fd7d65e38e2265af17eccf51ce9b006caaa6d22c65eca59806deb5459f7f67e94242cf503f16a3e6a268934765f5f93feb4b09852499d
6
+ metadata.gz: c25aa0fad7cb0aa772ed51fed28ae3c15ea70848eb120dffbcbbbe2b501efcc8d52ea12323c21682e7b5764eab208b49b81376d40d40d8afe07a421615fe386b
7
+ data.tar.gz: 223e2df04dd6079266d5c3406b0d59d656aaaa80fef9d162c13034ec6736ec9fd0fea9b6baf8587f3678a33c3fceee3cd41d2ca447260de3de32df3a7b367d61
data/Gemfile CHANGED
@@ -3,15 +3,15 @@ source "http://rubygems.org"
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
5
  gem "activesupport", "= 3.2.14"
6
- gem "rest-client"
7
- gem 'terminal-table'
8
- gem 'highline'
6
+ gem "rest-client", "~> 1.6"
7
+ gem 'terminal-table', "~> 1.4"
8
+ gem 'highline', "~> 1.6"
9
9
 
10
10
  # Add dependencies to develop your gem here.
11
11
  # Include everything needed to run rake, tests, features, etc.
12
12
  group :development do
13
- gem "rspec", "~> 2.14.1"
13
+ gem "rspec", "~> 2.14"
14
14
  gem "rdoc", "~> 3.12"
15
15
  gem "bundler", "~> 1.0"
16
- gem "jeweler", "~> 1.8.7"
16
+ gem "jeweler", "~> 1.8"
17
17
  end
@@ -65,9 +65,9 @@ PLATFORMS
65
65
  DEPENDENCIES
66
66
  activesupport (= 3.2.14)
67
67
  bundler (~> 1.0)
68
- highline
69
- jeweler (~> 1.8.7)
68
+ highline (~> 1.6)
69
+ jeweler (~> 1.8)
70
70
  rdoc (~> 3.12)
71
- rest-client
72
- rspec (~> 2.14.1)
73
- terminal-table
71
+ rest-client (~> 1.6)
72
+ rspec (~> 2.14)
73
+ terminal-table (~> 1.4)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -32,6 +32,10 @@ class BaseResource
32
32
  exit 1
33
33
  end
34
34
  rescue RestClient::Exception => ex
35
+ if ex.response.nil?
36
+ puts ex
37
+ exit 1
38
+ end
35
39
  puts "Response: #{ex.response.code} - #{ex.response.description}"
36
40
  if [ 403, 404 ].include?(ex.response.code)
37
41
  if is_json
@@ -33,6 +33,10 @@ class ServiceMgrOptions
33
33
  @options[:use_ssl] = false
34
34
  end
35
35
 
36
+ opts.on '-u', '--unsafe', "If specified, will turn of SSL CA verification" do
37
+ OpenSSL::SSL.const_set(:VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE)
38
+ end
39
+
36
40
  opts.on '-l', '--list', 'List the valid commands' do
37
41
  print_valid_resources
38
42
  exit
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: pvdgm-svc-client 0.2.1 ruby lib
5
+ # stub: pvdgm-svc-client 0.2.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "pvdgm-svc-client"
9
- s.version = "0.2.1"
9
+ s.version = "0.2.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -72,32 +72,32 @@ Gem::Specification.new do |s|
72
72
 
73
73
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
74
74
  s.add_runtime_dependency(%q<activesupport>, ["= 3.2.14"])
75
- s.add_runtime_dependency(%q<rest-client>, [">= 0"])
76
- s.add_runtime_dependency(%q<terminal-table>, [">= 0"])
77
- s.add_runtime_dependency(%q<highline>, [">= 0"])
78
- s.add_development_dependency(%q<rspec>, ["~> 2.14.1"])
75
+ s.add_runtime_dependency(%q<rest-client>, ["~> 1.6"])
76
+ s.add_runtime_dependency(%q<terminal-table>, ["~> 1.4"])
77
+ s.add_runtime_dependency(%q<highline>, ["~> 1.6"])
78
+ s.add_development_dependency(%q<rspec>, ["~> 2.14"])
79
79
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
80
80
  s.add_development_dependency(%q<bundler>, ["~> 1.0"])
81
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
81
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8"])
82
82
  else
83
83
  s.add_dependency(%q<activesupport>, ["= 3.2.14"])
84
- s.add_dependency(%q<rest-client>, [">= 0"])
85
- s.add_dependency(%q<terminal-table>, [">= 0"])
86
- s.add_dependency(%q<highline>, [">= 0"])
87
- s.add_dependency(%q<rspec>, ["~> 2.14.1"])
84
+ s.add_dependency(%q<rest-client>, ["~> 1.6"])
85
+ s.add_dependency(%q<terminal-table>, ["~> 1.4"])
86
+ s.add_dependency(%q<highline>, ["~> 1.6"])
87
+ s.add_dependency(%q<rspec>, ["~> 2.14"])
88
88
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
89
89
  s.add_dependency(%q<bundler>, ["~> 1.0"])
90
- s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
90
+ s.add_dependency(%q<jeweler>, ["~> 1.8"])
91
91
  end
92
92
  else
93
93
  s.add_dependency(%q<activesupport>, ["= 3.2.14"])
94
- s.add_dependency(%q<rest-client>, [">= 0"])
95
- s.add_dependency(%q<terminal-table>, [">= 0"])
96
- s.add_dependency(%q<highline>, [">= 0"])
97
- s.add_dependency(%q<rspec>, ["~> 2.14.1"])
94
+ s.add_dependency(%q<rest-client>, ["~> 1.6"])
95
+ s.add_dependency(%q<terminal-table>, ["~> 1.4"])
96
+ s.add_dependency(%q<highline>, ["~> 1.6"])
97
+ s.add_dependency(%q<rspec>, ["~> 2.14"])
98
98
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
99
99
  s.add_dependency(%q<bundler>, ["~> 1.0"])
100
- s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
100
+ s.add_dependency(%q<jeweler>, ["~> 1.8"])
101
101
  end
102
102
  end
103
103
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pvdgm-svc-client
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
  - Dave Sieh
@@ -28,58 +28,58 @@ dependencies:
28
28
  name: rest-client
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '1.6'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '1.6'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: terminal-table
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '1.4'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '1.4'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: highline
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '1.6'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '1.6'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 2.14.1
75
+ version: '2.14'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 2.14.1
82
+ version: '2.14'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rdoc
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.8.7
117
+ version: '1.8'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.8.7
124
+ version: '1.8'
125
125
  description: This gem provides command line and other types of tools to support the
126
126
  Service Engine.
127
127
  email: dave.sieh@providigm.com