thecore_api 1.2.0 → 1.2.1

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
  SHA1:
3
- metadata.gz: 4150ac295cc272aad66fe0144cc5fe7a675bd3eb
4
- data.tar.gz: 964bf8967f023d225b7d634cf6ccbfa38fee2542
3
+ metadata.gz: 81678c8efa882f31d0bf0368cede3b1b57e9d07d
4
+ data.tar.gz: 9ffc781ec1b269da76c5ae2add0c22637a208eae
5
5
  SHA512:
6
- metadata.gz: 3df94866c03df4fb0aa822ec0ecfd83e349c9e3cb23d91ca4124adf0ee649ab09c34c927e52024a83b687b476ea7801311d0c7e3ac685b0563002c1b15b50026
7
- data.tar.gz: 12efbcbef6f5ad1bf09081ab95beb773f40c19c73bb0ac4e05221e81b5ee06875c5138a1f551e39c690937f8d9e8fc936fd99b706062982bbd551e477a4a22fb
6
+ metadata.gz: 7f7721a1316d09d5fbb3ffb949ff33a8b12c397055fa97c86294293f8685fa9311bb9732de9a2baad4a3cef652d99233296f7431b8510aebb51f44927112ac25
7
+ data.tar.gz: ce12e436d1fcd2387cebf1ab5a99b40706f67193ac16549acc0966cd68e9946389d7b0ededb2f4a4b860bb13822acb4d72e0b52383f961fc2e8a60774c3259df
@@ -1,15 +1,16 @@
1
1
  # config/initializers/cors.rb
2
2
  Rails.application.config.middleware.insert_before 0, Rack::Cors do
3
3
  allow do
4
- origins { |source, env|
5
- # No settings => '*'
6
- allowed_origins = Settings.ns('api').allowed_origins
7
- return true if allowed_origins.blank?
8
- allowed_origins.split(",").each do |domain|
9
- return true if source.end_with?(domain.strip)
10
- end
11
- return false
12
- }
4
+ # origins { |source, env|
5
+ # # No settings => '*'
6
+ # allowed_origins = Settings.ns('api').allowed_origins
7
+ # return true if allowed_origins.blank?
8
+ # allowed_origins.split(",").each do |domain|
9
+ # return true if source.end_with?(domain.strip)
10
+ # end
11
+ # return false
12
+ # }
13
+ origins '*'
13
14
  resource '*',
14
15
  headers: :any,
15
16
  methods: %i(get post put patch delete options head)
@@ -1,3 +1,3 @@
1
1
  module ThecoreApi
2
- VERSION = "1.2.0".freeze
2
+ VERSION = "1.2.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-20 00:00:00.000000000 Z
11
+ date: 2018-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore