thesis_cloudfront 0.3.0 → 0.3.2
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: 3c065767f413410c26a498a84d362c517541857be5556131c739ba8583337cb0
|
4
|
+
data.tar.gz: 7a3691282351dcf5f0beb95314e5e8288e432fa41d0ae7d253776d285ab38790
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f194068b24595d554d5b82518b555d4f50d8f6047cc96c0cd291c4f5640a1fd4584cf391d50e2b1dd2b4e6ff444a48b2a2a3fe861cc84364956d97df211dd0c6
|
7
|
+
data.tar.gz: 26f9de17b5bd2e25f008b142a0d6ec86aa6af93e6193f7646715de08902502307bd552dd6706303cf226458402a05f531560e2b3758d87a987a7668b69701ed7
|
@@ -6,9 +6,8 @@ module ThesisCloudfront
|
|
6
6
|
module Generators
|
7
7
|
class InstallGenerator < Rails::Generators::Base
|
8
8
|
def install
|
9
|
-
|
10
9
|
append_to_file "Gemfile" do
|
11
|
-
"\ngem '
|
10
|
+
"\ngem 'rack-cors'"
|
12
11
|
end
|
13
12
|
|
14
13
|
heroku_app_name = ask("whats the name of this heroku app?")
|
@@ -47,7 +46,9 @@ module ThesisCloudfront
|
|
47
46
|
"}"].join("\n")
|
48
47
|
end
|
49
48
|
|
50
|
-
|
49
|
+
inside Rails.root do
|
50
|
+
run "bundle install"
|
51
|
+
end
|
51
52
|
end
|
52
53
|
end
|
53
54
|
end
|
@@ -5,9 +5,9 @@ module Cloudfront
|
|
5
5
|
module Generators
|
6
6
|
class InstallGenerator < Rails::Generators::Base
|
7
7
|
def install
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
append_to_file "Gemfile" do
|
9
|
+
"\ngem 'rack-cors'"
|
10
|
+
end
|
11
11
|
|
12
12
|
heroku_app_name = ask("whats the name of this heroku app?")
|
13
13
|
file = `heroku domains -a #{heroku_app_name} --csv`
|
@@ -44,6 +44,11 @@ module Cloudfront
|
|
44
44
|
" \"Expires\" => \"\#{30.days.from_now.to_formatted_s(:rfc822)}\"",
|
45
45
|
" }"].join("\n")
|
46
46
|
end
|
47
|
+
|
48
|
+
gem "rack-cors"
|
49
|
+
inside Rails.root do
|
50
|
+
run "bundle install"
|
51
|
+
end
|
47
52
|
end
|
48
53
|
end
|
49
54
|
end
|