seo_meta 1.2.0.rc2 → 1.2.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,5 @@
1
- require 'refinerycms-generators'
2
- require 'refinery/generators'
3
-
4
- class SeoMetaGenerator < ::Refinery::Generators::EngineInstaller
5
-
6
- source_root File.expand_path('../../../', __FILE__)
7
- engine_name "seo_meta"
8
-
1
+ class SeoMetaGenerator < Rails::Generators::Base
2
+ def rake_db
3
+ rake("refinery_seo_meta:install:migrations")
4
+ end
9
5
  end
data/lib/seo_meta.rb CHANGED
@@ -16,7 +16,6 @@ module SeoMeta
16
16
 
17
17
  end
18
18
 
19
- autoload :ClassMethods, File.expand_path('../seo_meta/class_methods', __FILE__)
20
19
  autoload :InstanceMethods, File.expand_path('../seo_meta/instance_methods', __FILE__)
21
20
 
22
21
  end
@@ -32,9 +31,8 @@ def is_seo_meta(options = {})
32
31
  ::SeoMetum.send :belongs_to, self.name.underscore.gsub('/', '_').to_sym,
33
32
  :class_name => self.name
34
33
 
35
- # Include the instance methods and extend with the class methods.
34
+ # Include the instance methods.
36
35
  self.send :include, ::SeoMeta::InstanceMethods
37
- extend ::SeoMeta::ClassMethods
38
36
 
39
37
  # Ensure that seo_meta is saved after the model is saved.
40
38
  after_save :save_meta_tags!
@@ -46,8 +44,5 @@ def is_seo_meta(options = {})
46
44
  fields << {:to => :seo_meta}
47
45
 
48
46
  delegate *fields
49
- else
50
- warn "[seo_meta] Table does not exist, please create #{::SeoMetum.table_name}."
51
- warn "[seo_meta] See https://github.com/parndt/seo_meta#readme for instructions."
52
47
  end
53
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seo_meta
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.rc2
4
+ version: 1.2.0.rc3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-10 00:00:00.000000000Z
12
+ date: 2012-01-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: combustion
16
- requirement: &70343784779160 !ruby/object:Gem::Requirement
16
+ requirement: &70185841153400 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70343784779160
24
+ version_requirements: *70185841153400
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec-rails
27
- requirement: &70343784778400 !ruby/object:Gem::Requirement
27
+ requirement: &70185841152820 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70343784778400
35
+ version_requirements: *70185841152820
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sqlite3
38
- requirement: &70343784777720 !ruby/object:Gem::Requirement
38
+ requirement: &70185841152280 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70343784777720
46
+ version_requirements: *70185841152280
47
47
  - !ruby/object:Gem::Dependency
48
- name: rails
49
- requirement: &70343784776780 !ruby/object:Gem::Requirement
48
+ name: railties
49
+ requirement: &70185841151500 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 3.0.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70343784776780
57
+ version_requirements: *70185841151500
58
58
  description: SEO Meta tags plugin for Ruby on Rails
59
59
  email: parndt@gmail.com
60
60
  executables: []
@@ -62,7 +62,6 @@ extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
64
  - lib/generators/seo_meta_generator.rb
65
- - lib/seo_meta/class_methods.rb
66
65
  - lib/seo_meta/instance_methods.rb
67
66
  - lib/seo_meta.rb
68
67
  - lib/tasks/seo_meta.rake
@@ -1,5 +0,0 @@
1
- module SeoMeta
2
- module ClassMethods
3
-
4
- end
5
- end