instapusher 0.1.7 → 0.1.8
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.
- checksums.yaml +4 -4
- data/lib/instapusher/job_submission.rb +11 -7
- data/lib/instapusher/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86917f65bf8082648676b3cfab63bda29cf02f9a
|
4
|
+
data.tar.gz: d3caeb037564958fe3dfb85c7c497c5ba43851ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3749cd7596f66ee0afc6e160931c752caf34caf9832d04277131c61d9d41aab13ac5d13c95b2e791596cbf2ca518d0948f5dfa0f5e002d3773fb4222d5d65e4b
|
7
|
+
data.tar.gz: be068428eb629db62c79a33bb59221046f23117682b265cc9d581af6c2465aff090dd73d6082fb04eaa4c1d436f657715d8f211a61dd56c7a13ad6d9e824b53b
|
@@ -9,7 +9,7 @@ module Instapusher
|
|
9
9
|
@debug = debug
|
10
10
|
@options = options
|
11
11
|
|
12
|
-
|
12
|
+
log "options is #{options.inspect}"
|
13
13
|
end
|
14
14
|
|
15
15
|
def success?
|
@@ -17,9 +17,9 @@ module Instapusher
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def pre_submission_feedback_to_user
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
log "url to hit: #{url_to_submit_job.inspect}"
|
21
|
+
log "options being passed to the url: #{options.inspect}"
|
22
|
+
log "connecting to #{url_to_submit_job} to send data"
|
23
23
|
end
|
24
24
|
|
25
25
|
def feedback_to_user
|
@@ -34,14 +34,14 @@ module Instapusher
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def submit_the_job
|
37
|
-
pre_submission_feedback_to_user
|
37
|
+
pre_submission_feedback_to_user
|
38
38
|
|
39
39
|
response = Net::HTTP.post_form URI.parse(url_to_submit_job), options
|
40
40
|
raw_body = response.body
|
41
|
-
|
41
|
+
log "response raw body: #{raw_body}"
|
42
42
|
|
43
43
|
@response_body = ::JSON.parse(raw_body)
|
44
|
-
|
44
|
+
log "JSON parsed response raw body: #{response_body.inspect}"
|
45
45
|
@job_status_url = response_body['status_url']
|
46
46
|
end
|
47
47
|
|
@@ -63,5 +63,9 @@ module Instapusher
|
|
63
63
|
!(ENV['INSTAPUSHER_HOST'] || options[:local])
|
64
64
|
end
|
65
65
|
|
66
|
+
def log msg
|
67
|
+
puts msg if debug
|
68
|
+
end
|
69
|
+
|
66
70
|
end
|
67
71
|
end
|
data/lib/instapusher/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instapusher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neeraj Singh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashr
|