optimacms_backups 0.0.13 → 0.0.14

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: d0ca14a31efc5ec75fbb5a9e6cf5c364c961012a
4
- data.tar.gz: 094a76281f0bbd440012b8fab08df0938c37b852
3
+ metadata.gz: 4990104123ef9c053c476f40fd93ca491bc21257
4
+ data.tar.gz: e5ce498d6a0c27e233ae623595362572d3c2f98a
5
5
  SHA512:
6
- metadata.gz: 8192c9707df0a7b41b05b9d492cb9fa9ad279b879ca3969b81f66b58fdad27eb4eabe0e97148c8fbea8a25b11a2b1894260bc7e451de7b18bef58865ff788809
7
- data.tar.gz: 589ea47dbc74be0871cd2444a2f91d8ffc00f9dfde84d6084933ebf7cfd132989f48aae6ed323ca71dea8637e904d37feaee8b0994a438bf59663133bd837ca4
6
+ metadata.gz: a01fcb20092e81464fd060443691cf5dba7ed92748c675bc7b711e5b8035dd5dbb4a7c7bc3e9f618bce4e0d31f0433cdd67682d62a6042f29165813c8829c6fb
7
+ data.tar.gz: e97777d4edd6fe899517c01cae7dca6e4a02c1c54aa2f58e5f2c555f8876723f08137cb60c68079b391ad3d791b114746c8b9f7ba201126832c7c69e39f2faae
@@ -30,7 +30,7 @@
30
30
  $('#status_commands').html("Sending...");
31
31
 
32
32
  $.ajax({
33
- url: "/#{Optimacms.admin_namespace}/backups/" + cmd,
33
+ url: "/#{Optimacms.config.admin_namespace}/backups/" + cmd,
34
34
  data: {t: t},
35
35
  type: "GET",
36
36
  dataType: "json",
@@ -1,6 +1,6 @@
1
1
  OptimacmsBackups::Engine.routes.draw do
2
2
  #Rails.application.routes.draw do
3
- scope '/'+Optimacms.admin_namespace do
3
+ scope '/'+Optimacms.config.admin_namespace do
4
4
  scope module: 'admin', as: 'admin' do
5
5
  # options
6
6
  resources :backups do
@@ -8,7 +8,7 @@ module Optimacms
8
8
  {
9
9
  title: 'Backups', route: nil,
10
10
  submenu: [
11
- {title: 'Backups', url: Optimacms.admin_namespace+'/backups' },
11
+ {title: 'Backups', url: Optimacms.config.admin_namespace+'/backups' },
12
12
  ]
13
13
  }
14
14
 
@@ -1,3 +1,3 @@
1
1
  module OptimacmsBackups
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
@@ -1,4 +1,7 @@
1
- Optimacms.main_namespace = ''
2
- Optimacms.admin_namespace = 'admin'
3
1
 
4
- Optimacms.files_dir_path = 'img'
2
+ Optimacms.config do |c|
3
+ c.main_namespace = ''
4
+ c.admin_namespace = 'admin'
5
+
6
+ c.files_dir_path = 'img'
7
+ end
@@ -8,7 +8,7 @@ module Optimacms
8
8
  {
9
9
  title: 'Backups', route: nil,
10
10
  submenu: [
11
- {title: 'Backups', url: '/'+Optimacms.admin_namespace+'/backups' },
11
+ {title: 'Backups', url: '/'+Optimacms.config.admin_namespace+'/backups' },
12
12
  ]
13
13
  }
14
14
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optimacms_backups
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Ivak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-22 00:00:00.000000000 Z
11
+ date: 2018-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails