capistrano-vexxhost 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,14 @@
1
+ About
2
+ =====
3
+ This gem allows customers of VEXXHOST to deploy their Rails applications
4
+ on cPanel. Rails 2.3+ is not currently supported in any cPanel host.
5
+ We have added an implementation that allows you to host Rails 3
6
+ applications or any Rack based application. For more information:
7
+ [rails hosting](http://vexxhost.com/rails-hosting "rails hosting").
8
+
9
+ How to use
10
+ ==========
11
+ We have a very detailed article explaining the entire procedure of using
12
+ this gem to deploy your application in our knowledge base, you can read
13
+ it here:
14
+ [https://secure.vexxhost.com/support/index.php?/Knowledgebase/Article/View/53/0/how-can-i-deploy-a-rails-application-onto-my-account](https://secure.vexxhost.com/support/index.php?/Knowledgebase/Article/View/53/0/how-can-i-deploy-a-rails-application-onto-my-account)
@@ -111,11 +111,13 @@ Capistrano::Configuration.instance(:must_exist).load do
111
111
  request_location = "/json-api/cpanel?#{request_query}"
112
112
 
113
113
  # Run the request
114
- Net::HTTP.start(hostname, 2083, :use_ssl => true, :verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http|
114
+ Net::HTTP.start(hostname, 2083) do |http|
115
+ http.use_ssl = true
116
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
115
117
  request = Net::HTTP::Get.new(request_location, {'Authorization' => "Basic #{authorization}"})
116
118
  response = http.request(request)
117
119
 
118
- return (response.body.empty?) ? nil : JSON.parse(response.body)
120
+ return (response.body.empty?) ? nil : JSON.parse(response.body.match(/\{(.*)\}/)[0])
119
121
  end
120
122
  end
121
123
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Vexxhost
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-vexxhost
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-15 00:00:00.000000000Z
12
+ date: 2012-03-12 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &70237563330120 !ruby/object:Gem::Requirement
16
+ requirement: &70173349647940 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70237563330120
24
+ version_requirements: *70173349647940
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &70237563329640 !ruby/object:Gem::Requirement
27
+ requirement: &70173349647520 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70237563329640
35
+ version_requirements: *70173349647520
36
36
  description: Capistrano extension allowing deployment Rails applications on VEXXHOST
37
37
  email:
38
38
  - mnaser@vexxhost.com
@@ -42,6 +42,7 @@ extra_rdoc_files: []
42
42
  files:
43
43
  - .gitignore
44
44
  - Gemfile
45
+ - README.md
45
46
  - Rakefile
46
47
  - capistrano-vexxhost.gemspec
47
48
  - lib/capistrano-vexxhost.rb