somatics3 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. data/.document +5 -0
  2. data/LICENSE +20 -0
  3. data/README.rdoc +91 -0
  4. data/Rakefile +72 -0
  5. data/VERSION +1 -0
  6. data/bin/somatics +23 -0
  7. data/bin/somatify +21 -0
  8. data/lib/generators/somatics.rb +37 -0
  9. data/lib/generators/somatics/associated/associated_generator.rb +184 -0
  10. data/lib/generators/somatics/associated/templates/migration.rb +11 -0
  11. data/lib/generators/somatics/attributes/attributes_generator.rb +115 -0
  12. data/lib/generators/somatics/attributes/templates/migration.rb +11 -0
  13. data/lib/generators/somatics/authenticated/authenticated_generator.rb +65 -0
  14. data/lib/generators/somatics/authenticated/templates/partial_form.html.erb +23 -0
  15. data/lib/generators/somatics/authenticated_controller/authenticated_controller_generator.rb +38 -0
  16. data/lib/generators/somatics/authenticated_controller/templates/locales_en.yml +6 -0
  17. data/lib/generators/somatics/authenticated_controller/templates/locales_zh-TW.yml +6 -0
  18. data/lib/generators/somatics/authenticated_controller/templates/login.html.erb +31 -0
  19. data/lib/generators/somatics/authenticated_controller/templates/sessions_controller.rb +11 -0
  20. data/lib/generators/somatics/helper/helper_generator.rb +16 -0
  21. data/lib/generators/somatics/install/install_generator.rb +101 -0
  22. data/lib/generators/somatics/install/templates/config/locales/devise_zh-TW.yml +39 -0
  23. data/lib/generators/somatics/install/templates/config/locales/somatics_en.yml +35 -0
  24. data/lib/generators/somatics/install/templates/config/locales/somatics_zh-TW.yml +35 -0
  25. data/lib/generators/somatics/install/templates/controller_admin.rb +17 -0
  26. data/lib/generators/somatics/install/templates/controller_home.rb +4 -0
  27. data/lib/generators/somatics/install/templates/helper_admin.rb +99 -0
  28. data/lib/generators/somatics/install/templates/initializer_paper_trail.rb +2 -0
  29. data/lib/generators/somatics/install/templates/layout_admin.html.erb +87 -0
  30. data/lib/generators/somatics/install/templates/lib/active_record/diff.rb +61 -0
  31. data/lib/generators/somatics/install/templates/lib/somatic_link_renderer.rb +24 -0
  32. data/lib/generators/somatics/install/templates/lib/tasks/heroku.rake +30 -0
  33. data/lib/generators/somatics/install/templates/lib/tasks/svn.rake +47 -0
  34. data/lib/generators/somatics/install/templates/partial_menu.html.erb +1 -0
  35. data/lib/generators/somatics/install/templates/partial_versions.html.erb +56 -0
  36. data/lib/generators/somatics/install/templates/public/images/somatics/add.png +0 -0
  37. data/lib/generators/somatics/install/templates/public/images/somatics/arrow_collapsed.png +0 -0
  38. data/lib/generators/somatics/install/templates/public/images/somatics/arrow_expanded.png +0 -0
  39. data/lib/generators/somatics/install/templates/public/images/somatics/attachment.png +0 -0
  40. data/lib/generators/somatics/install/templates/public/images/somatics/bullet_arrow_left.png +0 -0
  41. data/lib/generators/somatics/install/templates/public/images/somatics/bullet_arrow_right.png +0 -0
  42. data/lib/generators/somatics/install/templates/public/images/somatics/bullet_diamond.png +0 -0
  43. data/lib/generators/somatics/install/templates/public/images/somatics/bullet_end.png +0 -0
  44. data/lib/generators/somatics/install/templates/public/images/somatics/bullet_go.png +0 -0
  45. data/lib/generators/somatics/install/templates/public/images/somatics/bullet_toggle_minus.png +0 -0
  46. data/lib/generators/somatics/install/templates/public/images/somatics/bullet_toggle_plus.png +0 -0
  47. data/lib/generators/somatics/install/templates/public/images/somatics/c.png +0 -0
  48. data/lib/generators/somatics/install/templates/public/images/somatics/cancel.png +0 -0
  49. data/lib/generators/somatics/install/templates/public/images/somatics/changeset.png +0 -0
  50. data/lib/generators/somatics/install/templates/public/images/somatics/comment.png +0 -0
  51. data/lib/generators/somatics/install/templates/public/images/somatics/comments.png +0 -0
  52. data/lib/generators/somatics/install/templates/public/images/somatics/content-left.png +0 -0
  53. data/lib/generators/somatics/install/templates/public/images/somatics/content-right.png +0 -0
  54. data/lib/generators/somatics/install/templates/public/images/somatics/copy.png +0 -0
  55. data/lib/generators/somatics/install/templates/public/images/somatics/csharp.png +0 -0
  56. data/lib/generators/somatics/install/templates/public/images/somatics/database_key.png +0 -0
  57. data/lib/generators/somatics/install/templates/public/images/somatics/default.png +0 -0
  58. data/lib/generators/somatics/install/templates/public/images/somatics/delete.png +0 -0
  59. data/lib/generators/somatics/install/templates/public/images/somatics/document.png +0 -0
  60. data/lib/generators/somatics/install/templates/public/images/somatics/draft.png +0 -0
  61. data/lib/generators/somatics/install/templates/public/images/somatics/duplicate.png +0 -0
  62. data/lib/generators/somatics/install/templates/public/images/somatics/edit.png +0 -0
  63. data/lib/generators/somatics/install/templates/public/images/somatics/exclamation.png +0 -0
  64. data/lib/generators/somatics/install/templates/public/images/somatics/external.png +0 -0
  65. data/lib/generators/somatics/install/templates/public/images/somatics/fav.png +0 -0
  66. data/lib/generators/somatics/install/templates/public/images/somatics/fav_off.png +0 -0
  67. data/lib/generators/somatics/install/templates/public/images/somatics/feed.png +0 -0
  68. data/lib/generators/somatics/install/templates/public/images/somatics/folder.png +0 -0
  69. data/lib/generators/somatics/install/templates/public/images/somatics/folder_open.png +0 -0
  70. data/lib/generators/somatics/install/templates/public/images/somatics/footer-bg.png +0 -0
  71. data/lib/generators/somatics/install/templates/public/images/somatics/footer-left.png +0 -0
  72. data/lib/generators/somatics/install/templates/public/images/somatics/footer-right.png +0 -0
  73. data/lib/generators/somatics/install/templates/public/images/somatics/group.png +0 -0
  74. data/lib/generators/somatics/install/templates/public/images/somatics/help.png +0 -0
  75. data/lib/generators/somatics/install/templates/public/images/somatics/history.png +0 -0
  76. data/lib/generators/somatics/install/templates/public/images/somatics/image.png +0 -0
  77. data/lib/generators/somatics/install/templates/public/images/somatics/lightning.png +0 -0
  78. data/lib/generators/somatics/install/templates/public/images/somatics/link.png +0 -0
  79. data/lib/generators/somatics/install/templates/public/images/somatics/loading.gif +0 -0
  80. data/lib/generators/somatics/install/templates/public/images/somatics/locked.png +0 -0
  81. data/lib/generators/somatics/install/templates/public/images/somatics/message.png +0 -0
  82. data/lib/generators/somatics/install/templates/public/images/somatics/milestone.png +0 -0
  83. data/lib/generators/somatics/install/templates/public/images/somatics/move.png +0 -0
  84. data/lib/generators/somatics/install/templates/public/images/somatics/news.png +0 -0
  85. data/lib/generators/somatics/install/templates/public/images/somatics/openid-bg.gif +0 -0
  86. data/lib/generators/somatics/install/templates/public/images/somatics/package.png +0 -0
  87. data/lib/generators/somatics/install/templates/public/images/somatics/pdf.png +0 -0
  88. data/lib/generators/somatics/install/templates/public/images/somatics/php.png +0 -0
  89. data/lib/generators/somatics/install/templates/public/images/somatics/plugin.png +0 -0
  90. data/lib/generators/somatics/install/templates/public/images/somatics/projects.png +0 -0
  91. data/lib/generators/somatics/install/templates/public/images/somatics/rails.png +0 -0
  92. data/lib/generators/somatics/install/templates/public/images/somatics/reload.png +0 -0
  93. data/lib/generators/somatics/install/templates/public/images/somatics/report.png +0 -0
  94. data/lib/generators/somatics/install/templates/public/images/somatics/ruby.png +0 -0
  95. data/lib/generators/somatics/install/templates/public/images/somatics/save.png +0 -0
  96. data/lib/generators/somatics/install/templates/public/images/somatics/sort_asc.png +0 -0
  97. data/lib/generators/somatics/install/templates/public/images/somatics/sort_desc.png +0 -0
  98. data/lib/generators/somatics/install/templates/public/images/somatics/stats.png +0 -0
  99. data/lib/generators/somatics/install/templates/public/images/somatics/table_multiple.png +0 -0
  100. data/lib/generators/somatics/install/templates/public/images/somatics/task_done.png +0 -0
  101. data/lib/generators/somatics/install/templates/public/images/somatics/task_late.png +0 -0
  102. data/lib/generators/somatics/install/templates/public/images/somatics/task_parent_end.png +0 -0
  103. data/lib/generators/somatics/install/templates/public/images/somatics/task_todo.png +0 -0
  104. data/lib/generators/somatics/install/templates/public/images/somatics/text.png +0 -0
  105. data/lib/generators/somatics/install/templates/public/images/somatics/text_list_bullets.png +0 -0
  106. data/lib/generators/somatics/install/templates/public/images/somatics/textfield.png +0 -0
  107. data/lib/generators/somatics/install/templates/public/images/somatics/ticket.png +0 -0
  108. data/lib/generators/somatics/install/templates/public/images/somatics/ticket_checked.png +0 -0
  109. data/lib/generators/somatics/install/templates/public/images/somatics/ticket_edit.png +0 -0
  110. data/lib/generators/somatics/install/templates/public/images/somatics/ticket_go.png +0 -0
  111. data/lib/generators/somatics/install/templates/public/images/somatics/ticket_note.png +0 -0
  112. data/lib/generators/somatics/install/templates/public/images/somatics/time.png +0 -0
  113. data/lib/generators/somatics/install/templates/public/images/somatics/time_add.png +0 -0
  114. data/lib/generators/somatics/install/templates/public/images/somatics/toggle_check.png +0 -0
  115. data/lib/generators/somatics/install/templates/public/images/somatics/true.png +0 -0
  116. data/lib/generators/somatics/install/templates/public/images/somatics/unlock.png +0 -0
  117. data/lib/generators/somatics/install/templates/public/images/somatics/user.png +0 -0
  118. data/lib/generators/somatics/install/templates/public/images/somatics/warning.png +0 -0
  119. data/lib/generators/somatics/install/templates/public/images/somatics/wiki_edit.png +0 -0
  120. data/lib/generators/somatics/install/templates/public/images/somatics/xml.png +0 -0
  121. data/lib/generators/somatics/install/templates/public/images/somatics/zip.png +0 -0
  122. data/lib/generators/somatics/install/templates/public/images/somatics/zoom_in.png +0 -0
  123. data/lib/generators/somatics/install/templates/public/javascripts/somatics/base.js +237 -0
  124. data/lib/generators/somatics/install/templates/public/javascripts/somatics/context_menu.js +237 -0
  125. data/lib/generators/somatics/install/templates/public/javascripts/somatics/controls.js +965 -0
  126. data/lib/generators/somatics/install/templates/public/javascripts/somatics/dragdrop.js +974 -0
  127. data/lib/generators/somatics/install/templates/public/javascripts/somatics/effects.js +1123 -0
  128. data/lib/generators/somatics/install/templates/public/javascripts/somatics/prototype.js +6001 -0
  129. data/lib/generators/somatics/install/templates/public/javascripts/somatics/rails.js +175 -0
  130. data/lib/generators/somatics/install/templates/public/javascripts/somatics/select_list_move.js +82 -0
  131. data/lib/generators/somatics/install/templates/public/stylesheets/application.css +863 -0
  132. data/lib/generators/somatics/install/templates/public/stylesheets/somatics/base.css +951 -0
  133. data/lib/generators/somatics/install/templates/public/stylesheets/somatics/context_menu.css +52 -0
  134. data/lib/generators/somatics/install/templates/public/stylesheets/somatics/csshover.htc +122 -0
  135. data/lib/generators/somatics/install/templates/public/stylesheets/somatics/jstoolbar.css +95 -0
  136. data/lib/generators/somatics/install/templates/public/themes/default/stylesheets/application.css +951 -0
  137. data/lib/generators/somatics/install/templates/view_index.html.erb +46 -0
  138. data/lib/generators/somatics/relationship/relationship_generator.rb +173 -0
  139. data/lib/generators/somatics/relationship/templates/migration.rb +11 -0
  140. data/lib/generators/somatics/scaffold/scaffold_generator.rb +24 -0
  141. data/lib/generators/somatics/scaffold/templates/_form.html.erb +23 -0
  142. data/lib/generators/somatics/scaffold/templates/edit.html.erb +6 -0
  143. data/lib/generators/somatics/scaffold/templates/index.html.erb +27 -0
  144. data/lib/generators/somatics/scaffold/templates/new.html.erb +5 -0
  145. data/lib/generators/somatics/scaffold/templates/show.html.erb +12 -0
  146. data/lib/generators/somatics/scaffold_controller/USAGE +20 -0
  147. data/lib/generators/somatics/scaffold_controller/scaffold_controller_generator.rb +108 -0
  148. data/lib/generators/somatics/scaffold_controller/templates/builder_index.xls.builder +24 -0
  149. data/lib/generators/somatics/scaffold_controller/templates/builder_index.xml.builder +10 -0
  150. data/lib/generators/somatics/scaffold_controller/templates/controller.rb +123 -0
  151. data/lib/generators/somatics/scaffold_controller/templates/locales_en.yml +17 -0
  152. data/lib/generators/somatics/scaffold_controller/templates/locales_zh-TW.yml +20 -0
  153. data/lib/generators/somatics/scaffold_controller/templates/partial_bulk.html.erb +12 -0
  154. data/lib/generators/somatics/scaffold_controller/templates/partial_edit.html.erb +7 -0
  155. data/lib/generators/somatics/scaffold_controller/templates/partial_form.html.erb +13 -0
  156. data/lib/generators/somatics/scaffold_controller/templates/partial_list.html.erb +30 -0
  157. data/lib/generators/somatics/scaffold_controller/templates/partial_menu.html.erb +1 -0
  158. data/lib/generators/somatics/scaffold_controller/templates/partial_show.html.erb +31 -0
  159. data/lib/generators/somatics/scaffold_controller/templates/view_edit.html.erb +24 -0
  160. data/lib/generators/somatics/scaffold_controller/templates/view_index.html.erb +27 -0
  161. data/lib/generators/somatics/scaffold_controller/templates/view_new.html.erb +14 -0
  162. data/lib/generators/somatics/scaffold_controller/templates/view_show.html.erb +26 -0
  163. data/lib/generators/somatics/settings/settings_generator.rb +86 -0
  164. data/lib/generators/somatics/settings_controller/USAGE +20 -0
  165. data/lib/generators/somatics/settings_controller/settings_controller_generator.rb +11 -0
  166. data/lib/generators/somatics/settings_controller/templates/builder_index.xls.builder +24 -0
  167. data/lib/generators/somatics/settings_controller/templates/builder_index.xml.builder +10 -0
  168. data/lib/generators/somatics/settings_controller/templates/controller.rb +64 -0
  169. data/lib/generators/somatics/settings_controller/templates/helper.rb +2 -0
  170. data/lib/generators/somatics/settings_controller/templates/locales_en.yml +9 -0
  171. data/lib/generators/somatics/settings_controller/templates/locales_zh-TW.yml +28 -0
  172. data/lib/generators/somatics/settings_controller/templates/migration.rb +17 -0
  173. data/lib/generators/somatics/settings_controller/templates/partial_bulk.html.erb +12 -0
  174. data/lib/generators/somatics/settings_controller/templates/partial_edit.html.erb +7 -0
  175. data/lib/generators/somatics/settings_controller/templates/partial_form.html.erb +15 -0
  176. data/lib/generators/somatics/settings_controller/templates/partial_list.html.erb +28 -0
  177. data/lib/generators/somatics/settings_controller/templates/partial_menu.html.erb +1 -0
  178. data/lib/generators/somatics/settings_controller/templates/partial_show.html.erb +13 -0
  179. data/lib/generators/somatics/settings_controller/templates/view_edit.html.erb +23 -0
  180. data/lib/generators/somatics/settings_controller/templates/view_index.html.erb +22 -0
  181. data/lib/generators/somatics/settings_controller/templates/view_new.html.erb +14 -0
  182. data/lib/generators/somatics/settings_controller/templates/view_show.html.erb +23 -0
  183. data/lib/somatics.rb +9 -0
  184. data/somatics.gemspec +249 -0
  185. data/somatics3.gemspec +248 -0
  186. data/templates/somatics.rb +106 -0
  187. data/test/helper.rb +10 -0
  188. data/test/test_somatics3-generators.rb +7 -0
  189. metadata +398 -0
