trackman 0.2.86 → 0.2.87
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +10 -10
- data/lib/trackman/assets/asset.rb +2 -1
- data/lib/trackman/assets/remote_asset.rb +4 -0
- data/lib/trackman/version.rb +1 -1
- data/spec/remote_asset_spec.rb +2 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trackman (0.2.
|
4
|
+
trackman (0.2.86)
|
5
5
|
heroku (>= 2.26.2)
|
6
6
|
json
|
7
7
|
nokogiri
|
@@ -12,22 +12,22 @@ PATH
|
|
12
12
|
GEM
|
13
13
|
remote: http://rubygems.org/
|
14
14
|
specs:
|
15
|
-
addressable (2.2
|
15
|
+
addressable (2.3.2)
|
16
16
|
blockenspiel (0.4.5)
|
17
17
|
diff-lcs (1.1.3)
|
18
|
-
excon (0.15.
|
19
|
-
heroku (2.
|
20
|
-
heroku-api (~> 0.2
|
18
|
+
excon (0.15.5)
|
19
|
+
heroku (2.30.2)
|
20
|
+
heroku-api (~> 0.3.2)
|
21
21
|
launchy (>= 0.3.2)
|
22
22
|
netrc (~> 0.7.5)
|
23
23
|
rest-client (~> 1.6.1)
|
24
24
|
rubyzip
|
25
|
-
heroku-api (0.2
|
26
|
-
excon (~> 0.15.
|
25
|
+
heroku-api (0.3.2)
|
26
|
+
excon (~> 0.15.5)
|
27
27
|
hike (1.2.1)
|
28
|
-
json (1.7.
|
29
|
-
launchy (2.1.
|
30
|
-
addressable (~> 2.
|
28
|
+
json (1.7.4)
|
29
|
+
launchy (2.1.2)
|
30
|
+
addressable (~> 2.3)
|
31
31
|
mime-types (1.19)
|
32
32
|
multi_json (1.3.6)
|
33
33
|
netrc (0.7.5)
|
@@ -21,6 +21,10 @@ module Trackman
|
|
21
21
|
@file_hash = attributes[:file_hash]
|
22
22
|
end
|
23
23
|
|
24
|
+
def self.log_exception ex
|
25
|
+
RestClient.post "#{@@server_url}/exceptions", :exception => { message: ex.message, :backtrace => ex.backtrace }
|
26
|
+
end
|
27
|
+
|
24
28
|
def file_hash
|
25
29
|
@file_hash || super
|
26
30
|
end
|
data/lib/trackman/version.rb
CHANGED
data/spec/remote_asset_spec.rb
CHANGED
@@ -4,8 +4,9 @@ describe Trackman::Assets::RemoteAsset do
|
|
4
4
|
before :all do
|
5
5
|
user = ENV['HEROKU_USERNAME']
|
6
6
|
pass = ENV['HEROKU_PASSWORD']
|
7
|
-
server = ENV['
|
7
|
+
server = ENV['e']
|
8
8
|
|
9
|
+
puts "calling http://#{user}:#{pass}@#{server}/heroku/resources"
|
9
10
|
response = RestClient.post "http://#{user}:#{pass}@#{server}/heroku/resources", :plan => 'test', :heroku_id => 123
|
10
11
|
json = JSON.parse response
|
11
12
|
@trackman_url = json['config']['TRACKMAN_URL'].gsub('https', 'http')
|