ecm_cms2_backend 1.2.2 → 1.2.3

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: 2957b4a01edbfcb25175fe502139b452b95ed841
4
- data.tar.gz: a2908064cc49f7bd9f59457c3dbd3ce96c7a5c8d
3
+ metadata.gz: cf17ea9c87baaf65ec744a9c2ccda08f929b4735
4
+ data.tar.gz: 8f0f431ee982860154d02600201125a60b073fa1
5
5
  SHA512:
6
- metadata.gz: cf1e30b803b16e752e8c29e9b85bcdee3587f3583509f4c09b4800fcf1da9492e019caf7e863cd9dc43b2c175990c801550673c783bdbc9d28eb0fd9624583bd
7
- data.tar.gz: 6f4bb11063d06d3bf33f28a3faabf650a1154b44f737b6eb01ab41848dcf73a21e48f6a6e89e2cc9b66eca72613a66ace2ffb3b940f3b526ae1d32fe8a0f360c
6
+ metadata.gz: 96c05faf3f093857182adcf5865a81e52502dd9d348263a8ba0f210ca3812b4ddd39b6d964fb4131d5c35d18647b7e62a92a91afa417b94f003acaf1109ba1e7
7
+ data.tar.gz: 118b3ad203c6bb3e6447f4d72c97be1d84a22ff2ce01f2fb657d5b01c6cef3a05f33427258243561641eac9839b06dc70b8c47ca311a75c26e3b2d7baf9f6851
@@ -4,7 +4,7 @@
4
4
  ~ form.input :body, input_html: { 'data-add-editor': Itsf::Backend.features?(:'ace-rails-ap'), 'data-editor-syntax': form.object.handler }
5
5
 
6
6
  .well
7
- = form.input :pathname
7
+ = form.input :pathname, required: false
8
8
  = form.input :basename
9
9
  = form.input :locale, collection: I18n.available_locales
10
10
  = form.input :format, collection: Mime::SET.symbols
@@ -2,7 +2,7 @@
2
2
  ~ form.input :body, input_html: { 'data-add-editor': Itsf::Backend.features?(:'ace-rails-ap'), 'data-editor-syntax': form.object.handler }
3
3
 
4
4
  .well
5
- = form.input :pathname
5
+ = form.input :pathname, required: false
6
6
  = form.input :basename
7
7
  = form.input :locale, collection: I18n.available_locales
8
8
  = form.input :format, collection: Mime::SET.symbols
@@ -2,7 +2,7 @@
2
2
  ~ form.input :body, input_html: { 'data-add-editor': Itsf::Backend.features?(:'ace-rails-ap'), 'data-editor-syntax': form.object.handler }
3
3
 
4
4
  .well
5
- = form.input :pathname
5
+ = form.input :pathname, required: false
6
6
  = form.input :basename
7
7
  = form.input :locale, collection: I18n.available_locales
8
8
  = form.input :format, collection: Mime::SET.symbols
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Cms
3
3
  module Backend
4
- VERSION = '1.2.2'.freeze
4
+ VERSION = '1.2.3'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -3,7 +3,7 @@ module Ecm
3
3
  module Backend
4
4
  module Generators
5
5
  class InstallGenerator < Rails::Generators::Base
6
- desc 'Generates the intializer'
6
+ desc 'Generates the initializer'
7
7
 
8
8
  source_root File.expand_path('../templates', __FILE__)
9
9
 
@@ -11,6 +11,10 @@ module Ecm
11
11
  copy_file 'initializer.rb', 'config/initializers/ecm_cms_backend.rb'
12
12
  end
13
13
 
14
+ def generate_routes
15
+ route File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source'))
16
+ end
17
+
14
18
  def add_to_itsf_backend
15
19
  insert_into_itsf_backend_config(Ecm::Cms::Backend::Engine)
16
20
  end
@@ -0,0 +1,4 @@
1
+
2
+ localized do
3
+ mount Ecm::Cms::Backend::Engine, at: '/backend/ecm-cms-backend-engine'
4
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_cms2_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
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-07-15 00:00:00.000000000 Z
11
+ date: 2017-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -263,6 +263,7 @@ files:
263
263
  - lib/ecm_cms2_backend.rb
264
264
  - lib/generators/ecm/cms/backend/install/install_generator.rb
265
265
  - lib/generators/ecm/cms/backend/install/templates/initializer.rb
266
+ - lib/generators/ecm/cms/backend/install/templates/routes.source
266
267
  - lib/tasks/ecm/cms2/backend_tasks.rake
267
268
  - spec/dummy/README.rdoc
268
269
  - spec/dummy/Rakefile