blitline 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a4aed50606422eb87aa3a3e6d598ca51742929c
4
- data.tar.gz: 1d08eaf99061329064d3ab9c641ef3b7013383ac
3
+ metadata.gz: c6f8526e89387132b5400a1d2c21e5ca5bbc88a1
4
+ data.tar.gz: edf00bc96d398976cb4c2aa6be0c747d6808602a
5
5
  SHA512:
6
- metadata.gz: 22dbcb2f9fa0c92b498ef5e0fef83a4e431e41ee3b2498afb11ff1109bd8ace0614ada569a9c95b4d5a7435c2e71e3e5a3619ada95b419febd89f16af908e2e3
7
- data.tar.gz: cc43524dfc83e658c1bc68bca4f0a7736392dd6b9ef0843a84f3cfee074f361392f6643e3df1b95f2cca418c42b39be534170b67073ba258bab99dc0e316665d
6
+ metadata.gz: 968185ef0b3f27b54c9abc51e206c10283d362d9576dd4f8ba35d9e72025b6c3a46636bdedd1db5450b9e2827f598761a537c98484abac88e798f0b4210727bb
7
+ data.tar.gz: 2f41599eb183245428699a57f21a0baf8a5a738545df47feac81066717b0eec624a95ee0672fff6d54c3ac8a3694b6bfdf2f4b9b5cf5a82f01fa212fdccaa728
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.6.0
1
+ 2.7.0
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: blitline 2.6.0 ruby lib
5
+ # stub: blitline 2.7.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "blitline"
9
- s.version = "2.6.0"
9
+ s.version = "2.7.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Blitline LLC"]
14
- s.date = "2015-06-17"
14
+ s.date = "2015-08-27"
15
15
  s.description = "The blitline gems provides a simple easy wrapper to the Blitline.com web api"
16
16
  s.email = "support@blitline.com"
17
17
  s.extra_rdoc_files = [
@@ -50,7 +50,7 @@ class Blitline
50
50
 
51
51
  def post_jobs
52
52
  validate
53
- result = Blitline::HttpPoster.post("http://#{@domain}.blitline.com/job", { :json => MultiJson.dump(@jobs)})
53
+ result = Blitline::HttpPoster.post("https://#{@domain}.blitline.com/job", { :json => MultiJson.dump(@jobs)})
54
54
  if result.is_a?(Hash)
55
55
  json_result = result
56
56
  else
@@ -63,7 +63,7 @@ class Blitline
63
63
  def post_job_and_wait_for_poll(timeout_secs = 60)
64
64
  validate
65
65
  raise "'post_job_with_poll' requires that there is only 1 job to submit" unless @jobs.length==1
66
- result = Blitline::HttpPoster.post("http://#{@domain}.blitline.com/job", { :json => MultiJson.dump(@jobs)})
66
+ result = Blitline::HttpPoster.post("https://#{@domain}.blitline.com/job", { :json => MultiJson.dump(@jobs)})
67
67
  if result.is_a?(Hash)
68
68
  json_result = result
69
69
  else
@@ -99,7 +99,8 @@ class Blitline
99
99
  def fetch(uri_str, timeout_secs, limit = 10)
100
100
  raise "Too Many Redirects" if limit == 0
101
101
 
102
- http = Net::HTTP.new("cache.blitline.com")
102
+ http = Net::HTTP.new("cache.blitline.com", 443)
103
+ http.use_ssl = true
103
104
  http.read_timeout = timeout_secs
104
105
  request = Net::HTTP::Get.new(uri_str)
105
106
  response = http.request(request, uri_str)
@@ -9,6 +9,7 @@ class Blitline
9
9
  def self.post(path, form_data=nil, &block)
10
10
  uri = URI.parse(path) unless path.is_a?(URI)
11
11
  @http = Net::HTTP.new(uri.host, uri.port)
12
+ @http.use_ssl = true if uri.port == 443
12
13
  request = Net::HTTP::Post.new(path)
13
14
  request.set_form_data(form_data) if form_data
14
15
  @http.request(request) do |response|
@@ -21,4 +22,4 @@ class Blitline
21
22
  end
22
23
  end
23
24
  end
24
- end
25
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blitline
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blitline LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-17 00:00:00.000000000 Z
11
+ date: 2015-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json