hobo 0.7.5 → 0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. data/{hobo_files/plugin/CHANGES.txt → CHANGES.txt} +391 -0
  2. data/Manifest +146 -0
  3. data/{hobo_files/plugin/README → README} +0 -0
  4. data/bin/hobo +13 -26
  5. data/dryml_generators/rapid/cards.dryml.erb +55 -0
  6. data/dryml_generators/rapid/forms.dryml.erb +43 -0
  7. data/dryml_generators/rapid/pages.dryml.erb +284 -0
  8. data/hobo.gemspec +168 -0
  9. data/init.rb +9 -0
  10. data/lib/action_view_extensions/helpers/tag_helper.rb +7 -0
  11. data/lib/active_record/association_collection.rb +54 -0
  12. data/{hobo_files/plugin/lib → lib}/active_record/association_proxy.rb +12 -4
  13. data/{hobo_files/plugin/lib → lib}/active_record/association_reflection.rb +7 -1
  14. data/{hobo_files/plugin/lib → lib}/extensions/test_case.rb +17 -17
  15. data/{hobo_files/plugin/lib → lib}/hobo.rb +193 -100
  16. data/{hobo_files/plugin/lib → lib}/hobo/authentication_support.rb +8 -8
  17. data/{hobo_files/plugin/lib → lib}/hobo/bundle.rb +90 -89
  18. data/{hobo_files/plugin/lib → lib}/hobo/composite_model.rb +21 -21
  19. data/{hobo_files/plugin/lib → lib}/hobo/controller.rb +38 -25
  20. data/{hobo_files/plugin/lib → lib}/hobo/dev_controller.rb +10 -6
  21. data/lib/hobo/dryml.rb +167 -0
  22. data/{hobo_files/plugin/lib → lib}/hobo/dryml/dryml_builder.rb +28 -25
  23. data/lib/hobo/dryml/dryml_generator.rb +210 -0
  24. data/{hobo_files/plugin/lib → lib}/hobo/dryml/dryml_support_controller.rb +1 -1
  25. data/lib/hobo/dryml/parser.rb +3 -0
  26. data/{hobo_files/plugin/lib → lib}/hobo/dryml/parser/attribute.rb +6 -6
  27. data/{hobo_files/plugin/lib → lib}/hobo/dryml/parser/base_parser.rb +16 -16
  28. data/lib/hobo/dryml/parser/document.rb +57 -0
  29. data/{hobo_files/plugin/lib → lib}/hobo/dryml/parser/element.rb +7 -7
  30. data/{hobo_files/plugin/lib → lib}/hobo/dryml/parser/elements.rb +9 -9
  31. data/{hobo_files/plugin/lib → lib}/hobo/dryml/parser/source.rb +3 -3
  32. data/{hobo_files/plugin/lib → lib}/hobo/dryml/parser/text.rb +3 -3
  33. data/{hobo_files/plugin/lib → lib}/hobo/dryml/parser/tree_parser.rb +3 -3
  34. data/{hobo_files/plugin/lib → lib}/hobo/dryml/part_context.rb +26 -26
  35. data/{hobo_files/plugin/lib → lib}/hobo/dryml/scoped_variables.rb +15 -15
  36. data/{hobo_files/plugin/lib → lib}/hobo/dryml/tag_parameters.rb +10 -10
  37. data/{hobo_files/plugin/lib → lib}/hobo/dryml/taglib.rb +43 -37
  38. data/{hobo_files/plugin/lib → lib}/hobo/dryml/template.rb +290 -208
  39. data/{hobo_files/plugin/lib → lib}/hobo/dryml/template_environment.rb +173 -115
  40. data/{hobo_files/plugin/lib → lib}/hobo/dryml/template_handler.rb +19 -24
  41. data/lib/hobo/find_for.rb +95 -0
  42. data/{hobo_files/plugin/lib → lib}/hobo/generator.rb +2 -1
  43. data/{hobo_files/plugin/lib → lib}/hobo/guest.rb +12 -4
  44. data/{hobo_files/plugin/lib → lib}/hobo/hobo_helper.rb +146 -117
  45. data/lib/hobo/include_in_save.rb +43 -0
  46. data/lib/hobo/lifecycles.rb +94 -0
  47. data/lib/hobo/lifecycles/actions.rb +73 -0
  48. data/lib/hobo/lifecycles/creator.rb +76 -0
  49. data/lib/hobo/lifecycles/lifecycle.rb +205 -0
  50. data/lib/hobo/lifecycles/state.rb +23 -0
  51. data/lib/hobo/lifecycles/transition.rb +66 -0
  52. data/{hobo_files/plugin/lib → lib}/hobo/model.rb +306 -217
  53. data/{hobo_files/plugin/lib → lib}/hobo/model_controller.rb +342 -213
  54. data/{hobo_files/plugin/lib → lib}/hobo/model_router.rb +151 -120
  55. data/{hobo_files/plugin/lib → lib}/hobo/model_support.rb +9 -9
  56. data/{hobo_files/plugin/lib → lib}/hobo/rapid_helper.rb +30 -23
  57. data/{hobo_files/plugin/lib → lib}/hobo/scopes.rb +22 -68
  58. data/{hobo_files/plugin/lib → lib}/hobo/scopes/apply_scopes.rb +5 -5
  59. data/lib/hobo/scopes/association_proxy_extensions.rb +47 -0
  60. data/{hobo_files/plugin/lib → lib}/hobo/scopes/automatic_scopes.rb +104 -79
  61. data/lib/hobo/scopes/named_scope_extensions.rb +27 -0
  62. data/{hobo_files/plugin/lib → lib}/hobo/static_tags +1 -11
  63. data/{hobo_files/plugin/lib → lib}/hobo/undefined.rb +1 -1
  64. data/{hobo_files/plugin/lib → lib}/hobo/undefined_access_error.rb +0 -0
  65. data/{hobo_files/plugin/lib → lib}/hobo/user.rb +27 -25
  66. data/{hobo_files/plugin/lib → lib}/hobo/user_controller.rb +80 -34
  67. data/{hobo_files/plugin/generators → rails_generators}/hobo/hobo_generator.rb +7 -7
  68. data/rails_generators/hobo/templates/application.css +0 -0
  69. data/{hobo_files/plugin/generators → rails_generators}/hobo/templates/application.dryml +0 -2
  70. data/{hobo_files/plugin/generators → rails_generators}/hobo/templates/dryml-support.js +0 -0
  71. data/{hobo_files/plugin/generators → rails_generators}/hobo/templates/guest.rb +0 -0
  72. data/rails_generators/hobo/templates/initializer.rb +9 -0
  73. data/{hobo_files/plugin/generators → rails_generators}/hobo_front_controller/USAGE +0 -0
  74. data/{hobo_files/plugin/generators → rails_generators}/hobo_front_controller/hobo_front_controller_generator.rb +1 -3
  75. data/{hobo_files/plugin/generators → rails_generators}/hobo_front_controller/templates/controller.rb +1 -1
  76. data/{hobo_files/plugin/generators → rails_generators}/hobo_front_controller/templates/functional_test.rb +0 -0
  77. data/{hobo_files/plugin/generators → rails_generators}/hobo_front_controller/templates/helper.rb +0 -0
  78. data/rails_generators/hobo_front_controller/templates/index.dryml +25 -0
  79. data/{hobo_files/plugin/generators → rails_generators}/hobo_model/USAGE +0 -0
  80. data/{hobo_files/plugin/generators → rails_generators}/hobo_model/hobo_model_generator.rb +0 -0
  81. data/{hobo_files/plugin/generators → rails_generators}/hobo_model/templates/fixtures.yml +0 -0
  82. data/{hobo_files/plugin/generators → rails_generators}/hobo_model/templates/model.rb +0 -0
  83. data/{hobo_files/plugin/generators → rails_generators}/hobo_model/templates/unit_test.rb +0 -0
  84. data/{hobo_files/plugin/generators → rails_generators}/hobo_model_controller/USAGE +0 -0
  85. data/{hobo_files/plugin/generators → rails_generators}/hobo_model_controller/hobo_model_controller_generator.rb +0 -7
  86. data/{hobo_files/plugin/generators → rails_generators}/hobo_model_controller/templates/controller.rb +0 -0
  87. data/{hobo_files/plugin/generators → rails_generators}/hobo_model_controller/templates/functional_test.rb +0 -0
  88. data/{hobo_files/plugin/generators → rails_generators}/hobo_model_controller/templates/helper.rb +0 -0
  89. data/{hobo_files/plugin/generators → rails_generators}/hobo_model_resource/hobo_model_resource_generator.rb +0 -0
  90. data/{hobo_files/plugin/generators → rails_generators}/hobo_model_resource/templates/controller.rb +0 -0
  91. data/{hobo_files/plugin/generators → rails_generators}/hobo_model_resource/templates/functional_test.rb +0 -0
  92. data/{hobo_files/plugin/generators → rails_generators}/hobo_model_resource/templates/helper.rb +0 -0
  93. data/{hobo_files/plugin/generators → rails_generators}/hobo_rapid/hobo_rapid_generator.rb +21 -11
  94. data/{hobo_files/plugin/generators → rails_generators}/hobo_rapid/templates/IE7.js +1 -1
  95. data/rails_generators/hobo_rapid/templates/blank.gif +0 -0
  96. data/{hobo_files/plugin/generators → rails_generators}/hobo_rapid/templates/hobo-rapid.css +0 -0
  97. data/{hobo_files/plugin/generators → rails_generators}/hobo_rapid/templates/hobo-rapid.js +175 -104
  98. data/{hobo_files/plugin/generators → rails_generators}/hobo_rapid/templates/lowpro.js +0 -0
  99. data/rails_generators/hobo_rapid/templates/nicEditorIcons.gif +0 -0
  100. data/rails_generators/hobo_rapid/templates/nicedit.js +91 -0
  101. data/{hobo_files/plugin/generators → rails_generators}/hobo_rapid/templates/reset.css +0 -0
  102. data/{hobo_files/plugin/generators → rails_generators}/hobo_rapid/templates/themes/clean/public/images/fieldbg.gif +0 -0
  103. data/{hobo_files/plugin/generators → rails_generators}/hobo_rapid/templates/themes/clean/public/images/pencil.png +0 -0
  104. data/{hobo_files/plugin/generators → rails_generators}/hobo_rapid/templates/themes/clean/public/images/small_close.png +0 -0
  105. data/{hobo_files/plugin/generators → rails_generators}/hobo_rapid/templates/themes/clean/public/images/spinner.gif +0 -0
  106. data/{hobo_files/plugin/generators → rails_generators}/hobo_rapid/templates/themes/clean/public/stylesheets/clean.css +80 -71
  107. data/{hobo_files/plugin/generators → rails_generators}/hobo_rapid/templates/themes/clean/public/stylesheets/rapid-ui.css +6 -1
  108. data/{hobo_files/plugin/generators → rails_generators}/hobo_rapid/templates/themes/clean/views/clean.dryml +4 -4
  109. data/rails_generators/hobo_subsite/hobo_subsite_generator.rb +73 -0
  110. data/rails_generators/hobo_subsite/templates/application.dryml +1 -0
  111. data/rails_generators/hobo_subsite/templates/controller.rb +5 -0
  112. data/rails_generators/hobo_subsite/templates/site_taglib.dryml +13 -0
  113. data/{hobo_files/plugin/generators → rails_generators}/hobo_user_controller/USAGE +0 -0
  114. data/{hobo_files/plugin/generators → rails_generators}/hobo_user_controller/hobo_user_controller_generator.rb +0 -0
  115. data/{hobo_files/plugin/generators → rails_generators}/hobo_user_controller/templates/controller.rb +0 -0
  116. data/{hobo_files/plugin/generators → rails_generators}/hobo_user_controller/templates/functional_test.rb +0 -0
  117. data/{hobo_files/plugin/generators → rails_generators}/hobo_user_controller/templates/helper.rb +0 -0
  118. data/{hobo_files/plugin/generators → rails_generators}/hobo_user_model/USAGE +0 -0
  119. data/rails_generators/hobo_user_model/hobo_user_model_generator.rb +30 -0
  120. data/{hobo_files/plugin/generators → rails_generators}/hobo_user_model/templates/fixtures.yml +0 -0
  121. data/rails_generators/hobo_user_model/templates/forgot_password.erb +10 -0
  122. data/rails_generators/hobo_user_model/templates/mailer.rb +14 -0
  123. data/rails_generators/hobo_user_model/templates/model.rb +55 -0
  124. data/{hobo_files/plugin/generators → rails_generators}/hobo_user_model/templates/unit_test.rb +0 -0
  125. data/script/destroy +14 -0
  126. data/script/generate +14 -0
  127. data/{hobo_files/plugin/taglibs → taglibs}/core.dryml +6 -7
  128. data/{hobo_files/plugin/taglibs → taglibs}/rapid.dryml +36 -67
  129. data/{hobo_files/plugin/taglibs → taglibs}/rapid_document_tags.dryml +7 -24
  130. data/{hobo_files/plugin/taglibs → taglibs}/rapid_editing.dryml +51 -50
  131. data/{hobo_files/plugin/taglibs → taglibs}/rapid_forms.dryml +62 -56
  132. data/taglibs/rapid_generics.dryml +33 -0
  133. data/taglibs/rapid_lifecycles.dryml +43 -0
  134. data/{hobo_files/plugin/taglibs → taglibs}/rapid_navigation.dryml +23 -23
  135. data/taglibs/rapid_pages.dryml +183 -0
  136. data/{hobo_files/plugin/taglibs → taglibs}/rapid_plus.dryml +30 -5
  137. data/{hobo_files/plugin/taglibs → taglibs}/rapid_support.dryml +3 -4
  138. data/taglibs/rapid_user_pages.dryml +179 -0
  139. data/{hobo_files/plugin/tasks → tasks}/environments.rake +0 -0
  140. data/{hobo_files/plugin/tasks → tasks}/fix_dryml.rake +0 -0
  141. data/{hobo_files/plugin/tasks → tasks}/generate_tag_reference.rb +21 -22
  142. data/tasks/hobo_tasks.rake +32 -0
  143. data/test/test_generator_helper.rb +29 -0
  144. data/test/test_helper.rb +1 -0
  145. data/test/test_hobo_model_controller_generator.rb +56 -0
  146. data/{hobo_files/plugin/uninstall.rb → uninstall.rb} +0 -0
  147. metadata +240 -225
  148. data/README.txt +0 -18
  149. data/hobo_files/plugin/LICENSE.txt +0 -22
  150. data/hobo_files/plugin/Rakefile +0 -96
  151. data/hobo_files/plugin/generators/hobo_front_controller/templates/index.dryml +0 -24
  152. data/hobo_files/plugin/generators/hobo_front_controller/templates/search.dryml +0 -19
  153. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/banner.gif +0 -0
  154. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-bodytop.gif +0 -0
  155. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-corner-01.gif +0 -0
  156. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-corner-02.gif +0 -0
  157. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-corner-03.gif +0 -0
  158. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-corner-04.gif +0 -0
  159. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-shadow-bottom.gif +0 -0
  160. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-shadow-left.gif +0 -0
  161. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-shadow-right.gif +0 -0
  162. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-shadow-top.gif +0 -0
  163. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/header-blue.gif +0 -0
  164. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/header-dblue.gif +0 -0
  165. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/header-green.gif +0 -0
  166. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/header-purple.gif +0 -0
  167. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/header-red.gif +0 -0
  168. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/logo.gif +0 -0
  169. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/plus.png +0 -0
  170. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/spinner.gif +0 -0
  171. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/txt-list-img-dblue.gif +0 -0
  172. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/txt-list-img-green.gif +0 -0
  173. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/txt-list-img-purple.gif +0 -0
  174. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/txt-list-img-red.gif +0 -0
  175. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-corner-01.gif +0 -0
  176. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-corner-02.gif +0 -0
  177. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-corner-03.gif +0 -0
  178. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-corner-04.gif +0 -0
  179. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-shadow-bottom.gif +0 -0
  180. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-shadow-left.gif +0 -0
  181. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-shadow-right.gif +0 -0
  182. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-shadow-top.gif +0 -0
  183. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/stylesheets/application.css +0 -400
  184. data/hobo_files/plugin/generators/hobo_rapid/templates/themes/default/views/application.dryml +0 -96
  185. data/hobo_files/plugin/generators/hobo_user_model/hobo_user_model_generator.rb +0 -25
  186. data/hobo_files/plugin/generators/hobo_user_model/templates/model.rb +0 -56
  187. data/hobo_files/plugin/init.rb +0 -101
  188. data/hobo_files/plugin/lib/action_view_extensions/base.rb +0 -15
  189. data/hobo_files/plugin/lib/active_record/has_many_association.rb +0 -55
  190. data/hobo_files/plugin/lib/active_record/has_many_through_association.rb +0 -20
  191. data/hobo_files/plugin/lib/hobo/dryml.rb +0 -165
  192. data/hobo_files/plugin/lib/hobo/dryml/parser/document.rb +0 -53
  193. data/hobo_files/plugin/lib/hobo/scopes/association_proxy_extensions.rb +0 -33
  194. data/hobo_files/plugin/lib/hobo/scopes/defined_scope_proxy_extender.rb +0 -90
  195. data/hobo_files/plugin/lib/hobo/scopes/scope_reflection.rb +0 -18
  196. data/hobo_files/plugin/lib/hobo/scopes/scoped_proxy.rb +0 -55
  197. data/hobo_files/plugin/taglib-docs/core.markdown +0 -165
  198. data/hobo_files/plugin/taglib-docs/rapid.markdown +0 -677
  199. data/hobo_files/plugin/taglib-docs/rapid_document_tags.markdown +0 -240
  200. data/hobo_files/plugin/taglib-docs/rapid_editing.markdown +0 -418
  201. data/hobo_files/plugin/taglib-docs/rapid_forms.markdown +0 -562
  202. data/hobo_files/plugin/taglib-docs/rapid_generics.markdown +0 -187
  203. data/hobo_files/plugin/taglib-docs/rapid_navigation.markdown +0 -214
  204. data/hobo_files/plugin/taglib-docs/rapid_pages.markdown +0 -530
  205. data/hobo_files/plugin/taglib-docs/rapid_plus.markdown +0 -65
  206. data/hobo_files/plugin/taglib-docs/rapid_support.markdown +0 -50
  207. data/hobo_files/plugin/taglib-docs/rapid_user_pages.markdown +0 -129
  208. data/hobo_files/plugin/taglibs/rapid_generics.dryml +0 -117
  209. data/hobo_files/plugin/taglibs/rapid_pages.dryml +0 -359
  210. data/hobo_files/plugin/taglibs/rapid_user_pages.dryml +0 -104
  211. data/hobo_files/plugin/tasks/dump_fixtures.rake +0 -70
  212. data/hobo_files/plugin/tasks/hobo_tasks.rake +0 -17
