guilded 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/VERSION +1 -1
- data/guilded.gemspec +3 -4
- data/lib/guilded.rb +1 -2
- metadata +28 -14
- data/lib/guilded/rails/active_record/human_attribute_override.rb +0 -41
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.8
|
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.
|
8
|
+
s.version = "1.0.8"
|
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-
|
12
|
+
s.date = %q{2010-04-12}
|
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 = [
|
@@ -28,7 +28,6 @@ Gem::Specification.new do |s|
|
|
28
28
|
"lib/guilded/guilder.rb",
|
29
29
|
"lib/guilded/rails.rb",
|
30
30
|
"lib/guilded/rails/active_record/human_attribute_hint.rb",
|
31
|
-
"lib/guilded/rails/active_record/human_attribute_override.rb",
|
32
31
|
"lib/guilded/rails/controller_actions.rb",
|
33
32
|
"lib/guilded/rails/helpers.rb",
|
34
33
|
"lib/guilded/rails/inactive_record/human_attribute_hint.rb",
|
@@ -63,7 +62,7 @@ Gem::Specification.new do |s|
|
|
63
62
|
s.homepage = %q{http://github.com/midas/guilded}
|
64
63
|
s.rdoc_options = ["--charset=UTF-8"]
|
65
64
|
s.require_paths = ["lib"]
|
66
|
-
s.rubygems_version = %q{1.3.
|
65
|
+
s.rubygems_version = %q{1.3.6}
|
67
66
|
s.summary = %q{A framework for building web based components centered around current web standards and best practices.}
|
68
67
|
s.test_files = [
|
69
68
|
"spec/guilded/component_def_spec.rb",
|
data/lib/guilded.rb
CHANGED
@@ -8,7 +8,6 @@ require 'guilded/rails/controller_actions'
|
|
8
8
|
require 'guilded/rails/helpers'
|
9
9
|
require 'guilded/rails/view_helpers'
|
10
10
|
require 'guilded/rails/active_record/human_attribute_hint'
|
11
|
-
require 'guilded/rails/active_record/human_attribute_override'
|
12
11
|
require 'guilded/rails/inactive_record/human_attribute_hint'
|
13
12
|
|
14
13
|
# Guilded is a framework for creating reusable UI components for web applications. Guilded provides the facilities to
|
@@ -73,7 +72,7 @@ require 'guilded/rails/inactive_record/human_attribute_hint'
|
|
73
72
|
# <%= g_load_alerter :skin => 'blueish', :id => 'load_alerter' %>
|
74
73
|
#
|
75
74
|
module Guilded
|
76
|
-
VERSION = '1.0.
|
75
|
+
VERSION = '1.0.8'
|
77
76
|
end
|
78
77
|
|
79
78
|
ActionView::Base.send( :include, Guilded::Rails::ViewHelpers ) if defined?( ActionView )
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guilded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 8
|
9
|
+
version: 1.0.8
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- C. Jason Harrelson (midas)
|
@@ -9,29 +14,37 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-04-12 00:00:00 -05:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: shoulda
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 2
|
29
|
+
- 10
|
30
|
+
- 2
|
23
31
|
version: 2.10.2
|
24
|
-
|
32
|
+
type: :development
|
33
|
+
version_requirements: *id001
|
25
34
|
- !ruby/object:Gem::Dependency
|
26
35
|
name: activesupport
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
38
|
requirements:
|
31
39
|
- - ">="
|
32
40
|
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 2
|
43
|
+
- 0
|
44
|
+
- 2
|
33
45
|
version: 2.0.2
|
34
|
-
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id002
|
35
48
|
description: 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.
|
36
49
|
email: jason@lookforwardenterprises.com
|
37
50
|
executables: []
|
@@ -53,7 +66,6 @@ files:
|
|
53
66
|
- lib/guilded/guilder.rb
|
54
67
|
- lib/guilded/rails.rb
|
55
68
|
- lib/guilded/rails/active_record/human_attribute_hint.rb
|
56
|
-
- lib/guilded/rails/active_record/human_attribute_override.rb
|
57
69
|
- lib/guilded/rails/controller_actions.rb
|
58
70
|
- lib/guilded/rails/helpers.rb
|
59
71
|
- lib/guilded/rails/inactive_record/human_attribute_hint.rb
|
@@ -97,18 +109,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
109
|
requirements:
|
98
110
|
- - ">="
|
99
111
|
- !ruby/object:Gem::Version
|
112
|
+
segments:
|
113
|
+
- 0
|
100
114
|
version: "0"
|
101
|
-
version:
|
102
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
116
|
requirements:
|
104
117
|
- - ">="
|
105
118
|
- !ruby/object:Gem::Version
|
119
|
+
segments:
|
120
|
+
- 0
|
106
121
|
version: "0"
|
107
|
-
version:
|
108
122
|
requirements: []
|
109
123
|
|
110
124
|
rubyforge_project:
|
111
|
-
rubygems_version: 1.3.
|
125
|
+
rubygems_version: 1.3.6
|
112
126
|
signing_key:
|
113
127
|
specification_version: 3
|
114
128
|
summary: A framework for building web based components centered around current web standards and best practices.
|
@@ -1,41 +0,0 @@
|
|
1
|
-
module ActiveRecord
|
2
|
-
class Base
|
3
|
-
class <<self
|
4
|
-
# Allows alternate humanized versions of attributes to be set. For example, an attribute such as 'num_employees' would be
|
5
|
-
# converted to 'Num employees' normally using <tt>human_attribute_name</tt>. More descriptive text can be set. Example:
|
6
|
-
# attr_human_name 'num_employees' => 'Number of employees'
|
7
|
-
def attr_human_name(attributes) # :nodoc:
|
8
|
-
return unless table_exists?
|
9
|
-
|
10
|
-
attributes.stringify_keys!
|
11
|
-
write_inheritable_hash("attr_human_name", attributes || {})
|
12
|
-
|
13
|
-
# assign the current class to each column that is being assigned a new human attribute name
|
14
|
-
self.columns.reject{|c| !attributes.has_key?(c.name)}.each{|c| c.parent_record_class = self}
|
15
|
-
end
|
16
|
-
|
17
|
-
# Returns a hash of alternate human name conversions set with <tt>attr_human_name</tt>.
|
18
|
-
def human_name_attributes # :nodoc:
|
19
|
-
read_inheritable_attribute("attr_human_name")
|
20
|
-
end
|
21
|
-
|
22
|
-
# Transforms attribute key names into a more humane format, such as "First name" instead of "first_name". Example:
|
23
|
-
# Person.human_attribute_name("first_name") # => "First name"
|
24
|
-
def human_attribute_name(attribute_key_name, options={}) #:nodoc:
|
25
|
-
(read_inheritable_attribute("attr_human_name") || {})[attribute_key_name.to_s] || attribute_key_name.to_s.humanize.titleize
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
module ConnectionAdapters #:nodoc:
|
31
|
-
# An abstract definition of a column in a table.
|
32
|
-
class Column
|
33
|
-
# the active record class that this column is associated with
|
34
|
-
attr_accessor :parent_record_class
|
35
|
-
|
36
|
-
def human_name
|
37
|
-
(@parent_record_class || Base).human_attribute_name(@name)
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|