veye 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- veye (0.0.7)
4
+ veye (0.0.8)
5
5
  awesome_print (~> 1.2.0)
6
6
  gli (~> 2.8.1)
7
7
  rainbow (~> 1.1.4)
@@ -20,29 +20,29 @@ GEM
20
20
  builder (3.2.2)
21
21
  childprocess (0.3.9)
22
22
  ffi (~> 1.0, >= 1.0.11)
23
- cucumber (1.3.8)
23
+ cucumber (1.3.10)
24
24
  builder (>= 2.1.2)
25
25
  diff-lcs (>= 1.1.3)
26
- gherkin (~> 2.12.1)
26
+ gherkin (~> 2.12)
27
27
  multi_json (>= 1.7.5, < 2.0)
28
28
  multi_test (>= 0.0.2)
29
- diff-lcs (1.2.4)
30
- ffi (1.9.1)
29
+ diff-lcs (1.2.5)
30
+ ffi (1.9.3)
31
31
  gherkin (2.12.2)
32
32
  multi_json (~> 1.3)
33
33
  gli (2.8.1)
34
34
  json (1.8.1)
35
- mime-types (1.25)
35
+ mime-types (2.0)
36
36
  multi_json (1.8.2)
37
- multi_test (0.0.2)
37
+ multi_test (0.0.3)
38
38
  rainbow (1.1.4)
39
- rake (10.1.0)
40
- rdoc (4.0.1)
39
+ rake (10.1.1)
40
+ rdoc (4.1.0)
41
41
  json (~> 1.4)
42
- render-as-markdown (0.0.5)
42
+ render-as-markdown (0.0.6)
43
43
  rest-client (1.6.7)
44
44
  mime-types (>= 1.16)
45
- rspec-expectations (2.14.3)
45
+ rspec-expectations (2.14.4)
46
46
  diff-lcs (>= 1.1.3, < 2.0)
47
47
  terminal-table (1.4.5)
48
48
 
data/bin/veye CHANGED
@@ -26,13 +26,13 @@ desc 'set server url'
26
26
  flag :server, :default_value => "www.versioneye.com"
27
27
 
28
28
  desc 'set service port'
29
- flag :port, :default_value => "80"
29
+ flag :port, :default_value => ""
30
30
 
31
31
  desc 'set service path'
32
32
  flag :path, :default_value => "api/v2"
33
33
 
34
34
  desc 'set connection protocol'
35
- flag :protocol, :default_value => "http"
35
+ flag :protocol, :default_value => "https"
36
36
 
37
37
  desc 'set folder of veye_cert.pem'
38
38
  flag :ssl_path, :default_value => "~/.ssh"
@@ -10,12 +10,7 @@ module Veye
10
10
  def initialize(path = nil)
11
11
  super(path)
12
12
  ssl_path = File.expand_path($global_options[:ssl_path])
13
- @resource = RestClient::Resource.new(
14
- @full_path,
15
- :ssl_client_cert => OpenSSL::PKey::RSA.new(File.read("#{ssl_path}/veye_cert.pem")),
16
- :ssl_client_key => OpenSSL::PKey::RSA.new(File.read("#{ssl_path}/veye_key.pem")),
17
- :verify_ssl => OpenSSL::SSL::VERIFY_NONE
18
- )
13
+ @resource = RestClient::Resource.new(@full_path)
19
14
  end
20
15
  end
21
16
  end
data/lib/veye/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Veye
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  BIGEYE = %q{
4
4
 
5
5
  _ __ _ ______
@@ -12,6 +12,11 @@ module Veye
12
12
  return if result.nil?
13
13
 
14
14
  repo = result['repo']
15
+ if repo.nil?
16
+ puts "Error: Cant import."
17
+ return false
18
+ end
19
+
15
20
  projects = result['imported_projects']
16
21
  if projects
17
22
  project_names = projects.map {|x| x['project_key']}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veye
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-10-27 00:00:00.000000000 Z
14
+ date: 2014-01-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake