page_meta 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 39477b28d80eb8403856db1fbf4fad45982a7730
4
+ data.tar.gz: c004ff35cef73670649adffa79d43e0b7caf0aeb
5
+ SHA512:
6
+ metadata.gz: f5f5cbf3a662a13e700841e67400efab22b5364f3149841f2ce9bd290de26d49e243621e67f93f914ed3e2b2f64b68cf2ae594f0e8d585e83248d6e13669936f
7
+ data.tar.gz: 429b6e8cd900ea322fc58bfda933b586918e4b06d2846f2c04cd922e5bebd2c755e0694f09daa1d3ab7ea44c77776a30bf825c1e9e85dbfb98a677cf297f863d
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ /log
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ cache: bundler
3
+ sudo: false
4
+ rvm:
5
+ - 2.2.3
6
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in page_meta.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Nando Vieira
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,176 @@
1
+ # PageMeta
2
+
3
+ [![Build Status](https://travis-ci.org/fnando/page_meta.svg?branch=master)](https://travis-ci.org/fnando/page_meta)
4
+
5
+ Easily define `<meta>` and `<link>` tags. I18n support for descriptions, keywords and titles.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem "page_meta"
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install page_meta
22
+
23
+ ## Usage
24
+
25
+ Your controller and views have an object called `page_meta`. You can use it to define meta tags and links. By default, it will include the encoding and language meta tags.
26
+
27
+ ```html
28
+ <meta charset="utf-8">
29
+ <meta name="language" content="en">
30
+ <meta itemprop="language" content="en">
31
+ ```
32
+
33
+ You can use I18n to define titles, descriptions and keywords. These values will be inferred from the controller and action names. For an action `SiteController#index` you'll need the following translation scope:
34
+
35
+ ```yaml
36
+ page_meta:
37
+ titles:
38
+ base: "%{value} • MyApp"
39
+ site:
40
+ index: "Welcome to MyApp"
41
+ ```
42
+
43
+ Sometimes you need to render some dynamic value. In this case, you can use the I18n placeholders.
44
+
45
+ ```yaml
46
+ en:
47
+ titles:
48
+ base: "%{title} • MyCompany"
49
+ workshops:
50
+ show: "%{name}"
51
+ ```
52
+
53
+ You can then set dynamic values using the `PageMeta::Base#[]=`.
54
+
55
+ ```ruby
56
+ class WorkshopsController < ApplicationController
57
+ def show
58
+ @workshop = Workshop.find_by_permalink!(params[:permalink])
59
+ page_meta[:name] = @workshop.name
60
+ end
61
+ end
62
+ ```
63
+
64
+ Some actions are aliased, so you don't have to duplicate the translations:
65
+
66
+ * Action `create` points to `new`
67
+ * Action `update` points to `edit`
68
+ * Action `destroy` points to `remove`
69
+
70
+ The same concept is applied to descriptions and keywords.
71
+
72
+ ```yaml
73
+ en:
74
+ page_meta:
75
+ descriptions:
76
+ site:
77
+ home: MyApp is the best way of doing something.
78
+
79
+ keywords:
80
+ site:
81
+ home: "myapp, thing, other thing"
82
+ ```
83
+
84
+ ### Defining meta tags
85
+
86
+ To define other meta tags, you have to use `PageMeta::Base#tag` like the following:
87
+
88
+ ```ruby
89
+ class Workshops Controller < ApplicationController
90
+ def show
91
+ @workshop = Workshop.find_by_permalink(params[:permalink])
92
+ page_meta.tag :description, @workshop.description
93
+ page_meta.tag :keywords, @workshop.tags
94
+ end
95
+ end
96
+ ```
97
+
98
+ You can define default meta/link tags in a `before_action`:
99
+
100
+ ```ruby
101
+ class ApplicationController < ActionController::Base
102
+ before_action :set_default_meta
103
+
104
+ private
105
+
106
+ def set_default_meta
107
+ page_meta.tag :dns_prefetch_control, "http://example.com"
108
+ page_meta.tag :robots, "index, follow"
109
+ page_meta.tag :copyright, "Example Inc."
110
+ end
111
+ end
112
+ ```
113
+
114
+ Finally, you can define meta tags for Facebook and Twitter:
115
+
116
+ ```ruby
117
+ # Meta tags for Facebook
118
+ page_meta.tag :og, {
119
+ image: asset_url("fb.png"),
120
+ image_type: "image/png",
121
+ image_width: 800,
122
+ image_height: 600,
123
+ description: @workshop.description,
124
+ title: @workshop.name,
125
+ url: workshop_url(@workshop)
126
+ }
127
+
128
+ # Meta tags for Twitter
129
+ page_meta.tag :twitter, {
130
+ card: "summary_large_image",
131
+ title: @workshop.name,
132
+ description: @workshop.description,
133
+ site: "@howto",
134
+ creator: "@fnando",
135
+ image: asset_url(@workshop.cover_image)
136
+ }
137
+ ```
138
+
139
+ ### Defining link tags
140
+
141
+ To define link tags, you have to use `PageMeta::Base#link` like the following:
142
+
143
+ ```ruby
144
+ page_meta.link :canonical, href: article_url(article)
145
+ page_meta.link :last, href: article_url(articles.last)
146
+ page_meta.link :first, href: article_url(articles.first)
147
+ ```
148
+
149
+ The hash can be any of the link tag's attributes. The following example defines the Safari 9 Pinned Tab icon:
150
+
151
+ ```ruby
152
+ page_meta.link :mask_icon, color: "#4078c0", href: asset_url("mask_icon.svg")
153
+ ```
154
+
155
+ ### Rendering the elements
156
+
157
+ To render all tags, just do something like this:
158
+
159
+ ```erb
160
+ <%= page_meta %>
161
+ ```
162
+
163
+ ## Development
164
+
165
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
166
+
167
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
168
+
169
+ ## Contributing
170
+
171
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/page_meta. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
172
+
173
+
174
+ ## License
175
+
176
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "page_meta"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
data/lib/page_meta.rb ADDED
@@ -0,0 +1,20 @@
1
+ module PageMeta
2
+ require "i18n"
3
+ require "rails/railtie"
4
+
5
+ require "page_meta/version"
6
+ require "page_meta/base"
7
+ require "page_meta/meta_tag"
8
+ require "page_meta/meta_tag/charset"
9
+ require "page_meta/meta_tag/dns_prefetch_control"
10
+ require "page_meta/meta_tag/title"
11
+ require "page_meta/meta_tag/language"
12
+ require "page_meta/meta_tag/og"
13
+ require "page_meta/meta_tag/twitter"
14
+ require "page_meta/link"
15
+ require "page_meta/helpers"
16
+ require "page_meta/action"
17
+ require "page_meta/naming"
18
+ require "page_meta/translator"
19
+ require "page_meta/railtie"
20
+ end
@@ -0,0 +1,17 @@
1
+ module PageMeta
2
+ class Action
3
+ ALIASES = {
4
+ "update" => "edit",
5
+ "create" => "new",
6
+ "destroy" => "remove"
7
+ }
8
+
9
+ def initialize(action)
10
+ @action = action
11
+ end
12
+
13
+ def to_s
14
+ ALIASES[@action] || @action
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,72 @@
1
+ module PageMeta
2
+ class Base
3
+ attr_reader :controller, :store
4
+
5
+ delegate :[], :[]=, to: :store
6
+
7
+ def initialize(controller)
8
+ @controller = controller
9
+ @store = {}
10
+ end
11
+
12
+ def meta_tags
13
+ @meta_tags ||= {}
14
+ end
15
+
16
+ def links
17
+ @links ||= {}
18
+ end
19
+
20
+ def tag(name, value)
21
+ meta_tags[name] = value
22
+ end
23
+
24
+ def link(name, value)
25
+ links[name] = value
26
+ end
27
+
28
+ def title
29
+ @title ||= Translator.new(:titles, naming, store)
30
+ end
31
+
32
+ def description
33
+ @description ||= Translator.new(:descriptions, naming, store)
34
+ end
35
+
36
+ def keywords
37
+ @keywords ||= Translator.new(:keywords, naming, store)
38
+ end
39
+
40
+ def render
41
+ compute_default_meta_tags
42
+ render_meta_tags + render_links
43
+ end
44
+ alias_method :to_s, :render
45
+
46
+ def naming
47
+ @naming ||= Naming.new(controller)
48
+ end
49
+
50
+ def render_meta_tags
51
+ meta_tags
52
+ .map {|name, value| MetaTag.build(name, value).render }
53
+ .join("")
54
+ .html_safe
55
+ end
56
+
57
+ def render_links
58
+ links
59
+ .map {|rel, options| Link.build(rel, options).render }
60
+ .join("")
61
+ .html_safe
62
+ end
63
+
64
+ def compute_default_meta_tags
65
+ tag(:language, I18n.locale)
66
+ tag(:charset, Rails.configuration.encoding)
67
+ tag(:title, title.to_s) unless title.to_s.empty?
68
+ tag(:keywords, keywords.to_s) unless keywords.to_s.empty?
69
+ tag(:description, description.to_s) unless description.to_s.empty?
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,7 @@
1
+ module PageMeta
2
+ module Helpers
3
+ def page_meta
4
+ @page_meta ||= PageMeta::Base.new(self)
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,24 @@
1
+ module PageMeta
2
+ class Link
3
+ def self.build(rel, options)
4
+ klass_name = "::PageMeta::Link::#{rel.to_s.camelize}"
5
+ klass = const_get(klass_name) rescue Link
6
+ klass.new(rel, options)
7
+ end
8
+
9
+ attr_reader :rel, :options
10
+
11
+ def initialize(rel, options)
12
+ @rel = rel.to_s.dasherize
13
+ @options = options
14
+ end
15
+
16
+ def render
17
+ helpers.tag(:link, options.merge(rel: rel)) unless options.empty?
18
+ end
19
+
20
+ def helpers
21
+ ActionController::Base.helpers
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,51 @@
1
+ module PageMeta
2
+ class MetaTag
3
+ attr_reader :name, :content
4
+
5
+ def self.build(name, content)
6
+ klass_name = "::PageMeta::MetaTag::#{name.to_s.camelize}"
7
+ klass = const_get(klass_name) rescue MetaTag
8
+ klass.new(name, content)
9
+ end
10
+
11
+ def initialize(name, content)
12
+ @name = name.to_s.dasherize
13
+ @content = content
14
+ end
15
+
16
+ def render
17
+ helpers.tag(:meta, name: name, content: content) unless content.empty?
18
+ end
19
+
20
+ def helpers
21
+ ActionController::Base.helpers
22
+ end
23
+
24
+ class MultipleMetaTag < MetaTag
25
+ def render
26
+ return if content.empty?
27
+
28
+ helpers.tag(:meta, name: name, content: content) +
29
+ helpers.tag(:meta, itemprop: name, content: content)
30
+ end
31
+ end
32
+
33
+ class HttpEquiv < MetaTag
34
+ def render
35
+ return if content.empty?
36
+
37
+ helpers.tag(:meta, "http-equiv" => name, content: content)
38
+ end
39
+ end
40
+
41
+ class Description < MultipleMetaTag; end
42
+ class Author < MultipleMetaTag; end
43
+ class Keywords < MultipleMetaTag; end
44
+
45
+ class Pragma < HttpEquiv; end
46
+ class CacheControl < HttpEquiv; end
47
+ class Imagetoolbar < HttpEquiv; end
48
+ class Expires < HttpEquiv; end
49
+ class Refresh < HttpEquiv; end
50
+ end
51
+ end
@@ -0,0 +1,11 @@
1
+ module PageMeta
2
+ class MetaTag
3
+ class Charset < MetaTag
4
+ def render
5
+ return if content.empty?
6
+
7
+ helpers.tag(:meta, charset: content)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ module PageMeta
2
+ class MetaTag
3
+ class DnsPrefetchControl < MetaTag
4
+ def render
5
+ helpers.tag(:meta, "http-equiv" => "x-dns-prefetch-control", content: "on") +
6
+ helpers.tag(:link, rel: "dns-prefetch", href: content)
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ module PageMeta
2
+ class MetaTag
3
+ class Language < MetaTag
4
+ def render
5
+ helpers.tag(:meta, name: name, content: content) +
6
+ helpers.tag(:meta, itemprop: name, content: content)
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,15 @@
1
+ module PageMeta
2
+ class MetaTag
3
+ class Og < MetaTag
4
+ def render
5
+ return if content.empty?
6
+
7
+ content.each_with_object("") do |(attr, value), buffer|
8
+ next if value.blank?
9
+ attr = attr.to_s.gsub(/_/, ":")
10
+ buffer << helpers.tag(:meta, property: "og:#{attr}", content: value)
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,11 @@
1
+ module PageMeta
2
+ class MetaTag
3
+ class Title < MetaTag
4
+ def render
5
+ helpers.content_tag(:title, content) +
6
+ helpers.tag(:meta, name: "DC.title", content: content) +
7
+ helpers.tag(:meta, itemprop: "name", content: content)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,15 @@
1
+ module PageMeta
2
+ class MetaTag
3
+ class Twitter < MetaTag
4
+ def render
5
+ return if content.empty?
6
+
7
+ content.each_with_object("") do |(attr, value), buffer|
8
+ next if value.blank?
9
+ attr = attr.to_s.gsub(/_/, ":")
10
+ buffer << helpers.tag(:meta, property: "twitter:#{attr}", content: value)
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,20 @@
1
+ module PageMeta
2
+ class Naming
3
+ def initialize(controller)
4
+ @_controller = controller
5
+ end
6
+
7
+ def action
8
+ (@action ||= Action.new(@_controller.action_name)).to_s
9
+ end
10
+
11
+ # Normalize the controller name.
12
+ # Converts `PagesController` into `pages` and
13
+ # `Admin::PagesController` into `admin.pages`.
14
+ def controller
15
+ @controller ||= @_controller.class.name.underscore
16
+ .gsub(/_controller/, "")
17
+ .gsub(%r[/], ".")
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,8 @@
1
+ module PageMeta
2
+ class Railtie < Rails::Railtie
3
+ initializer "page_meta" do
4
+ ActionController::Base.include Helpers
5
+ ActionController::Base.helper_method :page_meta
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,23 @@
1
+ module PageMeta
2
+ class Translator
3
+ attr_reader :scope, :naming, :options
4
+
5
+ def initialize(scope, naming, options = {})
6
+ @scope = scope
7
+ @naming = naming
8
+ @options = options
9
+ end
10
+
11
+ def to_s
12
+ return "" if simple.blank?
13
+ I18n.t("page_meta.#{scope}.base", value: simple, default: simple)
14
+ end
15
+
16
+ def simple
17
+ I18n.t(
18
+ "page_meta.#{scope}.#{naming.controller}.#{naming.action}",
19
+ options.merge(default: "")
20
+ )
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,3 @@
1
+ module PageMeta
2
+ VERSION = "0.1.0"
3
+ end
data/page_meta.gemspec ADDED
@@ -0,0 +1,28 @@
1
+ require "./lib/page_meta/version"
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "page_meta"
5
+ spec.version = PageMeta::VERSION
6
+ spec.authors = ["Nando Vieira"]
7
+ spec.email = ["fnando.vieira@gmail.com"]
8
+
9
+ spec.summary = "Easily define <meta> and <link> tags. I18n support for descriptions, keywords and titles."
10
+ spec.description = spec.summary
11
+ spec.homepage = "https://github.com/fnando/page_meta"
12
+ spec.license = "MIT"
13
+
14
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
15
+ spec.bindir = "exe"
16
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
17
+ spec.require_paths = ["lib"]
18
+
19
+ spec.add_dependency "rails"
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.10"
22
+ spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency "minitest"
24
+ spec.add_development_dependency "minitest-utils"
25
+ spec.add_development_dependency "minitest-autotest"
26
+ spec.add_development_dependency "test_notifier"
27
+ spec.add_development_dependency "pry-meta"
28
+ end
metadata ADDED
@@ -0,0 +1,184 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: page_meta
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Nando Vieira
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-10-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-utils
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-autotest
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: test_notifier
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry-meta
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: Easily define <meta> and <link> tags. I18n support for descriptions,
126
+ keywords and titles.
127
+ email:
128
+ - fnando.vieira@gmail.com
129
+ executables: []
130
+ extensions: []
131
+ extra_rdoc_files: []
132
+ files:
133
+ - ".gitignore"
134
+ - ".travis.yml"
135
+ - CODE_OF_CONDUCT.md
136
+ - Gemfile
137
+ - LICENSE.txt
138
+ - README.md
139
+ - Rakefile
140
+ - bin/console
141
+ - bin/setup
142
+ - lib/page_meta.rb
143
+ - lib/page_meta/action.rb
144
+ - lib/page_meta/base.rb
145
+ - lib/page_meta/helpers.rb
146
+ - lib/page_meta/link.rb
147
+ - lib/page_meta/meta_tag.rb
148
+ - lib/page_meta/meta_tag/charset.rb
149
+ - lib/page_meta/meta_tag/dns_prefetch_control.rb
150
+ - lib/page_meta/meta_tag/language.rb
151
+ - lib/page_meta/meta_tag/og.rb
152
+ - lib/page_meta/meta_tag/title.rb
153
+ - lib/page_meta/meta_tag/twitter.rb
154
+ - lib/page_meta/naming.rb
155
+ - lib/page_meta/railtie.rb
156
+ - lib/page_meta/translator.rb
157
+ - lib/page_meta/version.rb
158
+ - page_meta.gemspec
159
+ homepage: https://github.com/fnando/page_meta
160
+ licenses:
161
+ - MIT
162
+ metadata: {}
163
+ post_install_message:
164
+ rdoc_options: []
165
+ require_paths:
166
+ - lib
167
+ required_ruby_version: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - ">="
170
+ - !ruby/object:Gem::Version
171
+ version: '0'
172
+ required_rubygems_version: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
177
+ requirements: []
178
+ rubyforge_project:
179
+ rubygems_version: 2.4.5.1
180
+ signing_key:
181
+ specification_version: 4
182
+ summary: Easily define <meta> and <link> tags. I18n support for descriptions, keywords
183
+ and titles.
184
+ test_files: []