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: 0a6ea8dfb5287a83ac426f9dbd7ad51e6a5ac617e7cb250ec67b59b68337fee8
4
- data.tar.gz: a4ea981f24006906c083e896a67ded697278164bc8f12325fb1a42d5123b2b45
3
+ metadata.gz: 791be3ca188a35812788c9b163378a1fda717d4c58bc185f5813b15c74ab61ee
4
+ data.tar.gz: 2215eb755d9bf97d807d4b653ec3c1cc76b370d7087926872d9b68e40a688e3c
5
5
  SHA512:
6
- metadata.gz: c21c84c8dda9a21e70ff011474b3c19a4d3dac2cef370c236e004d2d550e479816aff006f099abb8c5c10ccf6d4ba551155d979f95857537a0ba558bbd26eff8
7
- data.tar.gz: 6b010976c34d90ef910587cf1928b7b29c8538a8fa92dfc5ae3514f179762a9302e57946ef80c7ef5b0d5337fecc07a976d9e799908895f7a18449a8c99fc73e
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::NamedBase
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:\/\/#{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
- " ]",
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
@@ -1,3 +1,3 @@
1
1
  module ThesisCloudfront
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nico Vigil