comodule 0.0.4 → 0.1.0

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 (132) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.md +6 -0
  4. data/Gemfile +0 -2
  5. data/README.md +115 -43
  6. data/comodule.gemspec +4 -2
  7. data/copy_to_rails.sh +7 -0
  8. data/lib/comodule.rb +32 -2
  9. data/lib/comodule/config_support.rb +95 -18
  10. data/lib/comodule/deployment.rb +2 -0
  11. data/lib/comodule/deployment/base.rb +186 -0
  12. data/lib/comodule/deployment/helper.rb +9 -0
  13. data/lib/comodule/deployment/helper/aws.rb +96 -0
  14. data/lib/comodule/deployment/helper/aws/base.rb +14 -0
  15. data/lib/comodule/deployment/helper/aws/cloud_formation.rb +146 -0
  16. data/lib/comodule/deployment/helper/aws/ec2.rb +37 -0
  17. data/lib/comodule/deployment/helper/aws/rds.rb +46 -0
  18. data/lib/comodule/deployment/helper/aws/s3.rb +52 -0
  19. data/lib/comodule/deployment/helper/aws/ssl.rb +111 -0
  20. data/lib/comodule/deployment/helper/base.rb +18 -0
  21. data/lib/comodule/deployment/helper/shell_command.rb +76 -0
  22. data/lib/comodule/deployment/helper/system_utility.rb +80 -0
  23. data/lib/comodule/deployment/helper/uploader.rb +155 -0
  24. data/lib/comodule/deployment/platform.rb +156 -0
  25. data/lib/comodule/deployment/platform/default_files/.gitignore.erb +5 -0
  26. data/lib/comodule/deployment/platform/default_files/aws_config.yml.erb +2 -0
  27. data/lib/comodule/version.rb +1 -1
  28. data/lib/tasks/comodule.rake +94 -0
  29. data/spec/comodule/config_support_spec.rb +102 -0
  30. data/spec/comodule/deployment/helper/aws/cloud_formation_spec.rb +71 -0
  31. data/spec/comodule/deployment/helper/aws/s3_spec.rb +85 -0
  32. data/spec/comodule/deployment/helper/shell_command_spec.rb +176 -0
  33. data/spec/comodule/deployment/helper/system_utility_spec.rb +250 -0
  34. data/spec/comodule/deployment/helper/uploader_spec.rb +274 -0
  35. data/spec/comodule/deployment/platform_spec.rb +310 -0
  36. data/spec/comodule_spec.rb +1 -1
  37. data/spec/rails/experiment/.gitignore +16 -0
  38. data/spec/rails/experiment/Gemfile +43 -0
  39. data/spec/rails/experiment/README.rdoc +28 -0
  40. data/spec/rails/experiment/Rakefile +6 -0
  41. data/spec/rails/experiment/app/assets/images/.keep +0 -0
  42. data/spec/rails/experiment/app/assets/javascripts/application.js +16 -0
  43. data/spec/rails/experiment/app/assets/javascripts/experiences.js.coffee +3 -0
  44. data/spec/rails/experiment/app/assets/stylesheets/application.css +15 -0
  45. data/spec/rails/experiment/app/assets/stylesheets/experiences.css.scss +3 -0
  46. data/spec/rails/experiment/app/assets/stylesheets/scaffolds.css.scss +69 -0
  47. data/spec/rails/experiment/app/controllers/application_controller.rb +5 -0
  48. data/spec/rails/experiment/app/controllers/concerns/.keep +0 -0
  49. data/spec/rails/experiment/app/controllers/experiences_controller.rb +74 -0
  50. data/spec/rails/experiment/app/helpers/application_helper.rb +2 -0
  51. data/spec/rails/experiment/app/helpers/experiences_helper.rb +2 -0
  52. data/spec/rails/experiment/app/mailers/.keep +0 -0
  53. data/spec/rails/experiment/app/models/.keep +0 -0
  54. data/spec/rails/experiment/app/models/concerns/.keep +0 -0
  55. data/spec/rails/experiment/app/models/experience.rb +2 -0
  56. data/spec/rails/experiment/app/views/experiences/_form.html.slim +12 -0
  57. data/spec/rails/experiment/app/views/experiences/edit.html.slim +8 -0
  58. data/spec/rails/experiment/app/views/experiences/index.html.slim +21 -0
  59. data/spec/rails/experiment/app/views/experiences/index.json.jbuilder +4 -0
  60. data/spec/rails/experiment/app/views/experiences/new.html.slim +5 -0
  61. data/spec/rails/experiment/app/views/experiences/show.html.slim +9 -0
  62. data/spec/rails/experiment/app/views/experiences/show.json.jbuilder +1 -0
  63. data/spec/rails/experiment/app/views/layouts/application.html.erb +14 -0
  64. data/spec/rails/experiment/bin/bundle +3 -0
  65. data/spec/rails/experiment/bin/rails +8 -0
  66. data/spec/rails/experiment/bin/rake +8 -0
  67. data/spec/rails/experiment/bin/spring +18 -0
  68. data/spec/rails/experiment/config.ru +4 -0
  69. data/spec/rails/experiment/config/application.rb +23 -0
  70. data/spec/rails/experiment/config/boot.rb +4 -0
  71. data/spec/rails/experiment/config/database.yml +25 -0
  72. data/spec/rails/experiment/config/environment.rb +5 -0
  73. data/spec/rails/experiment/config/environments/development.rb +37 -0
  74. data/spec/rails/experiment/config/environments/production.rb +78 -0
  75. data/spec/rails/experiment/config/environments/test.rb +39 -0
  76. data/spec/rails/experiment/config/experiment_unicorn.rb +104 -0
  77. data/spec/rails/experiment/config/initializers/assets.rb +8 -0
  78. data/spec/rails/experiment/config/initializers/backtrace_silencers.rb +7 -0
  79. data/spec/rails/experiment/config/initializers/cookies_serializer.rb +3 -0
  80. data/spec/rails/experiment/config/initializers/filter_parameter_logging.rb +4 -0
  81. data/spec/rails/experiment/config/initializers/inflections.rb +16 -0
  82. data/spec/rails/experiment/config/initializers/mime_types.rb +4 -0
  83. data/spec/rails/experiment/config/initializers/session_store.rb +3 -0
  84. data/spec/rails/experiment/config/initializers/wrap_parameters.rb +14 -0
  85. data/spec/rails/experiment/config/locales/en.yml +23 -0
  86. data/spec/rails/experiment/config/routes.rb +59 -0
  87. data/spec/rails/experiment/config/secrets.yml +22 -0
  88. data/spec/rails/experiment/db/migrate/20141004050218_create_experiences.rb +9 -0
  89. data/spec/rails/experiment/db/schema.rb +22 -0
  90. data/spec/rails/experiment/db/seeds.rb +7 -0
  91. data/spec/rails/experiment/lib/assets/.keep +0 -0
  92. data/spec/rails/experiment/lib/tasks/.keep +0 -0
  93. data/spec/rails/experiment/log/.keep +0 -0
  94. data/spec/rails/experiment/platform/.gitignore +5 -0
  95. data/spec/rails/experiment/platform/ami/cloud_formation/.keep +0 -0
  96. data/spec/rails/experiment/platform/ami/cloud_formation/template.json.erb +138 -0
  97. data/spec/rails/experiment/platform/ami/config.yml +5 -0
  98. data/spec/rails/experiment/platform/ami/config/.keep +0 -0
  99. data/spec/rails/experiment/platform/cloud_formation/.keep +0 -0
  100. data/spec/rails/experiment/platform/config.yml +18 -0
  101. data/spec/rails/experiment/platform/config/.keep +0 -0
  102. data/spec/rails/experiment/platform/config/nginx/conf.d/default.conf.erb +46 -0
  103. data/spec/rails/experiment/platform/config/nginx/nginx.conf.erb +53 -0
  104. data/spec/rails/experiment/platform/deployment/cloud_formation/.keep +0 -0
  105. data/spec/rails/experiment/platform/deployment/cloud_formation/template.json.erb +107 -0
  106. data/spec/rails/experiment/platform/deployment/config.yml +16 -0
  107. data/spec/rails/experiment/platform/deployment/config/.keep +0 -0
  108. data/spec/rails/experiment/public/404.html +67 -0
  109. data/spec/rails/experiment/public/422.html +67 -0
  110. data/spec/rails/experiment/public/500.html +66 -0
  111. data/spec/rails/experiment/public/favicon.ico +0 -0
  112. data/spec/rails/experiment/public/robots.txt +5 -0
  113. data/spec/rails/experiment/test/controllers/.keep +0 -0
  114. data/spec/rails/experiment/test/controllers/experiences_controller_test.rb +49 -0
  115. data/spec/rails/experiment/test/fixtures/.keep +0 -0
  116. data/spec/rails/experiment/test/fixtures/experiences.yml +7 -0
  117. data/spec/rails/experiment/test/helpers/.keep +0 -0
  118. data/spec/rails/experiment/test/helpers/experiences_helper_test.rb +4 -0
  119. data/spec/rails/experiment/test/integration/.keep +0 -0
  120. data/spec/rails/experiment/test/mailers/.keep +0 -0
  121. data/spec/rails/experiment/test/models/.keep +0 -0
  122. data/spec/rails/experiment/test/models/experience_test.rb +7 -0
  123. data/spec/rails/experiment/test/test_helper.rb +10 -0
  124. data/spec/rails/experiment/vendor/assets/javascripts/.keep +0 -0
  125. data/spec/rails/experiment/vendor/assets/stylesheets/.keep +0 -0
  126. data/spec/spec_helper.rb +3 -0
  127. data/spec/support/deployment/helper/shell_command_support.rb +34 -0
  128. data/spec/support/deployment/helper/uploader_support.rb +21 -0
  129. data/spec/support/deployment/platform_support.rb +32 -0
  130. metadata +262 -21
  131. data/lib/comodule/customize_class/hash_custom.rb +0 -20
  132. data/spec/comodule/customize_class/hash_custom_spec.rb +0 -32
