rails_meta_tags 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -6,8 +6,8 @@ gem "activesupport", "~> 3.2"
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
  group :development do
9
- gem "rspec", "~> 2.12.0"
10
- gem "bundler", "~> 1.2.2"
9
+ gem "rspec", "~> 2.13.0"
10
+ gem "bundler", "~> 1.3.4"
11
11
  gem "jeweler", "~> 1.8.4"
12
12
  gem "simplecov", ">= 0"
13
13
  end
@@ -1,10 +1,10 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activesupport (3.2.9)
5
- i18n (~> 0.6)
4
+ activesupport (3.2.13)
5
+ i18n (= 0.6.1)
6
6
  multi_json (~> 1.0)
7
- diff-lcs (1.1.3)
7
+ diff-lcs (1.2.1)
8
8
  git (1.2.5)
9
9
  i18n (0.6.1)
10
10
  jeweler (1.8.4)
@@ -12,19 +12,19 @@ GEM
12
12
  git (>= 1.2.5)
13
13
  rake
14
14
  rdoc
15
- json (1.7.5)
16
- multi_json (1.3.7)
17
- rake (10.0.2)
18
- rdoc (3.12)
15
+ json (1.7.7)
16
+ multi_json (1.7.1)
17
+ rake (10.0.3)
18
+ rdoc (4.0.0)
19
19
  json (~> 1.4)
20
- rspec (2.12.0)
21
- rspec-core (~> 2.12.0)
22
- rspec-expectations (~> 2.12.0)
23
- rspec-mocks (~> 2.12.0)
24
- rspec-core (2.12.0)
25
- rspec-expectations (2.12.0)
26
- diff-lcs (~> 1.1.3)
27
- rspec-mocks (2.12.0)
20
+ rspec (2.13.0)
21
+ rspec-core (~> 2.13.0)
22
+ rspec-expectations (~> 2.13.0)
23
+ rspec-mocks (~> 2.13.0)
24
+ rspec-core (2.13.1)
25
+ rspec-expectations (2.13.0)
26
+ diff-lcs (>= 1.1.3, < 2.0)
27
+ rspec-mocks (2.13.0)
28
28
  simplecov (0.7.1)
29
29
  multi_json (~> 1.0)
30
30
  simplecov-html (~> 0.7.1)
@@ -35,7 +35,7 @@ PLATFORMS
35
35
 
36
36
  DEPENDENCIES
37
37
  activesupport (~> 3.2)
38
- bundler (~> 1.2.2)
38
+ bundler (~> 1.3.4)
39
39
  jeweler (~> 1.8.4)
40
- rspec (~> 2.12.0)
40
+ rspec (~> 2.13.0)
41
41
  simplecov
