chr 0.3.5 → 0.4.9

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 (184) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +2 -0
  3. data/.gitignore +6 -1
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +18 -0
  6. data/README.md +4 -0
  7. data/Rakefile +17 -2
  8. data/app/assets/javascripts/chr.coffee +13 -26
  9. data/app/assets/javascripts/chr/{core/chr.coffee → chr.coffee} +4 -1
  10. data/app/assets/javascripts/chr/{core/chr_router.coffee → chr_router.coffee} +0 -0
  11. data/app/assets/javascripts/chr/{core/item.coffee → item.coffee} +2 -1
  12. data/app/assets/javascripts/chr/{core/list.coffee → list.coffee} +1 -1
  13. data/app/assets/javascripts/chr/{core/list_config.coffee → list_config.coffee} +0 -0
  14. data/app/assets/javascripts/chr/{core/list_pagination.coffee → list_pagination.coffee} +15 -4
  15. data/app/assets/javascripts/chr/{core/list_reorder.coffee → list_reorder.coffee} +0 -0
  16. data/app/assets/javascripts/chr/{core/list_search.coffee → list_search.coffee} +1 -1
  17. data/app/assets/javascripts/chr/{core/module.coffee → module.coffee} +0 -0
  18. data/app/assets/javascripts/chr/{core/utils.coffee → utils.coffee} +0 -0
  19. data/app/assets/javascripts/chr/{core/view.coffee → view.coffee} +21 -9
  20. data/app/assets/javascripts/chr/{core/view_local-storage.coffee → view_local-storage.coffee} +0 -0
  21. data/app/assets/javascripts/{chr/store/array-store.coffee → stores/array.coffee} +0 -0
  22. data/app/assets/javascripts/{chr/store/object-store.coffee → stores/object.coffee} +0 -0
  23. data/app/assets/javascripts/{chr/store/rails-array-store.coffee → stores/rails-array.coffee} +0 -0
  24. data/app/assets/javascripts/{chr/store → stores}/rails-form-object-parser.coffee +4 -1
  25. data/app/assets/javascripts/{chr/store/rails-object-store.coffee → stores/rails-object.coffee} +0 -0
  26. data/app/assets/javascripts/{chr/store/rest-array-store.coffee → stores/rest-array.coffee} +5 -2
  27. data/app/assets/javascripts/{chr/store/rest-object-store.coffee → stores/rest-object.coffee} +0 -0
  28. data/app/assets/stylesheets/{_chr.scss → chr.scss} +2 -7
  29. data/app/assets/stylesheets/chr/{_icons.scss → icons.scss} +0 -0
  30. data/app/assets/stylesheets/chr/{_main.scss → main.scss} +10 -3
  31. data/app/assets/stylesheets/chr/{_mixins.scss → mixins.scss} +0 -77
  32. data/app/assets/stylesheets/chr/{_settings.scss → settings.scss} +1 -1
  33. data/bin/chr +13 -0
  34. data/bin/rake +16 -0
  35. data/bin/setup +13 -0
  36. data/chr.gemspec +41 -21
  37. data/docs/tests.md +64 -0
  38. data/lib/chr.rb +10 -2
  39. data/lib/chr/app_builder.rb +385 -0
  40. data/lib/chr/generators/app_generator.rb +213 -0
  41. data/lib/chr/version.rb +3 -1
  42. data/lib/generators/chr/controller_generator.rb +18 -0
  43. data/templates/Gemfile.erb +38 -0
  44. data/templates/Procfile +1 -0
  45. data/templates/README.md.erb +45 -0
  46. data/templates/_analytics.html.erb +9 -0
  47. data/templates/_flashes.html.erb +7 -0
  48. data/templates/_javascript.html.erb +12 -0
  49. data/templates/application.coffee +2 -0
  50. data/templates/application.scss +1 -0
  51. data/templates/application.yml +6 -0
  52. data/templates/application_gitignore +14 -0
  53. data/templates/application_layout.html.erb.erb +29 -0
  54. data/templates/asset_sync.rb +28 -0
  55. data/templates/bin_setup.erb +36 -0
  56. data/templates/body_class_helper.rb +19 -0
  57. data/templates/bundler_audit.rake +12 -0
  58. data/templates/carrierwave.rb +23 -0
  59. data/templates/character_admin.coffee.erb +28 -0
  60. data/templates/character_admin.scss +3 -0
  61. data/templates/character_admin_index.html.erb +2 -0
  62. data/templates/character_admin_layout.html.erb +21 -0
  63. data/templates/character_base_controller.rb +16 -0
  64. data/templates/development_seeds.rb +12 -0
  65. data/templates/devise_overrides_passwords_controller.rb +10 -0
  66. data/templates/devise_overrides_passwords_edit.html.erb +30 -0
  67. data/templates/devise_overrides_passwords_new.html.erb +21 -0
  68. data/templates/devise_overrides_sessions_controller.rb +12 -0
  69. data/templates/devise_overrides_sessions_new.html.erb +31 -0
  70. data/templates/errors.rb +34 -0
  71. data/templates/json_encoding.rb +1 -0
  72. data/templates/newrelic.yml.erb +34 -0
  73. data/templates/puma.rb +18 -0
  74. data/templates/routes.rb +90 -0
  75. data/templates/sample.env +6 -0
  76. data/templates/secrets.yml +14 -0
  77. data/templates/smtp.rb +9 -0
  78. data/templates/staging.rb +5 -0
  79. data/test/factories/article_factory.rb +19 -0
  80. data/test/files/test.jpg +0 -0
  81. data/test/integration/article_fullsize_test.rb +33 -0
  82. data/test/integration/article_test.rb +33 -0
  83. data/test/integration/magazine_article_test.rb +33 -0
  84. data/test/integration/restricted_article_test.rb +33 -0
  85. data/test/integration/sport_article_test.rb +34 -0
  86. data/test/rails_app/Rakefile +6 -0
  87. data/test/rails_app/app/assets/javascripts/admin.coffee +137 -0
  88. data/test/rails_app/app/assets/javascripts/application.js +1 -0
  89. data/test/rails_app/app/assets/stylesheets/admin.scss +1 -0
  90. data/test/rails_app/app/assets/stylesheets/application.css +1 -0
  91. data/test/rails_app/app/controllers/admin/articles_controller.rb +7 -0
  92. data/test/rails_app/app/controllers/admin/base_controller.rb +8 -0
  93. data/test/rails_app/app/controllers/application_controller.rb +5 -0
  94. data/test/rails_app/app/helpers/application_helper.rb +2 -0
  95. data/test/rails_app/app/models/article.rb +46 -0
  96. data/test/rails_app/app/uploaders/article_image_uploader.rb +16 -0
  97. data/test/rails_app/app/views/admin/index.html.erb +4 -0
  98. data/test/rails_app/app/views/layouts/admin.html.erb +17 -0
  99. data/test/rails_app/app/views/layouts/application.html.erb +14 -0
  100. data/test/rails_app/bin/bundle +3 -0
  101. data/test/rails_app/bin/rails +8 -0
  102. data/test/rails_app/bin/rake +8 -0
  103. data/test/rails_app/bin/setup +29 -0
  104. data/test/rails_app/bin/spring +15 -0
  105. data/test/rails_app/config.ru +4 -0
  106. data/test/rails_app/config/application.rb +36 -0
  107. data/test/rails_app/config/boot.rb +3 -0
  108. data/test/rails_app/config/environment.rb +5 -0
  109. data/test/rails_app/config/environments/development.rb +38 -0
  110. data/test/rails_app/config/environments/production.rb +76 -0
  111. data/test/rails_app/config/environments/test.rb +46 -0
  112. data/test/rails_app/config/initializers/assets.rb +12 -0
  113. data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  114. data/test/rails_app/config/initializers/carrierwave.rb +5 -0
  115. data/test/rails_app/config/initializers/cookies_serializer.rb +3 -0
  116. data/test/rails_app/config/initializers/filter_parameter_logging.rb +4 -0
  117. data/test/rails_app/config/initializers/inflections.rb +16 -0
  118. data/test/rails_app/config/initializers/mime_types.rb +4 -0
  119. data/test/rails_app/config/initializers/session_store.rb +3 -0
  120. data/test/rails_app/config/initializers/wrap_parameters.rb +9 -0
  121. data/test/rails_app/config/locales/en.yml +23 -0
  122. data/test/rails_app/config/mongoid.yml +9 -0
  123. data/test/rails_app/config/routes.rb +8 -0
  124. data/test/rails_app/config/secrets.yml +22 -0
  125. data/test/rails_app/db/seeds.rb +7 -0
  126. data/test/rails_app/public/404.html +67 -0
  127. data/test/rails_app/public/422.html +67 -0
  128. data/test/rails_app/public/500.html +66 -0
  129. data/{app/assets/javascripts/form/input-date.coffee → test/rails_app/public/favicon.ico} +0 -0
  130. data/test/rails_app/public/robots.txt +5 -0
  131. data/test/support/character_front_end.rb +196 -0
  132. data/test/support/chr/item.rb +32 -0
  133. data/test/support/chr/list.rb +31 -0
  134. data/test/support/chr/list_pagination.rb +163 -0
  135. data/test/support/chr/list_reorder.rb +46 -0
  136. data/test/support/chr/list_search.rb +41 -0
  137. data/test/support/chr/view.rb +112 -0
  138. data/test/support/stores/array.rb +20 -0
  139. data/test/support/stores/rest-array.rb +34 -0
  140. data/test/test_helper.rb +68 -0
  141. metadata +373 -80
  142. data/Gruntfile.coffee +0 -101
  143. data/app/assets/javascripts/form/expandable-group.coffee +0 -30
  144. data/app/assets/javascripts/form/form.coffee +0 -221
  145. data/app/assets/javascripts/form/input-checkbox.coffee +0 -83
  146. data/app/assets/javascripts/form/input-color.coffee +0 -55
  147. data/app/assets/javascripts/form/input-file.coffee +0 -144
  148. data/app/assets/javascripts/form/input-form.coffee +0 -171
  149. data/app/assets/javascripts/form/input-form_reorder.coffee +0 -67
  150. data/app/assets/javascripts/form/input-hidden.coffee +0 -57
  151. data/app/assets/javascripts/form/input-list.coffee +0 -154
  152. data/app/assets/javascripts/form/input-list_reorder.coffee +0 -39
  153. data/app/assets/javascripts/form/input-list_typeahead.coffee +0 -55
  154. data/app/assets/javascripts/form/input-password.coffee +0 -32
  155. data/app/assets/javascripts/form/input-select.coffee +0 -84
  156. data/app/assets/javascripts/form/input-select2.coffee +0 -33
  157. data/app/assets/javascripts/form/input-string.coffee +0 -160
  158. data/app/assets/javascripts/form/input-text.coffee +0 -43
  159. data/app/assets/javascripts/input-html.coffee +0 -81
  160. data/app/assets/javascripts/input-markdown.coffee +0 -93
  161. data/app/assets/javascripts/input-redactor.coffee +0 -1
  162. data/app/assets/javascripts/redactor/input-redactor.coffee +0 -53
  163. data/app/assets/javascripts/redactor/input-redactor_character.coffee +0 -83
  164. data/app/assets/javascripts/redactor/input-redactor_images.coffee +0 -166
  165. data/app/assets/javascripts/vendor/ace.js +0 -18280
  166. data/app/assets/javascripts/vendor/jquery.scrollparent.js +0 -14
  167. data/app/assets/javascripts/vendor/jquery.textarea_autosize.js +0 -55
  168. data/app/assets/javascripts/vendor/jquery.typeahead.js +0 -1782
  169. data/app/assets/javascripts/vendor/marked.js +0 -1272
  170. data/app/assets/javascripts/vendor/mode-html.js +0 -2436
  171. data/app/assets/javascripts/vendor/mode-markdown.js +0 -2820
  172. data/app/assets/javascripts/vendor/redactor.fixedtoolbar.js +0 -107
  173. data/app/assets/javascripts/vendor/select2.js +0 -5274
  174. data/app/assets/stylesheets/_input-redactor.scss +0 -35
  175. data/app/assets/stylesheets/form/_expandable-group.scss +0 -16
  176. data/app/assets/stylesheets/form/_input-select2.scss +0 -94
  177. data/app/assets/stylesheets/form/_main.scss +0 -180
  178. data/app/assets/stylesheets/vendor/select2.css +0 -258
  179. data/bower.json +0 -38
  180. data/dist/chr.js +0 -5949
  181. data/dist/input-ace.js +0 -24946
  182. data/dist/input-redactor.js +0 -1
  183. data/lib/mongoid/character.rb +0 -30
  184. data/package.json +0 -10
