cdn_tags 0.3.0 → 0.3.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/README.md +21 -0
- data/lib/cdn_tags/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b6295746e2100de02393b968bfbaec0d5d4e4e93
|
|
4
|
+
data.tar.gz: ca61f272f61afb358e276765d7dd36d727bdadc7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9261210eb9243fcc32251dd17c6b3b70e2a42a221b7dc5cd935d8e9f7641a06c4da9f8c2d3a6fe275e9a698933a2de7373bd17fff6612482c29b872987945fe0
|
|
7
|
+
data.tar.gz: 8e1a96c244311684d952dbf6a8b5ea861dec7c12986c697fa4fe6a9702df843c39972c43aae9d020c07ee55e24d0f575d5e0e1504f764aae5bc5c6619715ae06
|
data/README.md
CHANGED
|
@@ -18,6 +18,13 @@ to your Gemfile.
|
|
|
18
18
|
## Configuration
|
|
19
19
|
|
|
20
20
|
Create config/initializers/cdn_tags.rb and configure your assets.
|
|
21
|
+
You can generate it by using
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
rails generate cdn_tags:install
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Here is a sample configuration.
|
|
21
28
|
|
|
22
29
|
```ruby
|
|
23
30
|
CdnTags.configure do |c|
|
|
@@ -51,3 +58,17 @@ becomes
|
|
|
51
58
|
<%= javascript_cdn_include_tag '/path/to/jquery' %>
|
|
52
59
|
<%= stylesheet_cdn_link_tag '/path/to/bootstrap' %>
|
|
53
60
|
```
|
|
61
|
+
|
|
62
|
+
This will result in the following output.
|
|
63
|
+
|
|
64
|
+
* In development and test environments:
|
|
65
|
+
|
|
66
|
+
```html
|
|
67
|
+
<script src="/assets/jquery-1.9.1.js?body=1"></script>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
* In production environment:
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
|
|
74
|
+
```
|
data/lib/cdn_tags/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cdn_tags
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Perez
|
|
@@ -38,6 +38,20 @@ dependencies:
|
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '1.6'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rails
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '3.0'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '3.0'
|
|
41
55
|
description:
|
|
42
56
|
email:
|
|
43
57
|
- tuvistavie@gmail.com
|