@@ -0,0 +1,20 @@
1
+ Description:
2
+ Stubs out a scaffolded controller and its views. Pass the model name,
3
+ either CamelCased or under_scored, and a list of views as arguments.
4
+ The controller name is retrieved as a pluralized version of the model
5
+ name.
6
+
7
+ To create a controller within a module, specify the model name as a
8
+ path like 'parent_module/controller_name'.
9
+
10
+ This generates a controller class in app/controllers and invokes helper,
11
+ template engine and test framework generators.
12
+
13
+ Example:
14
+ `rails generate scaffold_controller CreditCard`
15
+
16
+ Credit card controller with URLs like /credit_card/debit.
17
+ Controller: app/controllers/credit_cards_controller.rb
18
+ Functional Test: test/functional/credit_cards_controller_test.rb
19
+ Views: app/views/credit_cards/index.html.erb [...]
20
+ Helper: app/helpers/credit_cards_helper.rb
@@ -0,0 +1,11 @@
1
+ require 'generators/somatics'
2
+ require 'rails/generators/resource_helpers'
3
+ require 'generators/somatics/scaffold_controller/scaffold_controller_generator'
4
+
5
+ module Somatics
6
+ module Generators
7
+ class SettingsControllerGenerator < ScaffoldControllerGenerator
8
+ extend TemplatePath
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,24 @@
1
+ excel_document(xml) do
2
+ xml.Worksheet 'ss:Name' => '<%= plural_name.humanize %>' do
3
+ xml.Table do
4
+ # Header
5
+ xml.Row do
6
+ @headers.each do |header|
7
+ xml.Cell { xml.Data header, 'ss:Type' => 'String' }
8
+ end
9
+ end
10
+
11
+ # Rows
12
+ unless @<%= plural_name %>.blank?
13
+ for <%= singular_name %> in @<%= plural_name %>
14
+ xml.Row do
15
+ @fields.each do |f|
16
+ xml.Cell { xml.Data <%= singular_name %>.send(f), 'ss:Type' => 'String' }
17
+ end
18
+ end
19
+ end
20
+ end
21
+
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,10 @@
1
+ xml.instruct!
2
+ xml.<%= plural_name %> do
3
+ @<%= plural_name %>.each do |<%= singular_name %>|
4
+ xml.<%= singular_name %> do
5
+ @fields.each do |f|
6
+ xml.tag! f, <%= singular_name %>.send(f)
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,64 @@
1
+ class <%=namespace_class%>::<%= controller_class_name %>Controller < <%=namespace_class%>::AdminController
2
+ # GET /<%= table_name %>
3
+ # GET /<%= table_name %>.xml
4
+ def index
5
+ @fields = <%= attributes.collect {|attribute| attribute.name}.inspect %>
6
+ @headers = <%= attributes.collect {|attribute| attribute.name.humanize}.inspect %>
7
+ respond_to do |format|
8
+ format.html {
9
+ @<%= table_name %> = <%= class_name %>.apply_query(params).paginate(:page => params[:<%= table_name %>_page], :order => (params[:<%= singular_name %>_sort].gsub('_reverse', ' DESC') unless params[:<%= singular_name %>_sort].blank?))
10
+ }
11
+ format.xml {
12
+ @<%= table_name %> = <%= class_name %>.apply_query(params)
13
+ }
14
+ format.csv {
15
+ @<%= table_name %> = <%= class_name %>.apply_query(params)
16
+ csv_string = FasterCSV.generate do |csv|
17
+ csv << @headers
18
+ @<%= table_name %>.each do |<%= singular_name %>|
19
+ csv << @fields.collect { |f| <%= singular_name %>.send(f) }
20
+ end
21
+ end
22
+ send_data csv_string, :type => 'text/csv; charset=iso-8859-1; header=present',
23
+ :disposition => "attachment; filename=<%= table_name %>.csv"
24
+ }
25
+ format.xls {
26
+ @<%= table_name %> = <%= class_name %>.apply_query(params)
27
+ render :xls => @<%= table_name %>
28
+ }
29
+ end
30
+ end
31
+
32
+ # GET /<%= table_name %>/1
33
+ # GET /<%= table_name %>/1.xml
34
+ def show
35
+ @<%= file_name %> = <%= class_name %>.find(params[:id])
36
+
37
+ respond_to do |format|
38
+ format.html # show.html.erb
39
+ format.xml { render :xml => @<%= file_name %> }
40
+ end
41
+ end
42
+
43
+ # GET /<%= table_name %>/1/edit
44
+ def edit
45
+ @<%= file_name %> = <%= class_name %>.find(params[:id])
46
+ end
47
+
48
+ # PUT /<%= table_name %>/1
49
+ # PUT /<%= table_name %>/1.xml
50
+ def update
51
+ @<%= file_name %> = <%= class_name %>.find(params[:id])
52
+
53
+ respond_to do |format|
54
+ if @<%= file_name %>.update_attributes(params[:<%= file_name %>])
55
+ flash[:notice] = '<%= class_name %> was successfully updated.'
56
+ format.html { redirect_to([:admin,@<%= file_name %>]) }
57
+ format.xml { head :ok }
58
+ else
59
+ format.html { render :action => "edit" }
60
+ format.xml { render :xml => @<%= file_name %>.errors, :status => :unprocessable_entity }
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,2 @@
1
+ module <%= controller_class_name %>Helper
2
+ end
@@ -0,0 +1,9 @@
1
+ en:
2
+ activerecord:
3
+ models:
4
+ <%= singular_name %>: <%= singular_name.humanize %>
5
+ attributes:
6
+ <%= singular_name %>:
7
+ <% attributes.each do |attribute| -%>
8
+ <%= attribute.name %>: <%= attribute.name.humanize %>
9
+ <% end -%>
@@ -0,0 +1,28 @@
1
+ <%-
2
+ require 'net/http'
3
+ require 'uri'
4
+ require 'json'
5
+ class GoogleTranslate
6
+ def self.t(text)
7
+ uri = URI.parse('http://ajax.googleapis.com/ajax/services/language/translate')
8
+ JSON.parse(Net::HTTP.post_form(uri, {"q" => text, "langpair" => "en|zh-TW", "v" => '1.0'}).body)['responseData']['translatedText'] rescue text.humanize
9
+ end
10
+ end
11
+ -%>
12
+ "zh-TW":
13
+ activerecord:
14
+ models:
15
+ <%= singular_name %>: <%= GoogleTranslate.t singular_name.humanize %>
16
+ attributes:
17
+ <%= singular_name %>:
18
+ <% if options[:authenticated] -%>
19
+ login: 註冊
20
+ name: 名稱
21
+ email: 電子郵件
22
+ created_at: 註冊日期
23
+ password: 密碼
24
+ password_confirmation: 確認密碼
25
+ <% end -%>
26
+ <% attributes.each do |attribute| -%>
27
+ <%= attribute.name %>: <%= GoogleTranslate.t attribute.name.humanize %>
28
+ <% end -%>
@@ -0,0 +1,17 @@
1
+ class <%= migration_name %> < ActiveRecord::Migration
2
+ def self.up
3
+ create_table "<%= table_name %>" do |t|
4
+ t.string :name
5
+ t.string :field_type
6
+ t.text :value
7
+ t.string :category
8
+ t.text :description
9
+ t.boolean :mce_editable
10
+ end
11
+ add_index :<%= table_name %>, :name, :unique => true
12
+ end
13
+
14
+ def self.down
15
+ drop_table "<%= table_name %>"
16
+ end
17
+ end
@@ -0,0 +1,12 @@
1
+ <h3><%%= "#{t('Bulk')} #{t('Update')}" %></h3>
2
+ <div class="issue">
3
+ <table width="100%">
4
+ <tbody>
5
+ <!-- <tr>
6
+ <td><b>Field</b></td>
7
+ <td><%%#= text_field_tag '<%= singular_name %>[field]' %></td>
8
+ </tr> -->
9
+ </tbody>
10
+ </table>
11
+ </div>
12
+ <%%= submit_tag("#{t('Bulk')} #{t('Update')}") %>
@@ -0,0 +1,7 @@
1
+ <%% form_for([:admin, @<%= singular_name %>]) do |f| %>
2
+ <div class="box tabular settings">
3
+ <%%= f.error_messages %>
4
+ <%%= render :partial => 'form' , :locals => {:f => f} %>
5
+ </div>
6
+ <%%= f.submit t('Update') %>
7
+ <%% end %>
@@ -0,0 +1,15 @@
1
+ <table width="100%">
2
+ <tbody>
3
+ <tr>
4
+ <td colspan="2"><br/><h3><%%= <%= class_name %>.human_name %></h3></td>
5
+ </tr>
6
+ <tr>
7
+ <td><b><%%= <%= class_name %>.human_attribute_name(:name) %></b></td>
8
+ <td><%%=h @<%= singular_name %>.name %></td>
9
+ </tr>
10
+ <tr>
11
+ <td><b><%%= <%= class_name %>.human_attribute_name(:value) %></b></td>
12
+ <td><%%= raw @<%= singular_name %>.input_field(f) %></td>
13
+ </tr>
14
+ </tbody>
15
+ </table>
@@ -0,0 +1,28 @@
1
+ <table class="list issues">
2
+ <thead>
3
+ <tr>
4
+ <th title="Sort by &quot;#&quot;"><%%= sort_link_helper t('ID'), '<%=singular_name%>', 'id' %></th>
5
+ <% %w(name value description).each do |attribute| -%>
6
+ <th title="Sort by &quot;<%= attribute.humanize %>&quot;"><%%= sort_link_helper <%= class_name %>.human_attribute_name(:<%= attribute %>), '<%=singular_name%>', '<%= attribute %>' %></th>
7
+ <% end -%>
8
+ <!-- More Sort Link Helper -->
9
+ </tr>
10
+ </thead>
11
+ <tbody>
12
+ <%% unless <%= plural_name %>.empty? %>
13
+ <%% for <%= singular_name %> in <%= plural_name %> %>
14
+ <tr id="<%% dom_id(<%=singular_name%>)%>" class="hascontextmenu <%%= cycle 'odd' , 'even' %> issue">
15
+ <td onclick="link_to(<%%= "'#{admin_<%=singular_name%>_path(<%=singular_name%>)}'" %>);"><%%= link_to <%= singular_name %>.id, [:admin, <%= singular_name %>]%></td>
16
+ <% %w(name value description).each do |attribute| -%>
17
+ <td onclick="link_to(<%%= "'#{admin_<%=singular_name%>_path(<%=singular_name%>)}'" %>);" class="<%= attribute %>"><%%=h <%= singular_name %>.<%= attribute %> %></td>
18
+ <% end -%>
19
+ <!-- More Fields -->
20
+ </tr>
21
+ <%% end %>
22
+ <%% else -%>
23
+ <tr class="datos">
24
+ <td colspan="100" align="center">No Data available</td>
25
+ </tr>
26
+ <%% end -%>
27
+ </tbody>
28
+ </table>
@@ -0,0 +1 @@
1
+ <li><%%= link_to 'Home', '/admin', :class => (match_controller?("home")) ? 'selected' : ''%></li>
@@ -0,0 +1,13 @@
1
+ <table class="attributes" width="100%">
2
+ <tbody>
3
+ <tr>
4
+ <td colspan="2"><br/><h3><%%= "#{<%= class_name %>.human_name} #{t('Information')}" %></h3></td>
5
+ </tr>
6
+ <% for attribute in attributes -%>
7
+ <tr>
8
+ <td><b><%%= <%= class_name %>.human_attribute_name(:<%= attribute.name %>) %></b></td>
9
+ <td><%%=h <%= singular_name %>.<%= attribute.name %> %></td>
10
+ </tr>
11
+ <% end -%>
12
+ </tbody>
13
+ </table>
@@ -0,0 +1,23 @@
1
+ <div class="contextual">
2
+ <%%= link_to t('Update'), edit_admin_<%= singular_name %>_path(@<%= singular_name %>), :accesskey => "e", :class => "icon icon-edit", :onclick => "showAndScrollTo('update','focus'); return false;"%>
3
+ </div>
4
+
5
+ <h2><%%= "#{<%= class_name %>.human_name} ##{@<%= singular_name %>.id}" %></h2>
6
+
7
+ <div class="issue details">
8
+ <%%= render :partial => 'show' , :locals => {:<%= singular_name %> => @<%= singular_name %>} %>
9
+ </div>
10
+
11
+ <!-- More List View -->
12
+
13
+ <div id="update">
14
+ <h3><%%= t('Update') %></h3>
15
+ <div id="focus"></div>
16
+ <%%= render :partial => 'edit' , :locals => {:<%= singular_name %> => @<%= singular_name %>} %>
17
+ </div>
18
+ <div style="clear: both;"></div>
19
+
20
+ <%% content_for :sidebar do %>
21
+ <h3>Actions</h3>
22
+ <%%= link_to "#{t('Back_to')} #{<%= class_name %>.human_name}", admin_<%= plural_name %>_path %>
23
+ <%% end %>
@@ -0,0 +1,22 @@
1
+ <div class="contextual"></div>
2
+
3
+ <h2><%%= <%= class_name %>.model_name.human %></h2>
4
+
5
+ <!-- Redmine Filters-->
6
+ <%%= somatics_filter_for :setting %>
7
+
8
+ <div class="autoscroll">
9
+ <%%= render :partial => 'list', :locals => {:<%= plural_name %> => @<%= plural_name %>} %>
10
+ </div>
11
+
12
+ <!-- TODO Export-->
13
+ <p class="other-formats"><%%= t('Also_available_in') %>:
14
+ <span><%%= link_to 'CSV', admin_<%= plural_name %>_path(:format => :csv), :class => 'csv' %></span>
15
+ <span><%%= link_to 'XLS', admin_<%= plural_name %>_path(:format => :xls), :class => 'xls' %></span>
16
+ <!-- <span><%%= link_to 'PDF', admin_<%= plural_name %>_path(:format => :pdf), :class => 'pdf' %></span> -->
17
+ </p>
18
+ <div style="clear:both;"></div>
19
+
20
+ <%%# content_for :sidebar do %>
21
+ <!-- <h3>Actions</h3> -->
22
+ <%%# end %>
@@ -0,0 +1,14 @@
1
+ <h2><%%= "#{t('New')} #{<%= class_name %>.model_name.human}" %></h2>
2
+ <%% form_for([:admin, @<%= singular_name %>]) do |f| %>
3
+ <%%= f.error_messages %>
4
+ <div class="issue">
5
+ <%%= render :partial => 'form' , :locals => {:f => f} %>
6
+ </div>
7
+ <%%= f.submit t('Create') %>
8
+ <%% end %>
9
+ <%%= link_to t('Back'), admin_<%= plural_name %>_path %>
10
+
11
+ <%% content_for :sidebar do %>
12
+ <h3>Actions</h3>
13
+ <%%= link_to "#{t('Back_to')} #{<%= class_name %>.model_name.human}", admin_<%= plural_name %>_path %>
14
+ <%% end %>
@@ -0,0 +1,23 @@
1
+ <div class="contextual">
2
+ <%%= link_to t('Update'), edit_admin_<%= singular_name %>_path(@<%= singular_name %>), :accesskey => "e", :class => "icon icon-edit", :onclick => "showAndScrollTo('update','focus'); return false;"%>
3
+ </div>
4
+
5
+ <h2><%%= "#{<%= class_name %>.human_name} ##{@<%= singular_name %>.id}" %></h2>
6
+
7
+ <div class="issue details">
8
+ <%%= render :partial => 'show' , :locals => {:<%= singular_name %> => @<%= singular_name %>} %>
9
+ </div>
10
+
11
+ <!-- More List View -->
12
+
13
+ <div id="update" style="display:none;">
14
+ <h3><%%= t('Update') %></h3>
15
+ <div id="focus"></div>
16
+ <%%= render :partial => 'edit' , :locals => {:<%= singular_name %> => @<%= singular_name %>} %>
17
+ </div>
18
+ <div style="clear: both;"></div>
19
+
20
+ <%% content_for :sidebar do %>
21
+ <h3>Actions</h3>
22
+ <%%= link_to "#{t('Back_to')} #{<%= class_name %>.human_name}", admin_<%= plural_name %>_path %>
23
+ <%% end %>
data/lib/somatics.rb ADDED
@@ -0,0 +1,9 @@
1
+ module Somatics
2
+ # module Version
3
+ # MAJOR = 0
4
+ # MINOR = 0
5
+ # PATCH = 10
6
+ #
7
+ # STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
+ # end
9
+ end
data/somatics.gemspec ADDED
@@ -0,0 +1,249 @@
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{somatics}
8
+ s.version = "0.0.10"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Benjamin Wong", "Gary Or"]
12
+ s.date = %q{2010-11-09}
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/associated/associated_generator.rb",
31
+ "lib/generators/somatics/associated/templates/migration.rb",
32
+ "lib/generators/somatics/attributes/attributes_generator.rb",
33
+ "lib/generators/somatics/attributes/templates/migration.rb",
34
+ "lib/generators/somatics/authenticated/authenticated_generator.rb",
35
+ "lib/generators/somatics/authenticated/templates/partial_form.html.erb",
36
+ "lib/generators/somatics/authenticated_controller/authenticated_controller_generator.rb",
37
+ "lib/generators/somatics/authenticated_controller/templates/locales_en.yml",
38
+ "lib/generators/somatics/authenticated_controller/templates/locales_zh-TW.yml",
39
+ "lib/generators/somatics/authenticated_controller/templates/login.html.erb",
40
+ "lib/generators/somatics/authenticated_controller/templates/sessions_controller.rb",
41
+ "lib/generators/somatics/helper/helper_generator.rb",
42
+ "lib/generators/somatics/install/install_generator.rb",
43
+ "lib/generators/somatics/install/templates/config/locales/devise_zh-TW.yml",
44
+ "lib/generators/somatics/install/templates/config/locales/somatics_en.yml",
45
+ "lib/generators/somatics/install/templates/config/locales/somatics_zh-TW.yml",
46
+ "lib/generators/somatics/install/templates/controller_admin.rb",
47
+ "lib/generators/somatics/install/templates/controller_home.rb",
48
+ "lib/generators/somatics/install/templates/helper_admin.rb",
49
+ "lib/generators/somatics/install/templates/initializer_paper_trail.rb",
50
+ "lib/generators/somatics/install/templates/layout_admin.html.erb",
51
+ "lib/generators/somatics/install/templates/lib/active_record/diff.rb",
52
+ "lib/generators/somatics/install/templates/lib/somatic_link_renderer.rb",
53
+ "lib/generators/somatics/install/templates/lib/tasks/heroku.rake",
54
+ "lib/generators/somatics/install/templates/lib/tasks/svn.rake",
55
+ "lib/generators/somatics/install/templates/partial_menu.html.erb",
56
+ "lib/generators/somatics/install/templates/partial_versions.html.erb",
57
+ "lib/generators/somatics/install/templates/public/images/somatics/add.png",
58
+ "lib/generators/somatics/install/templates/public/images/somatics/arrow_collapsed.png",
59
+ "lib/generators/somatics/install/templates/public/images/somatics/arrow_expanded.png",
60
+ "lib/generators/somatics/install/templates/public/images/somatics/attachment.png",
61
+ "lib/generators/somatics/install/templates/public/images/somatics/bullet_arrow_left.png",
62
+ "lib/generators/somatics/install/templates/public/images/somatics/bullet_arrow_right.png",
63
+ "lib/generators/somatics/install/templates/public/images/somatics/bullet_diamond.png",
64
+ "lib/generators/somatics/install/templates/public/images/somatics/bullet_end.png",
65
+ "lib/generators/somatics/install/templates/public/images/somatics/bullet_go.png",
66
+ "lib/generators/somatics/install/templates/public/images/somatics/bullet_toggle_minus.png",
67
+ "lib/generators/somatics/install/templates/public/images/somatics/bullet_toggle_plus.png",
68
+ "lib/generators/somatics/install/templates/public/images/somatics/c.png",
69
+ "lib/generators/somatics/install/templates/public/images/somatics/cancel.png",
70
+ "lib/generators/somatics/install/templates/public/images/somatics/changeset.png",
71
+ "lib/generators/somatics/install/templates/public/images/somatics/comment.png",
72
+ "lib/generators/somatics/install/templates/public/images/somatics/comments.png",
73
+ "lib/generators/somatics/install/templates/public/images/somatics/content-left.png",
74
+ "lib/generators/somatics/install/templates/public/images/somatics/content-right.png",
75
+ "lib/generators/somatics/install/templates/public/images/somatics/copy.png",
76
+ "lib/generators/somatics/install/templates/public/images/somatics/csharp.png",
77
+ "lib/generators/somatics/install/templates/public/images/somatics/database_key.png",
78
+ "lib/generators/somatics/install/templates/public/images/somatics/default.png",
79
+ "lib/generators/somatics/install/templates/public/images/somatics/delete.png",
80
+ "lib/generators/somatics/install/templates/public/images/somatics/document.png",
81
+ "lib/generators/somatics/install/templates/public/images/somatics/draft.png",
82
+ "lib/generators/somatics/install/templates/public/images/somatics/duplicate.png",
83
+ "lib/generators/somatics/install/templates/public/images/somatics/edit.png",
84
+ "lib/generators/somatics/install/templates/public/images/somatics/exclamation.png",
85
+ "lib/generators/somatics/install/templates/public/images/somatics/external.png",
86
+ "lib/generators/somatics/install/templates/public/images/somatics/fav.png",
87
+ "lib/generators/somatics/install/templates/public/images/somatics/fav_off.png",
88
+ "lib/generators/somatics/install/templates/public/images/somatics/feed.png",
89
+ "lib/generators/somatics/install/templates/public/images/somatics/folder.png",
90
+ "lib/generators/somatics/install/templates/public/images/somatics/folder_open.png",
91
+ "lib/generators/somatics/install/templates/public/images/somatics/footer-bg.png",
92
+ "lib/generators/somatics/install/templates/public/images/somatics/footer-left.png",
93
+ "lib/generators/somatics/install/templates/public/images/somatics/footer-right.png",
94
+ "lib/generators/somatics/install/templates/public/images/somatics/group.png",
95
+ "lib/generators/somatics/install/templates/public/images/somatics/help.png",
96
+ "lib/generators/somatics/install/templates/public/images/somatics/history.png",
97
+ "lib/generators/somatics/install/templates/public/images/somatics/image.png",
98
+ "lib/generators/somatics/install/templates/public/images/somatics/lightning.png",
99
+ "lib/generators/somatics/install/templates/public/images/somatics/link.png",
100
+ "lib/generators/somatics/install/templates/public/images/somatics/loading.gif",
101
+ "lib/generators/somatics/install/templates/public/images/somatics/locked.png",
102
+ "lib/generators/somatics/install/templates/public/images/somatics/message.png",
103
+ "lib/generators/somatics/install/templates/public/images/somatics/milestone.png",
104
+ "lib/generators/somatics/install/templates/public/images/somatics/move.png",
105
+ "lib/generators/somatics/install/templates/public/images/somatics/news.png",
106
+ "lib/generators/somatics/install/templates/public/images/somatics/openid-bg.gif",
107
+ "lib/generators/somatics/install/templates/public/images/somatics/package.png",
108
+ "lib/generators/somatics/install/templates/public/images/somatics/pdf.png",
109
+ "lib/generators/somatics/install/templates/public/images/somatics/php.png",
110
+ "lib/generators/somatics/install/templates/public/images/somatics/plugin.png",
111
+ "lib/generators/somatics/install/templates/public/images/somatics/projects.png",
112
+ "lib/generators/somatics/install/templates/public/images/somatics/rails.png",
113
+ "lib/generators/somatics/install/templates/public/images/somatics/reload.png",
114
+ "lib/generators/somatics/install/templates/public/images/somatics/report.png",
115
+ "lib/generators/somatics/install/templates/public/images/somatics/ruby.png",
116
+ "lib/generators/somatics/install/templates/public/images/somatics/save.png",
117
+ "lib/generators/somatics/install/templates/public/images/somatics/sort_asc.png",
118
+ "lib/generators/somatics/install/templates/public/images/somatics/sort_desc.png",
119
+ "lib/generators/somatics/install/templates/public/images/somatics/stats.png",
120
+ "lib/generators/somatics/install/templates/public/images/somatics/table_multiple.png",
121
+ "lib/generators/somatics/install/templates/public/images/somatics/task_done.png",
122
+ "lib/generators/somatics/install/templates/public/images/somatics/task_late.png",
123
+ "lib/generators/somatics/install/templates/public/images/somatics/task_parent_end.png",
124
+ "lib/generators/somatics/install/templates/public/images/somatics/task_todo.png",
125
+ "lib/generators/somatics/install/templates/public/images/somatics/text.png",
126
+ "lib/generators/somatics/install/templates/public/images/somatics/text_list_bullets.png",
127
+ "lib/generators/somatics/install/templates/public/images/somatics/textfield.png",
128
+ "lib/generators/somatics/install/templates/public/images/somatics/ticket.png",
129
+ "lib/generators/somatics/install/templates/public/images/somatics/ticket_checked.png",
130
+ "lib/generators/somatics/install/templates/public/images/somatics/ticket_edit.png",
131
+ "lib/generators/somatics/install/templates/public/images/somatics/ticket_go.png",
132
+ "lib/generators/somatics/install/templates/public/images/somatics/ticket_note.png",
133
+ "lib/generators/somatics/install/templates/public/images/somatics/time.png",
134
+ "lib/generators/somatics/install/templates/public/images/somatics/time_add.png",
135
+ "lib/generators/somatics/install/templates/public/images/somatics/toggle_check.png",
136
+ "lib/generators/somatics/install/templates/public/images/somatics/true.png",
137
+ "lib/generators/somatics/install/templates/public/images/somatics/unlock.png",
138
+ "lib/generators/somatics/install/templates/public/images/somatics/user.png",
139
+ "lib/generators/somatics/install/templates/public/images/somatics/warning.png",
140
+ "lib/generators/somatics/install/templates/public/images/somatics/wiki_edit.png",
141
+ "lib/generators/somatics/install/templates/public/images/somatics/xml.png",
142
+ "lib/generators/somatics/install/templates/public/images/somatics/zip.png",
143
+ "lib/generators/somatics/install/templates/public/images/somatics/zoom_in.png",
144
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/base.js",
145
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/context_menu.js",
146
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/controls.js",
147
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/dragdrop.js",
148
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/effects.js",
149
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/prototype.js",
150
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/rails.js",
151
+ "lib/generators/somatics/install/templates/public/javascripts/somatics/select_list_move.js",
152
+ "lib/generators/somatics/install/templates/public/stylesheets/application.css",
153
+ "lib/generators/somatics/install/templates/public/stylesheets/somatics/base.css",
154
+ "lib/generators/somatics/install/templates/public/stylesheets/somatics/context_menu.css",
155
+ "lib/generators/somatics/install/templates/public/stylesheets/somatics/csshover.htc",
156
+ "lib/generators/somatics/install/templates/public/stylesheets/somatics/jstoolbar.css",
157
+ "lib/generators/somatics/install/templates/public/themes/default/stylesheets/application.css",
158
+ "lib/generators/somatics/install/templates/view_index.html.erb",
159
+ "lib/generators/somatics/relationship/relationship_generator.rb",
160
+ "lib/generators/somatics/relationship/templates/migration.rb",
161
+ "lib/generators/somatics/scaffold/scaffold_generator.rb",
162
+ "lib/generators/somatics/scaffold/templates/_form.html.erb",
163
+ "lib/generators/somatics/scaffold/templates/edit.html.erb",
164
+ "lib/generators/somatics/scaffold/templates/index.html.erb",
165
+ "lib/generators/somatics/scaffold/templates/new.html.erb",
166
+ "lib/generators/somatics/scaffold/templates/show.html.erb",
167
+ "lib/generators/somatics/scaffold_controller/USAGE",
168
+ "lib/generators/somatics/scaffold_controller/scaffold_controller_generator.rb",
169
+ "lib/generators/somatics/scaffold_controller/templates/builder_index.xls.builder",
170
+ "lib/generators/somatics/scaffold_controller/templates/builder_index.xml.builder",
171
+ "lib/generators/somatics/scaffold_controller/templates/controller.rb",
172
+ "lib/generators/somatics/scaffold_controller/templates/locales_en.yml",
173
+ "lib/generators/somatics/scaffold_controller/templates/locales_zh-TW.yml",
174
+ "lib/generators/somatics/scaffold_controller/templates/partial_bulk.html.erb",
175
+ "lib/generators/somatics/scaffold_controller/templates/partial_edit.html.erb",
176
+ "lib/generators/somatics/scaffold_controller/templates/partial_form.html.erb",
177
+ "lib/generators/somatics/scaffold_controller/templates/partial_list.html.erb",
178
+ "lib/generators/somatics/scaffold_controller/templates/partial_menu.html.erb",
179
+ "lib/generators/somatics/scaffold_controller/templates/partial_show.html.erb",
180
+ "lib/generators/somatics/scaffold_controller/templates/view_edit.html.erb",
181
+ "lib/generators/somatics/scaffold_controller/templates/view_index.html.erb",
182
+ "lib/generators/somatics/scaffold_controller/templates/view_new.html.erb",
183
+ "lib/generators/somatics/scaffold_controller/templates/view_show.html.erb",
184
+ "lib/generators/somatics/settings/settings_generator.rb",
185
+ "lib/generators/somatics/settings_controller/USAGE",
186
+ "lib/generators/somatics/settings_controller/settings_controller_generator.rb",
187
+ "lib/generators/somatics/settings_controller/templates/builder_index.xls.builder",
188
+ "lib/generators/somatics/settings_controller/templates/builder_index.xml.builder",
189
+ "lib/generators/somatics/settings_controller/templates/controller.rb",
190
+ "lib/generators/somatics/settings_controller/templates/helper.rb",
191
+ "lib/generators/somatics/settings_controller/templates/locales_en.yml",
192
+ "lib/generators/somatics/settings_controller/templates/locales_zh-TW.yml",
193
+ "lib/generators/somatics/settings_controller/templates/migration.rb",
194
+ "lib/generators/somatics/settings_controller/templates/partial_bulk.html.erb",
195
+ "lib/generators/somatics/settings_controller/templates/partial_edit.html.erb",
196
+ "lib/generators/somatics/settings_controller/templates/partial_form.html.erb",
197
+ "lib/generators/somatics/settings_controller/templates/partial_list.html.erb",
198
+ "lib/generators/somatics/settings_controller/templates/partial_menu.html.erb",
199
+ "lib/generators/somatics/settings_controller/templates/partial_show.html.erb",
200
+ "lib/generators/somatics/settings_controller/templates/view_edit.html.erb",
201
+ "lib/generators/somatics/settings_controller/templates/view_index.html.erb",
202
+ "lib/generators/somatics/settings_controller/templates/view_new.html.erb",
203
+ "lib/generators/somatics/settings_controller/templates/view_show.html.erb",
204
+ "lib/somatics3-generators.rb",
205
+ "somatics3-generators.gemspec",
206
+ "templates/somatics.rb",
207
+ "test/helper.rb",
208
+ "test/test_somatics3-generators.rb"
209
+ ]
210
+ s.homepage = %q{http://github.com/inspiresynergy/somatics3-generators}
211
+ s.rdoc_options = ["--charset=UTF-8", "--exclude=lib/generators/somatics/associated/templates/migration.rb", "--exclude=lib/generators/somatics/attributes/templates/migration.rb", "--exclude=lib/generators/somatics/authenticated/templates/partial_form.html.erb", "--exclude=lib/generators/somatics/authenticated_controller/templates/config", "--exclude=lib/generators/somatics/authenticated_controller/templates/locales_en.yml", "--exclude=lib/generators/somatics/authenticated_controller/templates/locales_zh-TW.yml", "--exclude=lib/generators/somatics/authenticated_controller/templates/login.html.erb", "--exclude=lib/generators/somatics/authenticated_controller/templates/sessions_controller.rb", "--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/initializer_paper_trail.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/partial_versions.html.erb", "--exclude=lib/generators/somatics/install/templates/public", "--exclude=lib/generators/somatics/install/templates/view_index.html.erb", "--exclude=lib/generators/somatics/relationship/templates/migration.rb", "--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.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", "--exclude=lib/generators/somatics/settings_controller/templates/builder_index.xls.builder", "--exclude=lib/generators/somatics/settings_controller/templates/builder_index.xml.builder", "--exclude=lib/generators/somatics/settings_controller/templates/controller.rb", "--exclude=lib/generators/somatics/settings_controller/templates/helper.rb", "--exclude=lib/generators/somatics/settings_controller/templates/locales_en.yml", "--exclude=lib/generators/somatics/settings_controller/templates/locales_zh-TW.yml", "--exclude=lib/generators/somatics/settings_controller/templates/migration.rb", "--exclude=lib/generators/somatics/settings_controller/templates/partial_bulk.html.erb", "--exclude=lib/generators/somatics/settings_controller/templates/partial_edit.html.erb", "--exclude=lib/generators/somatics/settings_controller/templates/partial_form.html.erb", "--exclude=lib/generators/somatics/settings_controller/templates/partial_list.html.erb", "--exclude=lib/generators/somatics/settings_controller/templates/partial_menu.html.erb", "--exclude=lib/generators/somatics/settings_controller/templates/partial_show.html.erb", "--exclude=lib/generators/somatics/settings_controller/templates/view_edit.html.erb", "--exclude=lib/generators/somatics/settings_controller/templates/view_index.html.erb", "--exclude=lib/generators/somatics/settings_controller/templates/view_new.html.erb", "--exclude=lib/generators/somatics/settings_controller/templates/view_show.html.erb"]
212
+ s.require_paths = ["lib"]
213
+ s.rubyforge_project = %q{somatics3}
214
+ s.rubygems_version = %q{1.3.7}
215
+ s.summary = %q{Somatics - Adminable Resource generators}
216
+ s.test_files = [
217
+ "test/helper.rb",
218
+ "test/test_somatics3-generators.rb"
219
+ ]
220
+
221
+ if s.respond_to? :specification_version then
222
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
223
+ s.specification_version = 3
224
+
225
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
226
+ s.add_runtime_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
227
+ s.add_runtime_dependency(%q<json>, [">= 0"])
228
+ s.add_runtime_dependency(%q<meta_search>, [">= 0"])
229
+ s.add_runtime_dependency(%q<paper_trail>, [">= 0"])
230
+ s.add_runtime_dependency(%q<tiny_mce>, [">= 0"])
231
+ s.add_runtime_dependency(%q<devise>, [">= 0"])
232
+ else
233
+ s.add_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
234
+ s.add_dependency(%q<json>, [">= 0"])
235
+ s.add_dependency(%q<meta_search>, [">= 0"])
236
+ s.add_dependency(%q<paper_trail>, [">= 0"])
237
+ s.add_dependency(%q<tiny_mce>, [">= 0"])
238
+ s.add_dependency(%q<devise>, [">= 0"])
239
+ end
240
+ else
241
+ s.add_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
242
+ s.add_dependency(%q<json>, [">= 0"])
243
+ s.add_dependency(%q<meta_search>, [">= 0"])
244
+ s.add_dependency(%q<paper_trail>, [">= 0"])
245
+ s.add_dependency(%q<tiny_mce>, [">= 0"])
246
+ s.add_dependency(%q<devise>, [">= 0"])
247
+ end
248
+ end
249
+