xing-framework 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. checksums.yaml +4 -4
  2. data/default_configuration/base_app/API_DOC/README +23 -0
  3. data/default_configuration/base_app/API_DOC/admin-menus +167 -0
  4. data/default_configuration/base_app/API_DOC/admin-pages +173 -0
  5. data/default_configuration/base_app/API_DOC/content-block +10 -0
  6. data/default_configuration/base_app/API_DOC/navigation +54 -0
  7. data/default_configuration/base_app/API_DOC/page +38 -0
  8. data/default_configuration/base_app/CHANGELOG.md +122 -0
  9. data/default_configuration/base_app/Capfile +26 -0
  10. data/default_configuration/base_app/Gemfile +7 -0
  11. data/default_configuration/base_app/Gemfile.lock +155 -0
  12. data/default_configuration/base_app/README.md +24 -0
  13. data/default_configuration/base_app/Rakefile +25 -0
  14. data/default_configuration/base_app/backend/Gemfile +45 -0
  15. data/default_configuration/base_app/backend/Gemfile.lock +292 -0
  16. data/default_configuration/base_app/backend/README +12 -0
  17. data/default_configuration/base_app/backend/Rakefile +10 -0
  18. data/default_configuration/base_app/backend/app/controllers/application_controller.rb +3 -0
  19. data/default_configuration/base_app/backend/app/controllers/confirmations_controller.rb +3 -0
  20. data/default_configuration/base_app/backend/app/controllers/passwords_controller.rb +3 -0
  21. data/default_configuration/base_app/backend/app/controllers/registrations_controller.rb +15 -0
  22. data/default_configuration/base_app/backend/app/models/ability.rb +13 -0
  23. data/default_configuration/base_app/backend/app/models/role/admin.rb +8 -0
  24. data/default_configuration/base_app/backend/app/models/user.rb +43 -0
  25. data/default_configuration/base_app/backend/autotest/discover.rb +2 -0
  26. data/default_configuration/base_app/backend/bin/bundle +3 -0
  27. data/default_configuration/base_app/backend/bin/rails +4 -0
  28. data/default_configuration/base_app/backend/bin/rake +4 -0
  29. data/default_configuration/base_app/backend/config.ru +6 -0
  30. data/default_configuration/base_app/backend/config/application.rb +71 -0
  31. data/default_configuration/base_app/backend/config/boot.rb +4 -0
  32. data/default_configuration/base_app/backend/config/database.yml.ci +9 -0
  33. data/default_configuration/base_app/backend/config/database.yml.example +22 -0
  34. data/default_configuration/base_app/backend/config/environment.rb +5 -0
  35. data/default_configuration/base_app/backend/config/environments/development.rb +45 -0
  36. data/default_configuration/base_app/backend/config/environments/production.rb +78 -0
  37. data/default_configuration/base_app/backend/config/environments/staging.rb +48 -0
  38. data/default_configuration/base_app/backend/config/environments/test.rb +47 -0
  39. data/default_configuration/base_app/backend/config/initializers/assets.rb +8 -0
  40. data/default_configuration/base_app/backend/config/initializers/backtrace_silencers.rb +7 -0
  41. data/default_configuration/base_app/backend/config/initializers/constants.rb +1 -0
  42. data/default_configuration/base_app/backend/config/initializers/cookies_serializer.rb +3 -0
  43. data/default_configuration/base_app/backend/config/initializers/devise.rb +241 -0
  44. data/default_configuration/base_app/backend/config/initializers/devise_token_auth.rb +22 -0
  45. data/default_configuration/base_app/backend/config/initializers/filter_parameter_logging.rb +4 -0
  46. data/default_configuration/base_app/backend/config/initializers/inflections.rb +16 -0
  47. data/default_configuration/base_app/backend/config/initializers/mime_types.rb +4 -0
  48. data/default_configuration/base_app/backend/config/initializers/session_store.rb +3 -0
  49. data/default_configuration/base_app/backend/config/initializers/smtp.rb +25 -0
  50. data/default_configuration/base_app/backend/config/initializers/time_formats.rb +12 -0
  51. data/default_configuration/base_app/backend/config/initializers/wrap_parameters.rb +14 -0
  52. data/default_configuration/base_app/backend/config/locales/en.yml +23 -0
  53. data/default_configuration/base_app/backend/config/locales/json.yml +29 -0
  54. data/default_configuration/base_app/backend/config/routes.rb +33 -0
  55. data/default_configuration/base_app/backend/config/secrets.yml.ci +22 -0
  56. data/default_configuration/base_app/backend/config/secrets.yml.example +57 -0
  57. data/default_configuration/base_app/backend/config/sidekiq.yml +4 -0
  58. data/default_configuration/base_app/backend/db/sample_data/users.rake +10 -0
  59. data/default_configuration/base_app/backend/db/seeds.rb +14 -0
  60. data/default_configuration/base_app/backend/lib/static-app.rb +15 -0
  61. data/default_configuration/base_app/backend/public/404.html +26 -0
  62. data/default_configuration/base_app/backend/public/422.html +26 -0
  63. data/default_configuration/base_app/backend/public/500.html +26 -0
  64. data/default_configuration/base_app/backend/public/favicon.ico +0 -0
  65. data/default_configuration/base_app/backend/public/index.html +0 -0
  66. data/default_configuration/base_app/backend/public/robots.txt +5 -0
  67. data/default_configuration/base_app/backend/script/rails +6 -0
  68. data/default_configuration/base_app/backend/spec/factories/user_sessions_factory.rb +6 -0
  69. data/default_configuration/base_app/backend/spec/factories/users_factory.rb +35 -0
  70. data/default_configuration/base_app/backend/spec/features/user_sends_reset_password_email_spec.rb +30 -0
  71. data/default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb +32 -0
  72. data/default_configuration/base_app/backend/spec/models/role/admin_spec.rb +12 -0
  73. data/default_configuration/base_app/backend/spec/models/role_spec.rb +48 -0
  74. data/default_configuration/base_app/backend/spec/models/user_spec.rb +59 -0
  75. data/default_configuration/base_app/backend/spec/requests/resources_index_spec.rb +22 -0
  76. data/default_configuration/base_app/backend/spec/spec_helper.rb +65 -0
  77. data/default_configuration/base_app/backend/spec/support/devise_helper.rb +78 -0
  78. data/default_configuration/base_app/backend/spec/support/log_tests.rb +5 -0
  79. data/default_configuration/base_app/backend/spec/support/session_helpers.rb +67 -0
  80. data/default_configuration/base_app/backend/spec/tasks/sample_data_rake_spec.rb +17 -0
  81. data/default_configuration/base_app/backend/static-app.ru +3 -0
  82. data/default_configuration/base_app/codeclimate.yml +7 -0
  83. data/default_configuration/base_app/config/compass.rb +21 -0
  84. data/default_configuration/base_app/config/deploy.rb +157 -0
  85. data/default_configuration/base_app/config/deploy/bundle-config +4 -0
  86. data/default_configuration/base_app/config/deploy/production.rb +7 -0
  87. data/default_configuration/base_app/config/deploy/staging.rb +6 -0
  88. data/default_configuration/base_app/doc/01_fail_resources.txt +173 -0
  89. data/default_configuration/base_app/doc/02_fail_auth.txt +165 -0
  90. data/default_configuration/base_app/doc/03_fail_menus.txt +174 -0
  91. data/default_configuration/base_app/dummy-api/admin/menu_items/10.json +15 -0
  92. data/default_configuration/base_app/dummy-api/admin/menu_items/11.json +15 -0
  93. data/default_configuration/base_app/dummy-api/admin/menu_items/12.json +15 -0
  94. data/default_configuration/base_app/dummy-api/admin/menu_items/13.json +15 -0
  95. data/default_configuration/base_app/dummy-api/admin/menu_items/14.json +15 -0
  96. data/default_configuration/base_app/dummy-api/admin/menu_items/15.json +15 -0
  97. data/default_configuration/base_app/dummy-api/admin/menu_items/16.json +15 -0
  98. data/default_configuration/base_app/dummy-api/admin/menus.json +23 -0
  99. data/default_configuration/base_app/dummy-api/admin/menus/1.json +118 -0
  100. data/default_configuration/base_app/dummy-api/admin/menus/2.json +8 -0
  101. data/default_configuration/base_app/dummy-api/admin/pages.json +105 -0
  102. data/default_configuration/base_app/dummy-api/admin/pages/about_us.json +45 -0
  103. data/default_configuration/base_app/dummy-api/admin/pages/contact_us.json +36 -0
  104. data/default_configuration/base_app/dummy-api/admin/pages/gallery.json +36 -0
  105. data/default_configuration/base_app/dummy-api/admin/pages/home.json +36 -0
  106. data/default_configuration/base_app/dummy-api/admin/pages/homepage.json +18 -0
  107. data/default_configuration/base_app/dummy-api/admin/pages/links.json +36 -0
  108. data/default_configuration/base_app/dummy-api/admin/pages/newsletter.json +54 -0
  109. data/default_configuration/base_app/dummy-api/homepage.json +14 -0
  110. data/default_configuration/base_app/dummy-api/navigation/main.json +119 -0
  111. data/default_configuration/base_app/dummy-api/pages/about_us.json +41 -0
  112. data/default_configuration/base_app/dummy-api/pages/contact_us.json +32 -0
  113. data/default_configuration/base_app/dummy-api/pages/gallery.json +32 -0
  114. data/default_configuration/base_app/dummy-api/pages/home.json +32 -0
  115. data/default_configuration/base_app/dummy-api/pages/homepage.json +14 -0
  116. data/default_configuration/base_app/dummy-api/pages/links.json +32 -0
  117. data/default_configuration/base_app/dummy-api/pages/newsletter.json +50 -0
  118. data/default_configuration/base_app/dump.rdb +0 -0
  119. data/default_configuration/base_app/example-lrd-dev-tmux.conf +17 -0
  120. data/default_configuration/base_app/frontend/CHANGELOG.md +125 -0
  121. data/default_configuration/base_app/frontend/Gemfile +5 -0
  122. data/default_configuration/base_app/frontend/Gemfile.lock +34 -0
  123. data/default_configuration/base_app/frontend/Gruntfile.js +3 -0
  124. data/default_configuration/base_app/frontend/LICENSE +19 -0
  125. data/default_configuration/base_app/frontend/README.md +5 -0
  126. data/default_configuration/base_app/frontend/bin/index.html +0 -0
  127. data/default_configuration/base_app/frontend/build.config.js +110 -0
  128. data/default_configuration/base_app/frontend/changelog.tpl +23 -0
  129. data/default_configuration/base_app/frontend/config/compass.rb +33 -0
  130. data/default_configuration/base_app/frontend/config/environments/development.js +4 -0
  131. data/default_configuration/base_app/frontend/config/environments/integration.js +4 -0
  132. data/default_configuration/base_app/frontend/config/environments/production.js +3 -0
  133. data/default_configuration/base_app/frontend/config/environments/test.js +4 -0
  134. data/default_configuration/base_app/frontend/create +0 -0
  135. data/default_configuration/base_app/frontend/karma/karma-unit.tpl.js +80 -0
  136. data/default_configuration/base_app/frontend/module.prefix +1 -0
  137. data/default_configuration/base_app/frontend/module.suffix +1 -0
  138. data/default_configuration/base_app/frontend/npm-shrinkwrap.json +4334 -0
  139. data/default_configuration/base_app/frontend/package.json +75 -0
  140. data/default_configuration/base_app/frontend/sprockets/index.tpl.js +2 -0
  141. data/default_configuration/base_app/frontend/src/README.md +48 -0
  142. data/default_configuration/base_app/frontend/src/app/README.md +68 -0
  143. data/default_configuration/base_app/frontend/src/app/app.js +47 -0
  144. data/default_configuration/base_app/frontend/src/app/appConfig.js +19 -0
  145. data/default_configuration/base_app/frontend/src/app/auth/auth.js +66 -0
  146. data/default_configuration/base_app/frontend/src/app/auth/config.js +22 -0
  147. data/default_configuration/base_app/frontend/src/app/auth/confirmations/confirmations-success.tpl.html +1 -0
  148. data/default_configuration/base_app/frontend/src/app/auth/confirmations/confirmations.js +8 -0
  149. data/default_configuration/base_app/frontend/src/app/auth/confirmations/confirmationsStates.js +12 -0
  150. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwords-request-success.tpl.html +3 -0
  151. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwords-request.tpl.html +16 -0
  152. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwords-update-success.tpl.html +3 -0
  153. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwords-update.tpl.html +21 -0
  154. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwords.js +11 -0
  155. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwordsControllers.js +47 -0
  156. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwordsStates.js +38 -0
  157. data/default_configuration/base_app/frontend/src/app/auth/registrations/registrations-success.tpl.html +1 -0
  158. data/default_configuration/base_app/frontend/src/app/auth/registrations/registrations.js +14 -0
  159. data/default_configuration/base_app/frontend/src/app/auth/registrations/registrations.tpl.html +37 -0
  160. data/default_configuration/base_app/frontend/src/app/auth/registrations/registrationsControllers.js +25 -0
  161. data/default_configuration/base_app/frontend/src/app/auth/registrations/registrationsStates.js +18 -0
  162. data/default_configuration/base_app/frontend/src/app/auth/sessions/sessions-success.tpl.html +1 -0
  163. data/default_configuration/base_app/frontend/src/app/auth/sessions/sessions.js +18 -0
  164. data/default_configuration/base_app/frontend/src/app/auth/sessions/sessions.tpl.html +25 -0
  165. data/default_configuration/base_app/frontend/src/app/auth/sessions/sessionsControllers.js +26 -0
  166. data/default_configuration/base_app/frontend/src/app/auth/sessions/sessionsStates.js +20 -0
  167. data/default_configuration/base_app/frontend/src/app/homepage/homepage-show.tpl.html +2 -0
  168. data/default_configuration/base_app/frontend/src/app/homepage/homepage.js +10 -0
  169. data/default_configuration/base_app/frontend/src/app/homepage/homepage.tpl.html +13 -0
  170. data/default_configuration/base_app/frontend/src/app/homepage/homepageControllers.js +9 -0
  171. data/default_configuration/base_app/frontend/src/app/homepage/homepageStates.js +22 -0
  172. data/default_configuration/base_app/frontend/src/app/inner.tpl.html +16 -0
  173. data/default_configuration/base_app/frontend/src/app/root.tpl.html +2 -0
  174. data/default_configuration/base_app/frontend/src/app/rootController.js +8 -0
  175. data/default_configuration/base_app/frontend/src/app/rootStates.js +20 -0
  176. data/default_configuration/base_app/frontend/src/assets/README.md +4 -0
  177. data/default_configuration/base_app/frontend/src/assets/icons/alert.svg +1 -0
  178. data/default_configuration/base_app/frontend/src/common/README.md +19 -0
  179. data/default_configuration/base_app/frontend/src/common/components/OnLoginDirective/OnLoginDirective.js +17 -0
  180. data/default_configuration/base_app/frontend/src/common/components/adminOnly/admin-only.tpl.html +4 -0
  181. data/default_configuration/base_app/frontend/src/common/components/adminOnly/adminOnly.js +23 -0
  182. data/default_configuration/base_app/frontend/src/common/components/sessionLinks/session-links.tpl.html +5 -0
  183. data/default_configuration/base_app/frontend/src/common/components/sessionLinks/sessionLinks.js +25 -0
  184. data/default_configuration/base_app/frontend/src/common/components/signOut/signOut.js +19 -0
  185. data/default_configuration/base_app/frontend/src/common/config.js +27 -0
  186. data/default_configuration/base_app/frontend/src/index.html +86 -0
  187. data/default_configuration/base_app/frontend/src/styles/_constants.sass +14 -0
  188. data/default_configuration/base_app/frontend/src/styles/main.sass +52 -0
  189. data/default_configuration/base_app/frontend/src/styles/partials/_footer.sass +18 -0
  190. data/default_configuration/base_app/frontend/src/styles/partials/_forms.sass +9 -0
  191. data/default_configuration/base_app/frontend/src/styles/partials/_layout.sass +17 -0
  192. data/default_configuration/base_app/frontend/src/styles/partials/_navbar.sass +10 -0
  193. data/default_configuration/base_app/frontend/src/styles/partials/_typography.sass +18 -0
  194. data/default_configuration/base_app/frontend/src/styles/states/_errorFallback.sass +7 -0
  195. data/default_configuration/base_app/frontend/src/styles/states/_root_homepage.sass +8 -0
  196. data/default_configuration/base_app/frontend/test-help/xpath.js +9 -0
  197. data/default_configuration/base_app/frontend/test/app.js +24 -0
  198. data/default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js +46 -0
  199. data/default_configuration/base_app/frontend/test/auth/passwords/passwordsControllers.js +193 -0
  200. data/default_configuration/base_app/frontend/test/auth/passwords/passwordsStates.js +108 -0
  201. data/default_configuration/base_app/frontend/test/auth/registrations/registrationsControllers.js +117 -0
  202. data/default_configuration/base_app/frontend/test/auth/registrations/registrationsStates.js +64 -0
  203. data/default_configuration/base_app/frontend/test/auth/sessions/sessionsControllers.js +95 -0
  204. data/default_configuration/base_app/frontend/test/auth/sessions/sessionsStates.js +67 -0
  205. data/default_configuration/base_app/frontend/test/specHelper.js +33 -0
  206. data/default_configuration/base_app/frontend/test/support/mockDirective.js +13 -0
  207. data/default_configuration/base_app/frontend/test/support/stateResolveFn.js +3 -0
  208. data/default_configuration/base_app/frontend/test/support/testStates.js +20 -0
  209. data/default_configuration/base_app/frontend/tools.md +223 -0
  210. data/default_configuration/base_app/lib/capistrano/tasks/sidekiq.rake +218 -0
  211. data/default_configuration/base_app/static-app.ru +3 -0
  212. data/default_configuration/base_app/tmux-windows +68 -0
  213. data/default_configuration/base_app/tmux-windows.txt +53 -0
  214. data/lib/xing/cli.rb +8 -3
  215. data/lib/xing/cli/generators/new_project.rb +48 -13
  216. metadata +219 -7