@@ -5,9 +5,6 @@ Dependencies.load_paths << File.dirname(__FILE__) + "/../lib"
5
5
  require 'rexml/xpath'
6
6
  XPath = REXML::XPath
7
7
 
8
- require 'maruku'
9
-
10
-
11
8
  def tag_title(tag, link=false)
12
9
  if tag.is_a? String
13
10
  name = tag
@@ -17,9 +14,9 @@ def tag_title(tag, link=false)
17
14
  name = tag.attributes['tag']
18
15
  anchor = tag_anchor(tag)
19
16
  end
20
-
17
+
21
18
  title = "&lt;#{name}#{for_decl}&gt;"
22
-
19
+
23
20
  if link
24
21
  "[#{title}](##{anchor})"
25
22
  else
@@ -36,7 +33,7 @@ end
36
33
  def tag_anchor(element)
37
34
  for_attr = element.attributes['for']
38
35
  name = element.attributes['tag']
39
-
36
+
40
37
  if for_attr
41
38
  "#{name}--for-#{for_attr}"
42
39
  else
@@ -46,17 +43,17 @@ end
46
43
 
47
44
 
48
45
  def comment_for_tag(element)
49
- space = element.previous_sibling and
46
+ space = element.previous_sibling and
50
47
  space.to_s.blank? && space.to_s.count("\n") == 1 and
