tomify 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +19 -0
  4. data/Rakefile +6 -0
  5. data/app/assets/images/tomify/gifs/basketball.gif +0 -0
  6. data/app/assets/images/tomify/gifs/laughing.gif +0 -0
  7. data/app/assets/images/tomify/gifs/sneer.gif +0 -0
  8. data/app/assets/images/tomify/gifs/wind.gif +0 -0
  9. data/app/assets/images/tomify/gifs/woods.gif +0 -0
  10. data/app/assets/javascripts/tomify/default/array.coffee +4 -0
  11. data/app/assets/javascripts/tomify/default/jquery.patch.coffee +9 -0
  12. data/app/assets/javascripts/tomify/default/object.coffee +4 -0
  13. data/app/assets/javascripts/tomify/default/string.coffee +40 -0
  14. data/app/assets/javascripts/tomify/dynamic/classes/component.coffee +7 -0
  15. data/app/assets/javascripts/tomify/dynamic/classes/field.coffee +24 -0
  16. data/app/assets/javascripts/tomify/dynamic/classes/form.coffee +72 -0
  17. data/app/assets/javascripts/tomify/dynamic/classes/model.coffee +41 -0
  18. data/app/assets/javascripts/tomify/dynamic/classes/namespace.coffee +24 -0
  19. data/app/assets/javascripts/tomify/dynamic/classes/observer.coffee +22 -0
  20. data/app/assets/javascripts/tomify/dynamic/classes/request.coffee +26 -0
  21. data/app/assets/javascripts/tomify/dynamic/classes/store.coffee +37 -0
  22. data/app/assets/javascripts/tomify/dynamic/global.coffee +16 -0
  23. data/app/assets/javascripts/tomify/dynamic/react/components/admin/pages.coffee.erb +30 -0
  24. data/app/assets/javascripts/tomify/dynamic/react/components/admin/settings.coffee +27 -0
  25. data/app/assets/javascripts/tomify/dynamic/react/components/admin/sidebars.coffee +16 -0
  26. data/app/assets/javascripts/tomify/dynamic/react/components/admin/uploads.coffee +13 -0
  27. data/app/assets/javascripts/tomify/dynamic/react/components/admin/users.coffee +18 -0
  28. data/app/assets/javascripts/tomify/dynamic/react/components/edit.coffee +51 -0
  29. data/app/assets/javascripts/tomify/dynamic/react/components/fields/checkbox.coffee +8 -0
  30. data/app/assets/javascripts/tomify/dynamic/react/components/fields/default.coffee +3 -0
  31. data/app/assets/javascripts/tomify/dynamic/react/components/fields/file.coffee +3 -0
  32. data/app/assets/javascripts/tomify/dynamic/react/components/fields/markdown.coffee +9 -0
  33. data/app/assets/javascripts/tomify/dynamic/react/components/fields/select.coffee +8 -0
  34. data/app/assets/javascripts/tomify/dynamic/react/components/fields/textarea.coffee +3 -0
  35. data/app/assets/javascripts/tomify/dynamic/react/components/index.coffee +87 -0
  36. data/app/assets/javascripts/tomify/dynamic/react/components/layout/admin_navbar.coffee +29 -0
  37. data/app/assets/javascripts/tomify/dynamic/react/components/layout/analytics.coffee +34 -0
  38. data/app/assets/javascripts/tomify/dynamic/react/components/layout/footer.coffee +11 -0
  39. data/app/assets/javascripts/tomify/dynamic/react/components/layout/header.coffee +28 -0
  40. data/app/assets/javascripts/tomify/dynamic/react/components/layout/messages.coffee +18 -0
  41. data/app/assets/javascripts/tomify/dynamic/react/components/layout/navbar.coffee +6 -0
  42. data/app/assets/javascripts/tomify/dynamic/react/components/layout/public_navbar.coffee +56 -0
  43. data/app/assets/javascripts/tomify/dynamic/react/components/new.coffee +48 -0
  44. data/app/assets/javascripts/tomify/dynamic/react/components/pagination.coffee +29 -0
  45. data/app/assets/javascripts/tomify/dynamic/react/components/public/passwords/new.coffee +38 -0
  46. data/app/assets/javascripts/tomify/dynamic/react/components/public/sessions/new.coffee +40 -0
  47. data/app/assets/javascripts/tomify/dynamic/react/components/public/sessions/show.coffee +35 -0
  48. data/app/assets/javascripts/tomify/dynamic/react/components/public/users/edit.coffee +42 -0
  49. data/app/assets/javascripts/tomify/dynamic/react/components/public/users/new.coffee +35 -0
  50. data/app/assets/javascripts/tomify/dynamic/react/mixins/follow.coffee +51 -0
  51. data/app/assets/javascripts/tomify/dynamic/react/mixins/will-initialize.coffee +7 -0
  52. data/app/assets/javascripts/tomify/dynamic/react/mount.coffee +9 -0
  53. data/app/assets/javascripts/tomify/turbolinks/compatibility.coffee +29 -0
  54. data/app/assets/javascripts/tomify/turbolinks/react.coffee +5 -0
  55. data/app/assets/javascripts/tomify-dynamic.js +8 -0
  56. data/app/assets/javascripts/tomify.js +1 -0
  57. data/app/assets/stylesheets/_tomify.scss +1 -0
  58. data/app/assets/stylesheets/tomify/_default.scss +26 -0
  59. data/app/assets/stylesheets/tomify/_footer.scss +1 -0
  60. data/app/assets/stylesheets/tomify/_navbar.scss +43 -0
  61. data/app/assets/stylesheets/tomify/_page.scss +31 -0
  62. data/app/assets/stylesheets/tomify/_pagination.scss +5 -0
  63. data/app/assets/stylesheets/tomify/_variables.scss +10 -0
  64. data/app/controllers/tomify/admin/controller.rb +7 -0
  65. data/app/controllers/tomify/admin/pages_controller.rb +2 -0
  66. data/app/controllers/tomify/admin/settings_controller.rb +2 -0
  67. data/app/controllers/tomify/admin/sidebars_controller.rb +2 -0
  68. data/app/controllers/tomify/admin/uploads_controller.rb +2 -0
  69. data/app/controllers/tomify/admin/users_controller.rb +2 -0
  70. data/app/controllers/tomify/api/admin/controller.rb +3 -0
  71. data/app/controllers/tomify/api/admin/pages_controller.rb +2 -0
  72. data/app/controllers/tomify/api/admin/settings_controller.rb +2 -0
  73. data/app/controllers/tomify/api/admin/sidebars_controller.rb +2 -0
  74. data/app/controllers/tomify/api/admin/uploads_controller.rb +2 -0
  75. data/app/controllers/tomify/api/admin/users_controller.rb +7 -0
  76. data/app/controllers/tomify/api/public/controller.rb +3 -0
  77. data/app/controllers/tomify/api/public/passwords_controller.rb +10 -0
  78. data/app/controllers/tomify/api/public/sessions_controller.rb +19 -0
  79. data/app/controllers/tomify/api/public/users_controller.rb +25 -0
  80. data/app/controllers/tomify/concerns/api/admin.rb +9 -0
  81. data/app/controllers/tomify/concerns/api/helpers.rb +57 -0
  82. data/app/controllers/tomify/concerns/api/json.rb +46 -0
  83. data/app/controllers/tomify/concerns/api/public.rb +9 -0
  84. data/app/controllers/tomify/concerns/default/auth_helper.rb +22 -0
  85. data/app/controllers/tomify/concerns/default/env_helper.rb +34 -0
  86. data/app/controllers/tomify/concerns/default/helper.rb +13 -0
  87. data/app/controllers/tomify/concerns/default/react_helper.rb +7 -0
  88. data/app/controllers/tomify/concerns/default.rb +17 -0
  89. data/app/controllers/tomify/public/controller.rb +2 -0
  90. data/app/controllers/tomify/public/pages_controller.rb +22 -0
  91. data/app/controllers/tomify/public/sessions_controller.rb +5 -0
  92. data/app/controllers/tomify/public/users_controller.rb +7 -0
  93. data/app/controllers/tomify_controller.rb +3 -0
  94. data/app/helpers/tomify/carrierwave_helper.rb +17 -0
  95. data/app/helpers/tomify/email_helper.rb +19 -0
  96. data/app/helpers/tomify/render_helper.rb +13 -0
  97. data/app/helpers/tomify/timezone_helper.rb +5 -0
  98. data/app/mailers/tomify/user_mailer.rb +13 -0
  99. data/app/mailers/tomify_mailer.rb +14 -0
  100. data/app/models/tomify/concerns/page.rb +74 -0
  101. data/app/models/tomify/concerns/sidebar.rb +18 -0
  102. data/app/models/tomify/concerns/token.rb +18 -0
  103. data/app/models/tomify/concerns/upload.rb +36 -0
  104. data/app/models/tomify/concerns/user.rb +52 -0
  105. data/app/models/tomify/page.rb +3 -0
  106. data/app/models/tomify/setting/boolean.rb +11 -0
  107. data/app/models/tomify/setting/json.rb +11 -0
  108. data/app/models/tomify/setting/text.rb +3 -0
  109. data/app/models/tomify/setting/uploader.rb +6 -0
  110. data/app/models/tomify/setting.rb +48 -0
  111. data/app/models/tomify/sidebar.rb +3 -0
  112. data/app/models/tomify/token.rb +3 -0
  113. data/app/models/tomify/upload.rb +3 -0
  114. data/app/models/tomify/user.rb +3 -0
  115. data/app/models/tomify_record.rb +33 -0
  116. data/app/uploaders/tomify/file_uploader.rb +5 -0
  117. data/app/uploaders/tomify/setting_uploader.rb +7 -0
  118. data/app/uploaders/tomify_uploader.rb +20 -0
  119. data/app/views/templates/contact.haml +24 -0
  120. data/app/views/templates/default.haml +4 -0
  121. data/app/views/tomify/defaults/_body.haml +8 -0
  122. data/app/views/tomify/defaults/_container.haml +3 -0
  123. data/app/views/tomify/defaults/_env.haml +2 -0
  124. data/app/views/tomify/defaults/_head.haml +14 -0
  125. data/app/views/tomify/defaults/_meta.haml +17 -0
  126. data/app/views/tomify/defaults/_sharing.haml +23 -0
  127. data/app/views/tomify/layouts/application.haml +4 -0
  128. data/app/views/tomify/layouts/mailer.haml +7 -0
  129. data/app/views/tomify/mailers/user_mailer/invite.haml +13 -0
  130. data/app/views/tomify/mailers/user_mailer/reset_password.haml +17 -0
  131. data/config/initializers/assets.rb +7 -0
  132. data/config/initializers/database.rb +3 -0
  133. data/config/initializers/flash_patch.rb +15 -0
  134. data/config/initializers/mailer.rb +4 -0
  135. data/config/initializers/renderers.rb +4 -0
  136. data/config/initializers/settings.rb +5 -0
  137. data/config/routes.rb +38 -0
  138. data/db/migrate/19900000000000_create_users.rb +13 -0
  139. data/db/migrate/19900000000001_create_tokens.rb +10 -0
  140. data/db/migrate/19900000000002_create_settings.rb +13 -0
  141. data/db/migrate/19900000000003_create_uploads.rb +13 -0
  142. data/db/migrate/19900000000004_create_pages.rb +22 -0
  143. data/db/migrate/19900000000005_create_sidebars.rb +12 -0
  144. data/db/seeds.rb +43 -0
  145. data/lib/generators/tomify/bundle/bundle_generator.rb +12 -0
  146. data/lib/generators/tomify/bundle/templates/default.js +2 -0
  147. data/lib/generators/tomify/bundle/templates/react.js +3 -0
  148. data/lib/previews/tomify/user_preview.rb +9 -0
  149. data/lib/previews/tomify_preview.rb +6 -0
  150. data/lib/tasks/package.rake +40 -0
  151. data/lib/tomify/constantly.rb +12 -0
  152. data/lib/tomify/engine.rb +11 -0
  153. data/lib/tomify/version.rb +3 -0
  154. data/lib/tomify.rb +40 -0
  155. data/vendor/tomify/development/react.js +20494 -0
  156. data/vendor/tomify/production/react.js +20352 -0
  157. metadata +219 -0
