engineer 0.2.0 → 0.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.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ *Engineer 0.2.1*
2
+
3
+ * Engine::ApplicationController extends ApplicationController if available.
4
+
1
5
  *Engineer 0.2.0*
2
6
 
3
7
  * Add app_name.require_dependencies initializer which loads the engine's Gemfile and requires its
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -22,7 +22,8 @@ class Engineer
22
22
 
23
23
  create_file File.join(nested_path, 'application_controller.rb') do
24
24
  content = File.read File.join(unnested_path, 'application_controller.rb')
25
- content.gsub! "class ApplicationController", "class #{app_module}::ApplicationController"
25
+ content.gsub!("class ApplicationController < ActionController::Base",
26
+ "class #{app_module}::ApplicationController < defined?(ApplicationController) ? ApplicationController : ActionController::Base")
26
27
  content
27
28
  end
28
29
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Phil Smith