easymeta 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/easymeta.rb +18 -0
- metadata +43 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: cace63a17f6de852febcd7fd59758bbf887b3882d8546ed46e1bd788a7ded5d4
|
|
4
|
+
data.tar.gz: 027d01585a21c77bc49b2d67dd0679d92eab0d62dcd65c0092a62a2a61e1d3ce
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 5a5761a7dcf7ead8eb1f5f3e9cc6bafe87d09b9b57ec9061a6481044e1c73210a3bde30fe11efd01a16db76e3eb3e92ff8361db0a9e8c54d1c701f4a3069c7fc
|
|
7
|
+
data.tar.gz: 5cd5814f145cac0e05df7af38d7c742425776afae549f20580da73bfc81b86bb33735593e45e51100fed977562d58c48657b83a1b26be1e895211d23c0cb184e
|
data/lib/easymeta.rb
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module EasyMeta
|
|
2
|
+
|
|
3
|
+
begin
|
|
4
|
+
META_TAGS = YAML.load_file(File.join(Dir.pwd, "config/meta.yml"))
|
|
5
|
+
rescue => e
|
|
6
|
+
warn("Failed loading EasyMeta - config/meta.yml file must be present")
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def meta_tags
|
|
10
|
+
tags = String.new
|
|
11
|
+
META_TAGS.each do |meta|
|
|
12
|
+
tags << "<meta name='#{meta[0]}' content='#{meta[1]}' />"
|
|
13
|
+
end
|
|
14
|
+
return tags.html_safe
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
ActionView::Base.send :include, EasyMeta
|
metadata
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: easymeta
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Thomas Malh
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2020-08-23 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: An easy to use helper for html meta tags
|
|
14
|
+
email: thomas.malh@gmail.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/easymeta.rb
|
|
20
|
+
homepage: https://rubygems.org/gems/easymeta
|
|
21
|
+
licenses:
|
|
22
|
+
- MIT
|
|
23
|
+
metadata: {}
|
|
24
|
+
post_install_message:
|
|
25
|
+
rdoc_options: []
|
|
26
|
+
require_paths:
|
|
27
|
+
- lib
|
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ">="
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
requirements: []
|
|
39
|
+
rubygems_version: 3.1.2
|
|
40
|
+
signing_key:
|
|
41
|
+
specification_version: 4
|
|
42
|
+
summary: EasyMeta
|
|
43
|
+
test_files: []
|