rails960gs 0.2.2 → 0.2.3
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/VERSION +1 -1
- data/lib/rails960gs/view_helper.rb +12 -20
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
@@ -1,19 +1,9 @@
|
|
1
|
-
#
|
2
|
-
# the command line (or in the absence of a
|
3
|
-
# parameter from the first line of standard
|
4
|
-
# input). In then reads successive words or
|
5
|
-
# phrases from standard input and reports whether
|
6
|
-
# they are angrams of the first word.
|
1
|
+
# Helpers para auxiliar o uso do 960.gs com Rails
|
7
2
|
#
|
8
3
|
# Author:: Luiz Eduardo de Oliveira Fomseca - Agência Orangeweb (mailto:atendimento@orangeweb.com.br)
|
9
4
|
# Copyright:: Copyright (c) 2011 Agência Orangeweb, MEI
|
10
5
|
# License:: MIT
|
11
6
|
|
12
|
-
# This class holds the letters in the original
|
13
|
-
# word or phrase. The is_anagram? method allows us
|
14
|
-
# to test if subsequent words or phrases are
|
15
|
-
# anagrams of the original
|
16
|
-
|
17
7
|
require 'railtie.rb'
|
18
8
|
|
19
9
|
# GEM Rails960gs
|
@@ -32,19 +22,22 @@ module Rails960gs
|
|
32
22
|
end
|
33
23
|
|
34
24
|
|
35
|
-
# Carrega o CSS necessário para o funcionamento do 960.gs do CDN *cachedcommons.org*
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
else
|
41
|
-
@@out = stylesheet_link_tag "http://cachedcommons.org/cache/960/0.0.0/stylesheets/960.css"
|
42
|
-
end
|
25
|
+
# Carrega o CSS necessário para o funcionamento do 960.gs do CDN *cachedcommons.org*
|
26
|
+
# <b>Parâmetros</b>
|
27
|
+
# * <b>:min => (true|false)</b> - Carrega o arquivi minifield - (Default = true)
|
28
|
+
# * <b>:reset => (true|false)</b> - Carrega o YUI CSS Reset - (Default = false)
|
29
|
+
def cdn_960gs(options={ :min => true, :reset => false})
|
43
30
|
|
44
31
|
if options[:reset] then
|
45
32
|
@@out = stylesheet_link_tag "http://yui.yahooapis.com/3.3.0/build/cssreset/reset-min.css"
|
46
33
|
end
|
47
34
|
|
35
|
+
if options[:min] then
|
36
|
+
@@out += stylesheet_link_tag "http://cachedcommons.org/cache/960/0.0.0/stylesheets/960-min.css"
|
37
|
+
else
|
38
|
+
@@out += stylesheet_link_tag "http://cachedcommons.org/cache/960/0.0.0/stylesheets/960.css"
|
39
|
+
end
|
40
|
+
|
48
41
|
@@out
|
49
42
|
end
|
50
43
|
|
@@ -78,7 +71,6 @@ module Rails960gs
|
|
78
71
|
# * <b>:omega => (true|false)</b> - Especifica se a coluna é omega - (Default = false)
|
79
72
|
# * <b>:prefix => (1-12)</b> - Especifica se a coluna é do tipo prefix - (Default = nil)
|
80
73
|
# * <b>:suffix => (1-12)</b> - Especifica se a coluna é do tipo suffix - (Default = nil)
|
81
|
-
|
82
74
|
def gs_col cols=12, options={}, &block
|
83
75
|
|
84
76
|
|
metadata
CHANGED