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 +4 -4
- data/.rubocop.yml +11 -0
- data/.rubocop_todo.yml +13 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/README.md +28 -11
- data/lib/loadcss-rails.rb +1 -1
- data/lib/loadcss/rails.rb +1 -1
- data/lib/loadcss/rails/engine.rb +1 -1
- data/lib/loadcss/rails/version.rb +3 -3
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75302a1ffb734db0b70811d434e62010e567c932
|
4
|
+
data.tar.gz: 01f1b0ec27f22bd983d61695932fbf6b19dc1d95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b27c083d2b85075ed957c1ac02c99407f71455f404aa7da2a9b14fd0674cf5fc0becd37a9c6def3f4bccf0401b5388375bdb6c0e607ed68a83c9cd00c0053d27
|
7
|
+
data.tar.gz: b64e77a331bed0d89cb71ad6e539338c811d604aa2acf32fa7961e0c69c69b550192dfa7d13c0c04298a48ac152c74266f74e0423c2016d8341007616ae4039c
|
data/.rubocop.yml
ADDED
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
data/Gemfile
ADDED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# loadcss-rails
|
1
|
+
# loadcss-rails [](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
|
-
##
|
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
|
-
|
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
|
-
|
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
data/lib/loadcss/rails/engine.rb
CHANGED
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.
|
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-
|
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
|