blitline 2.3.0 → 2.4.0

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/blitline.gemspec +3 -3
  4. data/lib/blitline.rb +3 -2
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71059b8bd9d68d00d68e01969146e65e45eda05d
4
- data.tar.gz: 6949c99bebe8c84a1220669fc53ee553cba8656f
3
+ metadata.gz: f189b41c83e0e7e5abb833e0613587a917561858
4
+ data.tar.gz: 9862a959e48b6865456fabebb9cdf73a41e5d22d
5
5
  SHA512:
6
- metadata.gz: 33f71ccff2edfa23ea11b431991990760f76f2e5b0639685bea13408cebe39e854c5a89997d54e62d40007721b49df2b1af21b1b9a758c52f8a63ea5b0be2249
7
- data.tar.gz: a3f0d13c04b61513489978e04bb36ad2f4752f02644d6c752a05b97ae341fba81194be8b625d046956b0c4dccef6eec5d5c11881ee8dedc5eb6ae4105206db30
6
+ metadata.gz: b705a7bc023ead88874a856bf07d0c2b1c2bc2e91814263a74aa9a6eeaf64ac5df19a26e0a7493049c3e96c722b136169873dd6fe1ed8e8d97594e14c60069e9
7
+ data.tar.gz: 9fac9adbb5e2b29ca67a2e8ab061d612013cacfd1f3fbd1561d4f4a9d2bc133a7ef6f1ced86d5c9d14919c80766d4685f2d8f37d0e0f554839476f85e301565a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.0
1
+ 2.4.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.3.0 ruby lib
5
+ # stub: blitline 2.4.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "blitline"
9
- s.version = "2.3.0"
9
+ s.version = "2.4.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 = "2014-02-24"
14
+ s.date = "2014-04-02"
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 = [
@@ -13,6 +13,7 @@ class Blitline
13
13
 
14
14
  def initialize
15
15
  @jobs = []
16
+ @domain = ENV['BLITLINE_DOMAIN'] || "api"
16
17
  end
17
18
 
18
19
  # Heroku users don't need to specify application_id if they have ENV['BLITLINE_URL'] defined
@@ -49,7 +50,7 @@ class Blitline
49
50
 
50
51
  def post_jobs
51
52
  validate
52
- result = Blitline::HttpPoster.post("http://api.blitline.com/job", { :json => MultiJson.dump(@jobs)})
53
+ result = Blitline::HttpPoster.post("http://#{@domain}.blitline.com/job", { :json => MultiJson.dump(@jobs)})
53
54
  @jobs = [] # clear jobs
54
55
  return MultiJson.load(result)
55
56
  end
@@ -57,7 +58,7 @@ class Blitline
57
58
  def post_job_and_wait_for_poll
58
59
  validate
59
60
  raise "'post_job_with_poll' requires that there is only 1 job to submit" unless @jobs.length==1
60
- result = Blitline::HttpPoster.post("http://api.blitline.com/job", { :json => MultiJson.dump(@jobs)})
61
+ result = Blitline::HttpPoster.post("http://#{@domain}.blitline.com/job", { :json => MultiJson.dump(@jobs)})
61
62
  json_result = MultiJson.load(result)
62
63
  raise "Error posting job: #{result.to_s}" if result["error"]
63
64
  job_id = json_result["results"][0]["job_id"]
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.3.0
4
+ version: 2.4.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: 2014-02-24 00:00:00.000000000 Z
11
+ date: 2014-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json