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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -0
  3. data/lib/cdn_tags/version.rb +1 -1
  4. metadata +15 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c442f08c7a2cbd035d2abc94ea41ec8159a565fd
4
- data.tar.gz: 4fa76cfd1cdc24ae625a9d93002083f97b4cec43
3
+ metadata.gz: b6295746e2100de02393b968bfbaec0d5d4e4e93
4
+ data.tar.gz: ca61f272f61afb358e276765d7dd36d727bdadc7
5
5
  SHA512:
6
- metadata.gz: c0be111e38fd3e917b7e71fe18bed498175cac673cc021558580d1bc7a8df4a19b082b307cef8f7abab80e22f5cdabf5acf4af6c303c6e2dfc926406efe9a994
7
- data.tar.gz: 3f1b10cf65bc97ad297f424e5a4bb957b9b7fbbde94ba570c9d1be8c7ab03843d777e30ca4608cd790bbc6a31e72918501144b522dc34524d1b6b1ac440e8f80
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
+ ```
@@ -1,3 +1,3 @@
1
1
  module CdnTags
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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