guilded 1.0.10 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  .* # Ignore all dotfiles...
2
2
  !.gitignore # except for .gitignore
3
- pkg/*
3
+ pkg/*
4
+ .rake_tasks~
data/History.txt CHANGED
@@ -1,3 +1,13 @@
1
+ = 1.0.12 2010-05-11
2
+
3
+ * Fixed a new compatibility issue with Rails 3 templating.
4
+
5
+
6
+ = 1.0.11 2010-05-11
7
+
8
+ * Yanked (cancelled)
9
+
10
+
1
11
  = 1.0.10 2010-04-22
2
12
 
3
13
  * Added option to allow for serving jQuery lib from a remote asset server (ie. Google).
data/README.rdoc CHANGED
@@ -82,7 +82,7 @@ have decided to include support for it in Guilded as of release 0.3.0.
82
82
  * Extends InactiveRecord (http://github.com/midas/inactive_record/tree/master) to include the attr_human_hint method.
83
83
 
84
84
 
85
- == COMPATABILITY:
85
+ == COMPATABILITY
86
86
 
87
87
  * Ruby 1.9
88
88
  * Ruby 1.8
@@ -164,12 +164,14 @@ do not have to include it in every template):
164
164
  <script type="text/javascript">
165
165
  <%= raw g_apply_behavior %>
166
166
  </script>
167
+ <% g_inject_styles %>
167
168
 
168
169
  # Rails 2
169
170
  <%= g_apply_includes %>
170
171
  <script type="text/javascript">
171
172
  <%= g_apply_behavior %>
172
173
  </script>
174
+ <% g_inject_styles %>
173
175
 
174
176
  A before filter is automatically set up in your application controller to reset the Guilded singleton that manages
175
177
  everything after each rendering. The code looks like this:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.10
1
+ 1.0.12
data/guilded.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{guilded}
8
- s.version = "1.0.10"
8
+ s.version = "1.0.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["C. Jason Harrelson (midas)"]
12
- s.date = %q{2010-04-22}
12
+ s.date = %q{2010-05-11}
13
13
  s.description = %q{Guilded intends to provide a toolset for creating and consuming reusable web components. Currently, this problem domain is filled with JavaScript frameworks. These frameworks are wonderful and work very well. However, they do not degrade gracefully and are not accessible (in most cases). Guilded seeks to provide the same level of "componentization" and ease of use without sacrificing degradability and accessibility. Guilded will achieve these goals by applying each technology at our disposal (HTML, CSS and JavaScript) to do as it was intended.}
14
14
  s.email = %q{jason@lookforwardenterprises.com}
15
15
  s.extra_rdoc_files = [
data/lib/guilded.rb CHANGED
@@ -72,7 +72,7 @@ require 'guilded/rails/inactive_record/human_attribute_hint'
72
72
  # <%= g_load_alerter :skin => 'blueish', :id => 'load_alerter' %>
73
73
  #
74
74
  module Guilded
75
- VERSION = '1.0.10'
75
+ VERSION = '1.0.12'
76
76
  end
77
77
 
78
78
  ActionView::Base.send( :include, Guilded::Rails::ViewHelpers ) if defined?( ActionView )
@@ -9,7 +9,7 @@ module Guilded
9
9
  # tag of your application layout. If no Guilded elements were called in the template, the
10
10
  # call to g_apply_behavior will not output anything.
11
11
  #
12
- def g_apply_behavior
12
+ def g_apply_behavior
13
13
  Guilded::Guilder.instance.generate_javascript_init
14
14
  end
15
15
 
@@ -22,9 +22,6 @@ module Guilded
22
22
  def g_apply_includes
23
23
  g = Guilded::Guilder.instance
24
24
  g.generate_asset_lists
25
-
26
- # CSS
27
- self.output_buffer.sub!( /<!-- guilded.styles -->/, stylesheet_link_tag( g.combined_css_srcs, :cache => "cache/#{g.css_cache_name}" ) )
28
25
 
29
26
  # JavaScript
30
27
  if g.production? && g.use_remote_jquery
@@ -40,6 +37,14 @@ module Guilded
40
37
  def g_apply_style
41
38
  "<!-- guilded.styles -->"
42
39
  end
40
+
41
+ # Injects the CSS into the header. Must be called once per rendered page and within a scope that allows access
42
+ # to the output buffer of the tempalte system being used.
43
+ #
44
+ def g_inject_styles
45
+ g = Guilded::Guilder.instance
46
+ self.output_buffer.sub!( /<!-- guilded.styles -->/, stylesheet_link_tag( g.combined_css_srcs, :cache => "cache/#{g.css_cache_name}" ) )
47
+ end
43
48
 
44
49
  # Creates a javascript include tag for a Guilded specific file. The only difference
45
50
  # being that it adds the file to a sources array to be concatenated and included at the
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 10
9
- version: 1.0.10
8
+ - 12
9
+ version: 1.0.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - C. Jason Harrelson (midas)
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-22 00:00:00 -05:00
17
+ date: 2010-05-11 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency