guilded 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +2 -0
- data/Gemfile +24 -0
- data/Gemfile.lock +61 -0
- data/README.rdoc +35 -35
- data/Rakefile +1 -67
- data/guilded.gemspec +22 -105
- data/lib/guilded/guilder.rb +3 -1
- data/lib/guilded/version.rb +3 -0
- metadata +34 -39
- data/History.txt +0 -172
- data/VERSION +0 -1
data/.rvmrc
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
|
3
|
+
group :development do
|
4
|
+
gem 'gem-dandy'
|
5
|
+
gem 'jeweler'
|
6
|
+
end
|
7
|
+
|
8
|
+
group :development, :test do
|
9
|
+
gem 'ruby-debug'
|
10
|
+
gem 'guard'
|
11
|
+
gem 'rb-fsevent'
|
12
|
+
gem 'growl'
|
13
|
+
gem 'guard-rspec'
|
14
|
+
gem 'guard-shell'
|
15
|
+
end
|
16
|
+
|
17
|
+
group :test do
|
18
|
+
gem 'rspec'
|
19
|
+
end
|
20
|
+
|
21
|
+
# Specify your gem's dependencies in guilded.gemspec
|
22
|
+
gemspec
|
23
|
+
|
24
|
+
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
guilded (1.0.14)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: http://rubygems.org/
|
8
|
+
specs:
|
9
|
+
columnize (0.3.4)
|
10
|
+
diff-lcs (1.1.3)
|
11
|
+
gem-dandy (0.2.1)
|
12
|
+
trollop (= 1.16.2)
|
13
|
+
git (1.2.5)
|
14
|
+
growl (1.0.3)
|
15
|
+
guard (0.8.2)
|
16
|
+
thor (~> 0.14.6)
|
17
|
+
guard-rspec (0.4.5)
|
18
|
+
guard (>= 0.4.0)
|
19
|
+
guard-shell (0.1.1)
|
20
|
+
guard (>= 0.2.0)
|
21
|
+
jeweler (1.6.4)
|
22
|
+
bundler (~> 1.0)
|
23
|
+
git (>= 1.2.5)
|
24
|
+
rake
|
25
|
+
linecache (0.46)
|
26
|
+
rbx-require-relative (> 0.0.4)
|
27
|
+
rake (0.9.2)
|
28
|
+
rb-fsevent (0.4.3.1)
|
29
|
+
rbx-require-relative (0.0.5)
|
30
|
+
rspec (2.6.0)
|
31
|
+
rspec-core (~> 2.6.0)
|
32
|
+
rspec-expectations (~> 2.6.0)
|
33
|
+
rspec-mocks (~> 2.6.0)
|
34
|
+
rspec-core (2.6.4)
|
35
|
+
rspec-expectations (2.6.0)
|
36
|
+
diff-lcs (~> 1.1.2)
|
37
|
+
rspec-mocks (2.6.0)
|
38
|
+
ruby-debug (0.10.4)
|
39
|
+
columnize (>= 0.1)
|
40
|
+
ruby-debug-base (~> 0.10.4.0)
|
41
|
+
ruby-debug-base (0.10.4)
|
42
|
+
linecache (>= 0.3)
|
43
|
+
shoulda (2.11.3)
|
44
|
+
thor (0.14.6)
|
45
|
+
trollop (1.16.2)
|
46
|
+
|
47
|
+
PLATFORMS
|
48
|
+
ruby
|
49
|
+
|
50
|
+
DEPENDENCIES
|
51
|
+
gem-dandy
|
52
|
+
growl
|
53
|
+
guard
|
54
|
+
guard-rspec
|
55
|
+
guard-shell
|
56
|
+
guilded!
|
57
|
+
jeweler
|
58
|
+
rb-fsevent
|
59
|
+
rspec
|
60
|
+
ruby-debug
|
61
|
+
shoulda
|
data/README.rdoc
CHANGED
@@ -1,36 +1,36 @@
|
|
1
1
|
= guilded
|
2
2
|
|
3
|
-
http://github.com/
|
3
|
+
http://github.com/guilded/guilded
|
4
4
|
|
5
5
|
|
6
6
|
== DESCRIPTION
|
7
7
|
|
8
|
-
Guilded is a framework for building web based components centered around current web standards and best practices. The current
|
8
|
+
Guilded is a framework for building web based components centered around current web standards and best practices. The current
|
9
9
|
framework is written in ruby, but could be ported to other languages.
|
10
10
|
|
11
11
|
Guilded intends to provide a toolset for creating and consuming reusable web components. Currently, this problem domain is
|
12
|
-
filled with JavaScript frameworks. These frameworks are wonderful and work very well. However, they do not degrade gracefully and
|
13
|
-
are not accessible. Guilded seeks to provide the same level of componentization and ease of use without sacrificing degradability
|
14
|
-
and accessibility. Guilded will achieve these goals by applying each technology at our disposal (HTML, CSS and JavaScript) to do
|
15
|
-
as it was intended.
|
12
|
+
filled with JavaScript frameworks. These frameworks are wonderful and work very well. However, they do not degrade gracefully and
|
13
|
+
are not accessible. Guilded seeks to provide the same level of componentization and ease of use without sacrificing degradability
|
14
|
+
and accessibility. Guilded will achieve these goals by applying each technology at our disposal (HTML, CSS and JavaScript) to do
|
15
|
+
as it was intended.
|
16
16
|
|
17
|
-
XHTML will be employed for content. CSS used for layout and styling. Behavior will be added to a component with JavaScript
|
18
|
-
through progressive enhancement. The user will have the best experience with a Guilded component when CSS and JavaScript are
|
19
|
-
enabled in their browser, but will still be able to use the component when CSS and JavaScript are disabled.
|
17
|
+
XHTML will be employed for content. CSS used for layout and styling. Behavior will be added to a component with JavaScript
|
18
|
+
through progressive enhancement. The user will have the best experience with a Guilded component when CSS and JavaScript are
|
19
|
+
enabled in their browser, but will still be able to use the component when CSS and JavaScript are disabled.
|
20
20
|
|
21
21
|
Guilded will use jQuery as it's base JavaScript framework. jQuery was chosen because it lends itself to progressive enhancement
|
22
|
-
due to the way it was authored. In addition, the tight integration of jQuery's selectors with CSS selectors is also highly
|
23
|
-
desirable. When authoring a Guilded component, it is encouraged to write the behavior code as a jQuery plugin. This will
|
22
|
+
due to the way it was authored. In addition, the tight integration of jQuery's selectors with CSS selectors is also highly
|
23
|
+
desirable. When authoring a Guilded component, it is encouraged to write the behavior code as a jQuery plugin. This will
|
24
24
|
allow the jQuery or MooTools plugin to be used outside of the Guilded project, if desired.
|
25
25
|
|
26
26
|
Guilded also seeks to provide a standardized CSS framework for creating layouts that are reusable and predictable.
|
27
27
|
|
28
|
-
Guilded will utilize the currently existing RubyGems system to package its components. A new Guilded component will be packaged
|
28
|
+
Guilded will utilize the currently existing RubyGems system to package its components. A new Guilded component will be packaged
|
29
29
|
in a Gem and have a dependency on the Guilded gem.
|
30
30
|
|
31
31
|
The Guilded gem contains the framework to build Guilded components.
|
32
32
|
|
33
|
-
Update: Due to the quality components, etc. being generated by the MooTools community and the general quality of the library, we
|
33
|
+
Update: Due to the quality components, etc. being generated by the MooTools community and the general quality of the library, we
|
34
34
|
have decided to include support for it in Guilded as of release 0.3.0.
|
35
35
|
|
36
36
|
|
@@ -41,39 +41,39 @@ have decided to include support for it in Guilded as of release 0.3.0.
|
|
41
41
|
* Automatic addition of MooTools 1.2.3 library if a utilized component defines it as a dependency using the :mootools => true option
|
42
42
|
with the Guilder.add() method when defining the component.
|
43
43
|
* Automatic addition of Yahoo's reset-min.css.
|
44
|
-
* Redefinition of jQuery's $ method to $j and running jQuery in no conflict mode to allow other libraries to retain control
|
44
|
+
* Redefinition of jQuery's $ method to $j and running jQuery in no conflict mode to allow other libraries to retain control
|
45
45
|
of the $ method.
|
46
46
|
* Definition of the g namespace to avoid JavaScript name collisions. Simply define your custom functions within the g object.
|
47
47
|
* Definition of convenience method $j(). Equivalent to jQuery() or $(). Guilded runs jQuery in no conflict mode, giving the $
|
48
48
|
back to any other JavaScript frameworks in use. You must use $j() or jQuery() in lieu of $().
|
49
49
|
* Definition of convenience method $jc(). Equivalent to jQuery( '.' + className ).
|
50
|
-
* Definition of convenience method $jid(). Equivalent to jQuery( '#' + idName ).
|
50
|
+
* Definition of convenience method $jid(). Equivalent to jQuery( '#' + idName ).
|
51
51
|
* The assets required for each component are added by the author to a central data store. When the view helper to create
|
52
52
|
the component is called, these assets are added to the asset store. This results in a single method call with some options
|
53
|
-
to use a Guilded component. No need to include JavaScript source files or CSS files. Guilded automatically does this for
|
53
|
+
to use a Guilded component. No need to include JavaScript source files or CSS files. Guilded automatically does this for
|
54
54
|
you.
|
55
|
-
* For CSS assets, Guilded simply loops through the collection of CSS assets creating an HTML link tag for each asset, or one
|
55
|
+
* For CSS assets, Guilded simply loops through the collection of CSS assets creating an HTML link tag for each asset, or one
|
56
56
|
HTML link tag for the cached version of these asset(s), when running in production mode.
|
57
57
|
* For JavaScript assets, Guilded loops through the collection of JavaScript assets creating an HTML script tag for each, or a
|
58
58
|
single script tag for the cached version of these asset(s), when running in production mode.
|
59
59
|
* Pass named data structures from the server to the client side environment for use with the Guilder.add_data() method. Once Guilded
|
60
60
|
is initialized, the data structure will be instantiated for you with the name specified within the g object.
|
61
|
-
* Execute custom JavaScript code after all Guilded components are initialized (ensuring everything you wish to use is instantiated)
|
61
|
+
* Execute custom JavaScript code after all Guilded components are initialized (ensuring everything you wish to use is instantiated)
|
62
62
|
using the 'guildedInitialized' custom jQuery event defined on the body DOM element.
|
63
|
-
* g_javascript_include_tag view helper that will explicitly add JavaScript libraries to the libs collection to be included in the
|
64
|
-
assets. This helper will also resolve any libs to their full or compressed versions dependent on the current executing environment.
|
63
|
+
* g_javascript_include_tag view helper that will explicitly add JavaScript libraries to the libs collection to be included in the
|
64
|
+
assets. This helper will also resolve any libs to their full or compressed versions dependent on the current executing environment.
|
65
65
|
Additionally, the symbols :jquery and :mootools will be expanded to the lib version defined in the Guilded configuration.
|
66
66
|
|
67
67
|
=== Caching of CSS and JavaScript assets needed to render a web page.
|
68
|
-
* The CSS assets are cached to form one file. In addition, the JavaScript assets are cached to form one file. These files are
|
69
|
-
named by sorting and concatenating into a single string the names of each individual respective asset. This string is then hashed
|
70
|
-
to generate a reproducable unique string. This file naming technique allows Guilded to find cached asset files that
|
71
|
-
match a combination of Guilded components, not an action, URI, etc. Thus, one file for a certain combination of Guilded
|
68
|
+
* The CSS assets are cached to form one file. In addition, the JavaScript assets are cached to form one file. These files are
|
69
|
+
named by sorting and concatenating into a single string the names of each individual respective asset. This string is then hashed
|
70
|
+
to generate a reproducable unique string. This file naming technique allows Guilded to find cached asset files that
|
71
|
+
match a combination of Guilded components, not an action, URI, etc. Thus, one file for a certain combination of Guilded
|
72
72
|
components is generated and then reused on any page where the combination appears.
|
73
73
|
|
74
74
|
=== Automatic choosing of packed, compressed or minified JavaScript files when in production mode.
|
75
|
-
* In production mode, Guilded automatically looks for a .pack, .compressed or .min version of the JavaScript assets. If one of
|
76
|
-
these is found, it includes it, otherwise, it includes the version specified by the author in the view helper. This is usually
|
75
|
+
* In production mode, Guilded automatically looks for a .pack, .compressed or .min version of the JavaScript assets. If one of
|
76
|
+
these is found, it includes it, otherwise, it includes the version specified by the author in the view helper. This is usually
|
77
77
|
an unpacked version of the file.
|
78
78
|
|
79
79
|
=== Additional common utilities
|
@@ -131,7 +131,7 @@ Install the Gem:
|
|
131
131
|
bundle install # Rails 3
|
132
132
|
rake gems:install # Rails 2
|
133
133
|
gem install guilded # Manual
|
134
|
-
|
134
|
+
|
135
135
|
Generate:
|
136
136
|
|
137
137
|
rails generate guilded_config # Rails 3
|
@@ -142,7 +142,7 @@ Generate:
|
|
142
142
|
|
143
143
|
|
144
144
|
Edit the settings file at config/initializers/load_guilded_settings.rb. Change any of these settings to reflect how
|
145
|
-
you would like Guilded to be configured. If you change where any file(s) are configured to be located, then also move
|
145
|
+
you would like Guilded to be configured. If you change where any file(s) are configured to be located, then also move
|
146
146
|
the respective file(s).
|
147
147
|
|
148
148
|
|
@@ -150,7 +150,7 @@ the respective file(s).
|
|
150
150
|
|
151
151
|
=== COMPONENT FRAMEWORK
|
152
152
|
|
153
|
-
You must make a call to the view helper to apply the CSS. The raw method must be used with Rails 3 as the new default
|
153
|
+
You must make a call to the view helper to apply the CSS. The raw method must be used with Rails 3 as the new default
|
154
154
|
escapes strings. It should be placed in your layout:
|
155
155
|
|
156
156
|
<%= raw g_apply_style %> # Rails 3
|
@@ -162,26 +162,26 @@ do not have to include it in every template):
|
|
162
162
|
# Rails 3
|
163
163
|
<%= raw g_apply_includes %>
|
164
164
|
<script type="text/javascript">
|
165
|
-
<%= raw g_apply_behavior %>
|
165
|
+
<%= raw g_apply_behavior %>
|
166
166
|
</script>
|
167
167
|
<% g_inject_styles %>
|
168
168
|
|
169
169
|
# Rails 2
|
170
170
|
<%= g_apply_includes %>
|
171
171
|
<script type="text/javascript">
|
172
|
-
<%= g_apply_behavior %>
|
172
|
+
<%= g_apply_behavior %>
|
173
173
|
</script>
|
174
174
|
<% g_inject_styles %>
|
175
175
|
|
176
|
-
A before filter is automatically set up in your application controller to reset the Guilded singleton that manages
|
176
|
+
A before filter is automatically set up in your application controller to reset the Guilded singleton that manages
|
177
177
|
everything after each rendering. The code looks like this:
|
178
178
|
|
179
179
|
before_filter :reset_guilded
|
180
|
-
|
180
|
+
|
181
181
|
#...
|
182
|
-
|
182
|
+
|
183
183
|
protected
|
184
|
-
|
184
|
+
|
185
185
|
def reset_guilded
|
186
186
|
Guilded::Guilder.instance.reset!
|
187
187
|
end
|
data/Rakefile
CHANGED
@@ -1,67 +1 @@
|
|
1
|
-
require
|
2
|
-
require 'rake'
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'jeweler'
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "guilded"
|
8
|
-
gem.summary = %Q{A framework for building web based components centered around current web standards and best practices.}
|
9
|
-
gem.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.}
|
10
|
-
gem.email = "jason@lookforwardenterprises.com"
|
11
|
-
gem.homepage = "http://github.com/midas/guilded"
|
12
|
-
gem.authors = ["C. Jason Harrelson (midas)"]
|
13
|
-
gem.add_development_dependency "shoulda", ">= 2.10.2"
|
14
|
-
gem.add_development_dependency "rspec", ">= 1.2.9"
|
15
|
-
gem.add_dependency "activesupport", ">= 2.0.2"
|
16
|
-
end
|
17
|
-
Jeweler::GemcutterTasks.new
|
18
|
-
rescue LoadError
|
19
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
20
|
-
end
|
21
|
-
|
22
|
-
require 'spec/rake/spectask'
|
23
|
-
Spec::Rake::SpecTask.new(:spec) do |spec|
|
24
|
-
spec.libs << 'lib' << 'spec'
|
25
|
-
spec.spec_files = FileList['spec/**/*_spec.rb']
|
26
|
-
end
|
27
|
-
|
28
|
-
Spec::Rake::SpecTask.new(:rcov) do |spec|
|
29
|
-
spec.libs << 'lib' << 'spec'
|
30
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
31
|
-
spec.rcov = true
|
32
|
-
end
|
33
|
-
|
34
|
-
task :spec => :check_dependencies
|
35
|
-
|
36
|
-
task :default => :spec
|
37
|
-
|
38
|
-
begin
|
39
|
-
require 'rcov/rcovtask'
|
40
|
-
Rcov::RcovTask.new do |test|
|
41
|
-
test.libs << 'test'
|
42
|
-
test.pattern = 'test/**/*_test.rb'
|
43
|
-
test.verbose = true
|
44
|
-
end
|
45
|
-
rescue LoadError
|
46
|
-
task :rcov do
|
47
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
task :test => :check_dependencies
|
52
|
-
|
53
|
-
task :default => :test
|
54
|
-
|
55
|
-
require 'rake/rdoctask'
|
56
|
-
Rake::RDocTask.new do |rdoc|
|
57
|
-
if File.exist?('VERSION')
|
58
|
-
version = File.read('VERSION')
|
59
|
-
else
|
60
|
-
version = ""
|
61
|
-
end
|
62
|
-
|
63
|
-
rdoc.rdoc_dir = 'rdoc'
|
64
|
-
rdoc.title = "tester #{version}"
|
65
|
-
rdoc.rdoc_files.include('README*')
|
66
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
67
|
-
end
|
1
|
+
require "bundler/gem_tasks"
|
data/guilded.gemspec
CHANGED
@@ -1,113 +1,30 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "guilded/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
9
|
-
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
6
|
+
s.name = "guilded"
|
7
|
+
s.version = Guilded::VERSION
|
8
|
+
s.authors = ["Jason Harrelson"]
|
9
|
+
s.email = ["jason@lookforwardenterprises.com"]
|
10
|
+
s.homepage = "http://github.com/guilded/guilded"
|
11
|
+
s.summary = %q{A framework for building web based components centered around current web standards and best practices.}
|
13
12
|
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
|
-
s.email = %q{jason@lookforwardenterprises.com}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"README.rdoc"
|
17
|
-
]
|
18
|
-
s.files = [
|
19
|
-
".gitignore",
|
20
|
-
"History.txt",
|
21
|
-
"README.rdoc",
|
22
|
-
"Rakefile",
|
23
|
-
"VERSION",
|
24
|
-
"guilded.gemspec",
|
25
|
-
"lib/generators/guilded_assets/guilded_assets_generator.rb",
|
26
|
-
"lib/generators/guilded_assets/templates/guilded.js",
|
27
|
-
"lib/generators/guilded_assets/templates/guilded.min.js",
|
28
|
-
"lib/generators/guilded_assets/templates/jquery-1.2.6.js",
|
29
|
-
"lib/generators/guilded_assets/templates/jquery-1.2.6.min.js",
|
30
|
-
"lib/generators/guilded_assets/templates/jquery-1.3.2.js",
|
31
|
-
"lib/generators/guilded_assets/templates/jquery-1.3.2.min.js",
|
32
|
-
"lib/generators/guilded_assets/templates/jquery-url.js",
|
33
|
-
"lib/generators/guilded_assets/templates/jquery-url.min.js",
|
34
|
-
"lib/generators/guilded_assets/templates/mootools-1.2.3.js",
|
35
|
-
"lib/generators/guilded_assets/templates/mootools-1.2.3.min.js",
|
36
|
-
"lib/generators/guilded_assets/templates/reset-min.css",
|
37
|
-
"lib/generators/guilded_config/guilded_config_generator.rb",
|
38
|
-
"lib/generators/guilded_config/templates/guilded_config.rb",
|
39
|
-
"lib/guilded.rb",
|
40
|
-
"lib/guilded/component_def.rb",
|
41
|
-
"lib/guilded/exceptions.rb",
|
42
|
-
"lib/guilded/guilder.rb",
|
43
|
-
"lib/guilded/rails.rb",
|
44
|
-
"lib/guilded/rails/active_record/human_attribute_hint.rb",
|
45
|
-
"lib/guilded/rails/controller_actions.rb",
|
46
|
-
"lib/guilded/rails/helpers.rb",
|
47
|
-
"lib/guilded/rails/inactive_record/human_attribute_hint.rb",
|
48
|
-
"lib/guilded/rails/view_helpers.rb",
|
49
|
-
"rails_generators/guilded_assets/guilded_assets_generator.rb",
|
50
|
-
"rails_generators/guilded_assets/templates/guilded.js",
|
51
|
-
"rails_generators/guilded_assets/templates/guilded.min.js",
|
52
|
-
"rails_generators/guilded_assets/templates/jquery-1.2.6.js",
|
53
|
-
"rails_generators/guilded_assets/templates/jquery-1.2.6.min.js",
|
54
|
-
"rails_generators/guilded_assets/templates/jquery-1.3.2.js",
|
55
|
-
"rails_generators/guilded_assets/templates/jquery-1.3.2.min.js",
|
56
|
-
"rails_generators/guilded_assets/templates/jquery-url.js",
|
57
|
-
"rails_generators/guilded_assets/templates/jquery-url.min.js",
|
58
|
-
"rails_generators/guilded_assets/templates/mootools-1.2.3.js",
|
59
|
-
"rails_generators/guilded_assets/templates/mootools-1.2.3.min.js",
|
60
|
-
"rails_generators/guilded_assets/templates/reset-min.css",
|
61
|
-
"rails_generators/guilded_config/guilded_config_generator.rb",
|
62
|
-
"rails_generators/guilded_config/templates/guilded_config.rb",
|
63
|
-
"script/console",
|
64
|
-
"script/destroy",
|
65
|
-
"script/generate",
|
66
|
-
"spec/generators/guilded_assets_generator_spec.rb",
|
67
|
-
"spec/generators/guilded_config_generator_spec.rb",
|
68
|
-
"spec/guilded/component_def_spec.rb",
|
69
|
-
"spec/guilded/guilder_spec.rb",
|
70
|
-
"spec/guilded_spec.rb",
|
71
|
-
"spec/spec.opts",
|
72
|
-
"spec/spec_helper.rb",
|
73
|
-
"tasks/rails.rake",
|
74
|
-
"tasks/rspec.rake",
|
75
|
-
"test/guilded/rails/helpers_test.rb",
|
76
|
-
"test/test_helper.rb"
|
77
|
-
]
|
78
|
-
s.homepage = %q{http://github.com/midas/guilded}
|
79
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
80
|
-
s.require_paths = ["lib"]
|
81
|
-
s.rubygems_version = %q{1.3.6}
|
82
|
-
s.summary = %q{A framework for building web based components centered around current web standards and best practices.}
|
83
|
-
s.test_files = [
|
84
|
-
"spec/generators/guilded_assets_generator_spec.rb",
|
85
|
-
"spec/generators/guilded_config_generator_spec.rb",
|
86
|
-
"spec/guilded/component_def_spec.rb",
|
87
|
-
"spec/guilded/guilder_spec.rb",
|
88
|
-
"spec/guilded_spec.rb",
|
89
|
-
"spec/spec_helper.rb",
|
90
|
-
"test/guilded/rails/helpers_test.rb",
|
91
|
-
"test/test_helper.rb"
|
92
|
-
]
|
93
13
|
|
94
|
-
|
95
|
-
|
96
|
-
|
14
|
+
s.rubyforge_project = "guilded"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
97
20
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
105
|
-
s.add_dependency(%q<activesupport>, [">= 2.0.2"])
|
106
|
-
end
|
107
|
-
else
|
108
|
-
s.add_dependency(%q<shoulda>, [">= 2.10.2"])
|
109
|
-
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
110
|
-
s.add_dependency(%q<activesupport>, [">= 2.0.2"])
|
21
|
+
# specify any dependencies here; for example:
|
22
|
+
%w(
|
23
|
+
rspec
|
24
|
+
shoulda
|
25
|
+
).each do |development_dependency|
|
26
|
+
s.add_development_dependency development_dependency
|
111
27
|
end
|
112
|
-
end
|
113
28
|
|
29
|
+
# s.add_runtime_dependency "rest-client"
|
30
|
+
end
|
data/lib/guilded/guilder.rb
CHANGED
@@ -170,6 +170,8 @@ module Guilded
|
|
170
170
|
code << "g.#{name} = #{data.to_json};"
|
171
171
|
end
|
172
172
|
@g_elements.each_value do |guilded_def|
|
173
|
+
include_path_helpers = guilded_def.options.delete( :include_path_helpers_in_init_options )
|
174
|
+
guilded_def.options.delete( :path_helpers ) unless include_path_helpers
|
173
175
|
code << "g.#{guilded_def.kind.to_s.camelize( :lower )}Init(#{guilded_def.options.to_json});" unless guilded_def.exclude_js?
|
174
176
|
end
|
175
177
|
code << "jQuery('body').trigger('guildedInitialized');};jQuery('document').ready(initGuildedElements);"
|
@@ -389,4 +391,4 @@ module Guilded
|
|
389
391
|
File.exists?( path ) ? part : ''
|
390
392
|
end
|
391
393
|
end
|
392
|
-
end
|
394
|
+
end
|
metadata
CHANGED
@@ -1,78 +1,67 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guilded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 11
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 1
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
9
|
+
- 14
|
10
|
+
version: 1.0.14
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
|
-
-
|
13
|
+
- Jason Harrelson
|
13
14
|
autorequire:
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date:
|
18
|
+
date: 2011-09-30 00:00:00 -05:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
22
|
+
name: rspec
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
27
30
|
segments:
|
28
|
-
-
|
29
|
-
|
30
|
-
- 2
|
31
|
-
version: 2.10.2
|
31
|
+
- 0
|
32
|
+
version: "0"
|
32
33
|
type: :development
|
33
34
|
version_requirements: *id001
|
34
35
|
- !ruby/object:Gem::Dependency
|
35
|
-
name:
|
36
|
+
name: shoulda
|
36
37
|
prerelease: false
|
37
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
38
40
|
requirements:
|
39
41
|
- - ">="
|
40
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
41
44
|
segments:
|
42
|
-
-
|
43
|
-
|
44
|
-
- 9
|
45
|
-
version: 1.2.9
|
45
|
+
- 0
|
46
|
+
version: "0"
|
46
47
|
type: :development
|
47
48
|
version_requirements: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: activesupport
|
50
|
-
prerelease: false
|
51
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - ">="
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
segments:
|
56
|
-
- 2
|
57
|
-
- 0
|
58
|
-
- 2
|
59
|
-
version: 2.0.2
|
60
|
-
type: :runtime
|
61
|
-
version_requirements: *id003
|
62
49
|
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.
|
63
|
-
email:
|
50
|
+
email:
|
51
|
+
- jason@lookforwardenterprises.com
|
64
52
|
executables: []
|
65
53
|
|
66
54
|
extensions: []
|
67
55
|
|
68
|
-
extra_rdoc_files:
|
69
|
-
|
56
|
+
extra_rdoc_files: []
|
57
|
+
|
70
58
|
files:
|
71
59
|
- .gitignore
|
72
|
-
-
|
60
|
+
- .rvmrc
|
61
|
+
- Gemfile
|
62
|
+
- Gemfile.lock
|
73
63
|
- README.rdoc
|
74
64
|
- Rakefile
|
75
|
-
- VERSION
|
76
65
|
- guilded.gemspec
|
77
66
|
- lib/generators/guilded_assets/guilded_assets_generator.rb
|
78
67
|
- lib/generators/guilded_assets/templates/guilded.js
|
@@ -98,6 +87,7 @@ files:
|
|
98
87
|
- lib/guilded/rails/helpers.rb
|
99
88
|
- lib/guilded/rails/inactive_record/human_attribute_hint.rb
|
100
89
|
- lib/guilded/rails/view_helpers.rb
|
90
|
+
- lib/guilded/version.rb
|
101
91
|
- rails_generators/guilded_assets/guilded_assets_generator.rb
|
102
92
|
- rails_generators/guilded_assets/templates/guilded.js
|
103
93
|
- rails_generators/guilded_assets/templates/guilded.min.js
|
@@ -127,32 +117,36 @@ files:
|
|
127
117
|
- test/guilded/rails/helpers_test.rb
|
128
118
|
- test/test_helper.rb
|
129
119
|
has_rdoc: true
|
130
|
-
homepage: http://github.com/
|
120
|
+
homepage: http://github.com/guilded/guilded
|
131
121
|
licenses: []
|
132
122
|
|
133
123
|
post_install_message:
|
134
|
-
rdoc_options:
|
135
|
-
|
124
|
+
rdoc_options: []
|
125
|
+
|
136
126
|
require_paths:
|
137
127
|
- lib
|
138
128
|
required_ruby_version: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
139
130
|
requirements:
|
140
131
|
- - ">="
|
141
132
|
- !ruby/object:Gem::Version
|
133
|
+
hash: 3
|
142
134
|
segments:
|
143
135
|
- 0
|
144
136
|
version: "0"
|
145
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
146
139
|
requirements:
|
147
140
|
- - ">="
|
148
141
|
- !ruby/object:Gem::Version
|
142
|
+
hash: 3
|
149
143
|
segments:
|
150
144
|
- 0
|
151
145
|
version: "0"
|
152
146
|
requirements: []
|
153
147
|
|
154
|
-
rubyforge_project:
|
155
|
-
rubygems_version: 1.
|
148
|
+
rubyforge_project: guilded
|
149
|
+
rubygems_version: 1.6.0
|
156
150
|
signing_key:
|
157
151
|
specification_version: 3
|
158
152
|
summary: A framework for building web based components centered around current web standards and best practices.
|
@@ -162,6 +156,7 @@ test_files:
|
|
162
156
|
- spec/guilded/component_def_spec.rb
|
163
157
|
- spec/guilded/guilder_spec.rb
|
164
158
|
- spec/guilded_spec.rb
|
159
|
+
- spec/spec.opts
|
165
160
|
- spec/spec_helper.rb
|
166
161
|
- test/guilded/rails/helpers_test.rb
|
167
162
|
- test/test_helper.rb
|
data/History.txt
DELETED
@@ -1,172 +0,0 @@
|
|
1
|
-
= 1.0.13 2010-08-04
|
2
|
-
|
3
|
-
* Provide option to include script tags in the g_apply_behavior method.
|
4
|
-
|
5
|
-
|
6
|
-
= 1.0.12 2010-05-11
|
7
|
-
|
8
|
-
* Fixed a new compatibility issue with Rails 3 templating.
|
9
|
-
|
10
|
-
|
11
|
-
= 1.0.11 2010-05-11
|
12
|
-
|
13
|
-
* Yanked (cancelled)
|
14
|
-
|
15
|
-
|
16
|
-
= 1.0.10 2010-04-22
|
17
|
-
|
18
|
-
* Added option to allow for serving jQuery lib from a remote asset server (ie. Google).
|
19
|
-
* Added Rails 3 compliant generators.
|
20
|
-
|
21
|
-
|
22
|
-
= 1.0.9 2010-04-16
|
23
|
-
|
24
|
-
* Updated the Rails Guilded initializer to get rid of deprecated RAILS_ROOT in favor of Rails.root.
|
25
|
-
|
26
|
-
|
27
|
-
= 1.0.8 2010-03-12
|
28
|
-
|
29
|
-
* Removed the human attribute override in favor of using the Rails I18n implementation.
|
30
|
-
|
31
|
-
|
32
|
-
= 1.0.7 2010-02-19
|
33
|
-
|
34
|
-
* Updated view helpers and Guilder to adapt to usage in Rails 3.
|
35
|
-
|
36
|
-
|
37
|
-
= 1.0.5 2010-01-21
|
38
|
-
|
39
|
-
* Gave css inclusion a :position option allowing for positioning before or after the component(s) css.
|
40
|
-
|
41
|
-
|
42
|
-
= 1.0.4 2010-01-04
|
43
|
-
|
44
|
-
* Fixed a bug with a file include to make Guilded work with the bundler gem.
|
45
|
-
|
46
|
-
|
47
|
-
= 1.0.3 2009-11-16
|
48
|
-
|
49
|
-
* The reset_guilded filter is now automatically set up in ActionController.
|
50
|
-
|
51
|
-
|
52
|
-
= 1.0.2 2009-11-13
|
53
|
-
|
54
|
-
* Fixed issue with human_attribute_name override not accepting an options hash. Was breaking remarkable gem.
|
55
|
-
|
56
|
-
|
57
|
-
= 1.0.1 2009-10-19
|
58
|
-
|
59
|
-
* Moved the browser detector to its own Gem.
|
60
|
-
|
61
|
-
|
62
|
-
= 1.0.0 2009-10-15
|
63
|
-
|
64
|
-
* It's about time for a 1.0.0 release
|
65
|
-
* Updated the browser detector to be more robust in its detection abilities and provide more features
|
66
|
-
|
67
|
-
|
68
|
-
= 0.3.0 2009-07-12
|
69
|
-
|
70
|
-
* Added support for MooTools library.
|
71
|
-
* Added :mootools option to the Guilder.add() method. If true is passed into this option when adding a component, Guilded
|
72
|
-
will automatically add the mootools library to the libs collection so that the lib will be included in the assets the
|
73
|
-
page loads.
|
74
|
-
* Updated the g_javascript_include_tag to resolve the :jquery and :mootools symbols to their respective libraries based
|
75
|
-
on the configuration of Guilded and the current running environment.
|
76
|
-
|
77
|
-
|
78
|
-
= 0.2.9 2009-06-18
|
79
|
-
|
80
|
-
* Added rescue code if the browser name or version fails.
|
81
|
-
|
82
|
-
|
83
|
-
= 0.2.8 2009-06-12
|
84
|
-
|
85
|
-
* Removed some code from the InactiveRecord:Base extension for human attrbiute hint that returns unless
|
86
|
-
table_exists? as this does not make any sense for InactiveRecord.
|
87
|
-
|
88
|
-
|
89
|
-
= 0.2.7 2009-06-10
|
90
|
-
|
91
|
-
* Changed the BrowserDetector to need to be instantiated to use. No longer just static methods.
|
92
|
-
|
93
|
-
|
94
|
-
= 0.2.6 2009-06-10
|
95
|
-
|
96
|
-
* Added some more view helpers for the browser detector.
|
97
|
-
|
98
|
-
|
99
|
-
= 0.2.5 2009-06-10
|
100
|
-
|
101
|
-
* Added BrowserDetector to assist with determining which browser is making a request.
|
102
|
-
|
103
|
-
|
104
|
-
= 0.2.4 2009-05-29
|
105
|
-
|
106
|
-
* Added add_data method to the Guilder object allowing named data structures to be passed to the JavaScript
|
107
|
-
executing environment.
|
108
|
-
* Added a jQuery event to the body DOM element called guildedInitialized. To execute JavaScript code after all
|
109
|
-
Guilded components are intialized, simply bind to this event.
|
110
|
-
|
111
|
-
|
112
|
-
= 0.2.0 2009-04-06
|
113
|
-
|
114
|
-
* Added human attribute hint support for InactiveRecord
|
115
|
-
|
116
|
-
|
117
|
-
= 0.2.0 2009-03-27
|
118
|
-
|
119
|
-
* Added Mark Perkins jquery-url plugin and made it a default library
|
120
|
-
|
121
|
-
|
122
|
-
= 0.1.9 2009-03-26
|
123
|
-
|
124
|
-
* Added Rails helper method to resolve REST path helpers and args
|
125
|
-
|
126
|
-
|
127
|
-
= 0.1.5 2009-03-24
|
128
|
-
|
129
|
-
* Added g_apply_style helper
|
130
|
-
* Added functionality to put CSS link tags in the HTML header, where they belong
|
131
|
-
|
132
|
-
|
133
|
-
== 0.1.4 2009-03-17
|
134
|
-
|
135
|
-
* Added include_component? method for testing if a component type is already present in the Guilded elements collection
|
136
|
-
* Fixed bug with Exception raising in add method
|
137
|
-
|
138
|
-
|
139
|
-
== 0.1.2 2009-03-13
|
140
|
-
|
141
|
-
* Fixed a bug with stylesheet and JS tag helpers.
|
142
|
-
|
143
|
-
|
144
|
-
== 0.1.0 2009-03-12
|
145
|
-
|
146
|
-
* Fixed a bug with requiring files.
|
147
|
-
|
148
|
-
|
149
|
-
== 0.0.9 2009-03-12
|
150
|
-
|
151
|
-
* Added Guilded::Rails::Helpers class to hold some common helpers for Rails components
|
152
|
-
|
153
|
-
|
154
|
-
== 0.0.8 2009-03-12
|
155
|
-
|
156
|
-
* Added attr_human_override and attr_human_hint
|
157
|
-
|
158
|
-
|
159
|
-
== 0.0.7 2009-03-11
|
160
|
-
|
161
|
-
* Bug fixes
|
162
|
-
|
163
|
-
|
164
|
-
== 0.0.6 2009-03-11
|
165
|
-
|
166
|
-
* Updated config file and Guilder to accept an :env variable. This variable will allow Guilded to know what environment
|
167
|
-
it is running in so that it knows whether to cache assets, etc.
|
168
|
-
|
169
|
-
|
170
|
-
== 0.0.1 2009-02-28
|
171
|
-
|
172
|
-
* Initial release
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.0.13
|