51
48
  comment = space.previous_sibling
52
-
49
+
53
50
  comment.to_s.strip if comment.is_a?(REXML::Comment)
54
51
  end
55
52
 
56
53
 
57
54
  def doc_for_tag(tagdef)
58
55
  comment = comment_for_tag(tagdef)
59
-
56
+
60
57
  params_merged_with = XPath.first(tagdef, ".//*[@merge|@merge-params]")._?.name
61
58
  params_merged_with &&= "(merged with #{link_to_tag params_merged_with})"
62
59
 
@@ -65,7 +62,7 @@ def doc_for_tag(tagdef)
65
62
 
66
63
  attrs = tagdef.attributes['attrs'] || []
67
64
  attrs = attrs.split(/,\s*/).where_not.blank?.map { |a| " * #{a}\n" }.join
68
-
65
+
69
66
  parameters = params_to_list(get_parameters(tagdef))
70
67
  <<-END
71
68
  ---
@@ -112,7 +109,7 @@ def params_to_list(params, indent=" ")
112
109
  sub_list = params_to_list(sub_params, indent + ' ') unless sub_params.empty?
113
110
  "<li>#{entry}\n#{sub_list}</li>\n"
114
111
  end.join
115
-
112
+
116
113
  items.any? ? "<ul>#{items}</ul>" : ""
