jquery-rails-google-cdn 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08df228ff9b82110c226b6d6f895dae5ee5634db
4
- data.tar.gz: b2fd7a384b0ab6af60fe541c8188ea8a137b41da
3
+ metadata.gz: 9cedc1b6848f5e3481a32ecaa5f65840fb441b87
4
+ data.tar.gz: ca0f22ec6b71d830a17a46f834c3edf7102ef193
5
5
  SHA512:
6
- metadata.gz: e343ab82736e519ee689ada1f4d0d0f793e44ed11f72267c4bf02baa16c04d8f9253caa3eb6eca7e245f33a7f365f94e362861fe0696a52f679ab4c659876701
7
- data.tar.gz: 3fb57493861ad781e1fd35842326eba77c017f5639aaca4841599b49b96b5901a5eb71e1a4d3cf55484b3b1db75eaea73d3532a61723d31edd6214c2ae097d2f
6
+ metadata.gz: 3190cdb932cc1b926bf69a21c05740641744c95edf7ba3679445f8c2cc0904dbb05c92bf96dcf4e982ff1b184ab849ea5fd6daac5415afa0eac6194ba0abb3c3
7
+ data.tar.gz: 351bdf67b885de9fbb3d8f6c18284b6feca2f91812919f7de5816a95e5456d65b29aaadb874b844242f249d015ef532963023b5f09b2ae54eb6eab7e431ee20b
data/README.md CHANGED
@@ -59,7 +59,29 @@ config.jquery_version = "2.0.2"
59
59
  <%= javascript_include_tag "application" %>
60
60
  ```
61
61
 
62
- It will generate the following across all modes production, testing, and development:
62
+ - Please verify you do not have a duplicate `application` js include as this can cause issues with libraries down the road like ember. Here is an example layout of a rails 4 application:
63
+
64
+ ```html
65
+ <!DOCTYPE html>
66
+ <html>
67
+ <head>
68
+ <title>Demoapp</title>
69
+ <%= jquery_include_tag Rails.application.config.jquery_version %>
70
+ <%= jquery_ui_include_tag Rails.application.config.jquery_ui_version %>
71
+ <%= javascript_include_tag "application" %>
72
+ <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
73
+ <%= javascript_include_tag "data-turbolinks-track" => true %>
74
+ <%= csrf_meta_tags %>
75
+ </head>
76
+ <body>
77
+
78
+ <%= yield %>
79
+
80
+ </body>
81
+ </html>
82
+ ```
83
+
84
+ The gem will generate the following across all modes production, testing, and development:
63
85
 
64
86
  ```html
65
87
  <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
@@ -10,5 +10,6 @@
10
10
  // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
11
  // GO AFTER THE REQUIRES BELOW.
12
12
  //
13
+ //= require jquery_ujs
13
14
  //= require turbolinks
14
15
  //= require_tree .
@@ -5,7 +5,7 @@
5
5
  <%= jquery_include_tag Rails.application.config.jquery_version %>
6
6
  <%= javascript_include_tag "application" %>
7
7
  <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
8
- <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
8
+ <%= javascript_include_tag "data-turbolinks-track" => true %>
9
9
  <%= csrf_meta_tags %>
10
10
  </head>
11
11
  <body>
@@ -1,18 +1,12 @@
1
- # -*- encoding: utf-8 -*-
2
1
  Gem::Specification.new do |s|
3
-
4
- s.authors = ["Chris Hough"]
5
- s.email = ["founders@noconformity.com"]
2
+ s.authors = ["jasonleonhard"]
3
+ s.email = ["devbrights@gmail.com"]
6
4
  s.description = %q{Use the Google CDN to serve jquery and fall back to the local version if the CDN is unreachable.}
7
5
  s.summary = %q{A gem to serve jQuery from the Google CDN with fall back protection.}
8
- s.homepage = "https://github.com/chrishough/jquery-rails-google-cdn"
9
-
6
+ s.homepage = "https://github.com/jasonleonhard/jquery-rails-google-cdn"
10
7
  s.files = `git ls-files`.split("\n")
11
8
  s.require_paths = ["lib"]
12
-
13
9
  s.name = "jquery-rails-google-cdn"
14
10
  s.licenses = "GPL"
15
- s.version = '0.0.5'
16
-
11
+ s.version = '0.0.6'
17
12
  end
18
-
metadata CHANGED
@@ -1,24 +1,24 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-rails-google-cdn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
- - Chris Hough
7
+ - jasonleonhard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-12 00:00:00.000000000 Z
11
+ date: 2016-10-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Use the Google CDN to serve jquery and fall back to the local version
14
14
  if the CDN is unreachable.
15
15
  email:
16
- - founders@noconformity.com
16
+ - devbrights@gmail.com
17
17
  executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
- - .gitignore
21
+ - ".gitignore"
22
22
  - Gemfile
23
23
  - Gemfile.lock
24
24
  - LICENSE
@@ -79,11 +79,12 @@ files:
79
79
  - demoapp/vendor/assets/javascripts/jquery/jquery.min.js
80
80
  - demoapp/vendor/assets/stylesheets/.keep
81
81
  - jquery-rails-google-cdn-0.0.4.gem
82
+ - jquery-rails-google-cdn-0.0.5.gem
82
83
  - jquery-rails-google-cdn.gemspec
83
84
  - lib/jquery-rails-google-cdn.rb
84
85
  - lib/jquery-rails-google-cdn/railtie.rb
85
86
  - lib/jquery-rails-google-cdn/view_helpers.rb
86
- homepage: https://github.com/chrishough/jquery-rails-google-cdn
87
+ homepage: https://github.com/jasonleonhard/jquery-rails-google-cdn
87
88
  licenses:
88
89
  - GPL
89
90
  metadata: {}
@@ -93,17 +94,17 @@ require_paths:
93
94
  - lib
94
95
  required_ruby_version: !ruby/object:Gem::Requirement
95
96
  requirements:
96
- - - '>='
97
+ - - ">="
97
98
  - !ruby/object:Gem::Version
98
99
  version: '0'
99
100
  required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  requirements:
101
- - - '>='
102
+ - - ">="
102
103
  - !ruby/object:Gem::Version
103
104
  version: '0'
104
105
  requirements: []
105
106
  rubyforge_project:
106
- rubygems_version: 2.0.3
107
+ rubygems_version: 2.6.6
107
108
  signing_key:
108
109
  specification_version: 4
109
110
  summary: A gem to serve jQuery from the Google CDN with fall back protection.