guilded 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ = 1.0.4 2010-01-04
2
+
3
+ * Fixed a bug with a file include to make guilded work with the bundler gem.
4
+
5
+
1
6
  = 1.0.3 2009-11-16
2
7
 
3
8
  * The reset_guilded filter is now automatically set up in ActionController.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{guilded}
8
- s.version = "1.0.3"
8
+ s.version = "1.0.4"
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{2009-11-16}
12
+ s.date = %q{2010-01-04}
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 = [
@@ -4,6 +4,7 @@ $:.unshift(File.dirname(__FILE__)) unless
4
4
  require 'guilded/component_def'
5
5
  require 'guilded/guilder'
6
6
  require 'guilded/exceptions'
7
+ require 'guilded/rails/controller_actions'
7
8
  require 'guilded/rails/helpers'
8
9
  require 'guilded/rails/view_helpers'
9
10
  require 'guilded/rails/active_record/human_attribute_hint'
@@ -72,7 +73,7 @@ require 'guilded/rails/inactive_record/human_attribute_hint'
72
73
  # <%= g_load_alerter :skin => 'blueish', :id => 'load_alerter' %>
73
74
  #
74
75
  module Guilded
75
- VERSION = '1.0.3'
76
+ VERSION = '1.0.4'
76
77
  end
77
78
 
78
79
  ActionView::Base.send( :include, Guilded::Rails::ViewHelpers ) if defined?( ActionView )
@@ -12,10 +12,13 @@ module Guilded
12
12
  @additional_js = additional_js
13
13
  end
14
14
 
15
+ # True if this component does not include styles.
16
+ #
15
17
  def exclude_css?
16
18
  options.include?( :exclude_css ) && ( options[:exclude_css] == 'true' || options[:exclude_css] == true )
17
19
  end
18
20
 
21
+ #True if this componnent does not include JavaScript.
19
22
  def exclude_js?
20
23
  options.include?( :exclude_js ) && ( options[:exclude_js] == 'true' || options[:exclude_js] == true )
21
24
  end
@@ -6,8 +6,9 @@ module Guilded
6
6
 
7
7
  # Guilder is the worker for the entire Guilded framework. It collects all of the necessary components for a page
8
8
  # through its add() method. When the g_apply_behavior() method is called at the end of a page, the Guilder writes
9
- # HTML to include all of the necessary asset files (caching them in production). It also writes s JavaScript initialization
10
- # function and fires the initialization function on page load.
9
+ # HTML to include all of the necessary asset files (caching them in production). It also writes a JavaScript initialization
10
+ # function and fires the initialization function on page load and a before and after initialization callback allowing for
11
+ # custom initializtion to occur.
11
12
  #
12
13
  # This initialization function calls the initialization function for each Guilded component that was added to the current
13
14
  # page. For example, if a Guilded component named 'g_load_alerter' was added to a page, the Guilder would include this line
@@ -233,6 +234,7 @@ module Guilded
233
234
  def init_sources #:nodoc:
234
235
  @combined_css_srcs << "#{@reset_css}" unless @reset_css.nil? || @reset_css.empty?
235
236
  resolve_js_libs( "#{@jquery_js}", "#{@jquery_folder}#{@url_js}", "#{@js_folder}#{@guilded_js}" )
237
+ #TODO include the jQuery lib from Google server in production
236
238
  end
237
239
 
238
240
  # Combines all JavaScript and CSS files into lists to include based on what Guilded components are on
@@ -10,6 +10,8 @@ module Guilded
10
10
  end
11
11
 
12
12
  module InstanceMethods
13
+ # Clears out the list of Guilded components prior to the next action executing.
14
+ #
13
15
  def reset_guilded
14
16
  Guilded::Guilder.instance.reset!
15
17
  end
@@ -5,6 +5,8 @@ GUILDED_CONFIG = {
5
5
  :js_path => "#{RAILS_ROOT}/public/javascripts/",
6
6
  :js_folder => "", # from the js_path
7
7
  :jquery_js => "jquery/jquery-1.3.2.min.js", # from the js_path
8
+ :use_remote_jquery => false,
9
+ :remote_jquery_url => "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"
8
10
  :mootools_js => "mootools/mootools-1.2.3.min.js", # from the js_path
9
11
  :css_path => "#{RAILS_ROOT}/public/stylesheets/",
10
12
  :css_folder => "guilded/", # from the css_path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guilded
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - C. Jason Harrelson (midas)
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-16 00:00:00 -06:00
12
+ date: 2010-01-04 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency