midas-guilded 0.2.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/guilded.gemspec +5 -5
- data/lib/guilded.rb +1 -1
- data/lib/guilded/rails/helpers.rb +8 -2
- metadata +3 -3
data/guilded.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{guilded}
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["C. Jason Harrelson (midas)"]
|
9
|
-
s.date = %q{2009-04-
|
9
|
+
s.date = %q{2009-04-17}
|
10
10
|
s.description = %q{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.}
|
11
11
|
s.email = ["jason@lookforwardenterprises.com"]
|
12
12
|
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc"]
|
@@ -25,14 +25,14 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.specification_version = 2
|
26
26
|
|
27
27
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
28
|
-
s.add_development_dependency(%q<newgem>, [">= 1.
|
28
|
+
s.add_development_dependency(%q<newgem>, [">= 1.3.0"])
|
29
29
|
s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
|
30
30
|
else
|
31
|
-
s.add_dependency(%q<newgem>, [">= 1.
|
31
|
+
s.add_dependency(%q<newgem>, [">= 1.3.0"])
|
32
32
|
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
33
33
|
end
|
34
34
|
else
|
35
|
-
s.add_dependency(%q<newgem>, [">= 1.
|
35
|
+
s.add_dependency(%q<newgem>, [">= 1.3.0"])
|
36
36
|
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
37
37
|
end
|
38
38
|
end
|
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 = '0.2.
|
75
|
+
VERSION = '0.2.3'
|
76
76
|
end
|
77
77
|
|
78
78
|
ActionView::Base.send( :include, Guilded::Rails::ViewHelpers ) if defined?( ActionView )
|
@@ -9,8 +9,14 @@ module Guilded
|
|
9
9
|
|
10
10
|
# Resolves the REST path helper names and arguments from a ActiveRecord object(s).
|
11
11
|
#
|
12
|
-
def self.resolve_rest_path_helpers(
|
13
|
-
|
12
|
+
def self.resolve_rest_path_helpers( ar_obj_col_or_class, options={} )
|
13
|
+
if ar_obj_col_or_class.is_a?( Array )
|
14
|
+
ar_obj = ar_obj_col_or_class[0]
|
15
|
+
elsif ar_obj_col_or_class.is_a?( ActiveRecord::Base )
|
16
|
+
ar_obj = ar_obj_col_or_class
|
17
|
+
elsif ar_obj_col_or_class.is_a?( Class )
|
18
|
+
ar_obj = ar_obj_col_or_class.new
|
19
|
+
end
|
14
20
|
|
15
21
|
plural_ar_type = ar_obj.class.to_s.tableize
|
16
22
|
singular_ar_type = plural_ar_type.singularize
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: midas-guilded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
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-04-
|
12
|
+
date: 2009-04-17 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.
|
23
|
+
version: 1.3.0
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: hoe
|