trackman 0.0.5 → 0.0.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.
@@ -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
|
data/lib/trackman/version.rb
CHANGED
data/spec/helpers/app_creator.rb
CHANGED
@@ -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
|
data/spec/remote_asset_spec.rb
CHANGED
@@ -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(
|
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
|
|