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.
Files changed (92) hide show
  1. data/.gitignore +17 -4
  2. data/.rspec +2 -0
  3. data/.rvmrc +1 -1
  4. data/Gemfile +1 -21
  5. data/Guardfile +5 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +21 -0
  8. data/Rakefile +1 -1
  9. data/guilded.gemspec +23 -24
  10. data/lib/{generators/guilded_assets/templates → assets/javascripts}/guilded.js +0 -0
  11. data/lib/assets/javascripts/jquery-1.6.4.js +9046 -0
  12. data/lib/assets/javascripts/jquery-1.6.4.min.js +4 -0
  13. data/lib/assets/javascripts/jquery-1.7.1.js +9266 -0
  14. data/lib/assets/javascripts/jquery-1.7.1.min.js +4 -0
  15. data/lib/assets/javascripts/jquery-1.7.2.js +9404 -0
  16. data/lib/assets/javascripts/jquery-1.7.2.min.js +4 -0
  17. data/lib/assets/javascripts/jquery-1.8.0.js +9227 -0
  18. data/lib/assets/javascripts/jquery-1.8.0.min.js +2 -0
  19. data/lib/assets/javascripts/jquery-1.8.1.js +9301 -0
  20. data/lib/assets/javascripts/jquery-1.8.1.min.js +2 -0
  21. data/lib/assets/javascripts/jquery-1.8.2.js +9440 -0
  22. data/lib/assets/javascripts/jquery-1.8.2.min.js +2 -0
  23. data/lib/assets/javascripts/jquery-1.8.3.js +9472 -0
  24. data/lib/assets/javascripts/jquery-1.8.3.min.js +2 -0
  25. data/lib/assets/javascripts/jquery-1.9.0.js +9555 -0
  26. data/lib/assets/javascripts/jquery-1.9.0.min.js +4 -0
  27. data/lib/assets/javascripts/jquery-1.9.1.js +9597 -0
  28. data/lib/assets/javascripts/jquery-1.9.1.min.js +5 -0
  29. data/lib/guilded.rb +23 -73
  30. data/lib/guilded/component.rb +32 -0
  31. data/lib/guilded/configuration.rb +27 -0
  32. data/lib/guilded/data.rb +25 -0
  33. data/lib/guilded/engine.rb +5 -0
  34. data/lib/guilded/guilder.rb +27 -370
  35. data/lib/guilded/rails.rb +7 -4
  36. data/lib/guilded/rails/controller.rb +23 -0
  37. data/lib/guilded/rails/helpers.rb +1 -3
  38. data/lib/guilded/rails/view_helpers.rb +16 -112
  39. data/lib/guilded/version.rb +1 -1
  40. data/spec/guilded/component_spec.rb +13 -0
  41. data/spec/guilded/configuration_spec.rb +68 -0
  42. data/spec/guilded/data_spec.rb +29 -0
  43. data/spec/guilded/guilder_spec.rb +67 -63
  44. data/spec/guilded/rails/view_helpers_spec.rb +49 -0
  45. data/spec/spec_helper.rb +5 -29
  46. metadata +174 -122
  47. data/Gemfile.lock +0 -61
  48. data/README.rdoc +0 -204
  49. data/lib/generators/guilded_assets/guilded_assets_generator.rb +0 -21
  50. data/lib/generators/guilded_assets/templates/guilded.min.js +0 -1
  51. data/lib/generators/guilded_assets/templates/jquery-1.2.6.js +0 -3549
  52. data/lib/generators/guilded_assets/templates/jquery-1.2.6.min.js +0 -32
  53. data/lib/generators/guilded_assets/templates/jquery-1.3.2.js +0 -4376
  54. data/lib/generators/guilded_assets/templates/jquery-1.3.2.min.js +0 -19
  55. data/lib/generators/guilded_assets/templates/jquery-url.js +0 -199
  56. data/lib/generators/guilded_assets/templates/jquery-url.min.js +0 -9
  57. data/lib/generators/guilded_assets/templates/mootools-1.2.3.js +0 -4036
  58. data/lib/generators/guilded_assets/templates/mootools-1.2.3.min.js +0 -356
  59. data/lib/generators/guilded_assets/templates/reset-min.css +0 -7
  60. data/lib/generators/guilded_config/guilded_config_generator.rb +0 -11
  61. data/lib/generators/guilded_config/templates/guilded_config.rb +0 -16
  62. data/lib/guilded/component_def.rb +0 -27
  63. data/lib/guilded/exceptions.rb +0 -29
  64. data/lib/guilded/rails/active_record/human_attribute_hint.rb +0 -41
  65. data/lib/guilded/rails/controller_actions.rb +0 -22
  66. data/lib/guilded/rails/inactive_record/human_attribute_hint.rb +0 -26
  67. data/rails_generators/guilded_assets/guilded_assets_generator.rb +0 -23
  68. data/rails_generators/guilded_assets/templates/guilded.js +0 -12
  69. data/rails_generators/guilded_assets/templates/guilded.min.js +0 -1
  70. data/rails_generators/guilded_assets/templates/jquery-1.2.6.js +0 -3549
  71. data/rails_generators/guilded_assets/templates/jquery-1.2.6.min.js +0 -32
  72. data/rails_generators/guilded_assets/templates/jquery-1.3.2.js +0 -4376
  73. data/rails_generators/guilded_assets/templates/jquery-1.3.2.min.js +0 -19
  74. data/rails_generators/guilded_assets/templates/jquery-url.js +0 -199
  75. data/rails_generators/guilded_assets/templates/jquery-url.min.js +0 -9
  76. data/rails_generators/guilded_assets/templates/mootools-1.2.3.js +0 -4036
  77. data/rails_generators/guilded_assets/templates/mootools-1.2.3.min.js +0 -356
  78. data/rails_generators/guilded_assets/templates/reset-min.css +0 -7
  79. data/rails_generators/guilded_config/guilded_config_generator.rb +0 -11
  80. data/rails_generators/guilded_config/templates/guilded_config.rb +0 -16
  81. data/script/console +0 -10
  82. data/script/destroy +0 -14
  83. data/script/generate +0 -14
  84. data/spec/generators/guilded_assets_generator_spec.rb +0 -35
  85. data/spec/generators/guilded_config_generator_spec.rb +0 -24
  86. data/spec/guilded/component_def_spec.rb +0 -24
  87. data/spec/guilded_spec.rb +0 -7
  88. data/spec/spec.opts +0 -7
  89. data/tasks/rails.rake +0 -8
  90. data/tasks/rspec.rake +0 -21
  91. data/test/guilded/rails/helpers_test.rb +0 -1450
  92. data/test/test_helper.rb +0 -39
@@ -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 )