@@ -0,0 +1,90 @@
1
+ # rails_meta_tags
2
+
3
+ [![Dependency Status](https://gemnasium.com/mateomurphy/rails_meta_tags.png)](https://gemnasium.com/mateomurphy/rails_meta_tags)
4
+
5
+ Easy meta tag generation for rails apps
6
+
7
+ ## Supported properties
8
+
9
+ * title
10
+ * type - og
11
+ * image - og
12
+ * url - og
13
+ * description - og
14
+ * audio - og
15
+ * determiner
16
+ * locale - og
17
+ * site_name
18
+ * video - og
19
+ * keywords
20
+ * robots
21
+ * creator - dc
22
+ * subject - dc
23
+ * publisher - dc
24
+ * created - dc
25
+ * identifier - dc
26
+ * language
27
+ * content_type
28
+
29
+ Properties marked "og" and "dc" will be mapped to their open graph and dublin core properties, respectively
30
+
31
+ ## Global config
32
+
33
+ Rails::MetaTags.config do |config|
34
+ config.defaults.site_name "Site name"
35
+ config.defaults.creator "Creator"
36
+ config.defaults.publisher "Publisher"
37
+ config.defaults.identifier :canonical_url
38
+ config.defaults.url :canonical_url
39
+ config.defaults.image :mutek_logo_url
40
+ config.defaults.description :default_description
41
+ end
42
+
43
+ Strings will be used as is, symbols will be called as instance methods on the current controller
44
+
45
+ ## Usage in controllers
46
+
47
+ class Admin::BaseController < ApplicationController
48
+ def set_title
49
+ meta.title = "#{controller_name.humanize} - #{action_name.humanize}"
50
+ meta.resource = resource if params[:id] && respond_to?(:resource)
51
+ end
52
+ end
53
+
54
+ Strings will be used as is, symbols will be called as instance methods on the current controller.
55
+
56
+ The `resource` property accepts a model that has a meta block declaration. The values defined there will over ride those set in the controller.
57
+
58
+ ## Usage in models
59
+
60
+ class Post < ActiveRecord::Base
61
+ meta do
62
+ type 'article'
63
+ title :title
64
+ description :subtitle
65
+ image :og_image
66
+ end
67
+ end
68
+
69
+ Strings will be used as is, symbols will be called as instance methods on the model.
70
+
71
+
72
+ ## Inspiration
73
+
74
+ https://github.com/kpumuk/meta-tags
75
+
76
+ ## Contributing to rails_meta_tags
77
+
78
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
79
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
80
+ * Fork the project
81
+ * Start a feature/bugfix branch
82
+ * Commit and push until you are happy with your contribution
83
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
84
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
85
+
86
+ ## Copyright
87
+
88
+ Copyright (c) 2011 Mateo Murphy. See LICENSE.txt for
89
+ further details.
90
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.8
1
+ 0.2.9
@@ -61,6 +61,7 @@ module Rails
61
61
  def render_tags
62
62
  tags = []
63
63
  tags << tag(:meta, :'http-equiv' => "Content-Type", :content => content_type)
64
+ tags << tag(:meta, :'http-equiv' => "Content-Language", :content => language)
64
65
  tags << content_tag(:title, full_title)
65
66
  tags << tag(:meta, :name => 'description', :content => description)
66
67
 
@@ -5,16 +5,16 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rails_meta_tags"
8
- s.version = "0.2.8"
8
+ s.version = "0.2.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mateo Murphy"]
12
- s.date = "2012-11-26"
12
+ s.date = "2013-03-19"
13
13
  s.description = "Easily manage your meta tags in rails projects"
14
14
  s.email = "mateo.murphy@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
- "README.rdoc"
17
+ "README.md"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  "Gemfile",
23
23
  "Gemfile.lock",
24
24
  "LICENSE.txt",
25
- "README.rdoc",
25
+ "README.md",
26
26
  "Rakefile",
27
27
  "VERSION",
28
28
  "lib/rails/meta_tags.rb",
@@ -44,7 +44,7 @@ Gem::Specification.new do |s|
44
44
  s.homepage = "http://github.com/mateomurphy/rails_meta_tags"
45
45
  s.licenses = ["MIT"]
46
46
  s.require_paths = ["lib"]
47
- s.rubygems_version = "1.8.24"
47
+ s.rubygems_version = "1.8.25"
48
48
  s.summary = "Metatag library for rails"
49
49
 
50
50
  if s.respond_to? :specification_version then
@@ -52,21 +52,21 @@ Gem::Specification.new do |s|
52
52
 
53
53
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
54
  s.add_runtime_dependency(%q<activesupport>, ["~> 3.2"])
55
- s.add_development_dependency(%q<rspec>, ["~> 2.12.0"])
56
- s.add_development_dependency(%q<bundler>, ["~> 1.2.2"])
55
+ s.add_development_dependency(%q<rspec>, ["~> 2.13.0"])
56
+ s.add_development_dependency(%q<bundler>, ["~> 1.3.4"])
57
57
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
58
58
  s.add_development_dependency(%q<simplecov>, [">= 0"])
59
59
  else
60
60
  s.add_dependency(%q<activesupport>, ["~> 3.2"])
61
- s.add_dependency(%q<rspec>, ["~> 2.12.0"])
62
- s.add_dependency(%q<bundler>, ["~> 1.2.2"])
61
+ s.add_dependency(%q<rspec>, ["~> 2.13.0"])
62
+ s.add_dependency(%q<bundler>, ["~> 1.3.4"])
63
63
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
64
64
  s.add_dependency(%q<simplecov>, [">= 0"])
65
65
  end
66
66
  else
67
67
  s.add_dependency(%q<activesupport>, ["~> 3.2"])
68
- s.add_dependency(%q<rspec>, ["~> 2.12.0"])
69
- s.add_dependency(%q<bundler>, ["~> 1.2.2"])
68
+ s.add_dependency(%q<rspec>, ["~> 2.13.0"])
69
+ s.add_dependency(%q<bundler>, ["~> 1.3.4"])
70
70
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
71
71
  s.add_dependency(%q<simplecov>, [">= 0"])
72
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_meta_tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-26 00:00:00.000000000 Z
12
+ date: 2013-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 2.12.0
37
+ version: 2.13.0
38
38
  type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 2.12.0
45
+ version: 2.13.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: bundler
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: 1.2.2
53
+ version: 1.3.4
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.2
61
+ version: 1.3.4
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: jeweler
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -97,14 +97,14 @@ executables: []
97
97
  extensions: []
98
98
  extra_rdoc_files:
99
99
  - LICENSE.txt
100
- - README.rdoc
100
+ - README.md
101
101
  files:
102
102
  - .document
103
103
  - .rspec
104
104
  - Gemfile
105
105
  - Gemfile.lock
106
106
  - LICENSE.txt
107
- - README.rdoc
107
+ - README.md
108
108
  - Rakefile
109
109
  - VERSION
110
110
  - lib/rails/meta_tags.rb
@@ -137,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  segments:
139
139
  - 0
140
- hash: 2890970730908774467
140
+ hash: 1189833049492688519
141
141
  required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  none: false
143
143
  requirements:
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 1.8.24
149
+ rubygems_version: 1.8.25
150
150
  signing_key:
151
151
  specification_version: 3
152
152
  summary: Metatag library for rails
@@ -1,25 +0,0 @@
1
- = rails_meta_tags
2
-
3
- {<img src="https://gemnasium.com/mateomurphy/rails_meta_tags.png" alt="Dependency Status" />}[https://gemnasium.com/mateomurphy/rails_meta_tags]
4
-
5
- Easy meta tag generation for rails apps
6
-
7
- == Inspiration
8
-
9
- https://github.com/kpumuk/meta-tags
10
-
11
- == Contributing to rails_meta_tags
12
-
13
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
14
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
15
- * Fork the project
16
- * Start a feature/bugfix branch
17
- * Commit and push until you are happy with your contribution
18
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
19
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
20
-
21
- == Copyright
22
-
23
- Copyright (c) 2011 Mateo Murphy. See LICENSE.txt for
24
- further details.
25
-