typus-rails4 4.0.0.beta6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +488 -0
  3. data/Gemfile +57 -0
  4. data/Gemfile.lock +253 -0
  5. data/MIT-LICENSE +20 -0
  6. data/README.md +101 -0
  7. data/Rakefile +51 -0
  8. data/app/assets/javascripts/typus/application.js +11 -0
  9. data/app/assets/javascripts/typus/custom.js +2 -0
  10. data/app/assets/javascripts/typus/jquery-2.1.1.min.js +4 -0
  11. data/app/assets/javascripts/typus/jquery.application.js +30 -0
  12. data/app/assets/stylesheets/typus/application.css +6 -0
  13. data/app/assets/stylesheets/typus/custom.scss +4 -0
  14. data/app/assets/stylesheets/typus/overrides.scss +10 -0
  15. data/app/assets/stylesheets/typus/signin.scss +45 -0
  16. data/app/controllers/admin/account_controller.rb +47 -0
  17. data/app/controllers/admin/base_controller.rb +40 -0
  18. data/app/controllers/admin/dashboard_controller.rb +6 -0
  19. data/app/controllers/admin/resource_controller.rb +8 -0
  20. data/app/controllers/admin/resources_controller.rb +268 -0
  21. data/app/controllers/admin/session_controller.rb +43 -0
  22. data/app/controllers/concerns/admin/actions.rb +88 -0
  23. data/app/controllers/concerns/admin/acts_as_list.rb +35 -0
  24. data/app/controllers/concerns/admin/ancestry.rb +26 -0
  25. data/app/controllers/concerns/admin/autocomplete.rb +11 -0
  26. data/app/controllers/concerns/admin/bulk.rb +76 -0
  27. data/app/controllers/concerns/admin/featured_image.rb +22 -0
  28. data/app/controllers/concerns/admin/filters.rb +57 -0
  29. data/app/controllers/concerns/admin/format.rb +49 -0
  30. data/app/controllers/concerns/admin/headless.rb +23 -0
  31. data/app/controllers/concerns/admin/hooks.rb +4 -0
  32. data/app/controllers/concerns/admin/multisite.rb +10 -0
  33. data/app/controllers/concerns/admin/navigation.rb +27 -0
  34. data/app/controllers/concerns/admin/trash.rb +65 -0
  35. data/app/helpers/admin/base_helper.rb +78 -0
  36. data/app/helpers/admin/resources/data_types/belongs_to_helper.rb +88 -0
  37. data/app/helpers/admin/resources/data_types/boolean_helper.rb +33 -0
  38. data/app/helpers/admin/resources/data_types/date_helper.rb +16 -0
  39. data/app/helpers/admin/resources/data_types/datetime_helper.rb +19 -0
  40. data/app/helpers/admin/resources/data_types/dragonfly_helper.rb +49 -0
  41. data/app/helpers/admin/resources/data_types/float_helper.rb +2 -0
  42. data/app/helpers/admin/resources/data_types/has_and_belongs_to_many_helper.rb +59 -0
  43. data/app/helpers/admin/resources/data_types/has_many_helper.rb +76 -0
  44. data/app/helpers/admin/resources/data_types/has_one_helper.rb +44 -0
  45. data/app/helpers/admin/resources/data_types/integer_helper.rb +13 -0
  46. data/app/helpers/admin/resources/data_types/paperclip_helper.rb +49 -0
  47. data/app/helpers/admin/resources/data_types/selector_helper.rb +11 -0
  48. data/app/helpers/admin/resources/data_types/string_helper.rb +38 -0
  49. data/app/helpers/admin/resources/data_types/text_helper.rb +6 -0
  50. data/app/helpers/admin/resources/data_types/transversal_helper.rb +8 -0
  51. data/app/helpers/admin/resources/data_types/tree_helper.rb +28 -0
  52. data/app/helpers/admin/resources/display_helper.rb +27 -0
  53. data/app/helpers/admin/resources/filters_helper.rb +18 -0
  54. data/app/helpers/admin/resources/form_helper.rb +85 -0
  55. data/app/helpers/admin/resources/list_helper.rb +31 -0
  56. data/app/helpers/admin/resources/pagination_helper.rb +28 -0
  57. data/app/helpers/admin/resources/relationships_helper.rb +33 -0
  58. data/app/helpers/admin/resources/sidebar_helper.rb +34 -0
  59. data/app/helpers/admin/resources/table_helper.rb +69 -0
  60. data/app/helpers/admin/resources_helper.rb +25 -0
  61. data/app/mailers/admin/mailer.rb +19 -0
  62. data/app/views/admin/account/_form.html.erb +17 -0
  63. data/app/views/admin/account/forgot_password.html.erb +16 -0
  64. data/app/views/admin/account/new.html.erb +10 -0
  65. data/app/views/admin/dashboard/_sidebar.html.erb +14 -0
  66. data/app/views/admin/dashboard/index.html.erb +8 -0
  67. data/app/views/admin/dashboard/styles.html.erb +153 -0
  68. data/app/views/admin/dashboard/widgets/_applications.html.erb +44 -0
  69. data/app/views/admin/dashboard/widgets/_default.html.erb +43 -0
  70. data/app/views/admin/dashboard/widgets/_models.html.erb +23 -0
  71. data/app/views/admin/dashboard/widgets/_models_extended.html.erb +25 -0
  72. data/app/views/admin/dashboard/widgets/_resources.html.erb +23 -0
  73. data/app/views/admin/dashboard/widgets/_users.html.erb +23 -0
  74. data/app/views/admin/mailer/reset_password_instructions.html.erb +7 -0
  75. data/app/views/admin/mailer/reset_password_instructions.text.erb +7 -0
  76. data/app/views/admin/resource/_sidebar.html.erb +14 -0
  77. data/app/views/admin/resources/_edit.html.erb +0 -0
  78. data/app/views/admin/resources/_form.html.erb +28 -0
  79. data/app/views/admin/resources/_form_javascripts.html.erb +0 -0
  80. data/app/views/admin/resources/_form_modal.html.erb +13 -0
  81. data/app/views/admin/resources/_index.html.erb +0 -0
  82. data/app/views/admin/resources/_new.html.erb +0 -0
  83. data/app/views/admin/resources/_pagination.html.erb +15 -0
  84. data/app/views/admin/resources/_show.html.erb +0 -0
  85. data/app/views/admin/resources/_sidebar.html.erb +1 -0
  86. data/app/views/admin/resources/destroy.html.erb +16 -0
  87. data/app/views/admin/resources/edit.html.erb +22 -0
  88. data/app/views/admin/resources/edit/_actions.html.erb +7 -0
  89. data/app/views/admin/resources/edit/_recently_edited.html.erb +8 -0
  90. data/app/views/admin/resources/index.html.erb +29 -0
  91. data/app/views/admin/resources/new.html.erb +20 -0
  92. data/app/views/admin/resources/show.html.erb +26 -0
  93. data/app/views/admin/session/new.html.erb +18 -0
  94. data/app/views/admin/shared/_head.html.erb +24 -0
  95. data/app/views/admin/shared/_modals.html.erb +3 -0
  96. data/app/views/admin/shared/_sidebar_placeholder.html.erb +0 -0
  97. data/app/views/admin/templates/README.md +5 -0
  98. data/app/views/admin/templates/_belongs_to.html.erb +8 -0
  99. data/app/views/admin/templates/_boolean.html.erb +7 -0
  100. data/app/views/admin/templates/_date.html.erb +6 -0
  101. data/app/views/admin/templates/_datetime.html.erb +8 -0
  102. data/app/views/admin/templates/_dragonfly.html.erb +6 -0
  103. data/app/views/admin/templates/_dragonfly_form_preview.html.erb +21 -0
  104. data/app/views/admin/templates/_dragonfly_preview.html.erb +12 -0
  105. data/app/views/admin/templates/_has_and_belongs_to_many.html.erb +21 -0
  106. data/app/views/admin/templates/_has_many.html.erb +18 -0
  107. data/app/views/admin/templates/_has_one.html.erb +14 -0
  108. data/app/views/admin/templates/_json.html.erb +11 -0
  109. data/app/views/admin/templates/_paperclip.html.erb +5 -0
  110. data/app/views/admin/templates/_paperclip_form_preview.html.erb +21 -0
  111. data/app/views/admin/templates/_paperclip_preview.html.erb +12 -0
  112. data/app/views/admin/templates/_password.html.erb +6 -0
  113. data/app/views/admin/templates/_position.html.erb +5 -0
  114. data/app/views/admin/templates/_profile_sidebar.html.erb +4 -0
  115. data/app/views/admin/templates/_selector.html.erb +4 -0
  116. data/app/views/admin/templates/_string.html.erb +4 -0
  117. data/app/views/admin/templates/_string_with_preview.html.erb +11 -0
  118. data/app/views/admin/templates/_text.html.erb +11 -0
  119. data/app/views/admin/templates/_text_with_ckeditor.html.erb +24 -0
  120. data/app/views/admin/templates/_text_with_ckeditor_and_assets.html.erb +38 -0
  121. data/app/views/admin/templates/_time.html.erb +9 -0
  122. data/app/views/admin/templates/_tree.html.erb +6 -0
  123. data/app/views/admin/templates/modals/_belongs_to.html.erb +60 -0
  124. data/app/views/admin/templates/modals/_dragonfly.html.erb +13 -0
  125. data/app/views/admin/templates/modals/_has_and_belongs_to_many.html.erb +25 -0
  126. data/app/views/admin/templates/modals/_has_many.html.erb +59 -0
  127. data/app/views/admin/templates/modals/_paperclip.html.erb +13 -0
  128. data/app/views/helpers/admin/base/_apps.html.erb +86 -0
  129. data/app/views/helpers/admin/base/_breadcrumbs.html.erb +6 -0
  130. data/app/views/helpers/admin/base/_flash_message.html.erb +3 -0
  131. data/app/views/helpers/admin/base/_login_info.html.erb +0 -0
  132. data/app/views/helpers/admin/dashboard/_resources.html.erb +19 -0
  133. data/app/views/helpers/admin/resources/_actions.html.erb +18 -0
  134. data/app/views/helpers/admin/resources/_errors.html.erb +12 -0
  135. data/app/views/helpers/admin/resources/_filters.html.erb +16 -0
  136. data/app/views/helpers/admin/resources/_search.html.erb +17 -0
  137. data/app/views/helpers/admin/resources/_sidebar.html.erb +4 -0
  138. data/app/views/helpers/admin/resources/_table.html.erb +45 -0
  139. data/app/views/helpers/admin/resources/sidebar/_item.html.erb +26 -0
  140. data/app/views/helpers/admin/resources/sidebar/_items.html.erb +14 -0
  141. data/app/views/helpers/admin/resources/sidebar/_items_index.html.erb +57 -0
  142. data/app/views/layouts/admin/base.html.erb +30 -0
  143. data/app/views/layouts/admin/headless.html.erb +1 -0
  144. data/app/views/layouts/admin/session.html.erb +26 -0
  145. data/bin/run-tests +7 -0
  146. data/bin/setup +9 -0
  147. data/config/locales/typus.en.yml +125 -0
  148. data/config/routes.rb +46 -0
  149. data/lib/generators/templates/config/initializers/typus.rb +34 -0
  150. data/lib/generators/templates/config/initializers/typus_authentication.rb +18 -0
  151. data/lib/generators/templates/config/initializers/typus_resources.rb +24 -0
  152. data/lib/generators/templates/config/typus/README +58 -0
  153. data/lib/generators/templates/config/typus/application.yml +3 -0
  154. data/lib/generators/templates/config/typus/application_roles.yml +4 -0
  155. data/lib/generators/templates/config/typus/typus.yml +15 -0
  156. data/lib/generators/templates/config/typus/typus_roles.yml +4 -0
  157. data/lib/generators/templates/controller.erb +2 -0
  158. data/lib/generators/templates/migration.erb +22 -0
  159. data/lib/generators/templates/view.html.erb +13 -0
  160. data/lib/generators/typus/config_generator.rb +67 -0
  161. data/lib/generators/typus/controller_generator.rb +26 -0
  162. data/lib/generators/typus/initializers_generator.rb +20 -0
  163. data/lib/generators/typus/migration_generator.rb +94 -0
  164. data/lib/generators/typus/model_generator.rb +93 -0
  165. data/lib/generators/typus/typus_generator.rb +54 -0
  166. data/lib/generators/typus/views_generator.rb +19 -0
  167. data/lib/support/active_record.rb +42 -0
  168. data/lib/support/fake_user.rb +47 -0
  169. data/lib/support/hash.rb +8 -0
  170. data/lib/support/object.rb +9 -0
  171. data/lib/support/string.rb +40 -0
  172. data/lib/tasks/typus.rake +11 -0
  173. data/lib/typus.rb +215 -0
  174. data/lib/typus/authentication/base.rb +39 -0
  175. data/lib/typus/authentication/devise.rb +19 -0
  176. data/lib/typus/authentication/http_basic.rb +18 -0
  177. data/lib/typus/authentication/none.rb +15 -0
  178. data/lib/typus/authentication/none_with_role.rb +15 -0
  179. data/lib/typus/authentication/session.rb +123 -0
  180. data/lib/typus/configuration.rb +43 -0
  181. data/lib/typus/engine.rb +4 -0
  182. data/lib/typus/orm/active_record.rb +10 -0
  183. data/lib/typus/orm/active_record/admin_user.rb +65 -0
  184. data/lib/typus/orm/active_record/class_methods.rb +104 -0
  185. data/lib/typus/orm/active_record/instance_methods.rb +76 -0
  186. data/lib/typus/orm/active_record/search.rb +43 -0
  187. data/lib/typus/orm/base/class_methods.rb +188 -0
  188. data/lib/typus/orm/base/search.rb +70 -0
  189. data/lib/typus/regex.rb +11 -0
  190. data/lib/typus/resources.rb +55 -0
  191. data/lib/typus/version.rb +10 -0
  192. data/typus.gemspec +27 -0
  193. data/vendor/assets/chosen/LICENSE.md +24 -0
  194. data/vendor/assets/chosen/chosen-sprite.png +0 -0
  195. data/vendor/assets/chosen/chosen-sprite@2x.png +0 -0
  196. data/vendor/assets/chosen/chosen.jquery.js +1239 -0
  197. data/vendor/assets/chosen/chosen.scss +437 -0
  198. metadata +271 -0