117
114
  end
118
115
 
@@ -124,8 +121,8 @@ end
124
121
 
125
122
 
126
123
  def doc_for_taglib(title, root)
127
- tags = XPath.match(root, '/*/def').map { |e| doc_for_tag(e) }.join("\n\n")
128
-
124
+ tags = XPath.match(root, '/*/def').map { |e| doc_for_tag(e) }.join("\n\n")
125
+
129
126
  "# #{title}\n\n" + contents(root) + "\n\n" + tags
130
127
  end
131
128
 
@@ -133,30 +130,32 @@ namespace :hobo do
133
130
 
134
131
  desc "Generate markdown formatted reference docs automatically from DRYML taglibs"
135
132
  task :generate_tag_reference do
136
-
133
+ gem 'maruku'
134
+ require 'maruku'
135
+
137
136
  src = ENV['src']
138
-
137
+
139
138
  output_dir = ENV['output'] || "taglib-docs"
140
139
  raise RuntimeError, "#{output_dir} is not a directory" if File.exists?(output_dir) && !File.directory?(output_dir)
141
-
140
+
142
141
  FileUtils.mkdir output_dir unless File.exists? output_dir
143
-
142
+
144
143
  dryml_files = File.directory?(src) ? Dir["#{src}/*"] : [src]
145
-
144
+
146
145
  dryml_files.each do |f|
147
146
  basename = File.basename(f).sub(/\.dryml$/, '')
148
147
  title = basename.titleize
149
148
 
150
149
  doc = Hobo::Dryml::Parser::Document.new(File.read(f), f)
151
-
150
+
152
151
  markdown = doc_for_taglib(title, doc)
153
152
  #html = Maruku.new(markdown).to_html
154
-
153
+
155
154
  output_file = "#{output_dir}/#{basename}.markdown"
156
155
  puts output_file
157
156
  File.open(output_file, 'w') { |f| f.write(markdown) }
158
157
  end
159
158
  end
160
-
159
+
161
160
  end
162
-
161
+
@@ -0,0 +1,32 @@
1
+
2
+ namespace :hobo do
3
+
4
+ desc "Replace commonly used hobo assets with symlinks into the plugin so that they stay up to date"
5
+ task :symlink_assets => :environment do
6
+
7
+ path_to_generators = HOBO_ROOT.match(%r(vendor/plugins/.*$))[0] + "/rails_generators"
8
+
9
+ Dir.chdir("#{RAILS_ROOT}/public") do
10
+ Dir.chdir("javascripts") do
11
+ puts "hobo-rapid.js"
12
+ `rm -f hobo-rapid.js`
13
+ `ln -s ../../#{path_to_generators}/hobo_rapid/templates/hobo-rapid.js`
14
+ end
15
+
16
+ Dir.chdir("hobothemes") do
17
+ puts "public/hobothemes/clean"
18
+ `rm -rf clean`
19
+ `ln -s ../../#{path_to_generators}/hobo_rapid/templates/themes/clean/public clean`
20
+ end
21
+ end
22
+
23
+ Dir.chdir("#{RAILS_ROOT}/app/views/taglibs/themes") do
24
+ puts 'taglibs/themes/clean'
25
+ `rm -rf clean`
26
+ `ln -s ../../../../#{path_to_generators}/hobo_rapid/templates/themes/clean/views clean`
27
+ end
28
+
29
+ end
30
+
31
+ end
32
+
@@ -0,0 +1,29 @@
1
+ begin
2
+ require File.dirname(__FILE__) + '/test_helper'
3
+ rescue LoadError
4
+ require 'test/unit'
5
+ end
6
+ require 'fileutils'
7
+
8
+ # Must set before requiring generator libs.
9
+ TMP_ROOT = File.dirname(__FILE__) + "/tmp" unless defined?(TMP_ROOT)
10
+ PROJECT_NAME = "myproject" unless defined?(PROJECT_NAME)
11
+ app_root = File.join(TMP_ROOT, PROJECT_NAME)
12
+ if defined?(APP_ROOT)
13
+ APP_ROOT.replace(app_root)
14
+ else
15
+ APP_ROOT = app_root
16
+ end
17
+ if defined?(RAILS_ROOT)
18
+ RAILS_ROOT.replace(app_root)
19
+ else
20
+ RAILS_ROOT = app_root
21
+ end
22
+
23
+ begin
24
+ require 'rubigen'
25
+ rescue LoadError
26
+ require 'rubygems'
27
+ require 'rubigen'
28
+ end
29
+ require 'rubigen/helpers/generator_test_helper'
@@ -0,0 +1 @@
1
+ require 'test/unit'
@@ -0,0 +1,56 @@
1
+ require File.join(File.dirname(__FILE__), "test_generator_helper.rb")
2
+
3
+ #require 'rails_generator'
4
+
5
+ class TestHoboModelControllerGenerator < Test::Unit::TestCase
6
+ include RubiGen::GeneratorTestHelper
7
+
8
+ def setup
9
+ bare_setup
10
+ end
11
+
12
+ def teardown
13
+ bare_teardown
14
+ end
15
+
16
+ # Some generator-related assertions:
17
+ # assert_generated_file(name, &block) # block passed the file contents
18
+ # assert_directory_exists(name)
19
+ # assert_generated_class(name, &block)
20
+ # assert_generated_module(name, &block)
21
+ # assert_generated_test_for(name, &block)
22
+ # The assert_generated_(class|module|test_for) &block is passed the body of the class/module within the file
23
+ # assert_has_method(body, *methods) # check that the body has a list of methods (methods with parentheses not supported yet)
24
+ #
25
+ # Other helper methods are:
26
+ # app_root_files - put this in teardown to show files generated by the test method (e.g. p app_root_files)
27
+ # bare_setup - place this in setup method to create the APP_ROOT folder for each test
28
+ # bare_teardown - place this in teardown method to destroy the TMP_ROOT or APP_ROOT folder after each test
29
+
30
+ def test_generator_without_options
31
+ # DISBALED!
32
+ return
33
+
34
+ name = "MyModel"
35
+ run_generator('hobo_model_controller', [name], sources)
36
+ assert_directory_exists 'app/controllers'
37
+ assert_directory_exists 'app/helpers'
38
+ assert_directory_exists 'app/views'
39
+ assert_directory_exists 'test/functional'
40
+
41
+ assert_generated_file 'app/controllers/my_models_controller.rb'
42
+ assert_generated_class 'app/controllers/my_models_controller'
43
+ assert_generated_file 'app/helpers/my_models_helper.rb'
44
+ assert_generated_file 'test/functional/my_models_controller_test.rb'
45
+ end
46
+
47
+ private
48
+ def sources
49
+ [RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__),"..", generator_path))
50
+ ]
51
+ end
52
+
53
+ def generator_path
54
+ "rails_generators"
55
+ end
56
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: "0.8"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Locke
@@ -9,38 +9,42 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-18 00:00:00 +01:00
12
+ date: 2008-09-03 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rails
16
+ name: hobosupport
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
20
21
  - - ">="
