seo_meta 1.2.0.rc3 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/seo_meta.rb +11 -9
  2. metadata +85 -51
data/lib/seo_meta.rb CHANGED
@@ -21,7 +21,7 @@ module SeoMeta
21
21
  end
22
22
 
23
23
  def is_seo_meta(options = {})
24
- if ::SeoMetum.table_exists?
24
+ if included_modules.exclude?(::SeoMeta::InstanceMethods)
25
25
  # Let the base know about SeoMetum
26
26
  has_one :seo_meta, :class_name => 'SeoMetum',
27
27
  :foreign_key => :seo_meta_id, :dependent => :destroy,
@@ -36,13 +36,15 @@ def is_seo_meta(options = {})
36
36
 
37
37
  # Ensure that seo_meta is saved after the model is saved.
38
38
  after_save :save_meta_tags!
39
+ end
39
40
 
40
- # Delegate both the accessor and setters for the fields to :seo_meta
41
- fields = ::SeoMeta.attributes.keys.reject{|field|
42
- self.column_names.map(&:to_sym).include?(field)
43
- }.map{|a| [a, :"#{a}="]}.flatten
44
- fields << {:to => :seo_meta}
41
+ # Delegate both the accessor and setters for the fields to :seo_meta
42
+ fields = ::SeoMeta.attributes.keys
43
+ fields = fields.reject{|field|
44
+ self.column_names.map(&:to_sym).include?(field)
45
+ } if self.table_exists?
46
+ fields = fields.map{|a| [a, :"#{a}="]}.flatten
45
47
 
46
- delegate *fields
47
- end
48
- end
48
+ fields << {:to => :seo_meta}
49
+ delegate *fields
50
+ end
metadata CHANGED
@@ -1,66 +1,89 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: seo_meta
3
- version: !ruby/object:Gem::Version
4
- version: 1.2.0.rc3
5
- prerelease: 6
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 2
9
+ - 0
10
+ version: 1.2.0
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Philip Arndt
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-01-18 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-01-18 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: combustion
16
- requirement: &70185841153400 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
22
32
  type: :development
23
- prerelease: false
24
- version_requirements: *70185841153400
25
- - !ruby/object:Gem::Dependency
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
26
35
  name: rspec-rails
27
- requirement: &70185841152820 !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
28
38
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
33
46
  type: :development
34
- prerelease: false
35
- version_requirements: *70185841152820
36
- - !ruby/object:Gem::Dependency
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
37
49
  name: sqlite3
38
- requirement: &70185841152280 !ruby/object:Gem::Requirement
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
39
52
  none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ version: "0"
44
60
  type: :development
45
- prerelease: false
46
- version_requirements: *70185841152280
47
- - !ruby/object:Gem::Dependency
61
+ version_requirements: *id003
62
+ - !ruby/object:Gem::Dependency
48
63
  name: railties
49
- requirement: &70185841151500 !ruby/object:Gem::Requirement
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
50
66
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ hash: 7
71
+ segments:
72
+ - 3
73
+ - 0
74
+ - 0
54
75
  version: 3.0.0
55
76
  type: :runtime
56
- prerelease: false
57
- version_requirements: *70185841151500
77
+ version_requirements: *id004
58
78
  description: SEO Meta tags plugin for Ruby on Rails
59
79
  email: parndt@gmail.com
60
80
  executables: []
81
+
61
82
  extensions: []
83
+
62
84
  extra_rdoc_files: []
63
- files:
85
+
86
+ files:
64
87
  - lib/generators/seo_meta_generator.rb
65
88
  - lib/seo_meta/instance_methods.rb
66
89
  - lib/seo_meta.rb
@@ -97,26 +120,37 @@ files:
97
120
  - readme.md
98
121
  homepage: http://philiparndt.name
99
122
  licenses: []
123
+
100
124
  post_install_message:
101
125
  rdoc_options: []
102
- require_paths:
126
+
127
+ require_paths:
103
128
  - lib
104
- required_ruby_version: !ruby/object:Gem::Requirement
129
+ required_ruby_version: !ruby/object:Gem::Requirement
105
130
  none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- required_rubygems_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ hash: 3
135
+ segments:
136
+ - 0
137
+ version: "0"
138
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
139
  none: false
112
- requirements:
113
- - - ! '>'
114
- - !ruby/object:Gem::Version
115
- version: 1.3.1
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ hash: 3
144
+ segments:
145
+ - 0
146
+ version: "0"
116
147
  requirements: []
148
+
117
149
  rubyforge_project:
118
- rubygems_version: 1.8.10
150
+ rubygems_version: 1.8.17
119
151
  signing_key:
120
152
  specification_version: 3
121
153
  summary: SEO Meta tags plugin
122
154
  test_files: []
155
+
156
+ has_rdoc: