overlord 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/helpers/overlord_google_helper.rb +13 -2
- data/overlord.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.16
|
@@ -313,19 +313,30 @@ module OverlordGoogleHelper
|
|
313
313
|
end
|
314
314
|
|
315
315
|
# Output include script to load jquery from google
|
316
|
-
def google_load_jquery(http_protocol = 'http', version = '1.4.0')
|
316
|
+
def google_load_jquery(http_protocol = 'http://', version = '1.4.0')
|
317
317
|
return '' if defined?(@google_load_jquery_included)
|
318
318
|
@google_load_jquery_included = true
|
319
319
|
%Q{<script src="#{http_protocol}ajax.googleapis.com/ajax/libs/jquery/#{version}/jquery.min.js" type="text/javascript"></script>}
|
320
320
|
end
|
321
321
|
|
322
322
|
# Output include script to load jquery ui from google
|
323
|
-
def google_load_jquery_ui(http_protocol = 'http', version = '1.7.2')
|
323
|
+
def google_load_jquery_ui(http_protocol = 'http://', version = '1.7.2')
|
324
324
|
return '' if defined?(@google_load_jquery_ui_included)
|
325
325
|
@google_load_jquery_ui_included = true
|
326
326
|
%Q{<script src="#{http_protocol}ajax.googleapis.com/ajax/libs/jqueryui/#{version}/jquery-ui.min.js" type="text/javascript"></script>}
|
327
327
|
end
|
328
328
|
|
329
|
+
# Output a link to the jquery-ui css file on google
|
330
|
+
# Available themes:
|
331
|
+
# blitzer, cupertino, dark-hive, dot-luv, eggplant, excite-bike, flick, hot-sneaks
|
332
|
+
# humanity, le-frog, mint-choc, overcast, pepper-grinder, redmond, smoothness, south-street
|
333
|
+
# start, sunny, swanky-purse, trontastic, ui-darkness, ui-lightness, vader
|
334
|
+
def google_load_jquery_ui_css(http_protocol = 'http', theme = "smoothness", version = '1.7.2')
|
335
|
+
return '' if defined?(@google_load_jquery_ui_css_included)
|
336
|
+
@google_load_jquery_ui_css_included = true
|
337
|
+
%Q{<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/#{version}/themes/#{theme}/jquery-ui.css" type="text/css" />}
|
338
|
+
end
|
339
|
+
|
329
340
|
def change_chars(term)
|
330
341
|
term.gsub('+', ' ').gsub('.', '-')
|
331
342
|
end
|
data/overlord.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{overlord}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.16"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball", "Joel Duffin"]
|
12
|
-
s.date = %q{2010-01-
|
12
|
+
s.date = %q{2010-01-30}
|
13
13
|
s.description = %q{Code to interact with the google ajax apis on the server and the client.}
|
14
14
|
s.email = %q{justin@tatemae.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: overlord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Ball
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2010-01-
|
13
|
+
date: 2010-01-30 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|