Permalink
Browse files

Release 0.0.6. Updated to accept an :environment variable in the conf…

…iguration.
  • Loading branch information...
midas committed Mar 11, 2009
1 parent 8ab8887 commit a705b3b5c074ce0083566d0bac501445463a3f8f
Showing with 34 additions and 20 deletions.
  1. +6 −2 History.txt
  2. +1 −1 README.rdoc
  3. +1 −1 Rakefile
  4. +7 −10 guilded.gemspec
  5. +1 −1 lib/guilded.rb
  6. +12 −3 lib/guilded/guilder.rb
  7. +6 −2 rails_generators/guilded_config/templates/load_guilded_settings.rb
View
@@ -1,4 +1,8 @@
+== 0.0.6 2009-02-11
+
+* Updated config file and Guilder to accept an :env variable. This variable will allow Guilded to know what environment
+ it is running in so that it knows whether to cache assets, etc.
+
== 0.0.1 2009-02-28
-* 1 major enhancement:
- * Initial release
+* Initial release
View
@@ -66,7 +66,7 @@ The Guilded-Base gem contains the framework to build Guilded components.
== REQUIREMENTS
-* jQuery 1.3.2
+* jQuery 1.3.2 (included in Guilded)
== INSTALL
View
@@ -4,7 +4,7 @@ require File.dirname(__FILE__) + '/lib/guilded'
# Generate all the Rake tasks
# Run 'rake -T' to see list of generated tasks (from gem root directory)
$hoe = Hoe.new('guilded', Guilded::VERSION) do |p|
- p.developer('midas', 'jaosn@lookforwardenterprises.com')
+ p.developer('C. Jason Harrelson (midas)', 'jason@lookforwardenterprises.com')
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
p.rubyforge_name = p.name # TODO this is default value
View
@@ -1,13 +1,14 @@
# -*- encoding: utf-8 -*-
+
Gem::Specification.new do |s|
s.name = %q{guilded}
- s.version = "0.0.5"
+ s.version = "0.0.6"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["midas"]
- s.date = %q{2009-03-03}
- s.description = %q{Warning: This project just started and there are no releases available yet. Guilded is a framework for building web based components centered around current web standards and best practices. The current framework is written in ruby, but could be ported to other languages. 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 and are not accessible. 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 to do what it was intended. XHTML will be employed for content. CSS used for layout and styling. Behavior will be added to a component with JavaScript through progressive enhancement. The user will have the best experience with a Guilded component when CSS and JavaScript are enabled in their browser, but will still be able to use the component when CSS and JavaScript are disabled. Guilded will use jQuery as it's base JavaScript framework. jQuery was chosen because it lends itself to progressive enhancement due to the way it was authored. In addition, the tight integration of jQuery's selectors with CSS selectors is also highly desirable. When authoring a Guilded component, it is encouraged to write the behavior code as a jQuery plugin. This will allow the jQuery plugin to be used outside of the Guilded project, if desired. Guilded also seeks to provide a standardized CSS framework for creating layouts that are reusable and predictable. Guilded will utilize the currently existing RubyGems system to package its components. A new Guilded component will be packaged in a Gem and have a dependency on the guilded-base gem. The Guilded-Base gem contains the framework to build Guilded components.}
- s.email = ["jaosn@lookforwardenterprises.com"]
+ s.authors = ["C. Jason Harrelson (midas)"]
+ s.date = %q{2009-03-11}
+ s.description = %q{Warning: This project just started and there are no stable releases available yet. Guilded is a framework for building web based components centered around current web standards and best practices. The current framework is written in ruby, but could be ported to other languages. 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 and are not accessible. 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 to do what it was intended. XHTML will be employed for content. CSS used for layout and styling. Behavior will be added to a component with JavaScript through progressive enhancement. The user will have the best experience with a Guilded component when CSS and JavaScript are enabled in their browser, but will still be able to use the component when CSS and JavaScript are disabled. Guilded will use jQuery as it's base JavaScript framework. jQuery was chosen because it lends itself to progressive enhancement due to the way it was authored. In addition, the tight integration of jQuery's selectors with CSS selectors is also highly desirable. When authoring a Guilded component, it is encouraged to write the behavior code as a jQuery plugin. This will allow the jQuery plugin to be used outside of the Guilded project, if desired. Guilded also seeks to provide a standardized CSS framework for creating layouts that are reusable and predictable. Guilded will utilize the currently existing RubyGems system to package its components. A new Guilded component will be packaged in a Gem and have a dependency on the guilded gem. The Guilded-Base gem contains the framework to build Guilded components.}
+ s.email = ["jason@lookforwardenterprises.com"]
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc"]
s.files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "Rakefile", "guilded.gemspec", "lib/guilded.rb", "lib/guilded/component_def.rb", "lib/guilded/exceptions.rb", "lib/guilded/guilder.rb", "lib/guilded/rails.rb", "lib/guilded/rails/view_helpers.rb", "rails_generators/guilded_assets/guilded_assets_generator.rb", "rails_generators/guilded_assets/templates/guilded.js", "rails_generators/guilded_assets/templates/guilded.min.js", "rails_generators/guilded_assets/templates/jquery-1.2.6.js", "rails_generators/guilded_assets/templates/jquery-1.2.6.min.js", "rails_generators/guilded_assets/templates/jquery-1.3.2.js", "rails_generators/guilded_assets/templates/jquery-1.3.2.min.js", "rails_generators/guilded_assets/templates/reset-min.css", "rails_generators/guilded_config/guilded_config_generator.rb", "rails_generators/guilded_config/templates/load_guilded_settings.rb", "script/console", "script/destroy", "script/generate", "spec/guilded/component_def_spec.rb", "spec/guilded/guilder_spec.rb", "spec/guilded_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/rails.rake", "tasks/rspec.rake"]
s.has_rdoc = true
@@ -17,7 +18,7 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.rubyforge_project = %q{guilded}
s.rubygems_version = %q{1.3.1}
- s.summary = %q{Warning: This project just started and there are no releases available yet}
+ s.summary = %q{Warning: This project just started and there are no stable releases available yet}
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
@@ -35,7 +36,3 @@ Gem::Specification.new do |s|
s.add_dependency(%q<hoe>, [">= 1.8.0"])
end
end
-
-
-
-
View
@@ -68,7 +68,7 @@
# <%= g_load_alerter :skin => 'blueish', :id => 'load_alerter' %>
#
module Guilded
- VERSION = '0.0.5'
+ VERSION = '0.0.6'
end
ActionView::Base.send( :include, Guilded::Rails::ViewHelpers ) if defined?( ActionView )
View
@@ -32,8 +32,6 @@ def initialize( options={} ) #:nodoc:
raise Guilded::Exceptions::MissingConfiguration
end
@initialized_at = Time.now
- @env = options[:env].to_sym if options[:env]
- @env ||= :production
@g_elements = Hash.new
@combined_js_srcs = Array.new
@combined_css_srcs = Array.new
@@ -163,13 +161,16 @@ def configure_guilded #:nodoc:
@css_path = GUILDED_CONFIG[:css_path]
@css_folder = GUILDED_CONFIG[:css_folder]
@reset_css = GUILDED_CONFIG[:reset_css]
+ @env = GUILDED_CONFIG[:environment]
+ @env ||= :production
@js_path.freeze
@css_path.freeze
@js_folder.freeze
@jquery_js.freeze
@guilded_js.freeze
@css_folder.freeze
@reset_css.freeze
+ @env.freeze
end
# Adds the Guilded reset CSS file and the guilded.js and jQuery files to the respective sources
@@ -293,7 +294,15 @@ def add_guilded_css_path( source, skin ) #:nodoc:
end
def development? #:nodoc:
- @env == :development
+ @env.to_sym == :development
+ end
+
+ def production? #:nodoc:
+ @env.to_sym == :production
+ end
+
+ def test? #:nodoc:
+ @env.to_sym == :test
end
end
@@ -1,8 +1,12 @@
+# While Guilded is framework agnostic, this config file is Rails specific. You can create your own config file based
+# on this one in order to work in different environments.
+#
GUILDED_CONFIG = {
:js_path => "#{RAILS_ROOT}/public/javascripts/",
:js_folder => "", # from the js_path
- :jquery_js => "jquery/jquery-1.2.6.min.js", # from the js_path
+ :jquery_js => "jquery/jquery-1.3.2.min.js", # from the js_path
:css_path => "#{RAILS_ROOT}/public/stylesheets/",
:css_folder => "guilded/", # from the css_path
- :reset_css => "reset-min.css" # from the css_path
+ :reset_css => "reset-min.css", # from the css_path
+ :environment => Rails.env
}

0 comments on commit a705b3b

Please sign in to comment.