metadata ADDED
@@ -0,0 +1,219 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tomify
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Tom Prats
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-03-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.0.0
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 5.0.0.1
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 5.0.0
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 5.0.0.1
33
+ description: Provides support for paradigms commonly used in Tomify Applications
34
+ email:
35
+ - tom@tomify.me
36
+ executables: []
37
+ extensions: []
38
+ extra_rdoc_files: []
39
+ files:
40
+ - MIT-LICENSE
41
+ - README.md
42
+ - Rakefile
43
+ - app/assets/images/tomify/gifs/basketball.gif
44
+ - app/assets/images/tomify/gifs/laughing.gif
45
+ - app/assets/images/tomify/gifs/sneer.gif
46
+ - app/assets/images/tomify/gifs/wind.gif
47
+ - app/assets/images/tomify/gifs/woods.gif
48
+ - app/assets/javascripts/tomify-dynamic.js
49
+ - app/assets/javascripts/tomify.js
50
+ - app/assets/javascripts/tomify/default/array.coffee
51
+ - app/assets/javascripts/tomify/default/jquery.patch.coffee
52
+ - app/assets/javascripts/tomify/default/object.coffee
53
+ - app/assets/javascripts/tomify/default/string.coffee
54
+ - app/assets/javascripts/tomify/dynamic/classes/component.coffee
55
+ - app/assets/javascripts/tomify/dynamic/classes/field.coffee
56
+ - app/assets/javascripts/tomify/dynamic/classes/form.coffee
57
+ - app/assets/javascripts/tomify/dynamic/classes/model.coffee
58
+ - app/assets/javascripts/tomify/dynamic/classes/namespace.coffee
59
+ - app/assets/javascripts/tomify/dynamic/classes/observer.coffee
60
+ - app/assets/javascripts/tomify/dynamic/classes/request.coffee
61
+ - app/assets/javascripts/tomify/dynamic/classes/store.coffee
62
+ - app/assets/javascripts/tomify/dynamic/global.coffee
63
+ - app/assets/javascripts/tomify/dynamic/react/components/admin/pages.coffee.erb
64
+ - app/assets/javascripts/tomify/dynamic/react/components/admin/settings.coffee
65
+ - app/assets/javascripts/tomify/dynamic/react/components/admin/sidebars.coffee
66
+ - app/assets/javascripts/tomify/dynamic/react/components/admin/uploads.coffee
67
+ - app/assets/javascripts/tomify/dynamic/react/components/admin/users.coffee
68
+ - app/assets/javascripts/tomify/dynamic/react/components/edit.coffee
69
+ - app/assets/javascripts/tomify/dynamic/react/components/fields/checkbox.coffee
70
+ - app/assets/javascripts/tomify/dynamic/react/components/fields/default.coffee
71
+ - app/assets/javascripts/tomify/dynamic/react/components/fields/file.coffee
72
+ - app/assets/javascripts/tomify/dynamic/react/components/fields/markdown.coffee
73
+ - app/assets/javascripts/tomify/dynamic/react/components/fields/select.coffee
74
+ - app/assets/javascripts/tomify/dynamic/react/components/fields/textarea.coffee
75
+ - app/assets/javascripts/tomify/dynamic/react/components/index.coffee
76
+ - app/assets/javascripts/tomify/dynamic/react/components/layout/admin_navbar.coffee
77
+ - app/assets/javascripts/tomify/dynamic/react/components/layout/analytics.coffee
78
+ - app/assets/javascripts/tomify/dynamic/react/components/layout/footer.coffee
79
+ - app/assets/javascripts/tomify/dynamic/react/components/layout/header.coffee
80
+ - app/assets/javascripts/tomify/dynamic/react/components/layout/messages.coffee
81
+ - app/assets/javascripts/tomify/dynamic/react/components/layout/navbar.coffee
82
+ - app/assets/javascripts/tomify/dynamic/react/components/layout/public_navbar.coffee
83
+ - app/assets/javascripts/tomify/dynamic/react/components/new.coffee
84
+ - app/assets/javascripts/tomify/dynamic/react/components/pagination.coffee
85
+ - app/assets/javascripts/tomify/dynamic/react/components/public/passwords/new.coffee
86
+ - app/assets/javascripts/tomify/dynamic/react/components/public/sessions/new.coffee
87
+ - app/assets/javascripts/tomify/dynamic/react/components/public/sessions/show.coffee
88
+ - app/assets/javascripts/tomify/dynamic/react/components/public/users/edit.coffee
89
+ - app/assets/javascripts/tomify/dynamic/react/components/public/users/new.coffee
90
+ - app/assets/javascripts/tomify/dynamic/react/mixins/follow.coffee
91
+ - app/assets/javascripts/tomify/dynamic/react/mixins/will-initialize.coffee
92
+ - app/assets/javascripts/tomify/dynamic/react/mount.coffee
93
+ - app/assets/javascripts/tomify/turbolinks/compatibility.coffee
94
+ - app/assets/javascripts/tomify/turbolinks/react.coffee
95
+ - app/assets/stylesheets/_tomify.scss
96
+ - app/assets/stylesheets/tomify/_default.scss
97
+ - app/assets/stylesheets/tomify/_footer.scss
98
+ - app/assets/stylesheets/tomify/_navbar.scss
99
+ - app/assets/stylesheets/tomify/_page.scss
100
+ - app/assets/stylesheets/tomify/_pagination.scss
101
+ - app/assets/stylesheets/tomify/_variables.scss
102
+ - app/controllers/tomify/admin/controller.rb
103
+ - app/controllers/tomify/admin/pages_controller.rb
104
+ - app/controllers/tomify/admin/settings_controller.rb
105
+ - app/controllers/tomify/admin/sidebars_controller.rb
106
+ - app/controllers/tomify/admin/uploads_controller.rb
107
+ - app/controllers/tomify/admin/users_controller.rb
108
+ - app/controllers/tomify/api/admin/controller.rb
109
+ - app/controllers/tomify/api/admin/pages_controller.rb
110
+ - app/controllers/tomify/api/admin/settings_controller.rb
111
+ - app/controllers/tomify/api/admin/sidebars_controller.rb
112
+ - app/controllers/tomify/api/admin/uploads_controller.rb
113
+ - app/controllers/tomify/api/admin/users_controller.rb
114
+ - app/controllers/tomify/api/public/controller.rb
115
+ - app/controllers/tomify/api/public/passwords_controller.rb
116
+ - app/controllers/tomify/api/public/sessions_controller.rb
117
+ - app/controllers/tomify/api/public/users_controller.rb
118
+ - app/controllers/tomify/concerns/api/admin.rb
119
+ - app/controllers/tomify/concerns/api/helpers.rb
120
+ - app/controllers/tomify/concerns/api/json.rb
121
+ - app/controllers/tomify/concerns/api/public.rb
122
+ - app/controllers/tomify/concerns/default.rb
123
+ - app/controllers/tomify/concerns/default/auth_helper.rb
124
+ - app/controllers/tomify/concerns/default/env_helper.rb
125
+ - app/controllers/tomify/concerns/default/helper.rb
126
+ - app/controllers/tomify/concerns/default/react_helper.rb
127
+ - app/controllers/tomify/public/controller.rb
128
+ - app/controllers/tomify/public/pages_controller.rb
129
+ - app/controllers/tomify/public/sessions_controller.rb
130
+ - app/controllers/tomify/public/users_controller.rb
131
+ - app/controllers/tomify_controller.rb
132
+ - app/helpers/tomify/carrierwave_helper.rb
133
+ - app/helpers/tomify/email_helper.rb
134
+ - app/helpers/tomify/render_helper.rb
135
+ - app/helpers/tomify/timezone_helper.rb
136
+ - app/mailers/tomify/user_mailer.rb
137
+ - app/mailers/tomify_mailer.rb
138
+ - app/models/tomify/concerns/page.rb
139
+ - app/models/tomify/concerns/sidebar.rb
140
+ - app/models/tomify/concerns/token.rb
141
+ - app/models/tomify/concerns/upload.rb
142
+ - app/models/tomify/concerns/user.rb
143
+ - app/models/tomify/page.rb
144
+ - app/models/tomify/setting.rb
145
+ - app/models/tomify/setting/boolean.rb
146
+ - app/models/tomify/setting/json.rb
147
+ - app/models/tomify/setting/text.rb
148
+ - app/models/tomify/setting/uploader.rb
149
+ - app/models/tomify/sidebar.rb
150
+ - app/models/tomify/token.rb
151
+ - app/models/tomify/upload.rb
152
+ - app/models/tomify/user.rb
153
+ - app/models/tomify_record.rb
154
+ - app/uploaders/tomify/file_uploader.rb
155
+ - app/uploaders/tomify/setting_uploader.rb
156
+ - app/uploaders/tomify_uploader.rb
157
+ - app/views/templates/contact.haml
158
+ - app/views/templates/default.haml
159
+ - app/views/tomify/defaults/_body.haml
160
+ - app/views/tomify/defaults/_container.haml
161
+ - app/views/tomify/defaults/_env.haml
162
+ - app/views/tomify/defaults/_head.haml
163
+ - app/views/tomify/defaults/_meta.haml
164
+ - app/views/tomify/defaults/_sharing.haml
165
+ - app/views/tomify/layouts/application.haml
166
+ - app/views/tomify/layouts/mailer.haml
167
+ - app/views/tomify/mailers/user_mailer/invite.haml
168
+ - app/views/tomify/mailers/user_mailer/reset_password.haml
169
+ - config/initializers/assets.rb
170
+ - config/initializers/database.rb
171
+ - config/initializers/flash_patch.rb
172
+ - config/initializers/mailer.rb
173
+ - config/initializers/renderers.rb
174
+ - config/initializers/settings.rb
175
+ - config/routes.rb
176
+ - db/migrate/19900000000000_create_users.rb
177
+ - db/migrate/19900000000001_create_tokens.rb
178
+ - db/migrate/19900000000002_create_settings.rb
179
+ - db/migrate/19900000000003_create_uploads.rb
180
+ - db/migrate/19900000000004_create_pages.rb
181
+ - db/migrate/19900000000005_create_sidebars.rb
182
+ - db/seeds.rb
183
+ - lib/generators/tomify/bundle/bundle_generator.rb
184
+ - lib/generators/tomify/bundle/templates/default.js
185
+ - lib/generators/tomify/bundle/templates/react.js
186
+ - lib/previews/tomify/user_preview.rb
187
+ - lib/previews/tomify_preview.rb
188
+ - lib/tasks/package.rake
189
+ - lib/tomify.rb
190
+ - lib/tomify/constantly.rb
191
+ - lib/tomify/engine.rb
192
+ - lib/tomify/version.rb
193
+ - vendor/tomify/development/react.js
194
+ - vendor/tomify/production/react.js
195
+ homepage: https://github.com/tomprats/tomify-gem
196
+ licenses:
197
+ - MIT
198
+ metadata: {}
199
+ post_install_message:
200
+ rdoc_options: []
201
+ require_paths:
202
+ - lib
203
+ required_ruby_version: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
208
+ required_rubygems_version: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ version: '0'
213
+ requirements: []
214
+ rubyforge_project:
215
+ rubygems_version: 2.5.1
216
+ signing_key:
217
+ specification_version: 4
218
+ summary: Backbone for Tomify Apps
219
+ test_files: []