phaseout 0.0.2 → 0.0.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9da6702cb9a3c5c0943ed7b2b867a35c55e5d193
|
|
4
|
+
data.tar.gz: 3744800fcbb9578bd40957fd1eca471ea189d153
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b7716b40933fd13a08f5f3068759ffeeedc7fcad224bc24a5e7e0c3aaeb4b8830447b89d0574474911284985fc830a23b0274fea5519c15bf5545fc853090bf
|
|
7
|
+
data.tar.gz: f16e6f6dc28081def9cd19dfa4686bcf4782151a67d86fd777307c8d762f2684b63455c7d34d734b84217a176817bc1058bd6b06169cecf6aca52f6fb227a5b7
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<li id="<%- @action_id %>_<%- @id %>" class="seo_action_key_item">
|
|
2
2
|
<a id="<%- @action_id %>_<%- @id %>_delete" href="<%- seo_fields_delete_path @key %>" class="seo_action_key_delete" data-method="delete" data-remote="true"><%- PhaseoutTranslations.common.delete %> [X]</a>
|
|
3
3
|
<a id="<%- @action_id %>_<%- @id %>_link" href="javascript:void(0)" class="seo_action_key_link"><%- @name %></a>
|
|
4
|
-
<form action="<%- seo_fields_update_path @key %>" class="action_key_fields" style="display: none"
|
|
4
|
+
<form action="<%- seo_fields_update_path @key %>" class="action_key_fields" style="display: none" method="post" data-remote="true">
|
|
5
|
+
<input name='_method' type='hidden' value='put'/>
|
|
5
6
|
<ul class="seo_form_fields_list">
|
|
6
7
|
<% for key, field of @fields: %>
|
|
7
8
|
<%- JST['phaseout/templates/action_key_field'](action_key: this, key: key, field: field) %>
|
data/lib/phaseout/seo.rb
CHANGED
|
@@ -10,8 +10,23 @@ module Phaseout
|
|
|
10
10
|
@_seo_tags = value
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
class Base
|
|
14
|
+
def initialize(controller)
|
|
15
|
+
@controller = controller
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def seo_tags_for(*args, &block)
|
|
19
|
+
@controller.seo_tags_for *args, &block
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
13
23
|
included do
|
|
14
24
|
helper_method :seo_tags
|
|
25
|
+
begin
|
|
26
|
+
( seo_class_name = "#{self.name}SEO" ).constantize.new(self).call
|
|
27
|
+
rescue NameError
|
|
28
|
+
raise "#{seo_class_name} not defined"
|
|
29
|
+
end
|
|
15
30
|
end
|
|
16
31
|
|
|
17
32
|
module ClassMethods
|
data/lib/phaseout/seo_fields.rb
CHANGED
data/lib/phaseout/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phaseout
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dalton Pinto
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2015-01-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: redis
|