ecm_tags 2.0.2 → 2.1.0

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: 8104551bb3079c872697c2ef2326969d4e92eeec
4
- data.tar.gz: ec77be070876b144b3584d177d1b3dc5d0219d28
3
+ metadata.gz: '089a26c830a568d80f74fba165f02f1b416c1d87'
4
+ data.tar.gz: 4fab17d56300b381ff309c5e8ee55124e46388ff
5
5
  SHA512:
6
- metadata.gz: b2e7e3771df88f49098225c547a2d73177cffaf9b37f276bcca64f51177c632ffbd57b7cf698650e543e92927fc3c9efdd1fa80e1f9b7844d24c675967665a79
7
- data.tar.gz: 4b1ca17e0f524fd03172994ec0860452115445789f469a3cf93c0e7e476096f38443afbdde95a2a6295638978eac0448f052a58ad3e89a6222438aa1f8986328
6
+ metadata.gz: 6bf89a3f411561807f0c0a3ad09fb3e5e53b5471777f1eb04c53698773dd3a2a4ace64d72aaa932c01cde63713a8f6c58d6c60399aa4e75e298acb18f4ea8ad6
7
+ data.tar.gz: 0debb306e7d7ba1af57035e1da4187b286fe44179f9e81e46a3b917a1a1055807f8b065779063df2f0bf24b3a026e57101242113f209578ce48cfc89463dae41
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Tags
3
- VERSION = '2.0.2'.freeze
3
+ VERSION = '2.1.0'.freeze
4
4
  end
5
5
  end
@@ -6,8 +6,15 @@ module Ecm
6
6
 
7
7
  source_root File.expand_path('../templates', __FILE__)
8
8
 
9
+ attr_reader :base_controller_class_name
10
+
11
+ def initialize(*args)
12
+ super
13
+ @base_controller_class_name = ENV.fetch('BASE_CONTROLLER_CLASS_NAME') { '::FrontendController' }
14
+ end
15
+
9
16
  def generate_initializer
10
- copy_file 'initializer.rb', 'config/initializers/ecm_tags.rb'
17
+ template 'initializer.rb', 'config/initializers/ecm_tags.rb'
11
18
  end
12
19
 
13
20
  def generate_routes
@@ -1,3 +1,3 @@
1
-
1
+
2
2
  # From ECM Tags
3
3
  helper Ecm::Tags::ApplicationHelper
@@ -1,9 +1,9 @@
1
1
  Ecm::Tags.configure do |config|
2
2
  # Set the base controller
3
3
  #
4
- # Default: config.base_controller = 'FrontendController'
4
+ # Default: config.base_controller = '<%= base_controller_class_name %>'
5
5
  #
6
- config.base_controller = 'FrontendController'
6
+ config.base_controller = '<%= base_controller_class_name %>'
7
7
 
8
8
  # Add a submit button to the tag search box.
9
9
  #
@@ -1,4 +1,2 @@
1
1
 
2
- localized do
3
- mount Ecm::Tags::Engine, at: '/tags'
4
- end
2
+ mount Ecm::Tags::Engine, at: '/'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-31 00:00:00.000000000 Z
11
+ date: 2018-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails