instapusher 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d2d1ee9ba82bc77c8f8498e2d37025d39654d67
4
- data.tar.gz: 33a4da2628bf95cd8033bf516c18ce7557895e78
3
+ metadata.gz: 13ab1dd3f9f4115e89260265d27c8601475746cb
4
+ data.tar.gz: e2c8813f00c7bd5587fbfc28e7f25bd4cae58051
5
5
  SHA512:
6
- metadata.gz: fcf6faf925bb70c237d5775826960462eb94990c7174ed1eebd39d70a9a021a5d2dd5b6a84d5c8660e3f1b187e76f20365155d12dac04467efbfb50c743b1e5e
7
- data.tar.gz: 0ba780cd739c502d5f57cd8e75691f63cdcc2dee750b161ada5c9c19183374c2a1d9f56920a8dacbbcccb28e1b4810ff7e4ac6412a7a64d2524f627da4698b57
6
+ metadata.gz: 7a82bc73dc54ae135084a42385df7b15cdc26bfe531553c9bdf6f195252b9a4c371837e206d9e5404c200969a140ef2cc2af0d90be7944813496a7417a8764e4
7
+ data.tar.gz: 0892a0115c104965f48e9a0666dab590f697056e27b7204c807a590d461d9860e2c9f9ba7f7a5a18a092b8e7f890f10eeae26e659e12cba501693edb2dee8798
@@ -52,8 +52,17 @@ module Instapusher
52
52
  else
53
53
  ENV['INSTAPUSHER_HOST'] || DEFAULT_HOSTNAME
54
54
  end
55
- "http://#{hostname}/api/v1/jobs.json"
55
+ if use_ssl?
56
+ "https://#{hostname}/api/v1/jobs.json"
57
+ else
58
+ "http://#{hostname}/api/v1/jobs.json"
59
+ end
56
60
  end
57
61
  end
62
+
63
+ def use_ssl?
64
+ !(ENV['INSTAPUSHER_HOST'] || options[:local])
65
+ end
66
+
58
67
  end
59
68
  end
@@ -1,3 +1,3 @@
1
1
  module Instapusher
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
4
+ version: 0.1.6
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-10-30 00:00:00.000000000 Z
11
+ date: 2014-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashr