locomotive_page_redirect_plugin 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjNkOGU3ZWY2NDRmYmNiOWU1NzhlZWFiZDU1OWFkOGRmMmYyMWJhNw==
4
+ ZWNlYTA4Yzg0NjQzNWEzNGIzNjA5MDJiZjZkOTIwZWZjNGI1MGY3ZA==
5
5
  data.tar.gz: !binary |-
6
- MzQ3NDlhMDE1MGFkODMyMmNiMGVhYThjMTczNDAzYTBiZDkyZDhjNg==
6
+ NjJmNTQ5YTNmMDM0ZGM0M2JjODJmODM4MTU4MjZiODIwODc4YjAzYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGM3ZDk0Y2ZmYTEyYzY2NDg5ZjhlODEyYWNkMzY2MGQ4MzVlZTg2OWU0YzQ4
10
- Zjg5YWM5YjNkZTIxNTM3MTcwNmFjMzEwMWQ2NDhkYWQ3MzRhYzE0NTljNjc4
11
- MDkzNDAwYmVkMzZiZTE0MzAxNzk5YmFhYWJhNGE5YzkxYWVhM2U=
9
+ ZjdkOTg0NGVlNTYzMTEwZDY2MDYzYmQwMzIwMTUyYTgwNDBiYjQ5ODJiNTJm
10
+ OTBmN2ExMTg2ZDBhNWJmZTMwYTUwZDJhZjkxYjczNjYyMDNhOTM0NWNjYTIw
11
+ MTZiNGYyNzQ2ZmEwMzVmMjhiYjllMmQxNzljZTQ4M2NhNDU0MjY=
12
12
  data.tar.gz: !binary |-
13
- MTk0YjUwYzkyNWQ4OTg4NWE0MjkzNDIyZDRlOWFlZjMyOGRmM2U1MjhlNzU4
14
- Y2U2MzI2NjJjZjg3ODg0MDJlMTJlNzZiYTRhYTQ3YTAyMDk1MjY4NDViYWVk
15
- NmUzNTA1YzBjNmYxNjc1MjQ3NWI5OWExZTUzZjE1YjllZWVkYjM=
13
+ OWU5Njg4OWEwMGI5ZDJkN2NiNjhiOGY2NWY1M2M0ZjljYjNmYzk2OTVjNmYz
14
+ NjEyYjJkYjhiOWJjNDNkZGI3MTNiZjU2N2ZjZGFmMGMwZTFhY2E5YjFlOGQ1
15
+ Mjg2Y2QzMTUzMWZkNTYyNjVmODdkZGVlZmMxODdlMDU4MjAxNGY=
@@ -0,0 +1,43 @@
1
+ h1. Page Redirect Plugin
2
+
3
+ This is a plugin for LocomotiveCMS. It was created to allow LocomotiveCMS authors to setup page redirects easily.
4
+
5
+ h2. Installation
6
+
7
+ To use this plugin you must be using a version of LocomotiveCMS that has the plugins feature designed by "Colibri Software":https://www.colibri-software.com. You can do this by making the following changes to the Gemfile in you app:
8
+
9
+ * Remove or comment out the following line:
10
+ @gem 'locomotive_cms', '~> 2.X.X', require: 'locomotive/engine'@
11
+ * Add the following line:
12
+ @gem 'locomotive_cms', require: 'locomotive/engine', git: 'https://github.com/colibri-software/locomotive_engine.git', branch: 'plugins'@
13
+
14
+ Then add the following lines in your Gemfile to include the plugin:
15
+ <pre><code>group :locomotive_plugins do
16
+ gem 'locomotive_page_redirect_plugin'
17
+ end</code></pre>
18
+
19
+ h2. Usage
20
+
21
+ h3. Configuring Plugin
22
+
23
+ This plugin provides a few configuration options which are as follows:
24
+
25
+ * Redirect Model - the model that will store the page redirects
26
+ * Regexp Field Slug - the slug of the field that contains the path regexp to match.
27
+ * URL Field Slug - the slug of the field that contains the URL to redirect to if there is a match.
28
+
29
+ h3. Liquid Drops
30
+
31
+ This plugin has no liquid drops.
32
+
33
+ h3. Liquid Tags
34
+
35
+ This plugin has no liquid tags.
36
+
37
+ h3. Liquid Filters
38
+
39
+ Thsi plugin has no liquid filters.
40
+
41
+ h3. JS3
42
+
43
+ The plugin provides no methods or variables for JS3.
@@ -1,12 +1,22 @@
1
1
  %li
2
- %label{:name => 'redirect_model_slug'}
2
+ %label{name: 'redirect_model_slug'}
3
3
  Redirect Model:
4
- %select{:name => 'redirect_model_slug' }
4
+ %select{name: 'redirect_model_slug' }
5
5
  {{#each content_types }}
6
6
  %option{value: "{{ this.slug }}"}
7
7
  {{ this.name }}
8
8
  {{/each}}
9
9
  %p.inline-hints
10
- Please provide two fields the regular expression to match the url
11
- and the url where it has to redirect to, it will use the first field
12
- as the regular expression.
10
+ The model that contains the page redirects.
11
+ %li
12
+ %label{name: 'regexp_field_slug' }
13
+ Regexp Field Slug
14
+ %input{name: 'regexp_field_slug', type: 'text'}
15
+ %p.inline-hints
16
+ The slug of the regexp field. Default: regexp
17
+ %li
18
+ %label{name: 'url_field_slug' }
19
+ URL Field Slug
20
+ %input{name: 'url_field_slug', type: 'text'}
21
+ %p.inline-hints
22
+ The slug of the url field. Default: url
@@ -1,3 +1,5 @@
1
- module PageRedirectPlugin
2
- VERSION = '0.1.0'
3
- end
1
+ module Locomotive
2
+ module PageRedirect
3
+ VERSION = '0.1.1'
4
+ end
5
+ end
@@ -2,18 +2,19 @@
2
2
  lib = File.expand_path('../lib/', __FILE__)
3
3
  $:.unshift lib unless $:.include?(lib)
4
4
 
5
- require 'page_redirect_plugin/version'
5
+ require 'locomotive/page_redirect/plugin/version'
6
6
 
7
7
 
8
8
  Gem::Specification.new do |s|
9
9
 
10
10
  s.name = 'locomotive_page_redirect_plugin'
11
- s.version = PageRedirectPlugin::VERSION
11
+ s.version = Locomotive::PageRedirect::VERSION
12
12
  s.date = '2013-04-24'
13
13
  s.summary = "Locomotive CMS plugin for page redirection"
14
14
  s.description = "Allows CMS designers to assign a locomotive model that defines page redirestions."
15
15
  s.authors = ["Colibri Software Inc."]
16
16
  s.email = 'info@colibri-software.com'
17
+ s.licenses = ['MIT']
17
18
 
18
19
  s.add_dependency "locomotive_plugins", '~> 1.0'
19
20
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotive_page_redirect_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colibri Software Inc.
@@ -33,6 +33,7 @@ files:
33
33
  - .gitignore
34
34
  - Gemfile
35
35
  - Gemfile.lock
36
+ - README.textile
36
37
  - coverage/.last_run.json
37
38
  - coverage/.resultset.json
38
39
  - coverage/.resultset.json.lock
@@ -148,7 +149,8 @@ files:
148
149
  - spec/spec_helper.rb
149
150
  - spec/support/factories.rb
150
151
  homepage: http://colibri-software.com
151
- licenses: []
152
+ licenses:
153
+ - MIT
152
154
  metadata: {}
153
155
  post_install_message:
154
156
  rdoc_options: []