21
22
  - !ruby/object:Gem::Version
22
- version: 2.0.2
23
+ version: "0.8"
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
- name: hobosupport
26
+ name: hobofields
27
+ type: :runtime
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
29
31
  - - ">="
30
32
  - !ruby/object:Gem::Version
31
- version: 0.7.5
33
+ version: "0.8"
32
34
  version:
33
35
  - !ruby/object:Gem::Dependency
34
- name: hobofields
36
+ name: rails
37
+ type: :runtime
35
38
  version_requirement:
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - ">="
41
+ - - "="
39
42
  - !ruby/object:Gem::Version
40
- version: 0.7.5
43
+ version: "2.1"
41
44
  version:
42
45
  - !ruby/object:Gem::Dependency
43
- name: will_paginate
46
+ name: mislav-will_paginate
47
+ type: :runtime
44
48
  version_requirement:
45
49
  version_requirements: !ruby/object:Gem::Requirement
46
50
  requirements:
@@ -48,226 +52,235 @@ dependencies:
48
52
  - !ruby/object:Gem::Version
49
53
  version: 2.2.1
50
54
  version:
51
- description:
52
- email: tom@hobocentral.net
55
+ description: The web app builder for Rails
56
+ email: tom@tomlocke.com
53
57
  executables:
54
58
  - hobo
55
59
  extensions: []
56
60
 
57
- extra_rdoc_files: []
58
-
61
+ extra_rdoc_files:
62
+ - bin/hobo
63
+ - lib/action_view_extensions/helpers/tag_helper.rb
64
+ - lib/active_record/association_collection.rb
65
+ - lib/active_record/association_proxy.rb
66
+ - lib/active_record/association_reflection.rb
67
+ - lib/extensions/test_case.rb
68
+ - lib/hobo/authentication_support.rb
69
+ - lib/hobo/bundle.rb
70
+ - lib/hobo/composite_model.rb
71
+ - lib/hobo/controller.rb
72
+ - lib/hobo/dev_controller.rb
73
+ - lib/hobo/dryml/dryml_builder.rb
74
+ - lib/hobo/dryml/dryml_generator.rb
75
+ - lib/hobo/dryml/dryml_support_controller.rb
76
+ - lib/hobo/dryml/parser/attribute.rb
77
+ - lib/hobo/dryml/parser/base_parser.rb
78
+ - lib/hobo/dryml/parser/document.rb
79
+ - lib/hobo/dryml/parser/element.rb
80
+ - lib/hobo/dryml/parser/elements.rb
81
+ - lib/hobo/dryml/parser/source.rb
82
+ - lib/hobo/dryml/parser/text.rb
83
+ - lib/hobo/dryml/parser/tree_parser.rb
84
+ - lib/hobo/dryml/parser.rb
85
+ - lib/hobo/dryml/part_context.rb
86
+ - lib/hobo/dryml/scoped_variables.rb
87
+ - lib/hobo/dryml/tag_parameters.rb
88
+ - lib/hobo/dryml/taglib.rb
89
+ - lib/hobo/dryml/template.rb
90
+ - lib/hobo/dryml/template_environment.rb
91
+ - lib/hobo/dryml/template_handler.rb
92
+ - lib/hobo/dryml.rb
93
+ - lib/hobo/find_for.rb
94
+ - lib/hobo/generator.rb
95
+ - lib/hobo/guest.rb
96
+ - lib/hobo/hobo_helper.rb
97
+ - lib/hobo/include_in_save.rb
98
+ - lib/hobo/lifecycles/actions.rb
99
+ - lib/hobo/lifecycles/creator.rb
100
+ - lib/hobo/lifecycles/lifecycle.rb
101
+ - lib/hobo/lifecycles/state.rb
102
+ - lib/hobo/lifecycles/transition.rb
103
+ - lib/hobo/lifecycles.rb
104
+ - lib/hobo/model.rb
105
+ - lib/hobo/model_controller.rb
106
+ - lib/hobo/model_router.rb
107
+ - lib/hobo/model_support.rb
108
+ - lib/hobo/rapid_helper.rb
109
+ - lib/hobo/scopes/apply_scopes.rb
110
+ - lib/hobo/scopes/association_proxy_extensions.rb
111
+ - lib/hobo/scopes/automatic_scopes.rb
112
+ - lib/hobo/scopes/named_scope_extensions.rb
113
+ - lib/hobo/scopes.rb
114
+ - lib/hobo/static_tags
115
+ - lib/hobo/undefined.rb
116
+ - lib/hobo/undefined_access_error.rb
117
+ - lib/hobo/user.rb
118
+ - lib/hobo/user_controller.rb
119
+ - lib/hobo.rb
120
+ - LICENSE.txt
121
+ - README
122
+ - tasks/environments.rake
123
+ - tasks/fix_dryml.rake
124
+ - tasks/generate_tag_reference.rb
125
+ - tasks/hobo_tasks.rake
59
126
  files:
