lib/jquery-cdn.rb in jquery-cdn-1.12.4 vs lib/jquery-cdn.rb in jquery-cdn-2.0.3
- old
+ new
@@ -4,17 +4,15 @@
lib = Pathname(__FILE__).dirname.join('jquery-cdn')
require lib.join('version').to_s
require lib.join('helpers').to_s
module JqueryCdn
-
- version = JqueryCdn::VERSION.split('.')[0..2].join('.')
URL = {
- google: "//ajax.googleapis.com/ajax/libs/jquery/#{version}/jquery.min.js",
- microsoft: "//ajax.aspnetcdn.com/ajax/jQuery/jquery-#{version}.min.js",
- jquery: "http://code.jquery.com/jquery-#{version}.min.js",
- yandex: "//yandex.st/jquery/#{version}/jquery.min.js",
- cloudflare: "//cdnjs.cloudflare.com/ajax/libs/jquery/#{version}/jquery.min.js"
+ google: "//ajax.googleapis.com/ajax/libs/jquery/#{VERSION}/jquery.min.js",
+ microsoft: "//ajax.aspnetcdn.com/ajax/jQuery/jquery-#{VERSION}.min.js",
+ jquery: "http://code.jquery.com/jquery-#{VERSION}.min.js",
+ yandex: "//yandex.st/jquery/#{VERSION}/jquery.min.js",
+ cloudflare: "//cdnjs.cloudflare.com/ajax/libs/jquery/#{VERSION}/jquery.min.js"
}
# Add assets paths to standalone Sprockets environment.
def self.install(sprockets)
root = Pathname(__FILE__).dirname.join('..').expand_path