rack-jquery_ui 0.0.1 → 0.0.2

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.
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CH CH CHANGES #
2
2
 
3
- ## Upcoming release ##
3
+ ## v0.0.2 ##
4
+
5
+ Wednesday the 5th of March 2013
6
+
7
+ * Simplified, as moving themes to a separate library.
4
8
 
5
9
  ----
data/examples/config.rb CHANGED
@@ -36,21 +36,21 @@ __END__
36
36
  %html
37
37
  %head
38
38
  = Rack::JQuery.cdn( :google )
39
- = Rack::JQueryUI.cdn( :organisation => :google )
39
+ = Rack::JQueryUI.cdn( :google )
40
40
  = yield
41
41
 
42
42
  @@microsoft
43
43
  %html
44
44
  %head
45
45
  = Rack::JQuery.cdn( :microsoft )
46
- = Rack::JQueryUI.cdn( :organisation => :microsoft )
46
+ = Rack::JQueryUI.cdn( :microsoft )
47
47
  = yield
48
48
 
49
49
  @@mediatemple
50
50
  %html
51
51
  %head
52
52
  = Rack::JQuery.cdn( :media_temple )
53
- = Rack::JQueryUI.cdn( :organisation => :media_temple )
53
+ = Rack::JQueryUI.cdn( :media_temple )
54
54
  = yield
55
55
 
56
56
  @@unspecified
@@ -28,14 +28,9 @@ STR
28
28
  TEN_YEARS = 60 * 60 * 24 * 365 * 10
29
29
 
30
30
 
31
- # default options when setting up the CDN
32
- CDN_DEFAULTS = {css: true, js: true, fallback: true}
33
-
34
31
  # @param [Symbol] organisation Choose which CDN to use, either :google, :microsoft or :media_temple
35
32
  # @return [String] The HTML script tags to get the CDN.
36
- def self.cdn( opts={} )
37
- opts = CDN_DEFAULTS.merge opts
38
- organisation = opts.fetch :organisation, :google
33
+ def self.cdn( organisation=:google )
39
34
  script = case organisation
40
35
  when :media_temple then MEDIA_TEMPLE
41
36
  when :microsoft then MICROSOFT
@@ -1,6 +1,6 @@
1
1
  module Rack
2
2
  class JQueryUI
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  JQUERY_UI_VERSION = "1.10.1"
5
5
 
6
6
  # This is the release date of the jQuery file, it makes an easy "Last-Modified" date for setting the headers around caching.
@@ -4,7 +4,7 @@ require 'spec_helper'
4
4
  require_relative "../lib/rack/jquery_ui.rb"
5
5
 
6
6
  describe "The class methods" do
7
- subject { Rack::JQueryUI.cdn :organisation => organisation }
7
+ subject { Rack::JQueryUI.cdn organisation }
8
8
  context "Given an argument" do
9
9
  context "of nil (the default)" do
10
10
  let(:organisation) { nil }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-jquery_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: