statixite 1.0.1 → 1.0.2

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: 40af4523487d193d339cddcd57f28599b907c605
4
- data.tar.gz: e83d1595472cfda90c160bf5c96a319c334bdbba
3
+ metadata.gz: d4186a725b98cbada6914bb58c1bc75ff184b584
4
+ data.tar.gz: 43921f546edf72eb8af9993c98047c4e16c55095
5
5
  SHA512:
6
- metadata.gz: f214ea7e9aa72d3553c53f5c193642629de347097c8a9ab36a7e422f5dfa794d3960cda0ffd25141d87f6c155492fb40f31a4d7ff09db0e894e8d39c3543f5b9
7
- data.tar.gz: 929f0b275aa6e4cdc5e3571126917ebbaf526d1a85ddad04a5d925187758da22394bbbe092c63325a2e7aeebf1aceeabc69dbd66c39ebcde0cd20b6a15823606
6
+ metadata.gz: 76966d032105e9d8a163e81df16421f307d159155d787c012d351861c276f0037550fbc181a5dca20f7d7f7c7cc3bf6b347fa35474e6ee79c4ccf16aaf698f88
7
+ data.tar.gz: dce0837a2e321e2ce7b7910d90131f71d46730589ecf2409fc9cde9d3e5111ea924e8437d01bcf64d59bb28f81a90f6442b7d8fec13e145655ad6408c7719555
@@ -8,5 +8,8 @@
8
8
  = javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"
9
9
  = yield :stylesheets
10
10
  = stylesheet_link_tag "statixite/application", :media => "all"
11
- = stylesheet_link_tag "controllers/#{params[:controller]}_#{params[:action]}" if Rails.application.assets.find_asset("controllers/#{params[:controller]}_#{params[:action]}.css")
11
+ - if Rails.env.development? || Rails.env.test?
12
+ = stylesheet_link_tag "controllers/#{params[:controller]}_#{params[:action]}" if Rails.application.assets.find_asset("controllers/#{params[:controller]}_#{params[:action]}.css")
13
+ - else
14
+ = stylesheet_link_tag "controllers/#{params[:controller]}_#{params[:action]}" if Rails.application.assets_manifest.files.map { |_,obj| obj }.map { |obj| obj["logical_path"] }.flatten.include?("controllers/#{params[:controller]}_#{params[:action]}.css")
12
15
  = favicon_link_tag "statixite/favicon.ico"
@@ -14,14 +14,10 @@
14
14
  = yield
15
15
  = yield :pre_javascript
16
16
  = javascript_include_tag "statixite/application"
17
- = javascript_include_tag "controllers/#{params[:controller]}_#{params[:action]}" if Rails.application.assets.find_asset("controllers/#{params[:controller]}_#{params[:action]}.js")
17
+
18
+ - if Rails.env.development? || Rails.env.test?
19
+ = javascript_include_tag "controllers/#{params[:controller]}_#{params[:action]}" if Rails.application.assets.find_asset("controllers/#{params[:controller]}_#{params[:action]}.js")
20
+ - else
21
+ = javascript_include_tag "controllers/#{params[:controller]}_#{params[:action]}" if Rails.application.assets_manifest.files.map { |_,obj| obj }.map { |obj| obj["logical_path"] }.flatten.include?("controllers/#{params[:controller]}_#{params[:action]}.js")
18
22
  = render 'layouts/statixite/flash'
19
23
  = yield :inline_javascript
20
- :javascript
21
- $(document).ready(function() {
22
- $.notify('Beta Alert! Use at your own risk.', {
23
- autoHide: false,
24
- position: 'bottom right',
25
- className: 'warn'
26
- });
27
- });
@@ -1,3 +1,3 @@
1
1
  module Statixite
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statixite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard LaFranchi