critical-path-css-rails 0.2.0 → 0.2.1

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: 8775db565ae10bb4b743f5681dcdab51e8ce9f83
4
- data.tar.gz: 91af5fc536b35c5c91dc1e7e278fe8586bf3a07e
3
+ metadata.gz: 1a1d007d5a2b3ddad015852c79fa46b2f4848a42
4
+ data.tar.gz: af3d944a516625a45d35592e9f2fe502ae5f7582
5
5
  SHA512:
6
- metadata.gz: f837d78b8e96facc34a2c1f6f330f07d09fd8ebf4371511b4817e8c7686c09cc32e6fba17dc295143a2aeef9b77c114486edf670dd8e2627075297cc7f34e755
7
- data.tar.gz: d3e0e3a9a78765572b80bb40ab7b7944b7ae93e493135ad578f901b5e56040bc9bf4bc3c69eff36c589dbfa4b09fcaa71ffd1c65ae4cbd8b6fb9572ea16e2390
6
+ metadata.gz: 0a36f37b53c16686f15cec91ab5da1f23f012375b2496f57950eb2979c20c9cb7015252609de7788cf188dd27dfe1ef359bb525f81f54de527841d051e627501
7
+ data.tar.gz: e3da5b537e8828ef9ba77f5e7965cd2949e7a3b403dec1dfcc94885958b9d2d67a72b7ced2ed8e9421c04a5fa60d094bb13ffe097a9b005295670189a31f23e7
@@ -1,12 +1,12 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2015-10-03 13:56:01 -0500 using RuboCop version 0.34.1.
3
+ # on 2015-10-20 18:42:42 -0500 using RuboCop version 0.34.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 2
9
+ # Offense count: 3
10
10
  # Configuration parameters: AllowURI, URISchemes.
11
11
  Metrics/LineLength:
12
- Max: 86
12
+ Max: 91
data/BACKLOG.md CHANGED
@@ -6,5 +6,5 @@
6
6
  ## Features
7
7
  - Allow the user to pass arguments to Penthouse.js, i.e. Viewport size, etc. For a list of the configurable options, please see [Penthouse](https://github.com/pocketjoso/penthouse)
8
8
  - Improve installation process, if necessary
9
- - Improve manual processes, if possible (i.e having to run the rake task to generate the the critical CSS)
9
+ - Improve manual processes, if possible (i.e having to run the rake task to generate the critical CSS)
10
10
  - Improve implementation. Is their a better solution then using Rails.cache?
data/README.md CHANGED
@@ -47,11 +47,11 @@ First, you'll need to configue a few things in the YAML file: `config/critical_p
47
47
 
48
48
  Before generating the CSS, ensure that your application is running (viewable from a browser) and the main CSS file exists. Then in a separate tab, run the rake task to generate the critical CSS.
49
49
 
50
- If your main CSS file does not already exist, and you are using the Asset Pipeline, generate the main CSS file.
50
+ If you are using the Asset Pipeline, precompiling the assets will generate the critical CSS after the assets are precompiled.
51
51
  ```
52
52
  rake assets:precompile
53
53
  ```
54
- Generate the critical path CSS:
54
+ Else you can generate the critical CSS manually using the below task:
55
55
  ```
56
56
  rake critical_path_css:generate
57
57
  ```
@@ -1,6 +1,6 @@
1
1
  module CriticalPathCSS
2
2
  module Rails
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  PENTHOUSE_VERSION = '0.3.4'
5
5
  end
6
6
  end
@@ -6,3 +6,5 @@ namespace :critical_path_css do
6
6
  CriticalPathCss.generate
7
7
  end
8
8
  end
9
+
10
+ Rake::Task['assets:precompile'].enhance { Rake::Task['critical_path_css:generate'].invoke }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: critical-path-css-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Misshore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-03 00:00:00.000000000 Z
11
+ date: 2015-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: phantomjs