trackman 0.2.86 → 0.2.87

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trackman (0.2.85)
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.8)
15
+ addressable (2.3.2)
16
16
  blockenspiel (0.4.5)
17
17
  diff-lcs (1.1.3)
18
- excon (0.15.4)
19
- heroku (2.29.0)
20
- heroku-api (~> 0.2.13)
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.13)
26
- excon (~> 0.15.4)
25
+ heroku-api (0.3.2)
26
+ excon (~> 0.15.5)
27
27
  hike (1.2.1)
28
- json (1.7.3)
29
- launchy (2.1.0)
30
- addressable (~> 2.2.6)
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)
@@ -82,7 +82,8 @@ module Trackman
82
82
 
83
83
  begin
84
84
  return sync if autosync
85
- rescue
85
+ rescue Exception => ex
86
+ RemoteAsset.log_exception ex
86
87
  return false
87
88
  end
88
89
  autosync
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Trackman
2
- VERSION = "0.2.86"
2
+ VERSION = "0.2.87"
3
3
  end
@@ -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['TRACKMAN_SERVER_URL']
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')
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.2.86
4
+ version: 0.2.87
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: