somatics3-generators 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/.document +5 -0
  2. data/.gitignore +21 -0
  3. data/LICENSE +20 -0
  4. data/README.rdoc +17 -0
  5. data/Rakefile +60 -0
  6. data/VERSION +1 -0
  7. data/bin/somatics +21 -0
  8. data/bin/somatify +21 -0
  9. data/lib/generators/somatics/authenticated/authenticated_generator.rb +220 -0
  10. data/lib/generators/somatics/authenticated/templates/mailer.rb +25 -0
  11. data/lib/generators/somatics/authenticated/templates/migration.rb +26 -0
  12. data/lib/generators/somatics/authenticated/templates/model.rb +83 -0
  13. data/lib/generators/somatics/authenticated/templates/observer.rb +11 -0
  14. data/lib/generators/somatics/authenticated/templates/test/mailer_test.rb +31 -0
  15. data/lib/generators/somatics/authenticated/templates/test/model_functional_test.rb +93 -0
  16. data/lib/generators/somatics/authenticated/templates/test/sessions_functional_test.rb +82 -0
  17. data/lib/generators/somatics/authenticated/templates/test/unit_test.rb +164 -0
  18. data/lib/generators/somatics/authenticated/templates/test/users.yml +60 -0
  19. data/lib/generators/somatics/authenticated_controller/authenticated_controller_generator.rb +323 -0
  20. data/lib/generators/somatics/authenticated_controller/templates/_model_partial.html.erb +8 -0
  21. data/lib/generators/somatics/authenticated_controller/templates/activation.erb +3 -0
  22. data/lib/generators/somatics/authenticated_controller/templates/authenticated_system.rb +189 -0
  23. data/lib/generators/somatics/authenticated_controller/templates/authenticated_test_helper.rb +10 -0
  24. data/lib/generators/somatics/authenticated_controller/templates/config/initializers/site_keys.rb +38 -0
  25. data/lib/generators/somatics/authenticated_controller/templates/controller.rb +55 -0
  26. data/lib/generators/somatics/authenticated_controller/templates/helper.rb +91 -0
  27. data/lib/generators/somatics/authenticated_controller/templates/login.html.erb +29 -0
  28. data/lib/generators/somatics/authenticated_controller/templates/mailer.rb +25 -0
  29. data/lib/generators/somatics/authenticated_controller/templates/migration.rb +26 -0
  30. data/lib/generators/somatics/authenticated_controller/templates/model.rb +83 -0
  31. data/lib/generators/somatics/authenticated_controller/templates/observer.rb +11 -0
  32. data/lib/generators/somatics/authenticated_controller/templates/session_helper.rb +2 -0
  33. data/lib/generators/somatics/authenticated_controller/templates/sessions_controller.rb +43 -0
  34. data/lib/generators/somatics/authenticated_controller/templates/signup.html.erb +19 -0
  35. data/lib/generators/somatics/authenticated_controller/templates/signup_notification.erb +8 -0
  36. data/lib/generators/somatics/authenticated_controller/templates/test/mailer_test.rb +31 -0
  37. data/lib/generators/somatics/authenticated_controller/templates/test/model_functional_test.rb +93 -0
  38. data/lib/generators/somatics/authenticated_controller/templates/test/sessions_functional_test.rb +82 -0
  39. data/lib/generators/somatics/authenticated_controller/templates/test/unit_test.rb +164 -0
  40. data/lib/generators/somatics/authenticated_controller/templates/test/users.yml +60 -0
  41. data/lib/generators/somatics/helper/helper_generator.rb +16 -0
  42. data/lib/generators/somatics/install/install_generator.rb +65 -0
  43. data/lib/generators/somatics/install/templates/config/locales/somatics_en.yml +33 -0
  44. data/lib/generators/somatics/install/templates/config/locales/somatics_zh-TW.yml +33 -0
  45. data/lib/generators/somatics/install/templates/controller_admin.rb +16 -0
  46. data/lib/generators/somatics/install/templates/controller_home.rb +4 -0
  47. data/lib/generators/somatics/install/templates/helper_admin.rb +68 -0
  48. data/lib/generators/somatics/install/templates/layout_admin.html.erb +88 -0
  49. data/lib/generators/somatics/install/templates/lib/somatic_link_renderer.rb +42 -0
  50. data/lib/generators/somatics/install/templates/partial_menu.html.erb +1 -0
  51. data/lib/generators/somatics/install/templates/public/images/somatics/add.png +0 -0
  52. data/lib/generators/somatics/install/templates/public/images/somatics/arrow_collapsed.png +0 -0
  53. data/lib/generators/somatics/install/templates/public/images/somatics/arrow_expanded.png +0 -0
  54. data/lib/generators/somatics/install/templates/public/images/somatics/attachment.png +0 -0
  55. data/lib/generators/somatics/install/templates/public/images/somatics/bullet_arrow_left.png +0 -0
  56. data/lib/generators/somatics/install/templates/public/images/somatics/bullet_arrow_right.png +0 -0
  57. data/lib/generators/somatics/install/templates/public/images/somatics/bullet_diamond.png +0 -0
  58. data/lib/generators/somatics/install/templates/public/images/somatics/bullet_end.png +0 -0
  59. data/lib/generators/somatics/install/templates/public/images/somatics/bullet_go.png +0 -0
  60. data/lib/generators/somatics/install/templates/public/images/somatics/bullet_toggle_minus.png +0 -0
  61. data/lib/generators/somatics/install/templates/public/images/somatics/bullet_toggle_plus.png +0 -0
  62. data/lib/generators/somatics/install/templates/public/images/somatics/c.png +0 -0
  63. data/lib/generators/somatics/install/templates/public/images/somatics/cancel.png +0 -0
  64. data/lib/generators/somatics/install/templates/public/images/somatics/changeset.png +0 -0
  65. data/lib/generators/somatics/install/templates/public/images/somatics/comment.png +0 -0
  66. data/lib/generators/somatics/install/templates/public/images/somatics/comments.png +0 -0
  67. data/lib/generators/somatics/install/templates/public/images/somatics/content-left.png +0 -0
  68. data/lib/generators/somatics/install/templates/public/images/somatics/content-right.png +0 -0
  69. data/lib/generators/somatics/install/templates/public/images/somatics/copy.png +0 -0
  70. data/lib/generators/somatics/install/templates/public/images/somatics/csharp.png +0 -0
  71. data/lib/generators/somatics/install/templates/public/images/somatics/database_key.png +0 -0
  72. data/lib/generators/somatics/install/templates/public/images/somatics/default.png +0 -0
  73. data/lib/generators/somatics/install/templates/public/images/somatics/delete.png +0 -0
  74. data/lib/generators/somatics/install/templates/public/images/somatics/document.png +0 -0
  75. data/lib/generators/somatics/install/templates/public/images/somatics/draft.png +0 -0
  76. data/lib/generators/somatics/install/templates/public/images/somatics/duplicate.png +0 -0
  77. data/lib/generators/somatics/install/templates/public/images/somatics/edit.png +0 -0
  78. data/lib/generators/somatics/install/templates/public/images/somatics/exclamation.png +0 -0
  79. data/lib/generators/somatics/install/templates/public/images/somatics/external.png +0 -0
  80. data/lib/generators/somatics/install/templates/public/images/somatics/fav.png +0 -0
  81. data/lib/generators/somatics/install/templates/public/images/somatics/fav_off.png +0 -0
  82. data/lib/generators/somatics/install/templates/public/images/somatics/feed.png +0 -0
  83. data/lib/generators/somatics/install/templates/public/images/somatics/folder.png +0 -0
  84. data/lib/generators/somatics/install/templates/public/images/somatics/folder_open.png +0 -0
  85. data/lib/generators/somatics/install/templates/public/images/somatics/footer-bg.png +0 -0
  86. data/lib/generators/somatics/install/templates/public/images/somatics/footer-left.png +0 -0
  87. data/lib/generators/somatics/install/templates/public/images/somatics/footer-right.png +0 -0
  88. data/lib/generators/somatics/install/templates/public/images/somatics/group.png +0 -0
  89. data/lib/generators/somatics/install/templates/public/images/somatics/help.png +0 -0
  90. data/lib/generators/somatics/install/templates/public/images/somatics/history.png +0 -0
  91. data/lib/generators/somatics/install/templates/public/images/somatics/image.png +0 -0
  92. data/lib/generators/somatics/install/templates/public/images/somatics/lightning.png +0 -0
  93. data/lib/generators/somatics/install/templates/public/images/somatics/link.png +0 -0
  94. data/lib/generators/somatics/install/templates/public/images/somatics/loading.gif +0 -0
  95. data/lib/generators/somatics/install/templates/public/images/somatics/locked.png +0 -0
  96. data/lib/generators/somatics/install/templates/public/images/somatics/message.png +0 -0
  97. data/lib/generators/somatics/install/templates/public/images/somatics/milestone.png +0 -0
  98. data/lib/generators/somatics/install/templates/public/images/somatics/move.png +0 -0
  99. data/lib/generators/somatics/install/templates/public/images/somatics/news.png +0 -0
  100. data/lib/generators/somatics/install/templates/public/images/somatics/openid-bg.gif +0 -0
  101. data/lib/generators/somatics/install/templates/public/images/somatics/package.png +0 -0
  102. data/lib/generators/somatics/install/templates/public/images/somatics/pdf.png +0 -0
  103. data/lib/generators/somatics/install/templates/public/images/somatics/php.png +0 -0
  104. data/lib/generators/somatics/install/templates/public/images/somatics/plugin.png +0 -0
  105. data/lib/generators/somatics/install/templates/public/images/somatics/projects.png +0 -0
  106. data/lib/generators/somatics/install/templates/public/images/somatics/rails.png +0 -0
  107. data/lib/generators/somatics/install/templates/public/images/somatics/reload.png +0 -0
  108. data/lib/generators/somatics/install/templates/public/images/somatics/report.png +0 -0
  109. data/lib/generators/somatics/install/templates/public/images/somatics/ruby.png +0 -0
  110. data/lib/generators/somatics/install/templates/public/images/somatics/save.png +0 -0
  111. data/lib/generators/somatics/install/templates/public/images/somatics/sort_asc.png +0 -0
  112. data/lib/generators/somatics/install/templates/public/images/somatics/sort_desc.png +0 -0
  113. data/lib/generators/somatics/install/templates/public/images/somatics/stats.png +0 -0
  114. data/lib/generators/somatics/install/templates/public/images/somatics/table_multiple.png +0 -0
  115. data/lib/generators/somatics/install/templates/public/images/somatics/task_done.png +0 -0
  116. data/lib/generators/somatics/install/templates/public/images/somatics/task_late.png +0 -0
  117. data/lib/generators/somatics/install/templates/public/images/somatics/task_parent_end.png +0 -0
  118. data/lib/generators/somatics/install/templates/public/images/somatics/task_todo.png +0 -0
  119. data/lib/generators/somatics/install/templates/public/images/somatics/text.png +0 -0
  120. data/lib/generators/somatics/install/templates/public/images/somatics/text_list_bullets.png +0 -0
  121. data/lib/generators/somatics/install/templates/public/images/somatics/textfield.png +0 -0
  122. data/lib/generators/somatics/install/templates/public/images/somatics/ticket.png +0 -0
  123. data/lib/generators/somatics/install/templates/public/images/somatics/ticket_checked.png +0 -0
  124. data/lib/generators/somatics/install/templates/public/images/somatics/ticket_edit.png +0 -0
  125. data/lib/generators/somatics/install/templates/public/images/somatics/ticket_go.png +0 -0
  126. data/lib/generators/somatics/install/templates/public/images/somatics/ticket_note.png +0 -0
  127. data/lib/generators/somatics/install/templates/public/images/somatics/time.png +0 -0
  128. data/lib/generators/somatics/install/templates/public/images/somatics/time_add.png +0 -0
  129. data/lib/generators/somatics/install/templates/public/images/somatics/toggle_check.png +0 -0
  130. data/lib/generators/somatics/install/templates/public/images/somatics/true.png +0 -0
  131. data/lib/generators/somatics/install/templates/public/images/somatics/unlock.png +0 -0
  132. data/lib/generators/somatics/install/templates/public/images/somatics/user.png +0 -0
  133. data/lib/generators/somatics/install/templates/public/images/somatics/warning.png +0 -0
  134. data/lib/generators/somatics/install/templates/public/images/somatics/wiki_edit.png +0 -0
  135. data/lib/generators/somatics/install/templates/public/images/somatics/xml.png +0 -0
  136. data/lib/generators/somatics/install/templates/public/images/somatics/zip.png +0 -0
  137. data/lib/generators/somatics/install/templates/public/images/somatics/zoom_in.png +0 -0
  138. data/lib/generators/somatics/install/templates/public/javascripts/somatics/base.js +231 -0
  139. data/lib/generators/somatics/install/templates/public/javascripts/somatics/context_menu.js +237 -0
  140. data/lib/generators/somatics/install/templates/public/javascripts/somatics/controls.js +965 -0
  141. data/lib/generators/somatics/install/templates/public/javascripts/somatics/dragdrop.js +974 -0
  142. data/lib/generators/somatics/install/templates/public/javascripts/somatics/effects.js +1123 -0
  143. data/lib/generators/somatics/install/templates/public/javascripts/somatics/prototype.js +6001 -0
  144. data/lib/generators/somatics/install/templates/public/javascripts/somatics/rails.js +175 -0
  145. data/lib/generators/somatics/install/templates/public/javascripts/somatics/select_list_move.js +82 -0
  146. data/lib/generators/somatics/install/templates/public/stylesheets/somatics/base.css +948 -0
  147. data/lib/generators/somatics/install/templates/public/stylesheets/somatics/context_menu.css +52 -0
  148. data/lib/generators/somatics/install/templates/public/stylesheets/somatics/csshover.htc +122 -0
  149. data/lib/generators/somatics/install/templates/public/stylesheets/somatics/jstoolbar.css +95 -0
  150. data/lib/generators/somatics/install/templates/view_index.html.erb +1 -0
  151. data/lib/generators/somatics/scaffold/scaffold_generator.rb +25 -0
  152. data/lib/generators/somatics/scaffold/templates/_form.html.erb +23 -0
  153. data/lib/generators/somatics/scaffold/templates/edit.html.erb +6 -0
  154. data/lib/generators/somatics/scaffold/templates/index.html.erb +27 -0
  155. data/lib/generators/somatics/scaffold/templates/new.html.erb +5 -0
  156. data/lib/generators/somatics/scaffold/templates/show.html.erb +12 -0
  157. data/lib/generators/somatics/scaffold_controller/USAGE +20 -0
  158. data/lib/generators/somatics/scaffold_controller/scaffold_controller_generator.rb +137 -0
  159. data/lib/generators/somatics/scaffold_controller/templates/builder_index.pdf.prawn +25 -0
  160. data/lib/generators/somatics/scaffold_controller/templates/builder_index.xls.builder +24 -0
  161. data/lib/generators/somatics/scaffold_controller/templates/builder_index.xml.builder +10 -0
  162. data/lib/generators/somatics/scaffold_controller/templates/controller.rb +140 -0
  163. data/lib/generators/somatics/scaffold_controller/templates/locales_en.yml +17 -0
  164. data/lib/generators/somatics/scaffold_controller/templates/locales_zh-TW.yml +20 -0
  165. data/lib/generators/somatics/scaffold_controller/templates/partial_bulk.html.erb +12 -0
  166. data/lib/generators/somatics/scaffold_controller/templates/partial_edit.html.erb +7 -0
  167. data/lib/generators/somatics/scaffold_controller/templates/partial_form.html.erb +13 -0
  168. data/lib/generators/somatics/scaffold_controller/templates/partial_list.html.erb +42 -0
  169. data/lib/generators/somatics/scaffold_controller/templates/partial_menu.html.erb +1 -0
  170. data/lib/generators/somatics/scaffold_controller/templates/partial_show.html.erb +31 -0
  171. data/lib/generators/somatics/scaffold_controller/templates/view_edit.html.erb +24 -0
  172. data/lib/generators/somatics/scaffold_controller/templates/view_index.html.erb +28 -0
  173. data/lib/generators/somatics/scaffold_controller/templates/view_new.html.erb +14 -0
  174. data/lib/generators/somatics/scaffold_controller/templates/view_show.html.erb +24 -0
  175. data/lib/generators/somatics.rb +95 -0
  176. data/lib/somatics3-generators.rb +19 -0
  177. data/somatics3-generators.gemspec +223 -0
  178. data/templates/somatics.rb +128 -0
  179. data/test/helper.rb +10 -0
  180. data/test/test_somatics3-generators.rb +7 -0
  181. metadata +301 -0
@@ -0,0 +1,223 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{somatics3-generators}
8
+ s.version = "0.0.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Benjamin Wong"]
12
+ s.date = %q{2010-09-15}
13
+ s.description = %q{Somatics 3 generators is used to generate a resource with skeleton admin panel}
14
+ s.email = %q{tkwong@inspiresynergy.com}
15
+ s.executables = ["somatics", "somatify"]
16
+ s.extra_rdoc_files = [
17
+ "LICENSE",
18
+ "README.rdoc"
19
+ ]
20
+ s.files = [
21
+ ".document",
22
+ ".gitignore",
23
+ "LICENSE",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "bin/somatics",
28
+ "bin/somatify",
29
+ "lib/generators/somatics.rb",
30
+ "lib/generators/somatics/authenticated/authenticated_generator.rb",
31
+ "lib/generators/somatics/authenticated/templates/mailer.rb",
32
+ "lib/generators/somatics/authenticated/templates/migration.rb",
33
+ "lib/generators/somatics/authenticated/templates/model.rb",
34
+ "lib/generators/somatics/authenticated/templates/observer.rb",
35
+ "lib/generators/somatics/authenticated/templates/test/mailer_test.rb",
36
+ "lib/generators/somatics/authenticated/templates/test/model_functional_test.rb",
37
+ "lib/generators/somatics/authenticated/templates/test/sessions_functional_test.rb",
38
+ "lib/generators/somatics/authenticated/templates/test/unit_test.rb",
39
+ "lib/generators/somatics/authenticated/templates/test/users.yml",
40
+ "lib/generators/somatics/authenticated_controller/authenticated_controller_generator.rb",
41
+ "lib/generators/somatics/authenticated_controller/templates/_model_partial.html.erb",
42
+ "lib/generators/somatics/authenticated_controller/templates/activation.erb",
43
+ "lib/generators/somatics/authenticated_controller/templates/authenticated_system.rb",
44
+ "lib/generators/somatics/authenticated_controller/templates/authenticated_test_helper.rb",
45
+ "lib/generators/somatics/authenticated_controller/templates/config/initializers/site_keys.rb",
46
+ "lib/generators/somatics/authenticated_controller/templates/controller.rb",
47
+ "lib/generators/somatics/authenticated_controller/templates/helper.rb",
48
+ "lib/generators/somatics/authenticated_controller/templates/login.html.erb",
49
+ "lib/generators/somatics/authenticated_controller/templates/mailer.rb",
50
+ "lib/generators/somatics/authenticated_controller/templates/migration.rb",
51
+ "lib/generators/somatics/authenticated_controller/templates/model.rb",
52
+ "lib/generators/somatics/authenticated_controller/templates/observer.rb",
53
+ "lib/generators/somatics/authenticated_controller/templates/session_helper.rb",
54
+ "lib/generators/somatics/authenticated_controller/templates/sessions_controller.rb",
55
+ "lib/generators/somatics/authenticated_controller/templates/signup.html.erb",
56
+ "lib/generators/somatics/authenticated_controller/templates/signup_notification.erb",
57
+ "lib/generators/somatics/authenticated_controller/templates/test/mailer_test.rb",
58
+ "lib/generators/somatics/authenticated_controller/templates/test/model_functional_test.rb",
59
+ "lib/generators/somatics/authenticated_controller/templates/test/sessions_functional_test.rb",
60
+ "lib/generators/somatics/authenticated_controller/templates/test/unit_test.rb",
61
+ "lib/generators/somatics/authenticated_controller/templates/test/users.yml",
62
+ "lib/generators/somatics/helper/helper_generator.rb",
63
+ "lib/generators/somatics/install/install_generator.rb",
64
+ "lib/generators/somatics/install/templates/config/locales/somatics_en.yml",
65
+ "lib/generators/somatics/install/templates/config/locales/somatics_zh-TW.yml",
66
+ "lib/generators/somatics/install/templates/controller_admin.rb",
67
+ "lib/generators/somatics/install/templates/controller_home.rb",
68
+ "lib/generators/somatics/install/templates/helper_admin.rb",
69
+ "lib/generators/somatics/install/templates/layout_admin.html.erb",
70
+ "lib/generators/somatics/install/templates/lib/somatic_link_renderer.rb",
71
+ "lib/generators/somatics/install/templates/partial_menu.html.erb",
72
+ "lib/generators/somatics/install/templates/public/images/somatics/add.png",
73
+ "lib/generators/somatics/install/templates/public/images/somatics/arrow_collapsed.png",
74
+ "lib/generators/somatics/install/templates/public/images/somatics/arrow_expanded.png",
75
+ "lib/generators/somatics/install/templates/public/images/somatics/attachment.png",
76
+ "lib/generators/somatics/install/templates/public/images/somatics/bullet_arrow_left.png",
77
+ "lib/generators/somatics/install/templates/public/images/somatics/bullet_arrow_right.png",
78
+ "lib/generators/somatics/install/templates/public/images/somatics/bullet_diamond.png",
79
+ "lib/generators/somatics/install/templates/public/images/somatics/bullet_end.png",
80
+ "lib/generators/somatics/install/templates/public/images/somatics/bullet_go.png",
81
+ "lib/generators/somatics/install/templates/public/images/somatics/bullet_toggle_minus.png",
82
+ "lib/generators/somatics/install/templates/public/images/somatics/bullet_toggle_plus.png",
83
+ "lib/generators/somatics/install/templates/public/images/somatics/c.png",
84
+ "lib/generators/somatics/install/templates/public/images/somatics/cancel.png",
85
+ "lib/generators/somatics/install/templates/public/images/somatics/changeset.png",
86
+ "lib/generators/somatics/install/templates/public/images/somatics/comment.png",
87
+ "lib/generators/somatics/install/templates/public/images/somatics/comments.png",
88
+ "lib/generators/somatics/install/templates/public/images/somatics/content-left.png",
89
+ "lib/generators/somatics/install/templates/public/images/somatics/content-right.png",
90
+ "lib/generators/somatics/install/templates/public/images/somatics/copy.png",
91
+ "lib/generators/somatics/install/templates/public/images/somatics/csharp.png",
92
+ "lib/generators/somatics/install/templates/public/images/somatics/database_key.png",
93
+ "lib/generators/somatics/install/templates/public/images/somatics/default.png",
94
+ "lib/generators/somatics/install/templates/public/images/somatics/delete.png",
95
+ "lib/generators/somatics/install/templates/public/images/somatics/document.png",
96
+ "lib/generators/somatics/install/templates/public/images/somatics/draft.png",
97
+ "lib/generators/somatics/install/templates/public/images/somatics/duplicate.png",
98
+ "lib/generators/somatics/install/templates/public/images/somatics/edit.png",
99
+ "lib/generators/somatics/install/templates/public/images/somatics/exclamation.png",
100
+ "lib/generators/somatics/install/templates/public/images/somatics/external.png",
101
+ "lib/generators/somatics/install/templates/public/images/somatics/fav.png",
102
+ "lib/generators/somatics/install/templates/public/images/somatics/fav_off.png",
103
+ "lib/generators/somatics/install/templates/public/images/somatics/feed.png",
104
+ "lib/generators/somatics/install/templates/public/images/somatics/folder.png",
105
+ "lib/generators/somatics/install/templates/public/images/somatics/folder_open.png",
106
+ "lib/generators/somatics/install/templates/public/images/somatics/footer-bg.png",
107
+ "lib/generators/somatics/install/templates/public/images/somatics/footer-left.png",
108
+ "lib/generators/somatics/install/templates/public/images/somatics/footer-right.png",
109
+ "lib/generators/somatics/install/templates/public/images/somatics/group.png",
110
+ "lib/generators/somatics/install/templates/public/images/somatics/help.png",
111
+ "lib/generators/somatics/install/templates/public/images/somatics/history.png",
112
+ "lib/generators/somatics/install/templates/public/images/somatics/image.png",
113
+ "lib/generators/somatics/install/templates/public/images/somatics/lightning.png",
114
+ "lib/generators/somatics/install/templates/public/images/somatics/link.png",
115
+ "lib/generators/somatics/install/templates/public/images/somatics/loading.gif",
116
+ "lib/generators/somatics/install/templates/public/images/somatics/locked.png",
117
+ "lib/generators/somatics/install/templates/public/images/somatics/message.png",
118
+ "lib/generators/somatics/install/templates/public/images/somatics/milestone.png",
119
+ "lib/generators/somatics/install/templates/public/images/somatics/move.png",
120
+ "lib/generators/somatics/install/templates/public/images/somatics/news.png",
121
+ "lib/generators/somatics/install/templates/public/images/somatics/openid-bg.gif",
122
+ "lib/generators/somatics/install/templates/public/images/somatics/package.png",
123
+ "lib/generators/somatics/install/templates/public/images/somatics/pdf.png",
124
+ "lib/generators/somatics/install/templates/public/images/somatics/php.png",
125
+ "lib/generators/somatics/install/templates/public/images/somatics/plugin.png",
126
+ "lib/generators/somatics/install/templates/public/images/somatics/projects.png",
127
+ "lib/generators/somatics/install/templates/public/images/somatics/rails.png",
128
+ "lib/generators/somatics/install/templates/public/images/somatics/reload.png",
129
+ "lib/generators/somatics/install/templates/public/images/somatics/report.png",
130
+ "lib/generators/somatics/install/templates/public/images/somatics/ruby.png",
131
+ "lib/generators/somatics/install/templates/public/images/somatics/save.png",
132
+ "lib/generators/somatics/install/templates/public/images/somatics/sort_asc.png",
133
+ "lib/generators/somatics/install/templates/public/images/somatics/sort_desc.png",
134
+ "lib/generators/somatics/install/templates/public/images/somatics/stats.png",
135
+ "lib/generators/somatics/install/templates/public/images/somatics/table_multiple.png",
136
+ "lib/generators/somatics/install/templates/public/images/somatics/task_done.png",
137
+ "lib/generators/somatics/install/templates/public/images/somatics/task_late.png",
138
+ "lib/generators/somatics/install/templates/public/images/somatics/task_parent_end.png",
139
+ "lib/generators/somatics/install/templates/public/images/somatics/task_todo.png",
140
+ "lib/generators/somatics/install/templates/public/images/somatics/text.png",
141
+ "lib/generators/somatics/install/templates/public/images/somatics/text_list_bullets.png",
142
+ "lib/generators/somatics/install/templates/public/images/somatics/textfield.png",
143
+ "lib/generators/somatics/install/templates/public/images/somatics/ticket.png",
144
+ "lib/generators/somatics/install/templates/public/images/somatics/ticket_checked.png",
145
+ "lib/generators/somatics/install/templates/public/images/somatics/ticket_edit.png",
146
+ "lib/generators/somatics/install/templates/public/images/somatics/ticket_go.png",
147
+ "lib/generators/somatics/install/templates/public/images/somatics/ticket_note.png",
148
+ "lib/generators/somatics/install/templates/public/images/somatics/time.png",
149
+ "lib/generators/somatics/install/templates/public/images/somatics/time_add.png",
150
+ "lib/generators/somatics/install/templates/public/images/somatics/toggle_check.png",
151
+ "lib/generators/somatics/install/templates/public/images/somatics/true.png",
152
+ "lib/generators/somatics/install/templates/public/images/somatics/unlock.png",
153
+ "lib/generators/somatics/install/templates/public/images/somatics/user.png",
154
+ "lib/generators/somatics/install/templates/public/images/somatics/warning.png",
155
+ "lib/generators/somatics/install/templates/public/images/somatics/wiki_edit.png",
156
+ "lib/generators/somatics/install/templates/public/images/somatics/xml.png",
157
+ "lib/generators/somatics/install/templates/public/images/somatics/zip.png",
158
+ "lib/generators/somatics/install/templates/public/images/somatics/zoom_in.png",
159
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/base.js",
160
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/context_menu.js",
161
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/controls.js",
162
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/dragdrop.js",
163
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/effects.js",
164
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/prototype.js",
165
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/rails.js",
166
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/select_list_move.js",
167
+ "lib/generators/somatics/install/templates/public/stylesheets/somatics/base.css",
168
+ "lib/generators/somatics/install/templates/public/stylesheets/somatics/context_menu.css",
169
+ "lib/generators/somatics/install/templates/public/stylesheets/somatics/csshover.htc",
170
+ "lib/generators/somatics/install/templates/public/stylesheets/somatics/jstoolbar.css",
171
+ "lib/generators/somatics/install/templates/view_index.html.erb",
172
+ "lib/generators/somatics/scaffold/scaffold_generator.rb",
173
+ "lib/generators/somatics/scaffold/templates/_form.html.erb",
174
+ "lib/generators/somatics/scaffold/templates/edit.html.erb",
175
+ "lib/generators/somatics/scaffold/templates/index.html.erb",
176
+ "lib/generators/somatics/scaffold/templates/new.html.erb",
177
+ "lib/generators/somatics/scaffold/templates/show.html.erb",
178
+ "lib/generators/somatics/scaffold_controller/USAGE",
179
+ "lib/generators/somatics/scaffold_controller/scaffold_controller_generator.rb",
180
+ "lib/generators/somatics/scaffold_controller/templates/builder_index.pdf.prawn",
181
+ "lib/generators/somatics/scaffold_controller/templates/builder_index.xls.builder",
182
+ "lib/generators/somatics/scaffold_controller/templates/builder_index.xml.builder",
183
+ "lib/generators/somatics/scaffold_controller/templates/controller.rb",
184
+ "lib/generators/somatics/scaffold_controller/templates/locales_en.yml",
185
+ "lib/generators/somatics/scaffold_controller/templates/locales_zh-TW.yml",
186
+ "lib/generators/somatics/scaffold_controller/templates/partial_bulk.html.erb",
187
+ "lib/generators/somatics/scaffold_controller/templates/partial_edit.html.erb",
188
+ "lib/generators/somatics/scaffold_controller/templates/partial_form.html.erb",
189
+ "lib/generators/somatics/scaffold_controller/templates/partial_list.html.erb",
190
+ "lib/generators/somatics/scaffold_controller/templates/partial_menu.html.erb",
191
+ "lib/generators/somatics/scaffold_controller/templates/partial_show.html.erb",
192
+ "lib/generators/somatics/scaffold_controller/templates/view_edit.html.erb",
193
+ "lib/generators/somatics/scaffold_controller/templates/view_index.html.erb",
194
+ "lib/generators/somatics/scaffold_controller/templates/view_new.html.erb",
195
+ "lib/generators/somatics/scaffold_controller/templates/view_show.html.erb",
196
+ "lib/somatics3-generators.rb",
197
+ "somatics3-generators.gemspec",
198
+ "templates/somatics.rb",
199
+ "test/helper.rb",
200
+ "test/test_somatics3-generators.rb"
201
+ ]
202
+ s.homepage = %q{http://github.com/inspiresynergy/somatics3-generators}
203
+ s.rdoc_options = ["--charset=UTF-8", "--exclude=lib/generators/somatics/authenticated/templates/mailer.rb", "--exclude=lib/generators/somatics/authenticated/templates/migration.rb", "--exclude=lib/generators/somatics/authenticated/templates/model.rb", "--exclude=lib/generators/somatics/authenticated/templates/observer.rb", "--exclude=lib/generators/somatics/authenticated/templates/test", "--exclude=lib/generators/somatics/authenticated_controller/templates/_model_partial.html.erb", "--exclude=lib/generators/somatics/authenticated_controller/templates/activation.erb", "--exclude=lib/generators/somatics/authenticated_controller/templates/authenticated_system.rb", "--exclude=lib/generators/somatics/authenticated_controller/templates/authenticated_test_helper.rb", "--exclude=lib/generators/somatics/authenticated_controller/templates/config", "--exclude=lib/generators/somatics/authenticated_controller/templates/controller.rb", "--exclude=lib/generators/somatics/authenticated_controller/templates/helper.rb", "--exclude=lib/generators/somatics/authenticated_controller/templates/login.html.erb", "--exclude=lib/generators/somatics/authenticated_controller/templates/mailer.rb", "--exclude=lib/generators/somatics/authenticated_controller/templates/migration.rb", "--exclude=lib/generators/somatics/authenticated_controller/templates/model.rb", "--exclude=lib/generators/somatics/authenticated_controller/templates/observer.rb", "--exclude=lib/generators/somatics/authenticated_controller/templates/session_helper.rb", "--exclude=lib/generators/somatics/authenticated_controller/templates/sessions_controller.rb", "--exclude=lib/generators/somatics/authenticated_controller/templates/signup.html.erb", "--exclude=lib/generators/somatics/authenticated_controller/templates/signup_notification.erb", "--exclude=lib/generators/somatics/authenticated_controller/templates/test", "--exclude=lib/generators/somatics/install/templates/config", "--exclude=lib/generators/somatics/install/templates/controller_admin.rb", "--exclude=lib/generators/somatics/install/templates/controller_home.rb", "--exclude=lib/generators/somatics/install/templates/helper_admin.rb", "--exclude=lib/generators/somatics/install/templates/layout_admin.html.erb", "--exclude=lib/generators/somatics/install/templates/lib", "--exclude=lib/generators/somatics/install/templates/partial_menu.html.erb", "--exclude=lib/generators/somatics/install/templates/public", "--exclude=lib/generators/somatics/install/templates/view_index.html.erb", "--exclude=lib/generators/somatics/scaffold/templates/_form.html.erb", "--exclude=lib/generators/somatics/scaffold/templates/edit.html.erb", "--exclude=lib/generators/somatics/scaffold/templates/index.html.erb", "--exclude=lib/generators/somatics/scaffold/templates/new.html.erb", "--exclude=lib/generators/somatics/scaffold/templates/show.html.erb", "--exclude=lib/generators/somatics/scaffold_controller/templates/builder_index.pdf.prawn", "--exclude=lib/generators/somatics/scaffold_controller/templates/builder_index.xls.builder", "--exclude=lib/generators/somatics/scaffold_controller/templates/builder_index.xml.builder", "--exclude=lib/generators/somatics/scaffold_controller/templates/controller.rb", "--exclude=lib/generators/somatics/scaffold_controller/templates/locales_en.yml", "--exclude=lib/generators/somatics/scaffold_controller/templates/locales_zh-TW.yml", "--exclude=lib/generators/somatics/scaffold_controller/templates/partial_bulk.html.erb", "--exclude=lib/generators/somatics/scaffold_controller/templates/partial_edit.html.erb", "--exclude=lib/generators/somatics/scaffold_controller/templates/partial_form.html.erb", "--exclude=lib/generators/somatics/scaffold_controller/templates/partial_list.html.erb", "--exclude=lib/generators/somatics/scaffold_controller/templates/partial_menu.html.erb", "--exclude=lib/generators/somatics/scaffold_controller/templates/partial_show.html.erb", "--exclude=lib/generators/somatics/scaffold_controller/templates/view_edit.html.erb", "--exclude=lib/generators/somatics/scaffold_controller/templates/view_index.html.erb", "--exclude=lib/generators/somatics/scaffold_controller/templates/view_new.html.erb", "--exclude=lib/generators/somatics/scaffold_controller/templates/view_show.html.erb"]
204
+ s.require_paths = ["lib"]
205
+ s.rubyforge_project = %q{somatics3}
206
+ s.rubygems_version = %q{1.3.7}
207
+ s.summary = %q{Somatics - Adminable Resource generators}
208
+ s.test_files = [
209
+ "test/helper.rb",
210
+ "test/test_somatics3-generators.rb"
211
+ ]
212
+
213
+ if s.respond_to? :specification_version then
214
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
215
+ s.specification_version = 3
216
+
217
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
218
+ else
219
+ end
220
+ else
221
+ end
222
+ end
223
+
@@ -0,0 +1,128 @@
1
+ # somatics.rb
2
+
3
+ # app_name = ask 'Type your Application Name for the Heroku project, followed by [ENTER]:'
4
+ #
5
+ # repo_entered = ask 'Type your repository for the project (SVN), followed by [ENTER]:'
6
+
7
+ gem 'will_paginate', :git => 'git://github.com/mislav/will_paginate.git', :branch => "rails3"
8
+ gem 'prawn', :version => '0.6.3'
9
+ gem 'somatics3-generators'
10
+ gem 'json'
11
+
12
+ plugin 'action_mailer_optional_tls',
13
+ :git => 'git://github.com/collectiveidea/action_mailer_optional_tls.git'
14
+ plugin 'faster_csv',
15
+ :git => 'git://github.com/circle/fastercsv.git'
16
+ plugin 'prawnto',
17
+ :git => 'git://github.com/thorny-sun/prawnto.git'
18
+ plugin 'redmine_filter',
19
+ :git => 'git://github.com/inspiresynergy/redmine_filter.git'
20
+ plugin 'restful_authentication',
21
+ :git => 'git://github.com/Satish/restful-authentication.git'
22
+ # :git => 'git://github.com/technoweenie/restful-authentication.git'
23
+ # plugin 'somatics_generator',
24
+ # :git => 'git://github.com/inspiresynergy/somatics_generator.git'
25
+ # theme_support break my rails 2.3.5
26
+ # http://inspiresynergy.lighthouseapp.com/projects/53315-somatics/tickets/14-theme_support-break-my-rails-235
27
+ # plugin 'theme_support',
28
+ # :git => 'git://github.com/aussiegeek/theme_support.git'
29
+ plugin 'tinymce_hammer',
30
+ :git => 'git://github.com/trevorrowe/tinymce_hammer.git'
31
+ plugin 'to_xls',
32
+ :git => 'git://github.com/arydjmal/to_xls.git'
33
+ plugin 'dynamic_form',
34
+ :git => 'git://github.com/rails/dynamic_form.git'
35
+
36
+ rakefile "setup_svn.rake" do
37
+ <<-TASK
38
+ desc "Configure Subversion for Rails"
39
+ task :setup_svn do
40
+ system "svn info"
41
+ if $? != 0
42
+ puts 'Please Import your project to svn before executing this task'
43
+ exit(0)
44
+ end
45
+
46
+ system "svn commit -m 'initial commit'"
47
+
48
+ puts "Add .gems"
49
+ system "svn add .gems"
50
+ system "svn commit -m 'add .gems'"
51
+
52
+ puts "Add .gitignore"
53
+ system "echo '.svn' > .gitignore"
54
+ system "svn add .gitignore"
55
+ system "svn commit -m 'add .gitignore'"
56
+
57
+ puts "Ignoring .git"
58
+ system "svn propset svn:ignore '.git' ."
59
+
60
+ puts "Removing /log"
61
+ system "svn remove log/*"
62
+ system "svn commit -m 'removing all log files from subversion'"
63
+ system 'svn propset svn:ignore "*.log" log/'
64
+ system "svn update log/"
65
+ system "svn commit -m 'Ignoring all files in /log/ ending in .log'"
66
+
67
+ puts "Ignoring /db"
68
+ system 'svn propset svn:ignore "*.db" db/'
69
+ system "svn update db/"
70
+ system "svn commit -m 'Ignoring all files in /db/ ending in .db'"
71
+
72
+ puts "Renaming database.yml database.example"
73
+ system "svn move config/database.yml config/database.example"
74
+ system "svn commit -m 'Moving database.yml to database.example to provide a template for anyone who checks out the code'"
75
+ system 'svn propset svn:ignore "database.yml" config/'
76
+ system "svn update config/"
77
+ system "svn commit -m 'Ignoring database.yml'"
78
+
79
+ puts "Ignoring /tmp"
80
+ system 'svn propset svn:ignore "*" tmp/'
81
+ system "svn update tmp/"
82
+ system "svn commit -m 'Ignoring all files in /tmp/'"
83
+
84
+ puts "Ignoring /doc"
85
+ system 'svn propset svn:ignore "*" doc/'
86
+ system "svn update doc/"
87
+ system "svn commit -m 'Ignoring all files in /doc/'"
88
+ end
89
+ TASK
90
+ end
91
+
92
+ # rake "gems:install", :sudo => true
93
+ generate "somatics:install"
94
+ environment 'config.autoload_paths += %W(#{config.root}/lib)'
95
+ generate "somatics:authenticated user"
96
+ generate "somatics:authenticated_controller admin/user --model=User"
97
+
98
+ #
99
+ # generate "tinymce_installation"
100
+ # generate "admin_controllers"
101
+ # generate "admin_scaffold user --admin-authenticated"
102
+ # generate "admin_setting"
103
+ #
104
+ # rake "db:create"
105
+ # rake "db:migrate"
106
+
107
+ # unless app_name.blank?
108
+ # run "git init"
109
+ # rake "heroku:gems"
110
+ # run "heroku create #{app_name}"
111
+ # run "git add ."
112
+ # run "git commit -a -m 'Initial Commit' "
113
+ # run "heroku addons:add cron:daily"
114
+ # run "heroku addons:add deployhooks:email \
115
+ # recipient=heroku@inspiresynergy.com \
116
+ # subject=\"#{app_name} Deployed\" \
117
+ # body=\"{{user}} deployed app\""
118
+ # run "heroku addons:add piggyback_ssl"
119
+ # run "heroku addons:add newrelic:bronze"
120
+ # run "heroku addons:add cron:daily"
121
+ # run "git push heroku master"
122
+ # run "heroku rake db:migrate"
123
+ # end
124
+ #
125
+ # unless repo_entered.blank?
126
+ # run "svn co #{repo_entered}"
127
+ # rake "setup_svn"
128
+ # end
data/test/helper.rb ADDED
@@ -0,0 +1,10 @@
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 'somatics3-generators'
8
+
9
+ class Test::Unit::TestCase
10
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestSomatics3Generators < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end