trackman 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trackman (0.1.5)
4
+ trackman (0.1.9)
5
5
  heroku (>= 2.26.2)
6
6
  json
7
7
  nokogiri
@@ -14,8 +14,8 @@ GEM
14
14
  addressable (2.2.8)
15
15
  diff-lcs (1.1.3)
16
16
  excon (0.14.1)
17
- heroku (2.28.0)
18
- heroku-api (~> 0.2.5)
17
+ heroku (2.28.2)
18
+ heroku-api (~> 0.2.6)
19
19
  launchy (>= 0.3.2)
20
20
  netrc (~> 0.7.4)
21
21
  rest-client (~> 1.6.1)
@@ -29,7 +29,7 @@ GEM
29
29
  mime-types (1.19)
30
30
  multi_json (1.3.6)
31
31
  netrc (0.7.4)
32
- nokogiri (1.5.4)
32
+ nokogiri (1.5.5)
33
33
  rack (1.4.1)
34
34
  rest-client (1.6.7)
35
35
  mime-types (>= 1.16)
@@ -1,3 +1,3 @@
1
1
  module Trackman
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
data/lib/trackman.rb CHANGED
@@ -9,11 +9,9 @@ end
9
9
 
10
10
  autoload :Debugger, 'trackman/debugger'
11
11
 
12
- if defined?(Rails)
12
+ if defined?(Rails) && Rails.env == "production"
13
13
  if ::Rails::VERSION::STRING =~ /^2\.[1-9]/
14
- unless Rails.send(:class_variable_get, :@@configuration).nil?
15
- Rails.configuration.middleware.use Trackman::RackMiddleware
16
- end
14
+ Rails.configuration.middleware.use Trackman::RackMiddleware
17
15
  elsif ::Rails::VERSION::STRING =~ /^[3-9]\.[1-9]/
18
16
  require "trackman/railtie"
19
17
  end
@@ -1,5 +1,5 @@
1
- require 'trackman'
2
1
  require 'rest-client'
2
+
3
3
  namespace :trackman do
4
4
  ERROR = 'ERROR_PAGE_URL'
5
5
  MAINTENANCE = 'MAINTENANCE_PAGE_URL'
@@ -7,7 +7,8 @@ namespace :trackman do
7
7
  TRACKMAN_MAINTENANCE = 'TRACKMAN_MAINTENANCE_PAGE_URL'
8
8
 
9
9
  desc "Syncs your assets with the server, this is what gets executed when you deploy to heroku."
10
- task :sync do
10
+ task :sync => :environment do
11
+ require 'trackman'
11
12
  RestClient.log = Logger.new(STDOUT) if Debugger.debug_mode?
12
13
  Trackman::Assets::Asset.sync
13
14
  end
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.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: