capdocker 1.0.74 → 1.0.75

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 +3 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5aefab3ed25872e22acee853a9deedec168d1d1
4
- data.tar.gz: 73603a6ab1a350703a790d5478f1bb8623a34850
3
+ metadata.gz: ebbe926a7ef6ea93e658147261f5c3cd89eb7e9a
4
+ data.tar.gz: bd025cff9092ab84658a5a71ae4e3e0eaffd4e57
5
5
  SHA512:
6
- metadata.gz: c2f6567355f931c627253dd55a941f58334074ef88d858bc9c7e9823015ceadebab47964f39b83700c3254755b442a3033e32b9e14f9e916a161faec05ef12c4
7
- data.tar.gz: d3f753fa88e5a866fd6687aaf61354560d02bc7456b84fbaf84a5b9eb55a7c28c96053282c1e1f3b97240110f2b5a0f33d5d30b4378d6a9c6516fce42a312b6f
6
+ metadata.gz: fccd71845ef925a2c632e086dfa35f4efc77ba14985b9284720dce0c05b6bf09d35cf9bf51651dd4eaf2218d243dbb74f18e0fe0e605acfc3fdabe97cae11067
7
+ data.tar.gz: c00ca2462d82e41f9d6d3dcf4d424f2d0eff9a445339b3aaf0edd8bab6cfea8a8067fa583205ec1bb72260e531123a4a4b013d87d33b9f95507fe2398a7c85bc
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.74"
5
+ s.version = "1.0.75"
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
@@ -14,7 +14,7 @@ Capistrano::Configuration.instance(:must_exist).load do
14
14
  if !n[auth_base]
15
15
  user = Capistrano::CLI.ui.ask("Account Name: ")
16
16
  tok =Capistrano::CLI.ui.ask("Account Token: ")
17
- uri = URI("http://#{auth_base}/account/auth/?account=#{user}&token=#{tok}")
17
+ uri = URI::parse("http://#{auth_base}/account/auth/?account=#{user}&token=#{tok}")
18
18
  result = JSON.parse(Net::HTTP.get_response(uri))
19
19
  n[auth_base] = result["success"], result["token"]
20
20
  n.save
@@ -28,7 +28,7 @@ Capistrano::Configuration.instance(:must_exist).load do
28
28
  desc "After a successful login, connect to the deploy server and receive deploy information"
29
29
  task :get_deploy do
30
30
  login
31
- uri = URI("http://#{auth_base}/account/appinfo/?account=#{auth_account}&token=#{auth_token}&app=#{application}")
31
+ uri = URI::parse("http://#{auth_base}/account/appinfo/?account=#{auth_account}&token=#{auth_token}&app=#{application}")
32
32
  result = JSON.parse(Net::HTTP.get_response(uri))
33
33
  setup_app if result["error"]
34
34
  end
@@ -36,7 +36,7 @@ Capistrano::Configuration.instance(:must_exist).load do
36
36
  desc "After a successful login, connect to the deploy server and receive deploy information"
37
37
  task :setup_app do
38
38
  login
39
- uri = URI("http://#{auth_base}/account/appcreate/?account=#{auth_account}&token=#{auth_token}")
39
+ uri = URI::parse("http://#{auth_base}/account/appcreate/?account=#{auth_account}&token=#{auth_token}")
40
40
  result = JSON.parse(
41
41
  Net::HTTP.post_form(uri, 'app' => application)
42
42
  )
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.74
4
+ version: 1.0.75
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Riley