thesis_cloudfront 0.1.6 → 0.1.8
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: f5b6de4d379c44e65460892c6462d9adc94649dcfa09213dec52c9e1af0a2fc4
|
4
|
+
data.tar.gz: 35eb97f7e4ab7b42faa45ef5a501b864d70ed51aca284b3cd7d3a0ebdc98fa7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 694360a87474586d61d275af6aab607284011d81334c2ec1cfa2a9de93963cb58a76e9dd160b9ad204d200f3f0a84291f66be5cb8ae11833b83bd06b6a0143e9
|
7
|
+
data.tar.gz: 271187610fbf931a90846bff67ee5855a6a0ebe3d434d55e6a01e435c82df5197c4810a432026b803cc512ff345474d6bf85ea3eacd63c5ed25c2f76e284a064
|
@@ -8,9 +8,9 @@ module ThesisCloudfront
|
|
8
8
|
" gem 'rack_cors'\n"
|
9
9
|
end
|
10
10
|
|
11
|
+
heroku_app_name = ask("whats the name of this heroku app?")
|
11
12
|
|
12
13
|
create_file "config/initializers/rack_cors.rb" do
|
13
|
-
heroku_app_name = ask("whats the name of this heroku app?")
|
14
14
|
["Rails.application.config.middleware.insert_before 0, Rack::Cors do",
|
15
15
|
" allow do",
|
16
16
|
" origins [",
|
@@ -18,10 +18,14 @@ module ThesisCloudfront
|
|
18
18
|
" /http:\\/\\/#{heroku_app_name}.herokuapp.com/,",
|
19
19
|
" /https:\\/\\/#{heroku_app_name}-pr-[0-9]+.herokuapp.com/,",
|
20
20
|
" /http:\\/\\/#{heroku_app_name}-pr-[0-9]+.herokuapp.com/",
|
21
|
-
"
|
21
|
+
" ]",
|
22
22
|
" resource '/assets/*', headers: :any, methods: [:get, :head, :options]",
|
23
23
|
"end"].join("\n")
|
24
24
|
end
|
25
|
+
|
26
|
+
create_file "config/initializers/asset_host.rb" do
|
27
|
+
"ActionController::Base.asset_host = ENV['CLOUDFRONT_URL']"
|
28
|
+
end
|
25
29
|
end
|
26
30
|
end
|
27
31
|
end
|
data/thesis_cloudfront.gemspec
CHANGED
@@ -13,6 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = "https://github.com/nicovigil1/thesis_cloudfront"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
|
+
spec.add_dependency 'rack-cors'
|
16
17
|
|
17
18
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
19
|
spec.metadata["source_code_uri"] = "https://github.com/nicovigil1/thesis_cloudfront"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thesis_cloudfront
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nico Vigil
|
@@ -10,6 +10,20 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2019-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rack-cors
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|