From a5617cb52171d574b96d3f67ac9e4b70f127ac8d Mon Sep 17 00:00:00 2001 From: Michael Misshore Date: Thu, 29 Oct 2015 13:19:07 -0500 Subject: [PATCH 1/2] Fix typo in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4100dd6..836567d 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ bundle install Run the generator to install the rake task and configuration file: ``` -rails generator critical_path_css:install +rails generate critical_path_css:install ``` The generator adds the following files: From 523dd1eae9de98fa4146bdc4d3bd52072186ea0c Mon Sep 17 00:00:00 2001 From: Michael Misshore Date: Thu, 29 Oct 2015 13:20:21 -0500 Subject: [PATCH 2/2] Rename the main source file so that Rails can find it and load it --- .rubocop_todo.yml | 8 +++++++- ...tical_path_css_rails.rb => critical-path-css-rails.rb} | 0 lib/critical_path_css/rails/version.rb | 2 +- lib/tasks/critical_path_css.rake | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) rename lib/{critical_path_css_rails.rb => critical-path-css-rails.rb} (100%) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index e73dd6f..8830607 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2015-10-20 18:42:42 -0500 using RuboCop version 0.34.1. +# on 2015-10-29 13:19:55 -0500 using RuboCop version 0.34.1. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -10,3 +10,9 @@ # Configuration parameters: AllowURI, URISchemes. Metrics/LineLength: Max: 91 + +# Offense count: 1 +# Configuration parameters: Exclude. +Style/FileName: + Exclude: + - 'lib/critical-path-css-rails.rb' diff --git a/lib/critical_path_css_rails.rb b/lib/critical-path-css-rails.rb similarity index 100% rename from lib/critical_path_css_rails.rb rename to lib/critical-path-css-rails.rb diff --git a/lib/critical_path_css/rails/version.rb b/lib/critical_path_css/rails/version.rb index 38862d2..7115eaa 100644 --- a/lib/critical_path_css/rails/version.rb +++ b/lib/critical_path_css/rails/version.rb @@ -1,6 +1,6 @@ module CriticalPathCSS module Rails - VERSION = '0.2.1' + VERSION = '0.2.2' PENTHOUSE_VERSION = '0.3.4' end end diff --git a/lib/tasks/critical_path_css.rake b/lib/tasks/critical_path_css.rake index 5137a4e..30016fb 100644 --- a/lib/tasks/critical_path_css.rake +++ b/lib/tasks/critical_path_css.rake @@ -1,4 +1,4 @@ -require 'critical_path_css_rails' +require 'critical-path-css-rails' namespace :critical_path_css do desc 'Generate critical CSS for the routes defined'