@@ -0,0 +1,213 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/rails/app/app_generator'
3
+
4
+ module Chr
5
+ class AppGenerator < Rails::Generators::AppGenerator
6
+
7
+
8
+ class_option :skip_active_record, type: :boolean, aliases: "-O", default: true,
9
+ desc: "Skip Active Record files"
10
+
11
+ class_option :skip_test_unit, type: :boolean, aliases: "-T", default: true,
12
+ desc: "Skip Test::Unit files"
13
+
14
+ class_option :skip_turbolinks, type: :boolean, default: true,
15
+ desc: "Skip turbolinks gem"
16
+
17
+ class_option :skip_bundle, type: :boolean, aliases: "-B", default: true,
18
+ desc: "Don't run bundle install"
19
+
20
+
21
+ def finish_template
22
+ invoke :chr_customization
23
+ super
24
+ end
25
+
26
+
27
+ def chr_customization
28
+ invoke :customize_gemfile
29
+ invoke :setup_development_environment
30
+ invoke :setup_test_environment
31
+ invoke :setup_production_environment
32
+ invoke :setup_staging_environment
33
+ invoke :setup_secret_token
34
+ invoke :create_application_views
35
+ invoke :configure_app
36
+ invoke :create_application_assets
37
+ invoke :copy_miscellaneous_files
38
+ invoke :customize_error_pages
39
+ invoke :setup_devise
40
+ invoke :setup_character
41
+ invoke :setup_database
42
+ invoke :setup_git
43
+ # invoke :create_heroku_apps
44
+ # invoke :create_github_repo
45
+ invoke :setup_bundler_audit
46
+ #invoke :setup_spring
47
+ invoke :outro
48
+ end
49
+
50
+
51
+ def customize_gemfile
52
+ build :replace_gemfile
53
+ build :set_ruby_to_version_being_used
54
+
55
+ bundle_command 'install'
56
+ end
57
+
58
+
59
+ def setup_development_environment
60
+ say 'Setting up the development environment'
61
+ build :raise_on_delivery_errors
62
+ build :raise_on_unpermitted_parameters
63
+ build :provide_setup_script
64
+ build :provide_dev_prime_task
65
+ build :configure_generators
66
+ end
67
+
68
+
69
+ def setup_test_environment
70
+ say 'Setting up the test environment'
71
+ # @todo
72
+ end
73
+
74
+
75
+ def setup_production_environment
76
+ say 'Setting up the production environment'
77
+ build :configure_newrelic
78
+ build :configure_smtp
79
+ build :configure_rack_timeout
80
+ build :enable_rack_canonical_host
81
+ build :enable_rack_deflater
82
+ build :setup_asset_host
83
+ build :setup_asset_sync
84
+ end
85
+
86
+
87
+ def setup_staging_environment
88
+ say 'Setting up the staging environment'
89
+ build :setup_staging_environment
90
+ end
91
+
92
+
93
+ def setup_secret_token
94
+ say 'Moving secret token out of version control'
95
+ build :setup_secret_token
96
+ end
97
+
98
+
99
+ def create_application_views
100
+ say 'Creating application views'
101
+ build :create_partials_directory
102
+ build :create_shared_analytics
103
+ build :create_shared_flashes
104
+ build :create_shared_javascripts
105
+ build :create_application_layout
106
+ build :create_body_class_helper
107
+ end
108
+
109
+
110
+ def configure_app
111
+ say 'Configuring app'
112
+ build :configure_action_mailer
113
+ build :configure_puma
114
+ build :setup_foreman
115
+ end
116
+
117
+
118
+ def create_application_assets
119
+ say 'Create application stylesheets and javascripts'
120
+ build :setup_stylesheets
121
+ build :setup_javascripts
122
+ end
123
+
124
+
125
+ def copy_miscellaneous_files
126
+ say 'Copying miscellaneous support files'
127
+ build :copy_miscellaneous_files
128
+ end
129
+
130
+
131
+ def customize_error_pages
132
+ say 'Customizing the 500/404/422 pages'
133
+ build :customize_error_pages
134
+ end
135
+
136
+
137
+ def setup_devise
138
+ say "Setup devise"
139
+ build :setup_devise
140
+ end
141
+
142
+
143
+ def setup_character
144
+ say "Setup character"
145
+ build :setup_character_routes
146
+ build :setup_character_base_controller
147
+ build :configure_devise_for_character
148
+ build :setup_character_views
149
+ build :setup_character_stylesheets
150
+ build :setup_character_javascripts
151
+ build :setup_character_assets
152
+ build :setup_carrierwave
153
+ end
154
+
155
+
156
+ def setup_git
157
+ if !options[:skip_git]
158
+ say 'Initializing git'
159
+ invoke :setup_gitignore
160
+ invoke :init_git
161
+ end
162
+ end
163
+
164
+
165
+ def setup_gitignore
166
+ build :gitignore_files
167
+ end
168
+
169
+
170
+ def init_git
171
+ build :init_git
172
+ end
173
+
174
+
175
+ def setup_database
176
+ say 'Setting up database'
177
+ build :initialize_mongoid
178
+ end
179
+
180
+
181
+ def setup_bundler_audit
182
+ say "Setting up bundler-audit"
183
+ build :setup_bundler_audit
184
+ end
185
+
186
+
187
+ def setup_spring
188
+ say "Springifying binstubs"
189
+ build :setup_spring
190
+ end
191
+
192
+
193
+ def outro
194
+ say 'Congratulations! You just created a new Character.'
195
+ end
196
+
197
+
198
+ protected
199
+
200
+ def get_builder_class
201
+ Chr::AppBuilder
202
+ end
203
+
204
+
205
+ def using_active_record?
206
+ !options[:skip_active_record]
207
+ end
208
+
209
+ end
210
+ end
211
+
212
+
213
+
@@ -1,3 +1,5 @@
1
1
  module Chr
