thesis_cloudfront 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 791be3ca188a35812788c9b163378a1fda717d4c58bc185f5813b15c74ab61ee
|
4
|
+
data.tar.gz: 2215eb755d9bf97d807d4b653ec3c1cc76b370d7087926872d9b68e40a688e3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6151ebe850e4dd1ae546298c94d2e510d8172a588e9eaedd5744cbfee05a3b98256b59468c7eb3116aebda29c8524b116b8ac3f5232c6f13d67a6647a3b5840e
|
7
|
+
data.tar.gz: cd8eab6473e54906111dc837aaa54429b0f7ccde9a7ed3d473ce9d4029331714191ed6b5a46dc8a643cd749993c0d11f70c76bb0107a72bb39249084bc5cba21
|
@@ -2,7 +2,7 @@ require 'rails/generators'
|
|
2
2
|
|
3
3
|
module ThesisCloudfront
|
4
4
|
module Generators
|
5
|
-
class InstallGenerator < Rails::Generators::
|
5
|
+
class InstallGenerator < Rails::Generators::Base
|
6
6
|
def install
|
7
7
|
insert_into_file "Gemfile", after: "group :development, :test do\n" do
|
8
8
|
" gem 'rack_cors'\n"
|
@@ -14,11 +14,11 @@ module ThesisCloudfront
|
|
14
14
|
["Rails.application.config.middleware.insert_before 0, Rack::Cors do",
|
15
15
|
" allow do",
|
16
16
|
" origins [",
|
17
|
-
" /https
|
18
|
-
" /http
|
19
|
-
" /https
|
20
|
-
" /http
|
21
|
-
"
|
17
|
+
" /https:\\/\\/#{heroku_app_name}.herokuapp.com/,",
|
18
|
+
" /http:\\/\\/#{heroku_app_name}.herokuapp.com/,",
|
19
|
+
" /https:\\/\\/#{heroku_app_name}-pr-[0-9]+.herokuapp.com/,",
|
20
|
+
" /http:\\/\\/#{heroku_app_name}-pr-[0-9]+.herokuapp.com/",
|
21
|
+
" ]",
|
22
22
|
" resource '/assets/*', headers: :any, methods: [:get, :head, :options]",
|
23
23
|
"end"].join("\n")
|
24
24
|
end
|