seo_meta 2.0.1 → 3.0.0

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: 44b8189812f726831ece128700ef563ca19f6621
4
- data.tar.gz: c8944cc6e9fe2be4582a71091330987919b7ca55
3
+ metadata.gz: bd4a6e7e50ed8cd054a81fa01ae92b80118fd303
4
+ data.tar.gz: f8a86e484a33f9fe9863e51bfe8bcd7994ddead7
5
5
  SHA512:
6
- metadata.gz: d6c82f6e1fcb4b309205e985eaff59482453fb5a9db1361c63e0fc1dc6f0ad3e965fdde8975fc0114c79da093576481f615ab87cbed63b848db7ec6d24e9b429
7
- data.tar.gz: 18f0c058aace1d153c3daf93e1ce90d757071d7f009413770c35526b7a4c25135660240c1e08399018728359a8bb63cb7e5a6118dbff5a9318928e23a793c3e6
6
+ metadata.gz: 13b59f088b0d3d6010bd3a619d1f38493dba1c64b620e87614cad9806972c7f74338bdee8af5c0b4aa2622725831aca0e655ba9d5abbbeddb92915a69dec116d
7
+ data.tar.gz: a347a677a54365d500202d1f9266958b399493a1d58d93d122ec96ff05163d621d285fcf874b584a20b6a6f1cf4a305c8896d7c8a160a27595127349d1f4cf92
@@ -1,5 +1,2 @@
1
1
  class SeoMetum < ActiveRecord::Base
2
- if ActiveRecord.constants.include?(:MassAssignmentSecurity)
3
- attr_accessible :seo_meta_type, :browser_title, :meta_description
4
- end
5
2
  end
@@ -1,15 +1,9 @@
1
- <h2><%= t('seo', :scope => 'seo_meta.form') %></h2>
2
- <div class='field'>
3
- <span class='label_with_help'>
4
- <%= form.label :browser_title, t('seo_override_title', :scope => 'seo_meta.form') %>
5
- <%= refinery_help_tag t('seo_override_title_help', :scope => 'seo_meta.form')%>
6
- </span>
7
- <%= form.text_field :browser_title, :class => 'widest' %>
1
+ <h2><%= t('seo', scope: 'seo_meta.form') %></h2>
2
+ <div class="field">
3
+ <%= form.label :browser_title, t('seo_override_title', scope: 'seo_meta.form') %>
4
+ <%= form.text_field :browser_title, class: 'widest', placeholder: t('seo_override_title_help', scope: 'seo_meta.form') %>
8
5
  </div>
9
- <div class='field'>
10
- <span class='label_with_help'>
11
- <%= form.label :meta_description, t('meta_description_title', :scope => 'seo_meta.form') %>
12
- <%= refinery_help_tag t('meta_description_help', :scope => 'seo_meta.form') %>
13
- </span>
14
- <%= form.text_area :meta_description, :class => 'widest', :rows => 7 %>
6
+ <div class="field">
7
+ <%= form.label :meta_description, t('meta_description_title', scope: 'seo_meta.form') %>
8
+ <%= form.text_area :meta_description, class: 'widest', rows: 7, placeholder: t('meta_description_help', scope: 'seo_meta.form') %>
15
9
  </div>
@@ -1,10 +1,4 @@
1
- if Gem.loaded_specs["activerecord"].version >= Gem::Version.new('5.0')
2
- class CreateSeoMeta < ActiveRecord::Migration[4.2]; end
3
- else
4
- class CreateSeoMeta < ActiveRecord::Migration; end
5
- end
6
-
7
- CreateSeoMeta.class_eval do
1
+ class CreateSeoMeta < ActiveRecord::Migration[4.2]
8
2
  def self.up
9
3
  create_table :seo_meta do |t|
10
4
  t.integer :seo_meta_id
@@ -1,10 +1,4 @@
1
- if Gem.loaded_specs["activerecord"].version >= Gem::Version.new('5.0')
2
- class RemoveMetaKeywordsFromSeoMeta < ActiveRecord::Migration[4.2]; end
3
- else
4
- class RemoveMetaKeywordsFromSeoMeta < ActiveRecord::Migration; end
5
- end
6
-
7
- RemoveMetaKeywordsFromSeoMeta.class_eval do
1
+ class RemoveMetaKeywordsFromSeoMeta < ActiveRecord::Migration[4.2]
8
2
  def up
9
3
  remove_column :seo_meta, :meta_keywords
10
4
  end
@@ -12,7 +12,7 @@ module SeoMeta
12
12
  end
13
13
 
14
14
  class Engine < ::Rails::Engine
15
- engine_name 'seo_meta' if Rails.version.to_s >= '3.1.0'
15
+ engine_name 'seo_meta'
16
16
  end
17
17
 
18
18
  autoload :InstanceMethods, File.expand_path('../seo_meta/instance_methods', __FILE__)
@@ -27,15 +27,11 @@ def is_seo_meta(options = {})
27
27
  :dependent => :destroy
28
28
  }.merge(options.slice(:class_name, :foreign_key, :dependent))
29
29
 
30
- if ActiveRecord::VERSION::STRING >= '4.0.0'
31
- has_one :seo_meta, proc { where(:seo_meta_type => self.name) }, has_one_options
32
- else
33
- has_one :seo_meta, {:conditions => {:seo_meta_type => self.name}}.merge(has_one_options)
34
- end
30
+ has_one :seo_meta, proc { where(:seo_meta_type => self.name) }, has_one_options
35
31
 
36
32
  # Let SeoMetum know about the base
37
33
  ::SeoMetum.send :belongs_to, self.name.underscore.gsub('/', '_').to_sym,
38
- :class_name => self.name
34
+ class_name: self.name, optional: true
39
35
 
40
36
  # Include the instance methods.
41
37
  self.send :include, ::SeoMeta::InstanceMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seo_meta
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Arndt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-25 00:00:00.000000000 Z
11
+ date: 2017-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: combustion
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 3.0.0
61
+ version: 5.0.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 3.0.0
68
+ version: 5.0.0
69
69
  description: SEO Meta tags plugin for Ruby on Rails
70
70
  email: p@arndt.io
71
71
  executables: []