loadcss-rails 0.1.0 → 0.1.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: 7e125130441bd4853f78a4c8010f11f2385d88c4
4
- data.tar.gz: 6c2c3281b649d8181262e4dbec8351bff5f67f0e
3
+ metadata.gz: 75302a1ffb734db0b70811d434e62010e567c932
4
+ data.tar.gz: 01f1b0ec27f22bd983d61695932fbf6b19dc1d95
5
5
  SHA512:
6
- metadata.gz: 7c7026ced6d35c915861aa7f95f37d760b769daac3b739e6a8ed3c2e89d1ce567d56e6a88c3d4229a99a94e281c4fc8a5b54b5096b6941166bcffe97d78e5eac
7
- data.tar.gz: 1772efcd8e1f013a74241cb4382ff414da1a2ae6ab2112ed7a709293f0d3ad7d5034a2879f9695af55e7be58f208968760672c8d37ae43873ca66ac14dbcbadb
6
+ metadata.gz: b27c083d2b85075ed957c1ac02c99407f71455f404aa7da2a9b14fd0674cf5fc0becd37a9c6def3f4bccf0401b5388375bdb6c0e607ed68a83c9cd00c0053d27
7
+ data.tar.gz: b64e77a331bed0d89cb71ad6e539338c811d604aa2acf32fa7961e0c69c69b550192dfa7d13c0c04298a48ac152c74266f74e0423c2016d8341007616ae4039c
data/.rubocop.yml ADDED
@@ -0,0 +1,11 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ AllCops:
4
+ Exclude:
5
+ - '*.gemspec'
6
+ - 'spec/*_helper.rb'
7
+ - 'Gemfile'
8
+ - 'Rakefile'
9
+
10
+ Documentation:
11
+ Enabled: false
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,13 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2015-09-19 15:48:15 -0500 using RuboCop version 0.34.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: Exclude.
11
+ Style/FileName:
12
+ Exclude:
13
+ - 'lib/loadcss-rails.rb'
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 2.1.7
5
+ - 2.2.3
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ # A sample Gemfile
2
+ source "https://rubygems.org"
3
+
4
+ gem 'rubocop', require: false
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # loadcss-rails
1
+ # loadcss-rails [![Code Climate](https://codeclimate.com/github/michael-misshore/loadcss-rails/badges/gpa.svg)](https://codeclimate.com/github/michael-misshore/loadcss-rails)
2
2
 
3
- loadCSS (and onloadCSS) for Rails!
3
+ loadCSS (and onloadCSS) for Rails! Load CSS asynchronously!
4
4
 
5
5
  This gem provides:
6
6
 
@@ -8,25 +8,42 @@ This gem provides:
8
8
 
9
9
  These pieces of javascript were implemented by [Filament Group](https://github.com/filamentgroup/loadCSS/)
10
10
 
11
- ## Versions
12
-
13
- The loadcss-rails gem follows these version guidelines to provide more control over your app's loadCSS version from your Gemfile:
11
+ ## Installation
14
12
 
15
13
  ```
16
- patch version bump = updates to loadcss-rails and patch-level updates to loadCSS
17
- minor version bump = minor-level updates to loadCSS
18
- major version bump = major-level updates to loadCSS and updates to Rails which may be backwards-incompatible
14
+ gem 'loadcss-rails', '~> 0.1.0'
19
15
  ```
20
16
 
21
- ## Installation
22
-
23
- The loadCSS and onloadCSS files will be added to the asset pipeline and available for you to use. If they're not already in `app/assets/javascripts/application.js` by default, add these lines:
17
+ The loadCSS and onloadCSS files will be added to the asset pipeline and available for you to use. Add the lines that you need to your application's JS manifest (usually `app/assets/javascripts/application.js`).
24
18
 
25
19
  ```js
26
20
  //= require loadCSS
27
21
  //= require onloadCSS
28
22
  ```
29
23
 
24
+ ## Usage
25
+
26
+ Here's a quick example of what you would drop in your application's layout (usually `app/views/layouts/application.html.erb`):
27
+
28
+ ```html
29
+ <script>
30
+ loadCSS("<%= stylesheet_path('application') %>");
31
+ </script>
32
+ ```
33
+
34
+ More examples may be found here: [loadCSS](https://github.com/filamentgroup/loadCSS/)
35
+
36
+
37
+ ## Versions
38
+
39
+ The loadcss-rails gem follows these version guidelines to provide more control over your app's loadCSS version from your Gemfile:
40
+
41
+ ```
42
+ patch version bump = updates to loadcss-rails and patch-level updates to loadCSS
43
+ minor version bump = minor-level updates to loadCSS
44
+ major version bump = major-level updates to loadCSS and updates to Rails which may be backwards-incompatible
45
+ ```
46
+
30
47
  ## Contributing
31
48
 
32
49
  Feel free to open an issue ticket if you find something that could be improved. A couple notes:
data/lib/loadcss-rails.rb CHANGED
@@ -1 +1 @@
1
- require 'loadcss/rails'
1
+ require 'loadcss/rails'
data/lib/loadcss/rails.rb CHANGED
@@ -4,4 +4,4 @@ require 'loadcss/rails/version'
4
4
  module LoadCSS
5
5
  module Rails
6
6
  end
7
- end
7
+ end
@@ -3,4 +3,4 @@ module LoadCSS
3
3
  class Engine < ::Rails::Engine
4
4
  end
5
5
  end
6
- end
6
+ end
@@ -1,6 +1,6 @@
1
1
  module LoadCSS
2
2
  module Rails
3
- VERSION = "0.1.0"
4
- LOADCSS_VERSION = "0.1.8"
3
+ VERSION = '0.1.1'
4
+ LOADCSS_VERSION = '0.1.8'
5
5
  end
6
- end
6
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loadcss-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.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-09-07 00:00:00.000000000 Z
11
+ date: 2015-09-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem provides LoadCSS and OnloadCSS for your Rails application.
14
14
  email:
@@ -18,6 +18,10 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - ".gitignore"
21
+ - ".rubocop.yml"
22
+ - ".rubocop_todo.yml"
23
+ - ".travis.yml"
24
+ - Gemfile
21
25
  - LICENSE
22
26
  - README.md
23
27
  - lib/loadcss-rails.rb