blueberry_redirector 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/blueberry_redirector/application_controller.rb +1 -1
- data/app/controllers/blueberry_redirector/redirector_rules_controller.rb +3 -3
- data/app/views/blueberry_redirector/redirector_rules/_form.html.slim +3 -0
- data/app/views/layouts/blueberry_redirector/{application.html.slim → admin.html.slim} +0 -0
- data/config/locales/cs.yml +2 -0
- data/lib/blueberry_redirector/engine.rb +4 -0
- data/lib/blueberry_redirector/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b23024f20108977cf42a26998b2599a5957e9a92
|
4
|
+
data.tar.gz: 6a53c8bbec1d39ffc7885418c5648722f4669c45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 702c1835c71f9eb46c121f48c086c8ac1081148e49e4b03cf95adffae09591a02a093f2c4b704a9a652e4f57829e3a92c82010dd5de148eeae7fdc7334af5bdc
|
7
|
+
data.tar.gz: 3cbc86f2ae86a4a15fd4d82287e640092d6b2bc67ab83de59bebfe5148832e418ed908c67aaa3403446baadac61906bd6bbd14e6ef6eaaacea9d662cb253ea28
|
@@ -19,8 +19,7 @@ module BlueberryRedirector
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
def edit
|
23
|
-
end
|
22
|
+
def edit; end
|
24
23
|
|
25
24
|
def update
|
26
25
|
if @redirector_rule.update_attributes redirector_rule_params
|
@@ -43,7 +42,8 @@ module BlueberryRedirector
|
|
43
42
|
|
44
43
|
def redirector_rule_params
|
45
44
|
params.require(:redirector_rule)
|
46
|
-
.permit(:source, :destination, :active
|
45
|
+
.permit(:source, :destination, :active, :source_is_regex,
|
46
|
+
:source_is_case_sensitive)
|
47
47
|
end
|
48
48
|
end
|
49
49
|
end
|
File without changes
|
data/config/locales/cs.yml
CHANGED
@@ -4,6 +4,10 @@ module BlueberryRedirector
|
|
4
4
|
class Engine < ::Rails::Engine
|
5
5
|
isolate_namespace BlueberryRedirector
|
6
6
|
|
7
|
+
config.to_prepare do
|
8
|
+
BlueberryRedirector::ApplicationController.helper Rails.application.helpers
|
9
|
+
end
|
10
|
+
|
7
11
|
engine_name 'redirector'
|
8
12
|
|
9
13
|
initializer 'redirector.apply_options' do |app|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blueberry_redirector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tonda Pleskac
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -104,7 +104,7 @@ files:
|
|
104
104
|
- app/views/blueberry_redirector/redirector_rules/index.html.slim
|
105
105
|
- app/views/blueberry_redirector/redirector_rules/new.html.slim
|
106
106
|
- app/views/blueberry_redirector/redirector_rules/new_import.html.slim
|
107
|
-
- app/views/layouts/blueberry_redirector/
|
107
|
+
- app/views/layouts/blueberry_redirector/admin.html.slim
|
108
108
|
- config/locales/cs.yml
|
109
109
|
- config/routes.rb
|
110
110
|
- db/migrate/20170126132346_create_redirect_rules.rb
|