60
- - hobo_files/plugin
61
- - hobo_files/plugin/CHANGES.txt
62
- - hobo_files/plugin/generators
63
- - hobo_files/plugin/generators/hobo
64
- - hobo_files/plugin/generators/hobo/hobo_generator.rb
65
- - hobo_files/plugin/generators/hobo/templates
66
- - hobo_files/plugin/generators/hobo/templates/application.dryml
67
- - hobo_files/plugin/generators/hobo/templates/dryml-support.js
68
- - hobo_files/plugin/generators/hobo/templates/guest.rb
69
- - hobo_files/plugin/generators/hobo_front_controller
70
- - hobo_files/plugin/generators/hobo_front_controller/hobo_front_controller_generator.rb
71
- - hobo_files/plugin/generators/hobo_front_controller/templates
72
- - hobo_files/plugin/generators/hobo_front_controller/templates/controller.rb
73
- - hobo_files/plugin/generators/hobo_front_controller/templates/functional_test.rb
74
- - hobo_files/plugin/generators/hobo_front_controller/templates/helper.rb
75
- - hobo_files/plugin/generators/hobo_front_controller/templates/index.dryml
76
- - hobo_files/plugin/generators/hobo_front_controller/templates/search.dryml
77
- - hobo_files/plugin/generators/hobo_front_controller/USAGE
78
- - hobo_files/plugin/generators/hobo_model
79
- - hobo_files/plugin/generators/hobo_model/hobo_model_generator.rb
80
- - hobo_files/plugin/generators/hobo_model/templates
81
- - hobo_files/plugin/generators/hobo_model/templates/fixtures.yml
82
- - hobo_files/plugin/generators/hobo_model/templates/model.rb
83
- - hobo_files/plugin/generators/hobo_model/templates/unit_test.rb
84
- - hobo_files/plugin/generators/hobo_model/USAGE
85
- - hobo_files/plugin/generators/hobo_model_controller
86
- - hobo_files/plugin/generators/hobo_model_controller/hobo_model_controller_generator.rb
87
- - hobo_files/plugin/generators/hobo_model_controller/templates
88
- - hobo_files/plugin/generators/hobo_model_controller/templates/controller.rb
89
- - hobo_files/plugin/generators/hobo_model_controller/templates/functional_test.rb
90
- - hobo_files/plugin/generators/hobo_model_controller/templates/helper.rb
91
- - hobo_files/plugin/generators/hobo_model_controller/USAGE
92
- - hobo_files/plugin/generators/hobo_model_resource
93
- - hobo_files/plugin/generators/hobo_model_resource/hobo_model_resource_generator.rb
94
- - hobo_files/plugin/generators/hobo_model_resource/templates
95
- - hobo_files/plugin/generators/hobo_model_resource/templates/controller.rb
96
- - hobo_files/plugin/generators/hobo_model_resource/templates/functional_test.rb
97
- - hobo_files/plugin/generators/hobo_model_resource/templates/helper.rb
98
- - hobo_files/plugin/generators/hobo_rapid
99
- - hobo_files/plugin/generators/hobo_rapid/hobo_rapid_generator.rb
100
- - hobo_files/plugin/generators/hobo_rapid/templates
101
- - hobo_files/plugin/generators/hobo_rapid/templates/hobo-rapid.css
102
- - hobo_files/plugin/generators/hobo_rapid/templates/hobo-rapid.js
103
- - hobo_files/plugin/generators/hobo_rapid/templates/IE7.js
104
- - hobo_files/plugin/generators/hobo_rapid/templates/lowpro.js
105
- - hobo_files/plugin/generators/hobo_rapid/templates/reset.css
106
- - hobo_files/plugin/generators/hobo_rapid/templates/themes
107
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/clean
108
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/clean/public
109
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/clean/public/images
110
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/clean/public/images/fieldbg.gif
111
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/clean/public/images/pencil.png
112
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/clean/public/images/small_close.png
113
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/clean/public/images/spinner.gif
114
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/clean/public/stylesheets
115
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/clean/public/stylesheets/clean.css
116
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/clean/public/stylesheets/rapid-ui.css
117
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/clean/views
118
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/clean/views/clean.dryml
119
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default
120
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public
121
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images
122
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/banner.gif
123
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-bodytop.gif
124
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-corner-01.gif
125
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-corner-02.gif
126
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-corner-03.gif
127
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-corner-04.gif
128
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-shadow-bottom.gif
129
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-shadow-left.gif
130
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-shadow-right.gif
131
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/bkg-shadow-top.gif
132
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/header-blue.gif
133
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/header-dblue.gif
134
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/header-green.gif
135
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/header-purple.gif
136
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/header-red.gif
137
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/logo.gif
138
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/plus.png
139
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/spinner.gif
140
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/txt-list-img-dblue.gif
141
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/txt-list-img-green.gif
142
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/txt-list-img-purple.gif
143
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/txt-list-img-red.gif
144
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-corner-01.gif
145
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-corner-02.gif
146
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-corner-03.gif
147
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-corner-04.gif
148
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-shadow-bottom.gif
149
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-shadow-left.gif
150
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-shadow-right.gif
151
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/images/window-shadow-top.gif
152
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/stylesheets
153
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/public/stylesheets/application.css
154
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/views
155
- - hobo_files/plugin/generators/hobo_rapid/templates/themes/default/views/application.dryml
156
- - hobo_files/plugin/generators/hobo_user_controller
157
- - hobo_files/plugin/generators/hobo_user_controller/hobo_user_controller_generator.rb
158
- - hobo_files/plugin/generators/hobo_user_controller/templates
159
- - hobo_files/plugin/generators/hobo_user_controller/templates/controller.rb
160
- - hobo_files/plugin/generators/hobo_user_controller/templates/functional_test.rb
161
- - hobo_files/plugin/generators/hobo_user_controller/templates/helper.rb
162
- - hobo_files/plugin/generators/hobo_user_controller/USAGE
163
- - hobo_files/plugin/generators/hobo_user_model
164
- - hobo_files/plugin/generators/hobo_user_model/hobo_user_model_generator.rb
165
- - hobo_files/plugin/generators/hobo_user_model/templates
166
- - hobo_files/plugin/generators/hobo_user_model/templates/fixtures.yml
167
- - hobo_files/plugin/generators/hobo_user_model/templates/model.rb
168
- - hobo_files/plugin/generators/hobo_user_model/templates/unit_test.rb
169
- - hobo_files/plugin/generators/hobo_user_model/USAGE
170
- - hobo_files/plugin/init.rb
171
- - hobo_files/plugin/lib
172
- - hobo_files/plugin/lib/action_view_extensions
173
- - hobo_files/plugin/lib/action_view_extensions/base.rb
174
- - hobo_files/plugin/lib/active_record
175
- - hobo_files/plugin/lib/active_record/association_proxy.rb
176
- - hobo_files/plugin/lib/active_record/association_reflection.rb
177
- - hobo_files/plugin/lib/active_record/has_many_association.rb
178
- - hobo_files/plugin/lib/active_record/has_many_through_association.rb
179
- - hobo_files/plugin/lib/extensions
180
- - hobo_files/plugin/lib/extensions/test_case.rb
181
- - hobo_files/plugin/lib/hobo
182
- - hobo_files/plugin/lib/hobo/authentication_support.rb
183
- - hobo_files/plugin/lib/hobo/bundle.rb
184
- - hobo_files/plugin/lib/hobo/composite_model.rb
185
- - hobo_files/plugin/lib/hobo/controller.rb
186
- - hobo_files/plugin/lib/hobo/dev_controller.rb
187
- - hobo_files/plugin/lib/hobo/dryml
188
- - hobo_files/plugin/lib/hobo/dryml/dryml_builder.rb
189
- - hobo_files/plugin/lib/hobo/dryml/dryml_support_controller.rb
190
- - hobo_files/plugin/lib/hobo/dryml/parser
191
- - hobo_files/plugin/lib/hobo/dryml/parser/attribute.rb
192
- - hobo_files/plugin/lib/hobo/dryml/parser/base_parser.rb
193
- - hobo_files/plugin/lib/hobo/dryml/parser/document.rb
194
- - hobo_files/plugin/lib/hobo/dryml/parser/element.rb
195
- - hobo_files/plugin/lib/hobo/dryml/parser/elements.rb
196
- - hobo_files/plugin/lib/hobo/dryml/parser/source.rb
197
- - hobo_files/plugin/lib/hobo/dryml/parser/text.rb
198
- - hobo_files/plugin/lib/hobo/dryml/parser/tree_parser.rb
199
- - hobo_files/plugin/lib/hobo/dryml/part_context.rb
200
- - hobo_files/plugin/lib/hobo/dryml/scoped_variables.rb
201
- - hobo_files/plugin/lib/hobo/dryml/tag_parameters.rb
202
- - hobo_files/plugin/lib/hobo/dryml/taglib.rb
203
- - hobo_files/plugin/lib/hobo/dryml/template.rb
204
- - hobo_files/plugin/lib/hobo/dryml/template_environment.rb
205
- - hobo_files/plugin/lib/hobo/dryml/template_handler.rb
206
- - hobo_files/plugin/lib/hobo/dryml.rb
207
- - hobo_files/plugin/lib/hobo/generator.rb
208
- - hobo_files/plugin/lib/hobo/guest.rb
209
- - hobo_files/plugin/lib/hobo/hobo_helper.rb
210
- - hobo_files/plugin/lib/hobo/model.rb
211
- - hobo_files/plugin/lib/hobo/model_controller.rb
212
- - hobo_files/plugin/lib/hobo/model_router.rb
213
- - hobo_files/plugin/lib/hobo/model_support.rb
214
- - hobo_files/plugin/lib/hobo/rapid_helper.rb
215
- - hobo_files/plugin/lib/hobo/scopes
216
- - hobo_files/plugin/lib/hobo/scopes/apply_scopes.rb
217
- - hobo_files/plugin/lib/hobo/scopes/association_proxy_extensions.rb
218
- - hobo_files/plugin/lib/hobo/scopes/automatic_scopes.rb
219
- - hobo_files/plugin/lib/hobo/scopes/defined_scope_proxy_extender.rb
220
- - hobo_files/plugin/lib/hobo/scopes/scope_reflection.rb
221
- - hobo_files/plugin/lib/hobo/scopes/scoped_proxy.rb
222
- - hobo_files/plugin/lib/hobo/scopes.rb
223
- - hobo_files/plugin/lib/hobo/static_tags
224
- - hobo_files/plugin/lib/hobo/undefined.rb
225
- - hobo_files/plugin/lib/hobo/undefined_access_error.rb
226
- - hobo_files/plugin/lib/hobo/user.rb
227
- - hobo_files/plugin/lib/hobo/user_controller.rb
228
- - hobo_files/plugin/lib/hobo.rb
229
- - hobo_files/plugin/LICENSE.txt
230
- - hobo_files/plugin/Rakefile
231
- - hobo_files/plugin/README
232
- - hobo_files/plugin/taglib-docs
233
- - hobo_files/plugin/taglib-docs/core.markdown
234
- - hobo_files/plugin/taglib-docs/rapid.markdown
235
- - hobo_files/plugin/taglib-docs/rapid_document_tags.markdown
236
- - hobo_files/plugin/taglib-docs/rapid_editing.markdown
237
- - hobo_files/plugin/taglib-docs/rapid_forms.markdown
238
- - hobo_files/plugin/taglib-docs/rapid_generics.markdown
239
- - hobo_files/plugin/taglib-docs/rapid_navigation.markdown
240
- - hobo_files/plugin/taglib-docs/rapid_pages.markdown
241
- - hobo_files/plugin/taglib-docs/rapid_plus.markdown
242
- - hobo_files/plugin/taglib-docs/rapid_support.markdown
243
- - hobo_files/plugin/taglib-docs/rapid_user_pages.markdown
244
- - hobo_files/plugin/taglibs
245
- - hobo_files/plugin/taglibs/core.dryml
246
- - hobo_files/plugin/taglibs/rapid.dryml
247
- - hobo_files/plugin/taglibs/rapid_document_tags.dryml
248
- - hobo_files/plugin/taglibs/rapid_editing.dryml
249
- - hobo_files/plugin/taglibs/rapid_forms.dryml
250
- - hobo_files/plugin/taglibs/rapid_generics.dryml
251
- - hobo_files/plugin/taglibs/rapid_navigation.dryml
252
- - hobo_files/plugin/taglibs/rapid_pages.dryml
253
- - hobo_files/plugin/taglibs/rapid_plus.dryml
254
- - hobo_files/plugin/taglibs/rapid_support.dryml
255
- - hobo_files/plugin/taglibs/rapid_user_pages.dryml
256
- - hobo_files/plugin/tasks
257
- - hobo_files/plugin/tasks/dump_fixtures.rake
258
- - hobo_files/plugin/tasks/environments.rake
259
- - hobo_files/plugin/tasks/fix_dryml.rake
260
- - hobo_files/plugin/tasks/generate_tag_reference.rb
261
- - hobo_files/plugin/tasks/hobo_tasks.rake
262
- - hobo_files/plugin/uninstall.rb
263
127
  - bin/hobo
