capdocker 1.0.63 → 1.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/capdocker.gemspec +1 -1
  3. data/lib/auth.rb +5 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb2824e574e29ba3d97a065a1417da729ac4472f
4
- data.tar.gz: 81020998a070e17c48c589a58703543556019d29
3
+ metadata.gz: eb26c4c8f7d9032c952d373e857dddd8ec9a75d2
4
+ data.tar.gz: e1a527822f8b92c21fdf0c1a2c07982e08f794a9
5
5
  SHA512:
6
- metadata.gz: d0a7d40eb0fc354328e95ede6d1978ffc64f175355e83a7f4e64d0cc8fc93edef78a4f50f8da9ccad348f3ddd27884da0b6ca82e6b7946e233079eee9c3cac8e
7
- data.tar.gz: eabac80667b6cbc28e110cce102478cfd33dbaec9dd9d4b99570de92e14f6ce77fb7fbbb5ba7afea120e674cd56978d51d2e471cf853afaa2344eb11804830f6
6
+ metadata.gz: 7bde76163e2c50507d2dc382f5a54a0d99ebb0fad92e003659e640aa8f7c0e51f096bc0181d6baaef109e444a8c40714e30444b5881eea6bff98b62d2b669da9
7
+ data.tar.gz: 567527fac5c61b4d11a2ba8c0dceaa9d84835e247ec8e64d0d448d1434d0c7755d4552c2d2916462318bf1a127f46ef48326a0a92303f62d23b2db031f7495d8
data/capdocker.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{capdocker}
5
- s.version = "1.0.63"
5
+ s.version = "1.0.64"
6
6
  s.authors = ["Ross Riley", "One Black Bear"]
7
7
  s.email = %q{ross@oneblackbear.com}
8
8
  s.date = Time.now
data/lib/auth.rb CHANGED
@@ -17,7 +17,7 @@ Capistrano::Configuration.instance(:must_exist).load do
17
17
  user = Capistrano::CLI.ui.ask("Account Name: ")
18
18
  tok =Capistrano::CLI.ui.ask("Account Token: ")
19
19
  result = JSON.parse(
20
- Net::HTTP.get_response("http://#{auth_base}/account/auth/?account=#{user}&token=#{tok}")
20
+ Net::HTTP.get_response(URI("http://#{auth_base}/account/auth/?account=#{user}&token=#{tok}"))
21
21
  )
22
22
  n[auth_base] = result["success"], result["token"]
23
23
  n.save
@@ -32,7 +32,7 @@ Capistrano::Configuration.instance(:must_exist).load do
32
32
  task :get_deploy do
33
33
  login
34
34
  result = JSON.parse(
35
- Net::HTTP.get_response("http://#{auth_base}/account/appinfo/?account=#{auth_account}&token=#{auth_token}&app=#{application}")
35
+ Net::HTTP.get_response(URI("http://#{auth_base}/account/appinfo/?account=#{auth_account}&token=#{auth_token}&app=#{application}"))
36
36
  )
37
37
  setup_app if result["error"]
38
38
  end
@@ -41,7 +41,9 @@ Capistrano::Configuration.instance(:must_exist).load do
41
41
  task :setup_app do
42
42
  login
43
43
  result = JSON.parse(
44
- Net::HTTP.post_form("http://#{auth_base}/account/appcreate/?account=#{auth_account}&token=#{auth_token}", 'app' => application)
44
+ Net::HTTP.post_form(
45
+ URI("http://#{auth_base}/account/appcreate/?account=#{auth_account}&token=#{auth_token}"),
46
+ 'app' => application)
45
47
  )
46
48
  puts result
47
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capdocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.63
4
+ version: 1.0.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Riley