@@ -0,0 +1,310 @@
1
+ require 'spec_helper'
2
+
3
+ describe Comodule::Deployment::Platform do
4
+
5
+ include_context 'deployment.platform'
6
+
7
+ describe '#test_mode' do
8
+ it 'chenge mode into test on block' do
9
+ platform.env = :production
10
+ expect(platform.test?).to eq(false)
11
+ platform.test_mode do
12
+ expect(platform.test?).to eq(true)
13
+ end
14
+ expect(platform.test?).to eq(false)
15
+ end
16
+ end
17
+
18
+ describe '#create' do
19
+
20
+ def directory_check(dir)
21
+ it "makes #{dir}" do
22
+ expect(File.directory?(dir)).to eq(true)
23
+ end
24
+ end
25
+
26
+ before do
27
+ platform.create
28
+ end
29
+
30
+ it 'mekes necessary directories' do
31
+ [
32
+ platform_root,
33
+ File.join(platform_root, 'config'),
34
+ File.join(platform_root, 'secret_config'),
35
+ File.join(platform_root, 'cloud_formation'),
36
+ platform_dir,
37
+ File.join(platform_dir, 'config'),
38
+ File.join(platform_dir, 'secret_config'),
39
+ File.join(platform_dir, 'cloud_formation')
40
+ ].each do |dir|
41
+ expect(File.directory?(dir)).to eq(true)
42
+ end
43
+ end
44
+
45
+ it 'makes necessary files' do
46
+ [
47
+ File.join(platform_root, 'config.yml'),
48
+ File.join(platform_root, 'secret_config.yml'),
49
+ File.join(platform_dir, 'config.yml'),
50
+ File.join(platform_dir, 'secret_config.yml'),
51
+ File.join(platform_root, 'aws_config.yml'),
52
+ File.join(platform_root, '.gitignore')
53
+ ].each do |file|
54
+ expect(File.file?(file)).to eq(true)
55
+ end
56
+ end
57
+ end
58
+
59
+ describe '#name' do
60
+ subject { platform.name }
61
+
62
+ it { is_expected.to eq(platform_name) }
63
+ end
64
+
65
+ describe '#project_root' do
66
+ subject { platform.project_root }
67
+
68
+ it { is_expected.to eq(project_root) }
69
+ end
70
+
71
+ describe '#platform_root' do
72
+ subject { platform.platform_root }
73
+
74
+ it 'equals #project_root/platform' do
75
+ is_expected.to eq(File.join(platform.project_root, 'platform'))
76
+ end
77
+ end
78
+
79
+ describe '#platform_dir' do
80
+ subject { platform.platform_dir }
81
+
82
+ it "equals #platform_root/experiment" do
83
+ is_expected.to eq(File.join(platform.platform_root, platform_name))
84
+ end
85
+ end
86
+
87
+ describe '#aws_config_path' do
88
+ subject { platform.aws_config_path }
89
+
90
+ it 'equals #platform_root/aws_config.yml' do
91
+ is_expected.to eq(File.join(platform.platform_root, 'aws_config.yml'))
92
+ end
93
+ end
94
+
95
+ describe '#config_dir' do
96
+ subject { platform.config_dir }
97
+
98
+ it 'equals #platform_dir/config' do
99
+ is_expected.to eq(File.join(platform_dir, 'config'))
100
+ end
101
+ end
102
+
103
+ describe '#secret_config_dir' do
104
+ subject { platform.secret_config_dir }
105
+
106
+ it 'equals #platform_dir/secret_config' do
107
+ is_expected.to eq(File.join(platform.platform_dir, 'secret_config'))
108
+ end
109
+ end
110
+
111
+ describe '#common_config_dir' do
112
+ subject { platform.common_config_dir }
113
+
114
+ it 'equals #platform_root/config' do
115
+ is_expected.to eq(File.join(platform.platform_root, 'config'))
116
+ end
117
+ end
118
+
119
+ describe '#common_secret_config_dir' do
120
+ subject { platform.common_secret_config_dir }
121
+
122
+ it 'equals #platform_root/secret_config' do
123
+ is_expected.to eq(File.join(platform_root, 'secret_config'))
124
+ end
125
+ end
126
+
127
+ describe '#common_config_path' do
128
+ subject { platform.common_config_path }
129
+
130
+ it 'equals #platform_root/config.yml' do
131
+ is_expected.to eq(File.join(platform_root, 'config.yml'))
132
+ end
133
+ end
134
+
135
+ describe '#common_secret_config_path' do
136
+ subject { platform.common_secret_config_path }
137
+
138
+ it 'equals #platform_root/secret_config' do
139
+ is_expected.to eq(File.join(platform_root, 'secret_config.yml'))
140
+ end
141
+ end
142
+
143
+ describe '#config_path' do
144
+ subject { platform.config_path }
145
+
146
+ it 'equals #platform_dir/config.yml' do
147
+ is_expected.to eq(File.join(platform_dir, 'config.yml'))
148
+ end
149
+ end
150
+
151
+ describe '#secret_config_path' do
152
+ subject { platform. secret_config_path }
153
+
154
+ it 'equals #platform_dir/secret_config.yml' do
155
+ is_expected.to eq(File.join(platform_dir, 'secret_config.yml'))
156
+ end
157
+ end
158
+
159
+ describe '#git_dir' do
160
+ subject { platform.git_dir }
161
+
162
+ it 'equals #project_root/.git' do
163
+ is_expected.to eq(File.join(platform.project_root, '.git'))
164
+ end
165
+ end
166
+
167
+ describe '#tmp_dir' do
168
+ subject { platform.tmp_dir }
169
+
170
+ it 'equals #platform_dir/tmp' do
171
+ is_expected.to eq(File.join(platform.platform_dir, 'tmp'))
172
+ end
173
+ end
174
+
175
+ describe '#test_dir' do
176
+ subject { platform.test_dir }
177
+
178
+ it 'equals #platform_dir/tmp' do
179
+ is_expected.to eq(File.join(platform.platform_dir, 'test'))
180
+ end
181
+ end
182
+
183
+ describe '#project_name' do
184
+ subject { platform.project_name }
185
+
186
+ it { is_expected.to eq('test') }
187
+ end
188
+
189
+ describe '#tmp_projects_dir' do
190
+ subject { platform.tmp_projects_dir }
191
+
192
+ it 'equals #tmp_dir/projects' do
193
+ is_expected.to eq(File.join(platform.tmp_dir, 'projects'))
194
+ end
195
+ end
196
+
197
+ describe '#tmp_project_dir' do
198
+ subject { platform.tmp_project_dir }
199
+
200
+ it 'equals #tmp_projects_dir/#project_name' do
201
+ is_expected.to eq(File.join(platform.tmp_projects_dir, platform.project_name))
202
+ end
203
+ end
204
+
205
+ describe '#file_path' do
206
+ context 'argument =~ /^platform/' do
207
+ subject { platform.file_path 'platform/config/etc' }
208
+
209
+ it 'relative path from #platform_root' do
210
+ is_expected.to eq(File.join(platform.platform_root, 'config', 'etc'))
211
+ end
212
+ end
213
+
214
+ context 'argument !~ /^platform/' do
215
+ subject { platform.file_path '/config/etc' }
216
+
217
+ it 'relative path from #platform_dir' do
218
+ is_expected.to eq(File.join(platform.platform_dir, 'config', 'etc'))
219
+ end
220
+ end
221
+ end
222
+
223
+ describe '#common_crontab_dir' do
224
+ subject { platform.common_crontab_dir }
225
+
226
+ it 'equals #common_config_dir/crontab' do
227
+ is_expected.to eq(File.join(platform.common_config_dir, 'crontab'))
228
+ end
229
+ end
230
+
231
+ describe '#crontab_dir' do
232
+ subject { platform.crontab_dir }
233
+
234
+ it 'equals #config_dir/crontab' do
235
+ is_expected.to eq(File.join(platform.config_dir, 'crontab'))
236
+ end
237
+ end
238
+
239
+ describe '#secret_crontab_dir' do
240
+ subject { platform.secret_crontab_dir }
241
+
242
+ it 'equals #secret_config_dir/crontab' do
243
+ is_expected.to eq(File.join(platform.secret_config_dir, 'crontab'))
244
+ end
245
+ end
246
+
247
+ describe '#tmp_crontab_dir' do
248
+ subject { platform.tmp_crontab_dir }
249
+
250
+ it 'equals #tmp_dir/crontab' do
251
+ is_expected.to eq(File.join(platform.tmp_dir, 'crontab'))
252
+ end
253
+ end
254
+
255
+ describe '#common_shell_script_dir' do
256
+ subject { platform.common_shell_script_dir }
257
+
258
+ it 'equals #common_config_dir/shell_script' do
259
+ is_expected.to eq(File.join(platform.common_config_dir, 'shell_script'))
260
+ end
261
+ end
262
+
263
+ describe '#shell_script_dir' do
264
+ subject { platform.shell_script_dir }
265
+
266
+ it 'equals #config_dir/shell_script' do
267
+ is_expected.to eq(File.join(platform.config_dir, 'shell_script'))
268
+ end
269
+ end
270
+
271
+ describe '#secret_shell_script_dir' do
272
+ subject { platform.secret_shell_script_dir }
273
+
274
+ it 'equals #secret_config_dir/shell_script' do
275
+ is_expected.to eq(File.join(platform.secret_config_dir, 'shell_script'))
276
+ end
277
+ end
278
+
279
+ describe '#tmp_shell_script_dir' do
280
+ subject { platform.tmp_shell_script_dir }
281
+
282
+ it 'equals #tmp_dir/shell_script' do
283
+ is_expected.to eq(File.join(platform.tmp_dir, 'shell_script'))
284
+ end
285
+ end
286
+
287
+ describe '#cloud_formation_dir' do
288
+ subject { platform.cloud_formation_dir }
289
+
290
+ it 'equals #platform_dir/cloud_formation' do
291
+ is_expected.to eq(File.join(platform_dir, 'cloud_formation'))
292
+ end
293
+ end
294
+
295
+ describe '#common_cloud_formation_dir' do
296
+ subject { platform.common_cloud_formation_dir }
297
+
298
+ it 'equals #platform_root/cloud_formation' do
299
+ is_expected.to eq(File.join(platform.platform_root, 'cloud_formation'))
300
+ end
301
+ end
302
+
303
+ describe '#test_cloud_formation_dir' do
304
+ subject { platform.test_cloud_formation_dir }
305
+
306
+ it 'equals #test_dir/cloud_formation' do
307
+ is_expected.to eq(File.join(platform.test_dir, 'cloud_formation'))
308
+ end
309
+ end
310
+ end
@@ -4,6 +4,6 @@ require 'spec_helper'
4
4
 
