iab-RailsGlue 0.1.2 → 0.1.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/lib/hooks/helpers/iab_helper.rb +14 -5
- metadata +3 -2
|
@@ -40,7 +40,21 @@ module IabHelper
|
|
|
40
40
|
#property - nodename #{inclassName} #{nodeN} result << widget :checkbox, inclassName, nodeN
|
|
41
41
|
|
|
42
42
|
|
|
43
|
+
def ci_widgets(*args)
|
|
44
|
+
include_widgets(*args)
|
|
45
|
+
end
|
|
46
|
+
|
|
43
47
|
def widgets(*args)
|
|
48
|
+
includes = include_widgets(*args)
|
|
49
|
+
Dir.entries("#{BRANDS_ROOT}/#{session[:brand]}").each do |file_name|
|
|
50
|
+
if (file_name =~ /.css$/) != nil
|
|
51
|
+
includes << "<link href=\"/#{GIT}/brands/#{session[:brand]}/#{file_name}\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n"
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
includes
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def include_widgets(*args)
|
|
44
58
|
includes = ""
|
|
45
59
|
#pull in global jquery scripts used across all layouts
|
|
46
60
|
Dir.entries("#{JS_ROOT}").sort.each do |file_name|
|
|
@@ -65,11 +79,6 @@ module IabHelper
|
|
|
65
79
|
end
|
|
66
80
|
end
|
|
67
81
|
end
|
|
68
|
-
Dir.entries("#{BRANDS_ROOT}/#{session[:brand]}").each do |file_name|
|
|
69
|
-
if (file_name =~ /.css$/) != nil
|
|
70
|
-
includes << "<link href=\"/#{GIT}/brands/#{session[:brand]}/#{file_name}\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n"
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
82
|
includes
|
|
74
83
|
end
|
|
75
84
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: iab-RailsGlue
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gary Mawdsley
|
|
@@ -52,6 +52,7 @@ files:
|
|
|
52
52
|
- lib/hooks/helpers/iab_helper.rb
|
|
53
53
|
has_rdoc: true
|
|
54
54
|
homepage: http://github.com/iab/RailsGlue
|
|
55
|
+
licenses:
|
|
55
56
|
post_install_message:
|
|
56
57
|
rdoc_options:
|
|
57
58
|
- --inline-source
|
|
@@ -73,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
73
74
|
requirements: []
|
|
74
75
|
|
|
75
76
|
rubyforge_project: RailsGlue
|
|
76
|
-
rubygems_version: 1.
|
|
77
|
+
rubygems_version: 1.3.5
|
|
77
78
|
signing_key:
|
|
78
79
|
specification_version: 2
|
|
79
80
|
summary: RailsGlue is a series hooks that allow other iab components to work atop of RAILS
|