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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc93039c219faa3ba767336996fb0debe2ef6f2f
4
- data.tar.gz: adcfebcce3d5f9af98dbb0de2250486e86951130
3
+ metadata.gz: c3564aee6fd308dff5617aef0926bc754a8d9b65
4
+ data.tar.gz: df48e606fab25baf5306a8f858f0d02990ecca9d
5
5
  SHA512:
6
- metadata.gz: 2b30fa627ab8748a44a235e4aeceb5b38bd3ea455f1b6f5875f9143d1f2fac4027714a14bbcb1c139bf98cf16e27c694be5dba7177ee5ad40cab39692c258b60
7
- data.tar.gz: 62247ba3803960b66b694f91f7b6a26e77e601db9e48a2b9efa6aeea8c8276857a516a31b8b38223bb70e629e09481a0400ace351f0f53625683479521d6c9e8
6
+ metadata.gz: d450ece75d4c2a6a558e282cf428336058609ff1f9c9ba385c34749323820cf6acfee7032f315b3cb59758d6014c5dcd830b9935d4c7bdfc48fd316f56348650
7
+ data.tar.gz: e24f69ce0f24e27c4a5eafceac25205477b77331e169b61893f3f7d51087ef047246ad5b4c609fb30f0646102a5642920dbeb88e2d1c688a4c196607781768f8
@@ -1,3 +1,3 @@
1
1
  module SpectacularRails
2
- VERSION = "1.6.0.3"
2
+ VERSION = "1.6.0.4"
3
3
  end
@@ -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.3
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