thecore_api 1.1.16 → 1.1.17

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
  SHA1:
3
- metadata.gz: 7abed0eec0c489166c4bd5ec14b5674eb7f755ca
4
- data.tar.gz: 5a795c46bcb915747db2c1a1d4e9038a1bd000aa
3
+ metadata.gz: 6158db284d9f46015ddd533a5483c1440cee885f
4
+ data.tar.gz: '0759e58f7a18ae83f44937bfd0f87f501cbf19b2'
5
5
  SHA512:
6
- metadata.gz: 775dd98fb1026fe90bcb6da3ad849e1d825ed9c5ef6eb68e82edcc9ad283c7ebabcec55b94dbe6fece8b9b272a1846aff0fc67dabb294528043b854e89a66022
7
- data.tar.gz: 96b2c450522de7079ee77cf4ac8883e504dd190ee19204a38d165d40028908aabe673e9107dcbffe2c4f6c1e81730cd0fafbdc746e889a649277422230fbd8c5
6
+ metadata.gz: f17e0e2e0feeffee8855c7962733276c202928dd6da55d16908d4eed02371a7440dbbfcdf4d7dc6eafc317195885f91e7ce3bd173e549f3cec26797cbbab48dd
7
+ data.tar.gz: 776daf1035c250aab3d595e4c1e543958b1ef51ee720d43687682e4fd593377b57a04a3ea363d5e6a7865bcc17ec6ae8074400a651f5f6b4ca8096a93afda0d9
@@ -0,0 +1,9 @@
1
+ # config/initializers/cors.rb
2
+ Rails.application.config.middleware.insert_before 0, Rack::Cors do
3
+ allow do
4
+ origins '*'
5
+ resource '*',
6
+ headers: :any,
7
+ methods: %i(get post put patch delete options head)
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module ThecoreApi
2
- VERSION = "1.1.16".freeze
2
+ VERSION = "1.1.17".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.1.16
4
+ version: 1.1.17
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-09-28 00:00:00.000000000 Z
11
+ date: 2018-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore
@@ -93,6 +93,7 @@ files:
93
93
  - app/controllers/api/v1/info_controller.rb
94
94
  - app/controllers/api/v1/sessions_controller.rb
95
95
  - app/controllers/api/v1/users_controller.rb
96
+ - config/initializers/cors_api_thecore.rb
96
97
  - config/initializers/wrap_parameters.rb
97
98
  - config/routes.rb
98
99
  - lib/tasks/thecore_api_tasks.rake