trackman 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,8 +37,6 @@ module Trackman
37
37
  end
38
38
 
39
39
  def create!
40
- puts "server = #{@@server_url}"
41
- puts "site = #{@@site}"
42
40
  response = RestClient.post @@site, :asset => {:path => path.to_s, :file => File.open(path)}, :content_type => :json, :accept => :json
43
41
  path = response.headers[:location]
44
42
  @id = path[/\d+$/].to_i
@@ -1,3 +1,3 @@
1
1
  module Trackman
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -3,7 +3,7 @@ class AppCreator
3
3
  response = RestClient.post url, :plan => 'test', :heroku_id => 123
4
4
  json = JSON.parse response
5
5
 
6
- trackman_url = json['config']['TRACKMAN_URL']
6
+ trackman_url = json['config']['TRACKMAN_URL'].gsub('https', 'http')
7
7
 
8
8
  [[:@@server_url, trackman_url], [:@@site, "#{trackman_url}/assets"]]
9
9
  end
@@ -8,7 +8,7 @@ describe Trackman::Assets::RemoteAsset do
8
8
 
9
9
  response = RestClient.post "http://#{user}:#{pass}@#{server}/heroku/resources", :plan => 'test', :heroku_id => 123
10
10
  json = JSON.parse response
11
- @trackman_url = json['config']['TRACKMAN_URL'].gsub(/https/, 'http')
11
+ @trackman_url = json['config']['TRACKMAN_URL'].gsub('https', 'http')
12
12
 
13
13
  @config = [[:@@server_url, @trackman_url], [:@@site, "#{@trackman_url}/assets"]]
14
14
  @config.each do |s, v|
@@ -25,7 +25,6 @@ describe Trackman::Assets::RemoteAsset do
25
25
  end
26
26
 
27
27
  it "creates assets on the server" do
28
- puts "b4 call#{RemoteAsset.send(:class_variable_get, :@@server_url)}"
29
28
  expected = RemoteAsset.new(:path => 'spec/test_data/test2.png')
30
29
  expected.create!
31
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trackman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: