jetfuel 1.19.23 → 1.19.24

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 286389afb62d10286011444c9937d274f079efab
4
- data.tar.gz: cc8edb359ebd2b606580b8e3790e43c7b7b7bbcf
3
+ metadata.gz: 62052f333d176bb96dd3c100153d0d7e3729e38d
4
+ data.tar.gz: 6edc28b36071c14d0d0d524196385408290e0d33
5
5
  SHA512:
6
- metadata.gz: 372f1382cc8f799f91644e704bc2879b0be6537ac6d3a8dadc3fdea0e7fc3f13de47a60f5dc1f84d6b5f28e5ed8578c10dc76bfff3f63015bf375151640061a1
7
- data.tar.gz: 2b5aa915e795ad90d1b1ff2eb790d1eb04787599a92e7db4ef7c21a8273242d1fe13bb44e4a55c7c95f85e1cbeafcef0ef38825ba2a8c38fc734e1085e56de9d
6
+ metadata.gz: a70eaf6004b0de2596604e7bab1bafa23f258cfca7a19b4b6934afc59e1d87607717e67e989414e6ff4a8823af0f5fd14f86f8ac1daeddc10e640b0cef983223
7
+ data.tar.gz: 9bc25d15b89890be176f1471279c64d5f2d9035aa0ce807b0dfea8706a3205e151b28724ebf01c5e6501d45a523e92d46560dd571b6642fafc4859e7df4ab389
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jetfuel (1.19.23)
4
+ jetfuel (1.19.24)
5
5
  bundler (~> 1.3)
6
6
  rails (= 4.2.0)
7
7
 
@@ -68,9 +68,8 @@ GEM
68
68
  ffi (1.9.6)
69
69
  gherkin (2.12.2)
70
70
  multi_json (~> 1.3)
71
- globalid (0.3.0)
71
+ globalid (0.3.5)
72
72
  activesupport (>= 4.1.0)
73
- hike (1.2.3)
74
73
  i18n (0.7.0)
75
74
  json (1.8.2)
76
75
  loofah (2.0.1)
@@ -79,7 +78,7 @@ GEM
79
78
  mime-types (>= 1.16, < 3)
80
79
  mime-types (2.4.3)
81
80
  mini_portile (0.6.2)
82
- minitest (5.5.1)
81
+ minitest (5.6.1)
83
82
  multi_json (1.10.1)
84
83
  multi_test (0.1.1)
85
84
  nokogiri (1.6.5)
@@ -100,11 +99,11 @@ GEM
100
99
  sprockets-rails
101
100
  rails-deprecated_sanitizer (1.0.3)
102
101
  activesupport (>= 4.2.0.alpha)
103
- rails-dom-testing (1.0.5)
102
+ rails-dom-testing (1.0.6)
104
103
  activesupport (>= 4.2.0.beta, < 5.0)
105
104
  nokogiri (~> 1.6.0)
106
105
  rails-deprecated_sanitizer (>= 1.0.1)
107
- rails-html-sanitizer (1.0.1)
106
+ rails-html-sanitizer (1.0.2)
108
107
  loofah (~> 2.0)
109
108
  railties (4.2.0)
110
109
  actionpack (= 4.2.0)
@@ -120,18 +119,14 @@ GEM
120
119
  rspec-expectations (2.99.2)
121
120
  diff-lcs (>= 1.1.3, < 2.0)
122
121
  rspec-mocks (2.99.3)
123
- sprockets (2.12.3)
124
- hike (~> 1.2)
125
- multi_json (~> 1.0)
122
+ sprockets (3.0.1)
126
123
  rack (~> 1.0)
127
- tilt (~> 1.1, != 1.3.0)
128
- sprockets-rails (2.2.3)
124
+ sprockets-rails (2.2.4)
129
125
  actionpack (>= 3.0)
130
126
  activesupport (>= 3.0)
131
127
  sprockets (>= 2.8, < 4.0)
132
128
  thor (0.19.1)
133
- thread_safe (0.3.4)
134
- tilt (1.4.1)
129
+ thread_safe (0.3.5)
135
130
  tzinfo (1.2.2)
136
131
  thread_safe (~> 0.1)
137
132
  xpath (2.0.0)
@@ -86,8 +86,11 @@ module Jetfuel
86
86
  config.middleware.use Rack::Deflater
87
87
  RUBY
88
88
 
89
- inject_into_file 'config/environments/production.rb', config,
90
- :after => "config.serve_static_assets = false\n"
89
+ inject_into_file(
90
+ 'config/environments/production.rb',
91
+ config,
92
+ after: serve_static_files_line
93
+ )
91
94
  end
92
95
 
93
96
  def setup_asset_host
@@ -99,9 +102,11 @@ module Jetfuel
99
102
  # "config.assets.version = '1.0'",
100
103
  # "config.assets.version = ENV.fetch('ASSETS_VERSION')"
101
104
 
102
- replace_in_file 'config/environments/production.rb',
103
- 'config.serve_static_assets = false',
104
- 'config.static_cache_control = "public, max-age=#{1.year.to_i}"'
105
+ inject_into_file(
106
+ 'config/environments/production.rb',
107
+ 'config.static_cache_control = "public, max-age=#{1.year.to_i}"',
108
+ after: serve_static_files_line
109
+ )
105
110
  end
106
111
 
107
112
  def setup_staging_environment
@@ -441,5 +446,9 @@ fi
441
446
  def generate_secret
442
447
  SecureRandom.hex(64)
443
448
  end
449
+
450
+ def serve_static_files_line
451
+ "config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?\n"
452
+ end
444
453
  end
445
454
  end
@@ -1,5 +1,5 @@
1
1
  module Jetfuel
2
2
  RAILS_VERSION = '4.2.0'
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = '1.19.23'
5
- end
4
+ VERSION = '1.19.24'
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jetfuel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.23
4
+ version: 1.19.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - FlyoverWorks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-22 00:00:00.000000000 Z
11
+ date: 2015-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler