cyborg 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/cyborg.gemspec +0 -1
- data/lib/cyborg/middleware.rb +2 -12
- data/lib/cyborg/version.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 93f06314aa842a9e0a1ab14cdfca582c90785972d718d2eb0794c3bdcd13380f
|
4
|
+
data.tar.gz: efac86731687d854c3f160ddc5d580c4e41afc964ec930a318d05d86ce60de33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bec3f305da0f0ac370eddf0e87d87c38088f85a36162140e1e09de3e0571d5bade9e76f3f325aa81642e2d5993e435e26c5a3eee795b8370f7636eec41ea195
|
7
|
+
data.tar.gz: 78e367484469ad77d37d28099aa30ef29c655c1f0151a15fda33885eeaf59fac468fd7311627d5c6ab471ce76b282de17e642d2a482ccbba1d04e3debb2c4eed
|
data/cyborg.gemspec
CHANGED
@@ -25,7 +25,6 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_runtime_dependency 'colorize', '~> 0.8'
|
26
26
|
spec.add_runtime_dependency 'bundler', '~> 1.10'
|
27
27
|
spec.add_runtime_dependency 'autoprefixer-rails', '~> 9.0'
|
28
|
-
spec.add_runtime_dependency 'rack-cors', '~> 0.4'
|
29
28
|
spec.add_runtime_dependency 'rails', '>= 4.2', '< 6'
|
30
29
|
|
31
30
|
spec.add_development_dependency 'rake', '~> 10.0'
|
data/lib/cyborg/middleware.rb
CHANGED
@@ -1,19 +1,9 @@
|
|
1
|
-
require 'rack/cors'
|
2
1
|
require 'action_dispatch/middleware/static'
|
3
2
|
|
4
3
|
module Cyborg
|
5
4
|
class Application < Rails::Application
|
6
|
-
|
7
|
-
|
8
|
-
config.middleware.insert_before 0, Rack::Cors, :debug => true, :logger => (-> { Rails.logger }) do
|
9
|
-
allow do
|
10
|
-
origins "*"
|
11
|
-
resource "*", {
|
12
|
-
:headers => :any,
|
13
|
-
:expose => ["Location"],
|
14
|
-
:methods => [:get, :post, :put, :patch, :delete, :options]
|
15
|
-
}
|
16
|
-
end
|
5
|
+
initializer "static assets" do |app|
|
6
|
+
app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public")
|
17
7
|
end
|
18
8
|
end
|
19
9
|
|
data/lib/cyborg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cyborg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -108,20 +108,6 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '9.0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rack-cors
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0.4'
|
118
|
-
type: :runtime
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0.4'
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: rails
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -225,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
211
|
version: '0'
|
226
212
|
requirements: []
|
227
213
|
rubyforge_project:
|
228
|
-
rubygems_version: 2.
|
214
|
+
rubygems_version: 2.7.6
|
229
215
|
signing_key:
|
230
216
|
specification_version: 4
|
231
217
|
summary: Build a great style-guide for Rails (and humans).
|