guilded 1.1.0 → 2.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -4
- data/.rspec +2 -0
- data/.rvmrc +1 -1
- data/Gemfile +1 -21
- data/Guardfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +21 -0
- data/Rakefile +1 -1
- data/guilded.gemspec +23 -24
- data/lib/{generators/guilded_assets/templates → assets/javascripts}/guilded.js +0 -0
- data/lib/assets/javascripts/jquery-1.6.4.js +9046 -0
- data/lib/assets/javascripts/jquery-1.6.4.min.js +4 -0
- data/lib/assets/javascripts/jquery-1.7.1.js +9266 -0
- data/lib/assets/javascripts/jquery-1.7.1.min.js +4 -0
- data/lib/assets/javascripts/jquery-1.7.2.js +9404 -0
- data/lib/assets/javascripts/jquery-1.7.2.min.js +4 -0
- data/lib/assets/javascripts/jquery-1.8.0.js +9227 -0
- data/lib/assets/javascripts/jquery-1.8.0.min.js +2 -0
- data/lib/assets/javascripts/jquery-1.8.1.js +9301 -0
- data/lib/assets/javascripts/jquery-1.8.1.min.js +2 -0
- data/lib/assets/javascripts/jquery-1.8.2.js +9440 -0
- data/lib/assets/javascripts/jquery-1.8.2.min.js +2 -0
- data/lib/assets/javascripts/jquery-1.8.3.js +9472 -0
- data/lib/assets/javascripts/jquery-1.8.3.min.js +2 -0
- data/lib/assets/javascripts/jquery-1.9.0.js +9555 -0
- data/lib/assets/javascripts/jquery-1.9.0.min.js +4 -0
- data/lib/assets/javascripts/jquery-1.9.1.js +9597 -0
- data/lib/assets/javascripts/jquery-1.9.1.min.js +5 -0
- data/lib/guilded.rb +23 -73
- data/lib/guilded/component.rb +32 -0
- data/lib/guilded/configuration.rb +27 -0
- data/lib/guilded/data.rb +25 -0
- data/lib/guilded/engine.rb +5 -0
- data/lib/guilded/guilder.rb +27 -370
- data/lib/guilded/rails.rb +7 -4
- data/lib/guilded/rails/controller.rb +23 -0
- data/lib/guilded/rails/helpers.rb +1 -3
- data/lib/guilded/rails/view_helpers.rb +16 -112
- data/lib/guilded/version.rb +1 -1
- data/spec/guilded/component_spec.rb +13 -0
- data/spec/guilded/configuration_spec.rb +68 -0
- data/spec/guilded/data_spec.rb +29 -0
- data/spec/guilded/guilder_spec.rb +67 -63
- data/spec/guilded/rails/view_helpers_spec.rb +49 -0
- data/spec/spec_helper.rb +5 -29
- metadata +174 -122
- data/Gemfile.lock +0 -61
- data/README.rdoc +0 -204
- data/lib/generators/guilded_assets/guilded_assets_generator.rb +0 -21
- data/lib/generators/guilded_assets/templates/guilded.min.js +0 -1
- data/lib/generators/guilded_assets/templates/jquery-1.2.6.js +0 -3549
- data/lib/generators/guilded_assets/templates/jquery-1.2.6.min.js +0 -32
- data/lib/generators/guilded_assets/templates/jquery-1.3.2.js +0 -4376
- data/lib/generators/guilded_assets/templates/jquery-1.3.2.min.js +0 -19
- data/lib/generators/guilded_assets/templates/jquery-url.js +0 -199
- data/lib/generators/guilded_assets/templates/jquery-url.min.js +0 -9
- data/lib/generators/guilded_assets/templates/mootools-1.2.3.js +0 -4036
- data/lib/generators/guilded_assets/templates/mootools-1.2.3.min.js +0 -356
- data/lib/generators/guilded_assets/templates/reset-min.css +0 -7
- data/lib/generators/guilded_config/guilded_config_generator.rb +0 -11
- data/lib/generators/guilded_config/templates/guilded_config.rb +0 -16
- data/lib/guilded/component_def.rb +0 -27
- data/lib/guilded/exceptions.rb +0 -29
- data/lib/guilded/rails/active_record/human_attribute_hint.rb +0 -41
- data/lib/guilded/rails/controller_actions.rb +0 -22
- data/lib/guilded/rails/inactive_record/human_attribute_hint.rb +0 -26
- data/rails_generators/guilded_assets/guilded_assets_generator.rb +0 -23
- data/rails_generators/guilded_assets/templates/guilded.js +0 -12
- data/rails_generators/guilded_assets/templates/guilded.min.js +0 -1
- data/rails_generators/guilded_assets/templates/jquery-1.2.6.js +0 -3549
- data/rails_generators/guilded_assets/templates/jquery-1.2.6.min.js +0 -32
- data/rails_generators/guilded_assets/templates/jquery-1.3.2.js +0 -4376
- data/rails_generators/guilded_assets/templates/jquery-1.3.2.min.js +0 -19
- data/rails_generators/guilded_assets/templates/jquery-url.js +0 -199
- data/rails_generators/guilded_assets/templates/jquery-url.min.js +0 -9
- data/rails_generators/guilded_assets/templates/mootools-1.2.3.js +0 -4036
- data/rails_generators/guilded_assets/templates/mootools-1.2.3.min.js +0 -356
- data/rails_generators/guilded_assets/templates/reset-min.css +0 -7
- data/rails_generators/guilded_config/guilded_config_generator.rb +0 -11
- data/rails_generators/guilded_config/templates/guilded_config.rb +0 -16
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/spec/generators/guilded_assets_generator_spec.rb +0 -35
- data/spec/generators/guilded_config_generator_spec.rb +0 -24
- data/spec/guilded/component_def_spec.rb +0 -24
- data/spec/guilded_spec.rb +0 -7
- data/spec/spec.opts +0 -7
- data/tasks/rails.rake +0 -8
- data/tasks/rspec.rake +0 -21
- data/test/guilded/rails/helpers_test.rb +0 -1450
- data/test/test_helper.rb +0 -39
data/test/test_helper.rb
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'test/unit'
|
3
|
-
require 'shoulda'
|
4
|
-
|
5
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
6
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
7
|
-
require 'guilded'
|
8
|
-
|
9
|
-
class Test::Unit::TestCase
|
10
|
-
end
|
11
|
-
|
12
|
-
RAILS_ROOT = ''
|
13
|
-
GUILDED_CONFIG = {
|
14
|
-
:js_path => "#{RAILS_ROOT}/public/javascripts/",
|
15
|
-
:js_folder => "", # from the js_path
|
16
|
-
:jquery_js => "jquery/jquery-1.3.2.min.js", # from the js_path
|
17
|
-
:css_path => "#{RAILS_ROOT}/public/stylesheets/",
|
18
|
-
:css_folder => "guilded/", # from the css_path
|
19
|
-
:reset_css => "reset-min.css", # from the css_path
|
20
|
-
:environment => 'development'
|
21
|
-
}
|
22
|
-
|
23
|
-
class Thing
|
24
|
-
end
|
25
|
-
class Owner
|
26
|
-
end
|
27
|
-
class Parent
|
28
|
-
end
|
29
|
-
class Lookup
|
30
|
-
end
|
31
|
-
|
32
|
-
class View
|
33
|
-
attr_accessor :request
|
34
|
-
|
35
|
-
def initialize
|
36
|
-
@request = Request.new
|
37
|
-
end
|
38
|
-
end
|
39
|
-
View.send( :include, Guilded::Rails::ViewHelpers )
|