128
+ - CHANGES.txt
129
+ - dryml_generators/rapid/cards.dryml.erb
130
+ - dryml_generators/rapid/forms.dryml.erb
131
+ - dryml_generators/rapid/pages.dryml.erb
132
+ - init.rb
133
+ - lib/action_view_extensions/helpers/tag_helper.rb
134
+ - lib/active_record/association_collection.rb
135
+ - lib/active_record/association_proxy.rb
136
+ - lib/active_record/association_reflection.rb
137
+ - lib/extensions/test_case.rb
138
+ - lib/hobo/authentication_support.rb
139
+ - lib/hobo/bundle.rb
140
+ - lib/hobo/composite_model.rb
141
+ - lib/hobo/controller.rb
142
+ - lib/hobo/dev_controller.rb
143
+ - lib/hobo/dryml/dryml_builder.rb
144
+ - lib/hobo/dryml/dryml_generator.rb
145
+ - lib/hobo/dryml/dryml_support_controller.rb
146
+ - lib/hobo/dryml/parser/attribute.rb
147
+ - lib/hobo/dryml/parser/base_parser.rb
148
+ - lib/hobo/dryml/parser/document.rb
149
+ - lib/hobo/dryml/parser/element.rb
150
+ - lib/hobo/dryml/parser/elements.rb
151
+ - lib/hobo/dryml/parser/source.rb
152
+ - lib/hobo/dryml/parser/text.rb
153
+ - lib/hobo/dryml/parser/tree_parser.rb
154
+ - lib/hobo/dryml/parser.rb
155
+ - lib/hobo/dryml/part_context.rb
156
+ - lib/hobo/dryml/scoped_variables.rb
157
+ - lib/hobo/dryml/tag_parameters.rb
158
+ - lib/hobo/dryml/taglib.rb
159
+ - lib/hobo/dryml/template.rb
160
+ - lib/hobo/dryml/template_environment.rb
161
+ - lib/hobo/dryml/template_handler.rb
162
+ - lib/hobo/dryml.rb
163
+ - lib/hobo/find_for.rb
164
+ - lib/hobo/generator.rb
165
+ - lib/hobo/guest.rb
166
+ - lib/hobo/hobo_helper.rb
167
+ - lib/hobo/include_in_save.rb
168
+ - lib/hobo/lifecycles/actions.rb
169
+ - lib/hobo/lifecycles/creator.rb
170
+ - lib/hobo/lifecycles/lifecycle.rb
171
+ - lib/hobo/lifecycles/state.rb
172
+ - lib/hobo/lifecycles/transition.rb
173
+ - lib/hobo/lifecycles.rb
174
+ - lib/hobo/model.rb
175
+ - lib/hobo/model_controller.rb
176
+ - lib/hobo/model_router.rb
177
+ - lib/hobo/model_support.rb
178
+ - lib/hobo/rapid_helper.rb
179
+ - lib/hobo/scopes/apply_scopes.rb
180
+ - lib/hobo/scopes/association_proxy_extensions.rb
181
+ - lib/hobo/scopes/automatic_scopes.rb
182
+ - lib/hobo/scopes/named_scope_extensions.rb
183
+ - lib/hobo/scopes.rb
184
+ - lib/hobo/static_tags
185
+ - lib/hobo/undefined.rb
186
+ - lib/hobo/undefined_access_error.rb
187
+ - lib/hobo/user.rb
188
+ - lib/hobo/user_controller.rb
189
+ - lib/hobo.rb
264
190
  - LICENSE.txt
