krl 0.3.7 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/create.rb +8 -1
  2. data/lib/user.rb +2 -2
  3. metadata +3 -3
@@ -3,7 +3,14 @@ module KRL_CMD
3
3
  def self.go(name, options)
4
4
  desc = options["description"] ? options["description"] : name
5
5
  user = KRL_CMD::User.new
6
- new_app = user.create_application(name, desc)
6
+
7
+ begin
8
+ new_app = user.create_application(name, desc)
9
+ rescue Exception => error
10
+ puts error.message
11
+ exit
12
+ end
13
+
7
14
  checkout_opts = {
8
15
  "title" => options["title"]
9
16
  }
@@ -6,8 +6,8 @@ module KRL_CMD
6
6
  class User < KynetxAmApi::User
7
7
 
8
8
  def initialize(opts={})
9
- KynetxAmApi::Oauth.api_server_url = "http://apps.kynetx.com"
10
- KynetxAmApi::Oauth.accounts_server_url = "https://apps.kynetx.com"
9
+ KynetxAmApi::Oauth.api_server_url = "http://apps.kynetx.com/"
10
+ KynetxAmApi::Oauth.accounts_server_url = "https://apps.kynetx.com/"
11
11
  KynetxAmApi::Oauth.consumer_key = "1j54YDLUcLW9ERBKalNm"
12
12
  KynetxAmApi::Oauth.consumer_secret = "QiWCbvTpCAejoceV3f6dD8ycifEkSumFAW1VSmwC"
13
13
  raise "Unable to authenticate. You need to run krl-connect." unless File.exists? CONFIG_FILE
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: krl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.1.30
22
+ version: 0.2.30
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ! '>='
29
29
  - !ruby/object:Gem::Version
30
- version: 0.1.30
30
+ version: 0.2.30
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: terminal-table
33
33
  requirement: !ruby/object:Gem::Requirement