instapusher 0.0.8 → 0.0.9

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.
data/README.md CHANGED
@@ -27,6 +27,10 @@ You can provide the env variable `LOCAL` like:
27
27
 
28
28
  LOCAL=1 instapusher
29
29
 
30
+ To enable debug messages you can do
31
+
32
+ DEBUG=1 instapusher
33
+
30
34
  And instapusher will send requests to `http://localhost:3000` server.
31
35
  Another solution is use env variable `INSTAPUSHER_HOST`.
32
36
 
@@ -8,6 +8,7 @@ module Instapusher
8
8
  DEFAULT_HOSTNAME = 'instapusher.com'
9
9
 
10
10
  def self.deploy(project_name=nil, branch_name=nil)
11
+ debug = ENV['DEBUG']
11
12
  hostname = ENV['INSTAPUSHER_HOST'] || DEFAULT_HOSTNAME
12
13
  hostname = "localhost:3000" if ENV['LOCAL']
13
14
 
@@ -26,6 +27,10 @@ module Instapusher
26
27
  local: ENV['LOCAL'],
27
28
  api_key: api_key }
28
29
 
30
+ if debug
31
+ puts "url: #{url.inspect}"
32
+ puts "options: #{options.inspect}"
33
+ end
29
34
  response = Net::HTTP.post_form URI.parse(url), options
30
35
  response_body = MultiJson.load(response.body)
31
36
  job_status_url = response_body['status'] || response_body['job_status_url']
@@ -1,3 +1,3 @@
1
1
  module Instapusher
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instapusher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-05 00:00:00.000000000 Z
12
+ date: 2013-04-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hashr
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  segments:
99
99
  - 0
100
- hash: -2459523936242913019
100
+ hash: -1330661963684592290
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  none: false
103
103
  requirements:
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  segments:
108
108
  - 0
109
- hash: -2459523936242913019
109
+ hash: -1330661963684592290
110
110
  requirements: []
111
111
  rubyforge_project:
112
112
  rubygems_version: 1.8.23