265
- - README.txt
266
- has_rdoc: false
267
- homepage: http://hobocentral.net
191
+ - Manifest
192
+ - rails_generators/hobo/hobo_generator.rb
193
+ - rails_generators/hobo/templates/application.css
194
+ - rails_generators/hobo/templates/application.dryml
195
+ - rails_generators/hobo/templates/dryml-support.js
196
+ - rails_generators/hobo/templates/guest.rb
197
+ - rails_generators/hobo/templates/initializer.rb
198
+ - rails_generators/hobo_front_controller/hobo_front_controller_generator.rb
199
+ - rails_generators/hobo_front_controller/templates/controller.rb
200
+ - rails_generators/hobo_front_controller/templates/functional_test.rb
201
+ - rails_generators/hobo_front_controller/templates/helper.rb
202
+ - rails_generators/hobo_front_controller/templates/index.dryml
203
+ - rails_generators/hobo_front_controller/USAGE
204
+ - rails_generators/hobo_model/hobo_model_generator.rb
205
+ - rails_generators/hobo_model/templates/fixtures.yml
206
+ - rails_generators/hobo_model/templates/model.rb
207
+ - rails_generators/hobo_model/templates/unit_test.rb
208
+ - rails_generators/hobo_model/USAGE
209
+ - rails_generators/hobo_model_controller/hobo_model_controller_generator.rb
210
+ - rails_generators/hobo_model_controller/templates/controller.rb
211
+ - rails_generators/hobo_model_controller/templates/functional_test.rb
212
+ - rails_generators/hobo_model_controller/templates/helper.rb
213
+ - rails_generators/hobo_model_controller/USAGE
214
+ - rails_generators/hobo_model_resource/hobo_model_resource_generator.rb
215
+ - rails_generators/hobo_model_resource/templates/controller.rb
216
+ - rails_generators/hobo_model_resource/templates/functional_test.rb
217
+ - rails_generators/hobo_model_resource/templates/helper.rb
218
+ - rails_generators/hobo_rapid/hobo_rapid_generator.rb
219
+ - rails_generators/hobo_rapid/templates/blank.gif
220
+ - rails_generators/hobo_rapid/templates/hobo-rapid.css
221
+ - rails_generators/hobo_rapid/templates/hobo-rapid.js
222
+ - rails_generators/hobo_rapid/templates/IE7.js
223
+ - rails_generators/hobo_rapid/templates/lowpro.js
224
+ - rails_generators/hobo_rapid/templates/nicedit.js
225
+ - rails_generators/hobo_rapid/templates/nicEditorIcons.gif
226
+ - rails_generators/hobo_rapid/templates/reset.css
227
+ - rails_generators/hobo_rapid/templates/themes/clean/public/images/fieldbg.gif
228
+ - rails_generators/hobo_rapid/templates/themes/clean/public/images/pencil.png
229
+ - rails_generators/hobo_rapid/templates/themes/clean/public/images/small_close.png
230
+ - rails_generators/hobo_rapid/templates/themes/clean/public/images/spinner.gif
231
+ - rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/clean.css
232
+ - rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/rapid-ui.css
233
+ - rails_generators/hobo_rapid/templates/themes/clean/views/clean.dryml
234
+ - rails_generators/hobo_subsite/hobo_subsite_generator.rb
235
+ - rails_generators/hobo_subsite/templates/application.dryml
236
+ - rails_generators/hobo_subsite/templates/controller.rb
237
+ - rails_generators/hobo_subsite/templates/site_taglib.dryml
238
+ - rails_generators/hobo_user_controller/hobo_user_controller_generator.rb
239
+ - rails_generators/hobo_user_controller/templates/controller.rb
240
+ - rails_generators/hobo_user_controller/templates/functional_test.rb
241
+ - rails_generators/hobo_user_controller/templates/helper.rb
242
+ - rails_generators/hobo_user_controller/USAGE
243
+ - rails_generators/hobo_user_model/hobo_user_model_generator.rb
244
+ - rails_generators/hobo_user_model/templates/fixtures.yml
245
+ - rails_generators/hobo_user_model/templates/forgot_password.erb
246
+ - rails_generators/hobo_user_model/templates/mailer.rb
247
+ - rails_generators/hobo_user_model/templates/model.rb
248
+ - rails_generators/hobo_user_model/templates/unit_test.rb
249
+ - rails_generators/hobo_user_model/USAGE
250
+ - README
251
+ - script/destroy
252
+ - script/generate
253
+ - taglibs/core.dryml
254
+ - taglibs/rapid.dryml
255
+ - taglibs/rapid_document_tags.dryml
256
+ - taglibs/rapid_editing.dryml
257
+ - taglibs/rapid_forms.dryml
258
+ - taglibs/rapid_generics.dryml
259
+ - taglibs/rapid_lifecycles.dryml
260
+ - taglibs/rapid_navigation.dryml
261
+ - taglibs/rapid_pages.dryml
262
+ - taglibs/rapid_plus.dryml
263
+ - taglibs/rapid_support.dryml
264
+ - taglibs/rapid_user_pages.dryml
265
+ - tasks/environments.rake
266
+ - tasks/fix_dryml.rake
267
+ - tasks/generate_tag_reference.rb
268
+ - tasks/hobo_tasks.rake
269
+ - test/test_generator_helper.rb
270
+ - test/test_helper.rb
271
+ - test/test_hobo_model_controller_generator.rb
272
+ - uninstall.rb
273
+ - hobo.gemspec
274
+ has_rdoc: true
275
+ homepage: http://hobocentral.net/
268
276
  post_install_message:
269
- rdoc_options: []
270
-
277
+ rdoc_options:
278
+ - --line-numbers
279
+ - --inline-source
280
+ - --title
281
+ - Hobo
282
+ - --main
283
+ - README
271
284
  require_paths:
272
285
  - lib
273
286
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -285,9 +298,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
298
  requirements: []
286
299
 
287
300
  rubyforge_project: hobo
288
- rubygems_version: 1.0.1
301
+ rubygems_version: 1.2.0
289
302
  signing_key:
290
303
  specification_version: 2
291
304
  summary: The web app builder for Rails
292
- test_files: []
293
-
305
+ test_files:
306
+ - test/test_generator_helper.rb
307
+ - test/test_helper.rb
308
+ - test/test_hobo_model_controller_generator.rb