@@ -0,0 +1,122 @@
1
+ 0.0.19 / 2015-10-07
2
+ ========
3
+ * Use APP_MODULE consistently in backend, eliminate references to LrdCms and LrdCms2 modules.
4
+ * Use $appName consistently in frontend, eliminate literals & references to LRD-CMS2 in code
5
+ * Create xng-unimplemented directive to mark visual features that are not yet built
6
+ * Fix loading of FontAwesome icons
7
+ * Make Froala editor toolbar show by default in CMS rich text editor
8
+ * Clean up and improve sample_data task and seeds.rb.
9
+ * update relayer to 0.1.0
10
+
11
+ 0.0.18 / 2015-09-27
12
+ ========
13
+ * Add error fallback condition to break infinite state redirect loops, with default error page
14
+ * Update angular 1.3.x to 1.4.15, and Relayer to 0.0.9
15
+
16
+ 0.0.17 / 2015-06-29
17
+ ========
18
+ * extraction of the xing-traceur task
19
+ * extraction of the xing-inflector
20
+ * And the relayer library (not actually used here though -- just available as importable file)
21
+ * Converted most bower files to node_modules, removed from repository
22
+
23
+ 0.0.16 / 2015-06-29
24
+ ========
25
+ * Update xing-backend to 0.0.16
26
+
27
+ 0.0.15 / 2015-06-29
28
+ ========
29
+ * Update xing-backend to 0.0.15
30
+
31
+ 0.0.14 / 2015-06-29
32
+ ========
33
+ * Modify traceur-es6 task to handle files in batches, to avoid crashes due to too many files open simultaneously.
34
+ * Update xing-backend to 0.0.14
35
+
36
+ 0.0.13 / 2015-06-19
37
+ ========
38
+ * Update Rails to 4.2.2 and Rack to 1.6.4
39
+ * Fix bug with latest chromedriver and mobile browser size in E2E tests
40
+ * xing-backend 0.0.13 includes list serializers
41
+ * Fix sidekiq ... again
42
+
43
+ 0.0.12 / 2015-06-18
44
+ ===================
45
+ * Update to match version of xing-backend gem that includes paginated list resources.
46
+
47
+ 0.0.11 / 2015-06-18
48
+ ===================
49
+ * BREAKING: references to old JsonController and BaseController MUST be replaced by
50
+ Xing::Controllers::Base. Deprecation warnings will NOT be emitted.
51
+
52
+ * BREAKING: references to ResourcesController MUST be replaced by Xing::Controllers::RootResourcesController.
53
+ Deprecation warnings will NOT be emitted.
54
+
55
+ * Update to Rails 4.2 in backend
56
+ * Set depenency for mappers/serializers/controllers to extracted xing-backend gem
57
+ * Set dependecy for token authn to xing_backend_token_auth gem (replacing the a git fork
58
+ of devise_token_auth)
59
+ * Sass updates, including making flexbox available
60
+ * Replace all constants deprecated by the new xing-backend gem
61
+
62
+
63
+ 0.0.8 / 2015-06-09
64
+ ==================
65
+ * Update to Rails 4.2.0
66
+ * Extract back-end framework code to backend/framework
67
+ * Fixes to saving/displaying per-page CSS in CMS pages
68
+ * Fixes to styling of inline <i> and <b> tags in CMS pages
69
+ * Update to A1Atscript 0.2.0
70
+
71
+ 0.0.7 / 2015-03-18
72
+ ==================
73
+ * Update to Rails 4.1.9
74
+ * BREAKING: All non state based components moved to src/common/components
75
+ * BREAKING: Many front-end classes are moved to frontend/src/framework
76
+ * Loggable browser console: front-end JS shim/console wrapper + Waterpig version bump logs
77
+ browser console to backend/log/test_browser_console.log during feature specs
78
+ * BREAKING: Updated traceur -- means all import statements now include .js in the title
79
+
80
+ 0.0.6 / 2015-02-20
81
+ ==================
82
+ * BREAKING: Reorganization of stylesheets directory. Default styles provided by framework are now located in the styles/framework, with app-specific overrides in styles/partials or styles/states.
83
+
84
+ 0.0.5 / 2015-02-17
85
+ ==================
86
+ * Move compass:watch function out of grunt and into rake develop.
87
+
88
+ 0.0.4 / 2015-02-03
89
+ ==================
90
+
91
+ * Change to the rakelibs to only require files as tasks need them - was breaking Capistrano deploys
92
+ * Updated A1AtScript and refactored several directives to use the
93
+ A1AtScript's new DirectiveObject annotation pattern. Note: the old
94
+ Directive annotation is still present so this is not a breaking change
95
+
96
+ 0.0.3 / 2015-01-29
97
+ ==================
98
+
99
+ * BREAKING: AtScript Refactor -- while this should generally not affect
100
+ existing code, merges to app.js may have conflicts that need resolution.
101
+ All regular angular modules of projects should be added as dependencies of
102
+ the main module in app.js as strings. Also, it may be important to check
103
+ appConfig.js and rootController.js to make sure all changes are moved over.
104
+ * Compass watch moved to top level, out of frontend
105
+
106
+ 0.0.2 / 2015-01-26
107
+ ==================
108
+
109
+ * BREAKING: Split the frontend assets and backend API servers, with support for development
110
+ (breaking because deployments will need config changes to support)
111
+ * Changed clearfix styles to match Compass's clearfix
112
+ * BREAKING CHANGE: Traceur updated. All calls to super() in ES6 classes must
113
+ be updated to call super.instanceMethod() unless in a constructor
114
+ * Menus are now retreived as a list from the server. backend.menu(name)
115
+ searches that list and GETs the matching Menu if any. Note that
116
+ backend.menu(name) returns a Promise of the Menu to be retrieved.
117
+ * Changelog wrapped at 76 characters.
118
+
119
+ 0.0.1 / 2015-01-19
120
+ ==================
121
+
122
+ * Initial Release
@@ -0,0 +1,26 @@
1
+ # Load DSL and Setup Up Stages
2
+ require 'capistrano/setup'
3
+
4
+ # Includes default deployment tasks
5
+ require 'capistrano/deploy'
6
+ require 'capistrano/passenger'
7
+
8
+ # Includes tasks from other gems included in your Gemfile
9
+ #
10
+ # For documentation on these, see for example:
11
+ #
12
+ # https://github.com/capistrano/rvm
13
+ # https://github.com/capistrano/rbenv
14
+ # https://github.com/capistrano/chruby
15
+ # https://github.com/capistrano/bundler
16
+ # https://github.com/capistrano/rails
17
+ #
18
+ # require 'capistrano/rvm'
19
+ # require 'capistrano/rbenv'
20
+ # require 'capistrano/chruby'
21
+ # require 'capistrano/bundler'
22
+ # require 'capistrano/rails/assets'
23
+ # require 'capistrano/rails/migrations'
24
+
25
+ # Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
26
+ Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+ gem 'rails', '4.2.2'
3
+ gem "capistrano"
4
+ gem 'rack'
5
+ gem 'compass'
6
+ gem 'capistrano-passenger'
7
+ gem 'xing-root'
@@ -0,0 +1,155 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ actionmailer (4.2.2)
5
+ actionpack (= 4.2.2)
6
+ actionview (= 4.2.2)
7
+ activejob (= 4.2.2)
8
+ mail (~> 2.5, >= 2.5.4)
9
+ rails-dom-testing (~> 1.0, >= 1.0.5)
10
+ actionpack (4.2.2)
11
+ actionview (= 4.2.2)
12
+ activesupport (= 4.2.2)
13
+ rack (~> 1.6)
14
+ rack-test (~> 0.6.2)
15
+ rails-dom-testing (~> 1.0, >= 1.0.5)
16
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
17
+ actionview (4.2.2)
18
+ activesupport (= 4.2.2)
19
+ builder (~> 3.1)
20
+ erubis (~> 2.7.0)
21
+ rails-dom-testing (~> 1.0, >= 1.0.5)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
23
+ activejob (4.2.2)
24
+ activesupport (= 4.2.2)
25
+ globalid (>= 0.3.0)
26
+ activemodel (4.2.2)
27
+ activesupport (= 4.2.2)
28
+ builder (~> 3.1)
29
+ activerecord (4.2.2)
30
+ activemodel (= 4.2.2)
31
+ activesupport (= 4.2.2)
32
+ arel (~> 6.0)
33
+ activesupport (4.2.2)
34
+ i18n (~> 0.7)
35
+ json (~> 1.7, >= 1.7.7)
36
+ minitest (~> 5.1)
37
+ thread_safe (~> 0.3, >= 0.3.4)
38
+ tzinfo (~> 1.1)
39
+ arel (6.0.0)
40
+ builder (3.2.2)
41
+ calibrate (0.0.1)
42
+ caliph (0.3.1)
43
+ capistrano (3.4.0)
44
+ i18n
45
+ rake (>= 10.0.0)
46
+ sshkit (~> 1.3)
47
+ capistrano-passenger (0.0.5)
48
+ capistrano (~> 3.0)
49
+ chunky_png (1.3.4)
50
+ colorize (0.7.7)
51
+ compass (1.0.3)
52
+ chunky_png (= 1.3.4)
53
+ compass-core (~> 1.0.2)
54
+ compass-import-once (~> 1.0.5)
55
+ rb-fsevent (>= 0.9.3)
56
+ rb-inotify (>= 0.9)
57
+ sass (>= 3.3.13, < 3.5)
58
+ compass-core (1.0.3)
59
+ multi_json (~> 1.0)
60
+ sass (>= 3.3.0, < 3.5)
61
+ compass-import-once (1.0.5)
62
+ sass (>= 3.2, < 3.5)
63
+ edict (0.0.1)
64
+ calibrate (> 0)
65
+ erubis (2.7.0)
66
+ ffi (1.9.8)
67
+ globalid (0.3.5)
68
+ activesupport (>= 4.1.0)
69
+ i18n (0.7.0)
70
+ json (1.8.3)
71
+ loofah (2.0.2)
72
+ nokogiri (>= 1.5.9)
73
+ mail (2.6.3)
74
+ mime-types (>= 1.16, < 3)
75
+ mattock (0.10.0)
76
+ calibrate (~> 0.0.1)
77
+ caliph (~> 0.3.1)
78
+ rake (~> 10.0)
79
+ tilt (> 0)
80
+ valise (~> 1.1.1)
81
+ mime-types (2.6.1)
82
+ mini_portile (0.6.2)
83
+ minitest (5.7.0)
84
+ multi_json (1.11.0)
85
+ net-scp (1.2.1)
86
+ net-ssh (>= 2.6.5)
87
+ net-ssh (2.9.2)
88
+ nokogiri (1.6.6.2)
89
+ mini_portile (~> 0.6.0)
90
+ rack (1.6.4)
91
+ rack-test (0.6.3)
92
+ rack (>= 1.0)
93
+ rails (4.2.2)
94
+ actionmailer (= 4.2.2)
95
+ actionpack (= 4.2.2)
96
+ actionview (= 4.2.2)
97
+ activejob (= 4.2.2)
98
+ activemodel (= 4.2.2)
99
+ activerecord (= 4.2.2)
100
+ activesupport (= 4.2.2)
101
+ bundler (>= 1.3.0, < 2.0)
102
+ railties (= 4.2.2)
103
+ sprockets-rails
104
+ rails-deprecated_sanitizer (1.0.3)
105
+ activesupport (>= 4.2.0.alpha)
106
+ rails-dom-testing (1.0.6)
107
+ activesupport (>= 4.2.0.beta, < 5.0)
108
+ nokogiri (~> 1.6.0)
109
+ rails-deprecated_sanitizer (>= 1.0.1)
110
+ rails-html-sanitizer (1.0.2)
111
+ loofah (~> 2.0)
112
+ railties (4.2.2)
113
+ actionpack (= 4.2.2)
114
+ activesupport (= 4.2.2)
115
+ rake (>= 0.8.7)
116
+ thor (>= 0.18.1, < 2.0)
117
+ rake (10.4.2)
118
+ rb-fsevent (0.9.5)
119
+ rb-inotify (0.9.5)
120
+ ffi (>= 0.5.0)
121
+ sass (3.4.14)
122
+ sprockets (3.2.0)
123
+ rack (~> 1.0)
124
+ sprockets-rails (2.3.1)
125
+ actionpack (>= 3.0)
126
+ activesupport (>= 3.0)
127
+ sprockets (>= 2.8, < 4.0)
128
+ sshkit (1.7.1)
129
+ colorize (>= 0.7.0)
130
+ net-scp (>= 1.1.2)
131
+ net-ssh (>= 2.8.0)
132
+ thor (0.19.1)
133
+ thread_safe (0.3.5)
134
+ tilt (2.0.1)
135
+ tzinfo (1.2.2)
136
+ thread_safe (~> 0.1)
137
+ valise (1.1.4)
138
+ xing-root (0.0.5)
139
+ caliph (~> 0.3)
140
+ edict (< 1.0)
141
+ mattock (~> 0.10)
142
+
143
+ PLATFORMS
144
+ ruby
145
+
146
+ DEPENDENCIES
147
+ capistrano
148
+ capistrano-passenger
149
+ compass
150
+ rack
151
+ rails (= 4.2.2)
152
+ xing-root
153
+
154
+ BUNDLED WITH
155
+ 1.10.6
@@ -0,0 +1,24 @@
1
+ The Xing Framework
2
+ ===
3
+
4
+ Xing Application Base
5
+ ---
6
+
7
+ The Xing Framework is a cutting edge web and mobile development platform by
8
+ Logical Reality Design, Inc. It is designed to provide a completely modern
9
+ (and even somewhat future-proofed) API + SPA web development platform with
10
+ sensible defaults, solid conventions, and ease of rapid development. Xing uses
11
+ Rails (4.2) on the backend and AngularJS (1.4) on the frontend. Most of the
12
+ problems inherent in getting these two frameworks to talk to each other cleanly
13
+ have been pre-solved in Xing.
14
+
15
+ The Xing Application Base contains the starting files for a new Xing Framework application. Don't depend
16
+ on this repository - it is a temporary solution and will go away soon as we can move these into proper
17
+ templates.
18
+
19
+
20
+ [![Code Climate](https://codeclimate.com/github/XingFramework/xing-application-base/badges/gpa.svg)](https://codeclimate.com/github/XingFramework/xing-application-base)
21
+ [![Test Coverage](https://codeclimate.com/github/XingFramework/xing-application-base/badges/coverage.svg)](https://codeclimate.com/github/XingFramework/xing-application-base/coverage)
22
+ [![Build Status](https://travis-ci.org/XingFramework/xing-application-base.svg?branch=master)](https://travis-ci.org/XingFramework/xing-application-base)
23
+ [![Dependency Status](https://gemnasium.com/XingFramework/xing-application-base.svg)](https://gemnasium.com/XingFramework/xing-application-base)
24
+
@@ -0,0 +1,25 @@
1
+ #$:.unshift './lib'
2
+
3
+ require 'bundler'
4
+
5
+ require 'xing/tasks'
6
+ Xing::Tasks::Backend.new
7
+ Xing::Tasks::Build.new
8
+ Xing::Tasks::Develop.new
9
+ Xing::Tasks::Frontend.new
10
+ Xing::Tasks::Spec.new
11
+
12
+
13
+ desc "The whole shebang"
14
+ task :build => [:check_dependencies, 'build:all']
15
+
16
+ desc "Run rails server and grunt watch to start a dev environment"
17
+ task :develop => [:check_dependencies,'develop:all']
18
+
19
+ desc "Confirm that the app is in a state to run"
20
+ task :preflight => %w{check_dependencies develop:links}
21
+
22
+ desc "Run Rspec tests"
23
+ task :spec => [:check_dependencies, "spec:fast"]
24
+
25
+ task :check_dependencies => %w{backend:check_dependencies frontend:check_dependencies}
@@ -0,0 +1,45 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'rails', "~> 4.2.2"
4
+
5
+ # gem 'sqlite3-ruby', :require => 'sqlite3'
6
+ gem 'xing_backend_token_auth', '~> 0.1.31'
7
+
8
+ gem 'xing-backend', '= 0.0.21'
9
+
10
+ gem 'pg'
11
+
12
+ # These are related to authentication
13
+ # New gem?
14
+ gem 'devise'
15
+ gem 'cancancan'
16
+
17
+
18
+ # Bibliotech is a gem for managing database backups and synchronization
19
+ # gem 'bibliotech'
20
+
21
+ group :development, :test do
22
+ gem "rspec", "~> 3.1.0"
23
+ gem "rspec-rails"
24
+ gem 'rspec-activemodel-mocks'
25
+ gem 'waterpig'
26
+ gem "factory_girl_rails"
27
+ gem 'annotate'
28
+ gem 'simplecov'
29
+ gem 'capybara'
30
+ gem 'selenium-webdriver'
31
+ gem 'capybara-email'
32
+ gem 'database_cleaner'
33
+ gem 'byebug'
34
+ gem 'cadre'
35
+ end
36
+
37
+ group :test do
38
+ gem 'json_spec'
39
+ end
40
+
41
+ group :development do
42
+ gem "populator"
43
+ gem "faker"
44
+ gem "pivotal-github"
45
+ end
@@ -0,0 +1,292 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ actionmailer (4.2.2)
5
+ actionpack (= 4.2.2)
6
+ actionview (= 4.2.2)
7
+ activejob (= 4.2.2)
8
+ mail (~> 2.5, >= 2.5.4)
9
+ rails-dom-testing (~> 1.0, >= 1.0.5)
10
+ actionpack (4.2.2)
11
+ actionview (= 4.2.2)
12
+ activesupport (= 4.2.2)
13
+ rack (~> 1.6)
14
+ rack-test (~> 0.6.2)
15
+ rails-dom-testing (~> 1.0, >= 1.0.5)
16
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
17
+ actionview (4.2.2)
18
+ activesupport (= 4.2.2)
19
+ builder (~> 3.1)
20
+ erubis (~> 2.7.0)
21
+ rails-dom-testing (~> 1.0, >= 1.0.5)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
23
+ active_model_serializers (0.9.4)
24
+ activemodel (>= 3.2)
25
+ activejob (4.2.2)
26
+ activesupport (= 4.2.2)
27
+ globalid (>= 0.3.0)
28
+ activemodel (4.2.2)
29
+ activesupport (= 4.2.2)
30
+ builder (~> 3.1)
31
+ activerecord (4.2.2)
32
+ activemodel (= 4.2.2)
33
+ activesupport (= 4.2.2)
34
+ arel (~> 6.0)
35
+ activesupport (4.2.2)
36
+ i18n (~> 0.7)
37
+ json (~> 1.7, >= 1.7.7)
38
+ minitest (~> 5.1)
39
+ thread_safe (~> 0.3, >= 0.3.4)
40
+ tzinfo (~> 1.1)
41
+ addressable (2.4.0)
42
+ annotate (2.6.8)
43
+ activerecord (>= 3.2, <= 4.3)
44
+ rake (~> 10.4)
45
+ arel (6.0.0)
46
+ bcrypt (3.1.10)
47
+ builder (3.2.2)
48
+ byebug (4.0.2)
49
+ columnize (= 0.9.0)
50
+ cadre (1.0.1)
51
+ thor (>= 0.14, < 1.0)
52
+ tilt (> 1.0)
53
+ valise (~> 1.1.2)
54
+ cancancan (1.10.1)
55
+ capybara (2.5.0)
56
+ mime-types (>= 1.16)
57
+ nokogiri (>= 1.3.3)
58
+ rack (>= 1.0.0)
59
+ rack-test (>= 0.5.4)
60
+ xpath (~> 2.0)
61
+ capybara-email (2.4.0)
62
+ capybara (~> 2.4)
63
+ mail
64
+ celluloid (0.17.2)
65
+ celluloid-essentials
66
+ celluloid-extras
67
+ celluloid-fsm
68
+ celluloid-pool
69
+ celluloid-supervision
70
+ timers (>= 4.1.1)
71
+ celluloid-essentials (0.20.5)
72
+ timers (>= 4.1.1)
73
+ celluloid-extras (0.20.5)
74
+ timers (>= 4.1.1)
75
+ celluloid-fsm (0.20.5)
76
+ timers (>= 4.1.1)
77
+ celluloid-pool (0.20.5)
78
+ timers (>= 4.1.1)
79
+ celluloid-supervision (0.20.5)
80
+ timers (>= 4.1.1)
81
+ childprocess (0.5.5)
82
+ ffi (~> 1.0, >= 1.0.11)
83
+ columnize (0.9.0)
84
+ connection_pool (2.2.0)
85
+ database_cleaner (1.3.0)
86
+ devise (3.5.1)
87
+ bcrypt (~> 3.0)
88
+ orm_adapter (~> 0.1)
89
+ railties (>= 3.2.6, < 5)
90
+ responders
91
+ thread_safe (~> 0.1)
92
+ warden (~> 1.2.3)
93
+ diff-lcs (1.2.5)
94
+ docile (1.1.5)
95
+ erubis (2.7.0)
96
+ ethon (0.8.0)
97
+ ffi (>= 1.3.0)
98
+ factory_girl (4.5.0)
99
+ activesupport (>= 3.0.0)
100
+ factory_girl_rails (4.5.0)
101
+ factory_girl (~> 4.5.0)
102
+ railties (>= 3.0.0)
103
+ faker (1.4.3)
104
+ i18n (~> 0.5)
105
+ ffi (1.9.8)
106
+ git-utils (0.6.5)
107
+ globalid (0.3.5)
108
+ activesupport (>= 4.1.0)
109
+ hash_validator (0.4.0)
110
+ hitimes (1.2.3)
111
+ i18n (0.7.0)
112
+ json (1.8.3)
113
+ json_spec (1.1.4)
114
+ multi_json (~> 1.0)
115
+ rspec (>= 2.0, < 4.0)
116
+ loofah (2.0.2)
117
+ nokogiri (>= 1.5.9)
118
+ mail (2.6.3)
119
+ mime-types (>= 1.16, < 3)
120
+ mime-types (2.99)
121
+ mini_portile2 (2.0.0)
122
+ minitest (5.7.0)
123
+ multi_json (1.11.1)
124
+ nokogiri (1.6.7.1)
125
+ mini_portile2 (~> 2.0.0.rc2)
126
+ orm_adapter (0.5.0)
127
+ pg (0.18.1)
128
+ pivotal-github (1.2.2)
129
+ git-utils
130
+ nokogiri
131
+ populator (1.0.0)
132
+ rack (1.6.4)
133
+ rack-cors (0.4.0)
134
+ rack-protection (1.5.3)
135
+ rack
136
+ rack-test (0.6.3)
137
+ rack (>= 1.0)
138
+ rails (4.2.2)
139
+ actionmailer (= 4.2.2)
140
+ actionpack (= 4.2.2)
141
+ actionview (= 4.2.2)
142
+ activejob (= 4.2.2)
143
+ activemodel (= 4.2.2)
144
+ activerecord (= 4.2.2)
145
+ activesupport (= 4.2.2)
146
+ bundler (>= 1.3.0, < 2.0)
147
+ railties (= 4.2.2)
148
+ sprockets-rails
149
+ rails-deprecated_sanitizer (1.0.3)
150
+ activesupport (>= 4.2.0.alpha)
151
+ rails-dom-testing (1.0.6)
152
+ activesupport (>= 4.2.0.beta, < 5.0)
153
+ nokogiri (~> 1.6.0)
154
+ rails-deprecated_sanitizer (>= 1.0.1)
155
+ rails-html-sanitizer (1.0.2)
156
+ loofah (~> 2.0)
157
+ rails-rfc6570 (0.3.0)
158
+ actionpack (>= 4, < 5)
159
+ addressable (~> 2.3)
160
+ railties (4.2.2)
161
+ actionpack (= 4.2.2)
162
+ activesupport (= 4.2.2)
163
+ rake (>= 0.8.7)
164
+ thor (>= 0.18.1, < 2.0)
165
+ rake (10.4.2)
166
+ redis (3.2.2)
167
+ redis-namespace (1.5.2)
168
+ redis (~> 3.0, >= 3.0.4)
169
+ responders (2.1.0)
170
+ railties (>= 4.2.0, < 5)
171
+ rspec (3.1.0)
172
+ rspec-core (~> 3.1.0)
173
+ rspec-expectations (~> 3.1.0)
174
+ rspec-mocks (~> 3.1.0)
175
+ rspec-activemodel-mocks (1.0.1)
176
+ activemodel (>= 3.0)
177
+ activesupport (>= 3.0)
178
+ rspec-mocks (>= 2.99, < 4.0)
179
+ rspec-core (3.1.7)
180
+ rspec-support (~> 3.1.0)
181
+ rspec-expectations (3.1.2)
182
+ diff-lcs (>= 1.2.0, < 2.0)
183
+ rspec-support (~> 3.1.0)
184
+ rspec-mocks (3.1.3)
185
+ rspec-support (~> 3.1.0)
186
+ rspec-rails (3.1.0)
187
+ actionpack (>= 3.0)
188
+ activesupport (>= 3.0)
189
+ railties (>= 3.0)
190
+ rspec-core (~> 3.1.0)
191
+ rspec-expectations (~> 3.1.0)
192
+ rspec-mocks (~> 3.1.0)
193
+ rspec-support (~> 3.1.0)
194
+ rspec-steps (2.1.1)
195
+ rspec (>= 3.0, < 3.99)
196
+ rspec-support (3.1.2)
197
+ rubyzip (1.1.7)
198
+ selenium-webdriver (2.45.0)
199
+ childprocess (~> 0.5)
200
+ multi_json (~> 1.0)
201
+ rubyzip (~> 1.0)
202
+ websocket (~> 1.0)
203
+ sidekiq (3.5.3)
204
+ celluloid (~> 0.17.2)
205
+ connection_pool (~> 2.2, >= 2.2.0)
206
+ json (~> 1.0)
207
+ redis (~> 3.2, >= 3.2.1)
208
+ redis-namespace (~> 1.5, >= 1.5.2)
209
+ simplecov (0.9.2)
210
+ docile (~> 1.1.0)
211
+ multi_json (~> 1.0)
212
+ simplecov-html (~> 0.9.0)
213
+ simplecov-html (0.9.0)
214
+ sinatra (1.4.6)
215
+ rack (~> 1.4)
216
+ rack-protection (~> 1.4)
217
+ tilt (>= 1.3, < 3)
218
+ sprockets (3.2.0)
219
+ rack (~> 1.0)
220
+ sprockets-rails (2.3.1)
221
+ actionpack (>= 3.0)
222
+ activesupport (>= 3.0)
223
+ sprockets (>= 2.8, < 4.0)
224
+ text-table (1.2.4)
225
+ thor (0.19.1)
226
+ thread_safe (0.3.5)
227
+ tilt (1.4.1)
228
+ timers (4.1.1)
229
+ hitimes
230
+ typhoeus (0.8.0)
231
+ ethon (>= 0.8.0)
232
+ tzinfo (1.2.2)
233
+ thread_safe (~> 0.1)
234
+ valise (1.1.4)
235
+ warden (1.2.3)
236
+ rack (>= 1.0)
237
+ waterpig (0.12.1)
238
+ capybara (~> 2.2)
239
+ database_cleaner (~> 1.3.0)
240
+ rspec-steps (~> 2.1)
241
+ text-table (~> 1.2.3)
242
+ websocket (1.2.1)
243
+ xing-backend (0.0.21)
244
+ active_model_serializers (~> 0.9, >= 0.9.3)
245
+ builder (~> 3.1)
246
+ hash_validator (~> 0.4)
247
+ i18n (~> 0.7)
248
+ json_spec (~> 1.1)
249
+ rack-cors (~> 0.4)
250
+ rails (~> 4.2)
251
+ rails-rfc6570 (~> 0.3)
252
+ selenium-webdriver
253
+ sidekiq (~> 3.3)
254
+ sinatra (~> 1.3)
255
+ typhoeus (~> 0.7)
256
+ xing_backend_token_auth (~> 0.1, >= 0.1.31)
257
+ xing_backend_token_auth (0.1.31)
258
+ devise (~> 3.2)
259
+ rails (~> 4.1)
260
+ xpath (2.0.0)
261
+ nokogiri (~> 1.3)
262
+
263
+ PLATFORMS
264
+ ruby
265
+
266
+ DEPENDENCIES
267
+ annotate
268
+ byebug
269
+ cadre
270
+ cancancan
271
+ capybara
272
+ capybara-email
273
+ database_cleaner
274
+ devise
275
+ factory_girl_rails
276
+ faker
277
+ json_spec
278
+ pg
279
+ pivotal-github
280
+ populator
281
+ rails (~> 4.2.2)
282
+ rspec (~> 3.1.0)
283
+ rspec-activemodel-mocks
284
+ rspec-rails
285
+ selenium-webdriver
286
+ simplecov
287
+ waterpig
288
+ xing-backend (= 0.0.21)
289
+ xing_backend_token_auth (~> 0.1.31)
290
+
291
+ BUNDLED WITH
292
+ 1.11.2