2
- VERSION = "0.3.5"
2
+ RAILS_VERSION = "~> 4.2.3"
3
+ RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
+ VERSION = "0.4.9"
3
5
  end
@@ -0,0 +1,18 @@
1
+ require 'rails/generators/base'
2
+
3
+ module Chr
4
+ module Generators
5
+ class ControllerGenerator < Rails::Generators::Base
6
+ def create_controller
7
+ generate "controller", "admin/#{ARGV[0]} --skip-template-engine"
8
+
9
+ inject_into_file(
10
+ "config/routes.rb",
11
+ "\n\t\tresources :#{ARGV[0]}",
12
+ after: "namespace :admin do",
13
+ )
14
+
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,38 @@
1
+ source 'https://rubygems.org'
2
+ ruby '<%= Chr::RUBY_VERSION %>'
3
+
4
+ gem 'rails', '<%= Chr::RAILS_VERSION %>'
5
+ gem 'sass-rails', '~> 5.0'
6
+ gem 'uglifier'
7
+ gem 'coffee-rails', '~> 4.1.0'
8
+ gem 'jquery-rails'
9
+ gem 'puma'
10
+ gem 'recipient_interceptor'
11
+ gem 'rack-canonical-host'
12
+ gem 'meta-tags'
13
+ gem 'asset_sync'
14
+ gem 'awesome_print'
15
+ gem 'mongoid'
16
+ gem 'mongosteen'
17
+ gem 'chr'
18
+ gem 'ants'
19
+ gem 'loft'
20
+
21
+ group :development do
22
+ gem 'spring'
23
+ gem 'web-console'
24
+ end
25
+
26
+ group :development, :test do
27
+ gem 'figaro'
28
+ gem 'byebug'
29
+ gem 'quiet_assets'
30
+ gem 'bundler-audit', require: false
31
+ gem 'factory_girl_rails'
32
+ gem 'dotenv-rails'
33
+ end
34
+
35
+ group :staging, :production do
36
+ gem 'rack-timeout'
37
+ gem 'rails_12factor'
38
+ end
@@ -0,0 +1 @@
1
+ web: bundle exec puma -p $PORT -C ./config/puma.rb
@@ -0,0 +1,45 @@
1
+ # <%= app_name.humanize %>
2
+
3
+
4
+ ## Getting Started
5
+
6
+ After you have cloned this repo, run this setup script to set up your machine
7
+ with the necessary dependencies to run and test this app:
8
+
9
+ % ./bin/setup
10
+
11
+ It assumes you have a machine equipped with Ruby, Postgres, etc. If not, set up
12
+ your machine with [this script].
13
+
14
+ [this script]: https://github.com/thoughtbot/laptop
15
+
16
+ After setting up, you can run the application using [foreman]:
17
+
18
+ % foreman start
19
+
20
+ If you don't have `foreman`, see [Foreman's install instructions][foreman]. It
21
+ is [purposefully excluded from the project's `Gemfile`][exclude].
22
+
23
+ [foreman]: https://github.com/ddollar/foreman
24
+ [exclude]: https://github.com/ddollar/foreman/pull/437#issuecomment-41110407
25
+
26
+
27
+ ## Deploying to Heroku
28
+
29
+ This project is ready to deploy to [Heroku](https://heroku.com), still before that
30
+ please install plugins for mongodb, email & make sure these variables are set
31
+ in your app ENV:
32
+
33
+ MONGODB_URI
34
+ ASSET_HOST
35
+ AWS_ACCESS_KEY_ID
36
+ AWS_SECRET_ACCESS_KEY
37
+ FOG_DIRECTORY
38
+ HOST
39
+ SMTP_ADDRESS
40
+ SMTP_DOMAIN
41
+ SMTP_PASSWORD
42
+ SMTP_USERNAME
43
+
44
+
45
+ Good luck, have fun, program well and program in style!
@@ -0,0 +1,9 @@
1
+ <% if ENV["SEGMENT_IO_KEY"] %>
2
+ <script type="text/javascript">
3
+ window.analytics=window.analytics||[],window.analytics.methods=["identify","group","track","page","pageview","alias","ready","on","once","off","trackLink","trackForm","trackClick","trackSubmit"],window.analytics.factory=function(t){return function(){var a=Array.prototype.slice.call(arguments);return a.unshift(t),window.analytics.push(a),window.analytics}};for(var i=0;i<window.analytics.methods.length;i++){var key=window.analytics.methods[i];window.analytics[key]=window.analytics.factory(key)}window.analytics.load=function(t){if(!document.getElementById("analytics-js")){var a=document.createElement("script");a.type="text/javascript",a.id="analytics-js",a.async=!0,a.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.io/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n)}},window.analytics.SNIPPET_VERSION="2.0.9",
4
+ window.analytics.load("<%= ENV["SEGMENT_IO_KEY"] %>");
5
+ window.analytics.page();
6
+ </script>
7
+ <% end %>
8
+
9
+ <% # @todo: add google analytics %>
@@ -0,0 +1,7 @@
1
+ <% if flash.any? %>
2
+ <div id="flash">
3
+ <% flash.each do |key, value| -%>
4
+ <div class="flash-<%= key %>"><%= value %></div>
5
+ <% end -%>
6
+ </div>
7
+ <% end %>
@@ -0,0 +1,12 @@
1
+ <%= javascript_include_tag :application %>
2
+
3
+ <%= yield :javascript %>
4
+
5
+ <%= render "analytics" %>
6
+
7
+ <% if Rails.env.test? %>
8
+ <%= javascript_tag do %>
9
+ $.fx.off = true;
10
+ $.ajaxSetup({ async: false });
11
+ <% end %>
12
+ <% end %>
@@ -0,0 +1,2 @@
1
+ #= require jquery
2
+ #= require jquery_ujs
@@ -0,0 +1 @@
1
+ @import "normalize-rails";
@@ -0,0 +1,6 @@
1
+ # http://ddollar.github.com/foreman/
2
+ ASSET_HOST: localhost:3000
3
+ APPLICATION_HOST: localhost:3000
4
+ RACK_ENV: development
5
+ SECRET_KEY_BASE: development_secret
6
+ EXECJS_RUNTIME: Node
@@ -0,0 +1,14 @@
1
+ !.keep
2
+ *.DS_Store
3
+ *.swo
4
+ *.swp
5
+ /.bundle
6
+ /.env
7
+ /.foreman
8
+ /coverage/*
9
+ /db/*.sqlite3
10
+ /log/*
11
+ /public/system
12
+ /public/assets
13
+ /tags
14
+ /tmp/*
@@ -0,0 +1,29 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="ROBOTS" content="NOODP" />
6
+ <meta name="viewport" content="initial-scale=1" />
7
+
8
+ <%%#
9
+ Configure default meta tags values, for more details see:
10
+ https://github.com/kpumuk/meta-tags
11
+ %>
12
+ <%%= display_meta_tags site: '<%= app_name %>',
13
+ description: '',
14
+ og: { site_name: '<%= app_name %>',
15
+ url: '',
16
+ title: '',
17
+ description: '',
18
+ type: 'website',
19
+ image: '' } %>
20
+
21
+ <%%= stylesheet_link_tag :application, media: "all" %>
22
+ <%%= csrf_meta_tags %>
23
+ </head>
24
+ <body class="<%%= body_class %>">
25
+ <%%= render "flashes" -%>
26
+ <%%= yield %>
27
+ <%%= render "javascript" %>
28
+ </body>
29
+ </html>
@@ -0,0 +1,28 @@
1
+ AssetSync.configure do |config|
2
+ config.fog_provider = 'AWS'
3
+ config.aws_access_key_id = ENV['AWS_ACCESS_KEY_ID']
4
+ config.aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
5
+ config.fog_directory = ENV['FOG_DIRECTORY']
6
+ # To use AWS reduced redundancy storage.
7
+ # config.aws_reduced_redundancy = true
8
+
9
+ # Invalidate a file on a cdn after uploading files
10
+ # config.cdn_distribution_id = "12345"
11
+ # config.invalidate = ['file1.js']
12
+
13
+ # Increase upload performance by configuring your region
14
+ # config.fog_region = 'eu-west-1'
15
+ #
16
+ # Don't delete files from the store
17
+ # config.existing_remote_files = "keep"
18
+ #
19
+ # Automatically replace files with their equivalent gzip compressed version
20
+ # config.gzip_compression = true
21
+ #
22
+ # Use the Rails generated 'manifest.yml' file to produce the list of files to
23
+ # upload instead of searching the assets directory.
24
+ # config.manifest = true
25
+ #
26
+ # Fail silently. Useful for environments such as Heroku
27
+ # config.fail_silently = true
28
+ end