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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cc5ab59dbf4eeec1fc3a4bcccaea22e5a8e2b64
4
- data.tar.gz: 15ef66db5b3869c82bc8de0047287449517a9956
3
+ metadata.gz: b23024f20108977cf42a26998b2599a5957e9a92
4
+ data.tar.gz: 6a53c8bbec1d39ffc7885418c5648722f4669c45
5
5
  SHA512:
6
- metadata.gz: e76290ea87a16f70f631357a30f8a58d9cf8465e80849b70aa0d9544c2e757e133a5bba8177565ec3d633a99c36a798703b6576365a5eb2ea98a41fd7b29c05d
7
- data.tar.gz: 2e6404a7f1c1df1407c09792bf29ccdc7edf780aba0f5feb9df00ae6a49b096b7cb6a333c4cb06033ab606cca4e9ad324e67f878c33f881bf0e9bcbd8eec76eb
6
+ metadata.gz: 702c1835c71f9eb46c121f48c086c8ac1081148e49e4b03cf95adffae09591a02a093f2c4b704a9a652e4f57829e3a92c82010dd5de148eeae7fdc7334af5bdc
7
+ data.tar.gz: 3cbc86f2ae86a4a15fd4d82287e640092d6b2bc67ab83de59bebfe5148832e418ed908c67aaa3403446baadac61906bd6bbd14e6ef6eaaacea9d662cb253ea28
@@ -2,7 +2,7 @@ module BlueberryRedirector
2
2
  class ApplicationController < ActionController::Base
3
3
  protect_from_forgery with: :exception
4
4
 
5
- layout 'blueberry_redirector/application'
5
+ layout 'blueberry_redirector/admin'
6
6
  helper BlueberryRedirector::RedirectorHelper
7
7
  end
8
8
  end
@@ -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
@@ -4,3 +4,6 @@ h3 = t '.main'
4
4
  .col-md-5 = f.input :source
5
5
  .col-md-5 = f.input :destination
6
6
  .col-md-2 = f.input :active
7
+ .row
8
+ .col-md-2 = f.input :source_is_regex
9
+ .col-md-2 = f.input :source_is_case_sensitive
@@ -5,6 +5,8 @@ cs:
5
5
  source: 'Zdroj'
6
6
  destination: 'Cíl'
7
7
  active: 'Aktivní'
8
+ source_is_regex: Zdroj je regulární výrazy
9
+ source_is_case_sensitive: Zdroj je citlivý na velikost písma
8
10
  models:
9
11
  redirect_rule: 'přesměrování'
10
12
  redirector_rule: 'přesměrování'
@@ -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|
@@ -1,3 +1,3 @@
1
1
  module BlueberryRedirector
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
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.2
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-02-17 00:00:00.000000000 Z
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/application.html.slim
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