seo_meta 2.0.0 → 2.0.1

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: 28d58049c74f97dbf989d79c750f39eb0c545af3
4
- data.tar.gz: bfcc6314cd4905c5b97118a334e7517209a9c609
3
+ metadata.gz: 44b8189812f726831ece128700ef563ca19f6621
4
+ data.tar.gz: c8944cc6e9fe2be4582a71091330987919b7ca55
5
5
  SHA512:
6
- metadata.gz: 324f464187e564f909d3820916ddd39a14533c03eee7fd7a1f19c1905c63a1abe71384fe6100278ca7f56789b3b964916590706f109d395b92f58943a9b48455
7
- data.tar.gz: ce638e4d1886973896d3d44656b36767abdd1aeb8eda0857767f3b6649b19dc69f559bb599aed8ef773c7bdd4f09a4d8acceb253d3719be7a04fcc9b659fd7e3
6
+ metadata.gz: d6c82f6e1fcb4b309205e985eaff59482453fb5a9db1361c63e0fc1dc6f0ad3e965fdde8975fc0114c79da093576481f615ab87cbed63b848db7ec6d24e9b429
7
+ data.tar.gz: 18f0c058aace1d153c3daf93e1ce90d757071d7f009413770c35526b7a4c25135660240c1e08399018728359a8bb63cb7e5a6118dbff5a9318928e23a793c3e6
@@ -1,5 +1,10 @@
1
- class CreateSeoMeta < ActiveRecord::Migration
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
2
6
 
7
+ CreateSeoMeta.class_eval do
3
8
  def self.up
4
9
  create_table :seo_meta do |t|
5
10
  t.integer :seo_meta_id
@@ -1,4 +1,10 @@
1
- class RemoveMetaKeywordsFromSeoMeta < ActiveRecord::Migration
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
2
8
  def up
3
9
  remove_column :seo_meta, :meta_keywords
4
10
  end
@@ -10,19 +10,16 @@ module SeoMeta
10
10
  end
11
11
 
12
12
  # Allow attributes supplied to override the current seo_meta_attributes.
13
- def attributes_with_seo_meta
14
- seo_meta_attributes.merge(attributes_without_seo_meta)
13
+ def attributes
14
+ seo_meta_attributes.merge(super)
15
15
  end
16
16
 
17
- alias_method_chain :attributes, :seo_meta
18
-
19
- def attributes_equals_with_seo_meta(attributes, *args)
17
+ def attributes_equals(attributes, *args)
20
18
  seo_meta_attributes.merge(attributes)
21
- attributes_equals_without_seo_meta
19
+ super
22
20
  end
23
21
 
24
22
  alias_method :attributes_equals, :attributes=
25
- alias_method_chain :attributes_equals, :seo_meta
26
23
  end
27
24
  end
28
25
  end
@@ -48,4 +45,4 @@ module SeoMeta
48
45
  seo_meta.save
49
46
  end
50
47
  end
51
- end
48
+ end
data/readme.md CHANGED
@@ -36,7 +36,7 @@ logic to migrate across your existing data and remove the columns from your mode
36
36
  afterward, for example with `Page`:
37
37
 
38
38
  ```ruby
39
- class CreateSeoMeta < ActiveRecord::Migration
39
+ class CreateSeoMeta < ActiveRecord::Migration[4.2]
40
40
 
41
41
  def self.up
42
42
  # ... migration logic from the seo_meta generator ...
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.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Arndt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-10 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: combustion
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.5.2
130
+ rubygems_version: 2.6.11
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: SEO Meta tags plugin