express_admin 1.7.1 → 1.7.2

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: 483f96d0b2f08c4cc3ba4496a90306876565d732
4
- data.tar.gz: 3bce021b18f151aa3327d435d807e8319035cbe8
3
+ metadata.gz: e9794455e9094a4bd67e8dc11714350158b88506
4
+ data.tar.gz: e096d162d6912e9a99562da6617e70ba9bcd761b
5
5
  SHA512:
6
- metadata.gz: 4b318f08e04c4f1a5f7e2783703a001fded9e66855cdf9506ed230ddb7ca929d0698c5c108fe32be94cbd8be7e8b82d4b66d128f1a8ac508b90b3242e47d053f
7
- data.tar.gz: 684e42c0fc53d3fcc6e3c0c185650de726165414ca9262123a5c430f745eeb2e8ae51066d7554a755cb36dbbabf94111bb27095e8ffc2675171fcfb45616a765
6
+ metadata.gz: 2e2b9653a4405e1810ffe3a1ce13d4ffb412958c5612101394fd904ee7c0007fd15542fb85483c736cafb02bec44269089753785c9c56d2d5044bd2b0ff5ed38
7
+ data.tar.gz: 39deb4fc98723c381e2459a1f1697193a803c4db6d17aac8785b533907a4d88b0a6ea7062bff698c1ffa339ca97d5a94a52433a9bac21c86dc0d0d33d0eff392
@@ -1,3 +1,3 @@
1
1
  module ExpressAdmin
2
- VERSION = "1.7.1"
2
+ VERSION = "1.7.2"
3
3
  end
@@ -32,15 +32,13 @@ module ExpressAdmin
32
32
  end
33
33
 
34
34
  def create_application_js
35
- empty_directory("app/assets/javascripts/#{@project_name}/admin")
36
35
  template 'assets/javascripts/application.js',
37
- File.join('app/assets/javascripts', @project_name, 'admin', 'application.js')
36
+ File.join('app/assets/javascripts', @project_name, 'admin.js')
38
37
  end
39
38
 
40
39
  def create_application_css
41
- empty_directory("app/assets/stylesheets/#{@project_name}/admin")
42
40
  template 'assets/stylesheets/application.css',
43
- File.join('app/assets/stylesheets', @project_name, 'admin', 'application.css')
41
+ File.join('app/assets/stylesheets', @project_name, 'admin.css')
44
42
  end
45
43
 
46
44
  def insert_mount_point
@@ -51,6 +49,12 @@ module ExpressAdmin
51
49
  " #{@project_class}::Engine.config.#{@project_name}_mount_point = '/'\n",
52
50
  after: "class Engine < ::Rails::Engine\n"
53
51
  end
52
+
53
+ empty_directory File.join('config', 'initializers')
54
+ if File.exists?(engine_path)
55
+ create_file File.join('config', 'initializers', "mount_engine.rb"),
56
+ "ExpressAdmin::Routes.register do |routes|\n routes.mount #{@project_class}::Engine, at: #{@project_class}::Engine.config.#{@project_name}_mount_point\nend\n"
57
+ end
54
58
  end
55
59
 
56
60
  def require_express_admin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: express_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Talcott Smith