thesis_cloudfront 0.1.8 → 0.1.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5b6de4d379c44e65460892c6462d9adc94649dcfa09213dec52c9e1af0a2fc4
4
- data.tar.gz: 35eb97f7e4ab7b42faa45ef5a501b864d70ed51aca284b3cd7d3a0ebdc98fa7a
3
+ metadata.gz: 16b4b72b112f9fa18a2b1d9c6a42e5d7ff32b97736b390be0bc27fb78d6dbc34
4
+ data.tar.gz: 3aaf0b5051e2851188b986c0fafb429d1fbe0bc851f4dd6b613ebf991f61018e
5
5
  SHA512:
6
- metadata.gz: 694360a87474586d61d275af6aab607284011d81334c2ec1cfa2a9de93963cb58a76e9dd160b9ad204d200f3f0a84291f66be5cb8ae11833b83bd06b6a0143e9
7
- data.tar.gz: 271187610fbf931a90846bff67ee5855a6a0ebe3d434d55e6a01e435c82df5197c4810a432026b803cc512ff345474d6bf85ea3eacd63c5ed25c2f76e284a064
6
+ metadata.gz: 580033c89a381457f21258d9eebf151eb65a27978168e0eea3651ad0df5b6da63bcf3ba089fd7ddd0cb48c5b2bdc9433993f17e048bcb14068e89f7c6bc3eb10
7
+ data.tar.gz: 76cf2b5d503552692bf46b13d2f9b9b57466b5f15b74ae3c3b5d07821de2c15609b9cef6bc3249c93fd630e74b933a8124f07952ff02beef775e4e86b79a35af
@@ -4,8 +4,8 @@ module ThesisCloudfront
4
4
  module Generators
5
5
  class InstallGenerator < Rails::Generators::Base
6
6
  def install
7
- insert_into_file "Gemfile", after: "group :development, :test do\n" do
8
- " gem 'rack_cors'\n"
7
+ append_to_file "Gemfile" do
8
+ "\ngem 'rack_cors'"
9
9
  end
10
10
 
11
11
  heroku_app_name = ask("whats the name of this heroku app?")
@@ -13,13 +13,14 @@ module ThesisCloudfront
13
13
  create_file "config/initializers/rack_cors.rb" do
14
14
  ["Rails.application.config.middleware.insert_before 0, Rack::Cors do",
15
15
  " allow do",
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
- " ]",
22
- " resource '/assets/*', headers: :any, methods: [:get, :head, :options]",
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
+ " ]",
22
+ " resource '/assets/*', headers: :any, methods: [:get, :head, :options]",
23
+ " end",
23
24
  "end"].join("\n")
24
25
  end
25
26
 
@@ -1,3 +1,3 @@
1
1
  module ThesisCloudfront
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
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.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nico Vigil