tarteaucitron 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/tarteaucitron/version.rb +1 -1
- data/lib/tarteaucitron/view_helpers.rb +5 -0
- data/tarteaucitron.gemspec +0 -4
- metadata +16 -24
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 73bfbf07f9ae85fac9fed598128cc529362b539e
|
4
|
+
data.tar.gz: d4a08ee24900b4ef44686875249861c016c36d44
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d8b9178b35475b432e0c41bc3d9426efff7615e5eff512c9431dcf0eb4e09068fe13e9547c9df823c0691d67c24ab7f4cf719e55185e508903babe93d2334c12
|
7
|
+
data.tar.gz: 682d8183794f7e40f195b7474caa72414a5566242d290a887a9b52416e77cdb05ec4b93ad3cc5b0960715fa504d7291f39c79d24b63fb4c38d600309df44d75e
|
@@ -42,6 +42,11 @@ module Tarteaucitron
|
|
42
42
|
script += "(tarteaucitron.job = tarteaucitron.job || []).push('twitter');"
|
43
43
|
end
|
44
44
|
|
45
|
+
if options["typekit"]
|
46
|
+
script += "tarteaucitron.user.typekitId = '#{options["typekit"]}';"
|
47
|
+
script += "(tarteaucitron.job = tarteaucitron.job || []).push('typekit');"
|
48
|
+
end
|
49
|
+
|
45
50
|
result += content_tag("script", script.html_safe)
|
46
51
|
|
47
52
|
result.html_safe
|
data/tarteaucitron.gemspec
CHANGED
@@ -19,10 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
if spec.respond_to?(:metadata)
|
23
|
-
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
|
24
|
-
end
|
25
|
-
|
26
22
|
spec.add_dependency "geoip"
|
27
23
|
|
28
24
|
spec.add_development_dependency "bundler", "~> 1.9"
|
metadata
CHANGED
@@ -1,73 +1,66 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tarteaucitron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ouvrages
|
9
8
|
autorequire:
|
10
9
|
bindir: exe
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2017-01-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: geoip
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: bundler
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '1.9'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '1.9'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '10.0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '10.0'
|
62
|
-
description:
|
63
|
-
|
55
|
+
description: 'A gem to install tarteaucitron, GeoIP and provide helpers to show social
|
56
|
+
network buttons. '
|
64
57
|
email:
|
65
58
|
- contact@ouvrages-web.fr
|
66
59
|
executables: []
|
67
60
|
extensions: []
|
68
61
|
extra_rdoc_files: []
|
69
62
|
files:
|
70
|
-
- .gitignore
|
63
|
+
- ".gitignore"
|
71
64
|
- CODE_OF_CONDUCT.md
|
72
65
|
- Gemfile
|
73
66
|
- LICENSE.txt
|
@@ -85,27 +78,26 @@ files:
|
|
85
78
|
homepage: https://github.com/ouvrages/tarteaucitron
|
86
79
|
licenses:
|
87
80
|
- MIT
|
81
|
+
metadata: {}
|
88
82
|
post_install_message:
|
89
83
|
rdoc_options: []
|
90
84
|
require_paths:
|
91
85
|
- lib
|
92
86
|
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
-
none: false
|
94
87
|
requirements:
|
95
|
-
- -
|
88
|
+
- - ">="
|
96
89
|
- !ruby/object:Gem::Version
|
97
90
|
version: '0'
|
98
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
92
|
requirements:
|
101
|
-
- -
|
93
|
+
- - ">="
|
102
94
|
- !ruby/object:Gem::Version
|
103
95
|
version: '0'
|
104
96
|
requirements: []
|
105
97
|
rubyforge_project:
|
106
|
-
rubygems_version:
|
98
|
+
rubygems_version: 2.4.5.1
|
107
99
|
signing_key:
|
108
|
-
specification_version:
|
100
|
+
specification_version: 4
|
109
101
|
summary: A gem to install tarteaucitron, GeoIP and provide helpers to show social
|
110
102
|
network buttons.
|
111
103
|
test_files: []
|