data/Gemfile ADDED
@@ -0,0 +1,57 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Declare your gem's dependencies in typus.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # Use SCSS for stylesheets
9
+ gem 'sass-rails', '~> 5.0.1'
10
+
11
+ # Use Uglifier as compressor for JavaScript assets
12
+ gem 'uglifier'
13
+
14
+ # Use CoffeeScript for .js.coffee assets and views
15
+ gem 'coffee-rails', '~> 4.1.0'
16
+
17
+ # Use jquery as the JavaScript library
18
+ gem 'jquery-rails'
19
+
20
+ # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
21
+ gem 'turbolinks'
22
+
23
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
24
+ gem 'jbuilder'
25
+
26
+ # Database Adapters
27
+ gem 'pg', '~> 0.17.1'
28
+ gem 'sqlite3', '~> 1.3.10'
29
+
30
+ # Typus can manage lists, trees, trashes, so we want to enable this stuff
31
+ # on the demo.
32
+ gem 'acts_as_list', github: 'typus/acts_as_list'
33
+ gem 'acts_as_tree'
34
+ gem 'rails-permalink', '~> 1.0.0'
35
+ gem 'rails-trash', github: 'fesplugas/rails-trash'
36
+
37
+ # Rich Text Editor
38
+ gem 'ckeditor-rails', github: 'fesplugas/rails-ckeditor'
39
+
40
+ # Alternative authentication
41
+ gem 'devise', '~> 3.4.1'
42
+
43
+ # Asset Management
44
+ gem 'dragonfly', '~> 1.0.7'
45
+ gem 'rack-cache', require: 'rack/cache'
46
+ gem 'paperclip', '~> 4.2.1'
47
+ gem 'carrierwave', '~> 0.10.0'
48
+
49
+ # MongoDB
50
+ # gem 'mongoid', github: 'mongoid/mongoid'
51
+
52
+ # Testing stuff
53
+ group :test do
54
+ gem 'mocha'
55
+ gem 'minitest-rails-capybara' # makes capybara's DSL methods available in Rails minitests
56
+ gem 'poltergeist' # a headless browser (webkit) as capybara driver
57
+ end
@@ -0,0 +1,253 @@
1
+ GIT
2
+ remote: git://github.com/fesplugas/rails-ckeditor.git
3
+ revision: 63607310b8bce76f8d959994d62379a96c7fdadc
4
+ specs:
5
+ ckeditor-rails (0.0.6)
6
+ rails
7
+
8
+ GIT
9
+ remote: git://github.com/fesplugas/rails-trash.git
10
+ revision: d0b47b504232f9b7944c083934cc8880d849b540
11
+ specs:
12
+ rails-trash (3.0.0)
13
+ rails (>= 3.2.12)
14
+
15
+ GIT
16
+ remote: git://github.com/typus/acts_as_list.git
17
+ revision: 602b965df0e8bd0c2a2ab55f5b7850ed226012e9
18
+ specs:
19
+ acts_as_list (0.2.0)
20
+ activerecord (>= 3.0)
21
+
22
+ PATH
23
+ remote: .
24
+ specs:
25
+ typus-rails4 (4.0.0.beta3)
26
+ bcrypt (~> 3.1.10)
27
+ rails (~> 4.2.1)
28
+
29
+ GEM
30
+ remote: https://rubygems.org/
31
+ specs:
32
+ actionmailer (4.2.1)
33
+ actionpack (= 4.2.1)
34
+ actionview (= 4.2.1)
35
+ activejob (= 4.2.1)
36
+ mail (~> 2.5, >= 2.5.4)
37
+ rails-dom-testing (~> 1.0, >= 1.0.5)
38
+ actionpack (4.2.1)
39
+ actionview (= 4.2.1)
40
+ activesupport (= 4.2.1)
41
+ rack (~> 1.6)
42
+ rack-test (~> 0.6.2)
43
+ rails-dom-testing (~> 1.0, >= 1.0.5)
44
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
45
+ actionview (4.2.1)
46
+ activesupport (= 4.2.1)
47
+ builder (~> 3.1)
48
+ erubis (~> 2.7.0)
49
+ rails-dom-testing (~> 1.0, >= 1.0.5)
50
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
51
+ activejob (4.2.1)
52
+ activesupport (= 4.2.1)
53
+ globalid (>= 0.3.0)
54
+ activemodel (4.2.1)
55
+ activesupport (= 4.2.1)
56
+ builder (~> 3.1)
57
+ activerecord (4.2.1)
58
+ activemodel (= 4.2.1)
59
+ activesupport (= 4.2.1)
60
+ arel (~> 6.0)
61
+ activesupport (4.2.1)
62
+ i18n (~> 0.7)
63
+ json (~> 1.7, >= 1.7.7)
64
+ minitest (~> 5.1)
65
+ thread_safe (~> 0.3, >= 0.3.4)
66
+ tzinfo (~> 1.1)
67
+ acts_as_tree (2.1.0)
68
+ activerecord (>= 3.0.0)
69
+ addressable (2.3.8)
70
+ arel (6.0.0)
71
+ bcrypt (3.1.10)
72
+ builder (3.2.2)
73
+ capybara (2.4.4)
74
+ mime-types (>= 1.16)
75
+ nokogiri (>= 1.3.3)
76
+ rack (>= 1.0.0)
77
+ rack-test (>= 0.5.4)
78
+ xpath (~> 2.0)
79
+ carrierwave (0.10.0)
80
+ activemodel (>= 3.2.0)
81
+ activesupport (>= 3.2.0)
82
+ json (>= 1.7)
83
+ mime-types (>= 1.16)
84
+ climate_control (0.0.3)
85
+ activesupport (>= 3.0)
86
+ cliver (0.3.2)
87
+ cocaine (0.5.7)
88
+ climate_control (>= 0.0.3, < 1.0)
89
+ coffee-rails (4.1.0)
90
+ coffee-script (>= 2.2.0)
91
+ railties (>= 4.0.0, < 5.0)
92
+ coffee-script (2.4.1)
93
+ coffee-script-source
94
+ execjs
95
+ coffee-script-source (1.9.1.1)
96
+ devise (3.4.1)
97
+ bcrypt (~> 3.0)
98
+ orm_adapter (~> 0.1)
99
+ railties (>= 3.2.6, < 5)
100
+ responders
101
+ thread_safe (~> 0.1)
102
+ warden (~> 1.2.3)
103
+ dragonfly (1.0.7)
104
+ addressable (~> 2.3)
105
+ multi_json (~> 1.0)
106
+ rack
107
+ erubis (2.7.0)
108
+ execjs (2.5.2)
109
+ globalid (0.3.5)
110
+ activesupport (>= 4.1.0)
111
+ i18n (0.7.0)
112
+ jbuilder (2.2.13)
113
+ activesupport (>= 3.0.0, < 5)
114
+ multi_json (~> 1.2)
115
+ jquery-rails (4.0.3)
116
+ rails-dom-testing (~> 1.0)
117
+ railties (>= 4.2.0)
118
+ thor (>= 0.14, < 2.0)
119
+ json (1.8.2)
120
+ loofah (2.0.1)
121
+ nokogiri (>= 1.5.9)
122
+ mail (2.6.3)
123
+ mime-types (>= 1.16, < 3)
124
+ metaclass (0.0.4)
125
+ mime-types (2.4.3)
126
+ mini_portile (0.6.2)
127
+ minitest (5.6.0)
128
+ minitest-capybara (0.7.1)
129
+ capybara (~> 2.2)
130
+ minitest (~> 5.0)
131
+ rake
132
+ minitest-metadata (0.5.3)
133
+ minitest (>= 4.7, < 6.0)
134
+ minitest-rails (2.1.1)
135
+ minitest (~> 5.4)
136
+ railties (~> 4.1)
137
+ minitest-rails-capybara (2.1.1)
138
+ capybara (~> 2.0)
139
+ minitest-capybara (~> 0.7.0)
140
+ minitest-metadata (~> 0.5.0)
141
+ minitest-rails (~> 2.1)
142
+ mocha (1.1.0)
143
+ metaclass (~> 0.0.1)
144
+ multi_json (1.11.0)
145
+ nokogiri (1.6.6.2)
146
+ mini_portile (~> 0.6.0)
147
+ orm_adapter (0.5.0)
148
+ paperclip (4.2.1)
149
+ activemodel (>= 3.0.0)
150
+ activesupport (>= 3.0.0)
151
+ cocaine (~> 0.5.3)
152
+ mime-types
153
+ pg (0.17.1)
154
+ poltergeist (1.6.0)
155
+ capybara (~> 2.1)
156
+ cliver (~> 0.3.1)
157
+ multi_json (~> 1.0)
158
+ websocket-driver (>= 0.2.0)
159
+ rack (1.6.0)
160
+ rack-cache (1.2)
161
+ rack (>= 0.4)
162
+ rack-test (0.6.3)
163
+ rack (>= 1.0)
164
+ rails (4.2.1)
165
+ actionmailer (= 4.2.1)
166
+ actionpack (= 4.2.1)
167
+ actionview (= 4.2.1)
168
+ activejob (= 4.2.1)
169
+ activemodel (= 4.2.1)
170
+ activerecord (= 4.2.1)
171
+ activesupport (= 4.2.1)
172
+ bundler (>= 1.3.0, < 2.0)
173
+ railties (= 4.2.1)
174
+ sprockets-rails
175
+ rails-deprecated_sanitizer (1.0.3)
176
+ activesupport (>= 4.2.0.alpha)
177
+ rails-dom-testing (1.0.6)
178
+ activesupport (>= 4.2.0.beta, < 5.0)
179
+ nokogiri (~> 1.6.0)
180
+ rails-deprecated_sanitizer (>= 1.0.1)
181
+ rails-html-sanitizer (1.0.2)
182
+ loofah (~> 2.0)
183
+ rails-permalink (1.0.0)
184
+ rails (>= 3.0.0)
185
+ railties (4.2.1)
186
+ actionpack (= 4.2.1)
187
+ activesupport (= 4.2.1)
188
+ rake (>= 0.8.7)
189
+ thor (>= 0.18.1, < 2.0)
190
+ rake (10.4.2)
191
+ responders (2.1.0)
192
+ railties (>= 4.2.0, < 5)
193
+ sass (3.4.13)
194
+ sass-rails (5.0.3)
195
+ railties (>= 4.0.0, < 5.0)
196
+ sass (~> 3.1)
197
+ sprockets (>= 2.8, < 4.0)
198
+ sprockets-rails (>= 2.0, < 4.0)
199
+ tilt (~> 1.1)
200
+ sprockets (3.0.2)
201
+ rack (~> 1.0)
202
+ sprockets-rails (2.2.4)
203
+ actionpack (>= 3.0)
204
+ activesupport (>= 3.0)
205
+ sprockets (>= 2.8, < 4.0)
206
+ sqlite3 (1.3.10)
207
+ thor (0.19.1)
208
+ thread_safe (0.3.5)
209
+ tilt (1.4.1)
210
+ turbolinks (2.5.3)
211
+ coffee-rails
212
+ tzinfo (1.2.2)
213
+ thread_safe (~> 0.1)
214
+ uglifier (2.7.1)
215
+ execjs (>= 0.3.0)
216
+ json (>= 1.8.0)
217
+ warden (1.2.3)
218
+ rack (>= 1.0)
219
+ websocket-driver (0.5.4)
220
+ websocket-extensions (>= 0.1.0)
221
+ websocket-extensions (0.1.2)
222
+ xpath (2.0.0)
223
+ nokogiri (~> 1.3)
224
+
225
+ PLATFORMS
226
+ ruby
227
+
228
+ DEPENDENCIES
229
+ acts_as_list!
230
+ acts_as_tree
231
+ carrierwave (~> 0.10.0)
232
+ ckeditor-rails!
233
+ coffee-rails (~> 4.1.0)
234
+ devise (~> 3.4.1)
235
+ dragonfly (~> 1.0.7)
236
+ jbuilder
237
+ jquery-rails
238
+ minitest-rails-capybara
239
+ mocha
240
+ paperclip (~> 4.2.1)
241
+ pg (~> 0.17.1)
242
+ poltergeist
243
+ rack-cache
244
+ rails-permalink (~> 1.0.0)
245
+ rails-trash!
246
+ sass-rails (~> 5.0.1)
247
+ sqlite3 (~> 1.3.10)
248
+ turbolinks
249
+ typus-rails4!
250
+ uglifier
251
+
252
+ BUNDLED WITH
253
+ 1.10.6
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2007-2015 Francesc Esplugas Marti
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,101 @@
1
+ # Typus: Admin Panel for Ruby on Rails applications
2
+
3
+ [![Circle CI](https://circleci.com/gh/typus/typus/tree/master.svg?style=svg)](https://circleci.com/gh/typus/typus/tree/master)
4
+
5
+ **Typus** is a control panel for [Ruby on Rails][rails] applications to
6
+ allow trusted users edit structured content.
7
+
8
+ ![Main Dashboard](http://i.imgur.com/88oInjS.png?1)
9
+
10
+ It's not a CMS with a full working system but it provides a part of the
11
+ system: authentication, permissions and basic look and feel for your
12
+ websites control panel. So using [Rails][rails] with **Typus** lets you
13
+ concentrate on your application instead of the bits to manage the system.
14
+
15
+ **Typus** is the "old latin" word for **type** which stands for:
16
+
17
+ > A category of people or things having common characteristics.
18
+
19
+
20
+ ## Key Features
21
+
22
+ - Built-in Authentication and Access Control Lists.
23
+ - CRUD and custom actions for your models on a clean interface.
24
+ - Customizable and extensible templates.
25
+ - Integrated [paperclip][paperclip] and [dragonfly][dragonfly] attachments viewer.
26
+ - Supports Rails 4
27
+
28
+
29
+ ## Installing
30
+
31
+ Add **Typus** to your `Gemfile`.
32
+
33
+ If you are using **Rails 4.1** or **Rails 4.2**:
34
+
35
+ gem "typus", github: "typus/typus"
36
+
37
+ If you are using **Rails 4.0**:
38
+
39
+ gem "typus", github: "typus/typus", branch: "4-0-stable"
40
+
41
+ Update your bundle, run the generator and start the application server:
42
+
43
+ bundle install
44
+ rails generate typus
45
+ rails server
46
+
47
+ and go to <http://0.0.0.0:3000/admin>.
48
+
49
+
50
+ ## Testing
51
+
52
+ To test, clone the repo and run:
53
+
54
+ git clone git://github.com/typus/typus.git
55
+ ./bin/run-tests
56
+
57
+
58
+ ## Running a demo on localhost
59
+
60
+ To run a demo on localhost:
61
+
62
+ git clone git://github.com/typus/typus.git
63
+ cd test/dummy
64
+ ./bin/setup
65
+ ./bin/rails server
66
+
67
+
68
+ ## Submitting an Issue
69
+
70
+ We use the [GitHub issue tracker][issues] to track bugs and features.
71
+ Before submitting a bug report or feature request, check to make sure it
72
+ hasn't already been submitted. You can indicate support for an existing
73
+ issue by voting it up. When submitting a bug report, please include a
74
+ [Gist][gist] that includes a stack trace and any details that may be
75
+ necessary to reproduce the bug, including your gem version, Ruby
76
+ version, and operating system. Ideally, a bug report should include a
77
+ pull request with failing specs.
78
+
79
+
80
+ ## Links
81
+
82
+ - [Documentation](http://docs.typuscmf.com/)
83
+ - [RubyGems][typus_gem]
84
+ - [Contributors List](http://github.com/typus/typus/contributors)
85
+
86
+
87
+ ## License
88
+
89
+ **Typus** is released under the MIT license.
90
+
91
+ [typus]: http://github.com/typus/typus
92
+ [typus_demo]: http://demo.typuscmf.com/
93
+ [typus_locales]: https://github.com/typus/typus/tree/master/config/locales
94
+ [typus_gem]: http://rubygems.org/gems/typus
95
+ [paperclip]: http://rubygems.org/gems/paperclip
96
+ [dragonfly]: http://rubygems.org/gems/dragonfly
97
+ [rails]: http://rubyonrails.org/
98
+ [gist]: https://gist.github.com/
99
+ [issues]: https://github.com/typus/typus/issues
100
+ [kaminari]: http://rubygems.org/gems/kaminari
101
+ [will_paginate]: http://rubygems.org/gems/will_paginate
@@ -0,0 +1,51 @@
1
+ require_relative "test/dummy/config/environment"
2
+
3
+ begin
4
+ require 'bundler/setup'
5
+ require 'bundler/gem_tasks'
6
+ rescue LoadError
7
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
8
+ end
9
+
10
+ begin
11
+ require 'rdoc/task'
12
+ rescue LoadError
13
+ require 'rdoc/rdoc'
14
+ require 'rake/rdoctask'
15
+ RDoc::Task = Rake::RDocTask
16
+ end
17
+
18
+ require 'rake/testtask'
19
+
20
+ desc "alias for test:all"
21
+ task :default => :"test:all"
22
+
23
+ namespace :test do
24
+
25
+ Rake::TestTask.new("without_features") do |t|
26
+ t.description = "run all tests except the features"
27
+ t.libs += %w(lib test)
28
+ t.test_files = FileList['test/**/*_test.rb'] - FileList['test/features/**/*_test.rb']
29
+ end
30
+
31
+ Rake::TestTask.new("features") do |t|
32
+ t.description = "run feature tests, which use a headless browser"
33
+ t.libs += %w(lib test)
34
+ t.test_files = FileList['test/features/**/*_test.rb']
35
+ end
36
+
37
+ # right now it is better to run without_features and features separately since they need
38
+ # a different test setup (feature specs ran with SQLite require use_transactional_fixtures to be
39
+ # to prevent db file locking issues).
40
+ # task all: [:without_features, :features]
41
+ task all: [:without_features]
42
+
43
+ end
44
+
45
+ RDoc::Task.new(:rdoc) do |rdoc|
46
+ rdoc.rdoc_dir = 'rdoc'
47
+ rdoc.title = 'Typus'
48
+ rdoc.options << '--line-numbers'
49
+ rdoc.rdoc_files.include('README.rdoc')
50
+ rdoc.rdoc_files.include('lib/**/*.rb')
51
+ end