5
5
  describe Comodule do
6
6
  it 'should have a version number' do
7
- Comodule::VERSION.should_not be_nil
7
+ expect(Comodule::VERSION).to be_truthy
8
8
  end
9
9
  end
@@ -0,0 +1,16 @@
1
+ # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile '~/.gitignore_global'
6
+
7
+ # Ignore bundler config.
8
+ /.bundle
9
+
10
+ # Ignore the default SQLite database.
11
+ /db/*.sqlite3
12
+ /db/*.sqlite3-journal
13
+
14
+ # Ignore all logfiles and tempfiles.
15
+ /log/*.log
16
+ /tmp
@@ -0,0 +1,43 @@
1
+ source 'https://rubygems.org'
2
+
3
+
4
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5
+ gem 'rails', '4.1.6'
6
+ # Use sqlite3 as the database for Active Record
7
+ gem 'sqlite3'
8
+ # Use SCSS for stylesheets
9
+ gem 'sass-rails', '~> 4.0.3'
10
+ # Use Uglifier as compressor for JavaScript assets
11
+ gem 'uglifier', '>= 1.3.0'
12
+ # Use CoffeeScript for .js.coffee assets and views
13
+ gem 'coffee-rails', '~> 4.0.0'
14
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
15
+ gem 'therubyracer', platforms: :ruby
16
+
17
+ # Use jquery as the JavaScript library
18
+ gem 'jquery-rails'
19
+ # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
20
+ gem 'turbolinks'
21
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
22
+ gem 'jbuilder', '~> 2.0'
23
+ # bundle exec rake doc:rails generates the API under doc/api.
24
+ gem 'sdoc', '~> 0.4.0', group: :doc
25
+
26
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
27
+ gem 'spring', group: :development
28
+
29
+ # Use ActiveModel has_secure_password
30
+ # gem 'bcrypt', '~> 3.1.7'
31
+
32
+ # Use unicorn as the app server
33
+ gem 'unicorn'
34
+
35
+ # Use Capistrano for deployment
36
+ # gem 'capistrano-rails', group: :development
37
+
38
+ # Use debugger
39
+ # gem 'debugger', group: [:development, :test]
40
+
41
+ gem 'slim-rails'
42
+
43
+ gem 'comodule', path: File.expand_path('../vendor/gems/comodule', __FILE__)
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
@@ -0,0 +1,16 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require turbolinks
16
+ //= require_tree .
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */