spectacular_rails 1.6.0.3 → 1.6.0.4
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 +4 -4
- data/lib/spectacular_rails/version.rb +1 -1
- data/lib/spectacular_rails.rb +15 -0
- metadata +1 -2
- data/lib/spectacular_rails/engine.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3564aee6fd308dff5617aef0926bc754a8d9b65
|
4
|
+
data.tar.gz: df48e606fab25baf5306a8f858f0d02990ecca9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d450ece75d4c2a6a558e282cf428336058609ff1f9c9ba385c34749323820cf6acfee7032f315b3cb59758d6014c5dcd830b9935d4c7bdfc48fd316f56348650
|
7
|
+
data.tar.gz: e24f69ce0f24e27c4a5eafceac25205477b77331e169b61893f3f7d51087ef047246ad5b4c609fb30f0646102a5642920dbeb88e2d1c688a4c196607781768f8
|
data/lib/spectacular_rails.rb
CHANGED
@@ -34,4 +34,19 @@ module SpectacularRails
|
|
34
34
|
def self.setup
|
35
35
|
yield self
|
36
36
|
end
|
37
|
+
|
38
|
+
class Engine < ::Rails::Engine
|
39
|
+
isolate_namespace SpectacularRails
|
40
|
+
|
41
|
+
initializer :assets, :group => :all do |app|
|
42
|
+
app.config.assets.paths << Rails.root.join(SpectacularRails.spec_path, "javascripts").to_s
|
43
|
+
app.config.assets.paths << Rails.root.join(SpectacularRails.spec_path, "stylesheets").to_s
|
44
|
+
end
|
45
|
+
|
46
|
+
config.after_initialize do |app|
|
47
|
+
app.routes.prepend do
|
48
|
+
mount SpectacularRails::Engine => SpectacularRails.mount_at
|
49
|
+
end if SpectacularRails.mount
|
50
|
+
end
|
51
|
+
end
|
37
52
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectacular_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.0.
|
4
|
+
version: 1.6.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cédric Néhémie
|
@@ -75,7 +75,6 @@ files:
|
|
75
75
|
- app/views/layouts/spectacular_rails/application.html.erb
|
76
76
|
- app/views/spectacular_rails/spec/index.html.erb
|
77
77
|
- config/routes.rb
|
78
|
-
- lib/spectacular_rails/engine.rb
|
79
78
|
- lib/spectacular_rails/version.rb
|
80
79
|
- lib/spectacular_rails.rb
|
81
80
|
- lib/tasks/spectacular_rails_tasks.rake
|
@@ -1,16 +0,0 @@
|
|
1
|
-
module SpectacularRails
|
2
|
-
class Engine < ::Rails::Engine
|
3
|
-
isolate_namespace SpectacularRails
|
4
|
-
|
5
|
-
initializer :assets, :group => :all do |app|
|
6
|
-
app.config.assets.paths << Rails.root.join(SpectacularRails.spec_path, "javascripts").to_s
|
7
|
-
app.config.assets.paths << Rails.root.join(SpectacularRails.spec_path, "stylesheets").to_s
|
8
|
-
end
|
9
|
-
|
10
|
-
config.after_initialize do |app|
|
11
|
-
app.routes.prepend do
|
12
|
-
mount SpectacularRails::Engine => SpectacularRails.mount_at
|
13
|
-
end if SpectacularRails.mount
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|