rails960gs 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/rails960gs/view_helper.rb +12 -20
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -1,19 +1,9 @@
1
- # The program takes an initial word or phrase from
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
- def cdn_960gs (options={ :min=>true, :reset => false})
37
-
38
- if options[:min] then
39
- @@out = stylesheet_link_tag "http://cachedcommons.org/cache/960/0.0.0/stylesheets/960-min.css"
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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails960gs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - orangeweb