trackman 0.4.6 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -79,7 +79,7 @@ module Trackman
79
79
  autosync = autosync !~ /(0|false|FALSE)/ unless autosync.is_a? TrueClass
80
80
 
81
81
  if Object.const_defined?(:Rails)
82
- autosync = autosync && Rails.env.production?
82
+ autosync = autosync && !(Rails.env.development? || Rails.env.test?)
83
83
  end
84
84
 
85
85
  begin
@@ -1,3 +1,3 @@
1
1
  module Trackman
2
- VERSION = "0.4.6"
2
+ VERSION = "0.4.7"
3
3
  end
@@ -36,7 +36,7 @@ describe Trackman::Assets::Asset do
36
36
  end
37
37
  end
38
38
 
39
- it "doesn't autosync if the env is not in production" do
39
+ it "doesn't autosync if the env is dev or test" do
40
40
  class Rails
41
41
  def self.env
42
42
  Env.new
@@ -47,6 +47,12 @@ describe Trackman::Assets::Asset do
47
47
  def production?
48
48
  false
49
49
  end
50
+ def development?
51
+ true
52
+ end
53
+ def test?
54
+ false
55
+ end
50
56
  end
51
57
  MyTestAsset.should_not_receive(:sync)
52
58
 
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.4.6
4
+ version: 0.4.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-16 00:00:00.000000000 Z
13
+ date: 2012-09-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client