sewing_kit 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06350a072b5b6f6e772251c68131556d48d68720
4
- data.tar.gz: 359c03dc3aa6597b2beee5501195b96ee930353c
3
+ metadata.gz: 1738cd4a6f269618761b769c91cbe11b8f97110d
4
+ data.tar.gz: 18b3909fe90e9ceaec850ac85d4ef7eb6ede939d
5
5
  SHA512:
6
- metadata.gz: 4f4c70be139e142a7ac94896b5eb1af05389d4cdb6d94ed8df87f8cd7c0c90c649361e4a1a634b63639bcb4588bf08bb2e805095caef96290f807a228732f0da
7
- data.tar.gz: c666e22da28bfcba8e8657a853a4cf8f4d24f7b0410441641c477899fdb5d1bd7e582430b0d86587ed4d113a11babfad7b50ab8321d96ec9309a764dfd7bd799
6
+ metadata.gz: 0134c5f73a58b687ba8b19d4b50bac75a03c02702a37c9fc9ffc2a485793d85fc7c63d3e73f056a29806a1321e399a805688aa47bd6e529ed6bebc8e3043b367
7
+ data.tar.gz: e4d575eeb4be2953a816c5ddc7ca5990baaf666fb903069c3bd34d6f2183c3fd2d480832281e951c5c1e723ca758fd9c75438cf3a9947826abf8c35b0039c928
@@ -1,3 +1,3 @@
1
1
  module SewingKit
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
@@ -30,9 +30,7 @@ module SewingKit
30
30
 
31
31
  private
32
32
  def node_env
33
- env = ENV['NODE_ENV'] || Rails.env.to_s
34
- env = 'development' if env == 'test'
35
- env
33
+ ENV['NODE_ENV'] || Rails.env.to_s
36
34
  end
37
35
  end
38
36
  end
@@ -18,7 +18,7 @@ module SewingKit
18
18
  end
19
19
 
20
20
  def sewing_kit_link_tag(*paths)
21
- return '' if Rails.env.development?
21
+ return '' unless Rails.env.production?
22
22
 
23
23
  options = paths.extract_options!
24
24
 
@@ -49,9 +49,7 @@ module SewingKit
49
49
  end
50
50
 
51
51
  def mode
52
- env = ENV['NODE_ENV'] || Rails.env.to_s || 'production'
53
- env = 'development' if env == 'test'
54
- env
52
+ ENV['NODE_ENV'] || Rails.env.to_s || 'production'
55
53
  end
56
54
  end
57
55
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sewing_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Sauve
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-11 00:00:00.000000000 Z
11
+ date: 2017-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties