gravaty 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG +835 -0
- data/COPYING.md +675 -0
- data/Gemfile +21 -0
- data/ISSUES.md +62 -0
- data/README.md +287 -0
- data/Rakefile +52 -0
- data/acknowledgements.md +66 -0
- data/authors.md +63 -0
- data/copyright.md +468 -0
- data/examples/avatar.rb +159 -0
- data/examples/basics.rb +75 -0
- data/examples/cacert.pem +3401 -0
- data/examples/profile.rb +187 -0
- data/examples/xmlrpc.rb +41 -0
- data/gravaty.gemspec +78 -0
- data/gravaty.odp +0 -0
- data/gravaty.pdf +0 -0
- data/html/CHANGELOG.html +1117 -0
- data/html/COPYING_md.html +393 -0
- data/html/Gemfile.html +108 -0
- data/html/Gravaty/Gravaty.html +1002 -0
- data/html/Gravaty/ParsableDuckType.html +162 -0
- data/html/Gravaty/Parser.html +239 -0
- data/html/Gravaty/Parsers/Avatar.html +169 -0
- data/html/Gravaty/Parsers/Callback.html +170 -0
- data/html/Gravaty/Parsers/Default.html +178 -0
- data/html/Gravaty/Parsers/Force.html +170 -0
- data/html/Gravaty/Parsers/Format.html +181 -0
- data/html/Gravaty/Parsers/Pixelsize.html +181 -0
- data/html/Gravaty/Parsers/Rating.html +181 -0
- data/html/Gravaty/Parsers/Secure.html +169 -0
- data/html/Gravaty/Parsers/Type.html +181 -0
- data/html/Gravaty/Parsers.html +96 -0
- data/html/Gravaty/Utils/Downloader/Downloader.html +227 -0
- data/html/Gravaty/Utils/Downloader.html +108 -0
- data/html/Gravaty/Utils/Raisers.html +203 -0
- data/html/Gravaty/Utils/Rfc5322.html +139 -0
- data/html/Gravaty/Utils/RpcConnector/RpcConnector.html +248 -0
- data/html/Gravaty/Utils/RpcConnector.html +111 -0
- data/html/Gravaty/Utils.html +111 -0
- data/html/Gravaty.html +320 -0
- data/html/ISSUES_md.html +165 -0
- data/html/Object.html +187 -0
- data/html/README_md.html +276 -0
- data/html/Rakefile.html +141 -0
- data/html/acknowledgements_md.html +160 -0
- data/html/authors_md.html +173 -0
- data/html/copyright_md.html +481 -0
- data/html/created.rid +59 -0
- data/html/css/fonts.css +167 -0
- data/html/css/rdoc.css +590 -0
- data/html/examples/cacert_pem.html +1056 -0
- data/html/fonts/Lato-Light.ttf +0 -0
- data/html/fonts/Lato-LightItalic.ttf +0 -0
- data/html/fonts/Lato-Regular.ttf +0 -0
- data/html/fonts/Lato-RegularItalic.ttf +0 -0
- data/html/fonts/SourceCodePro-Bold.ttf +0 -0
- data/html/fonts/SourceCodePro-Regular.ttf +0 -0
- data/html/gravaty_gemspec.html +169 -0
- data/html/images/add.png +0 -0
- data/html/images/arrow_up.png +0 -0
- data/html/images/brick.png +0 -0
- data/html/images/brick_link.png +0 -0
- data/html/images/bug.png +0 -0
- data/html/images/bullet_black.png +0 -0
- data/html/images/bullet_toggle_minus.png +0 -0
- data/html/images/bullet_toggle_plus.png +0 -0
- data/html/images/date.png +0 -0
- data/html/images/delete.png +0 -0
- data/html/images/find.png +0 -0
- data/html/images/loadingAnimation.gif +0 -0
- data/html/images/macFFBgHack.png +0 -0
- data/html/images/package.png +0 -0
- data/html/images/page_green.png +0 -0
- data/html/images/page_white_text.png +0 -0
- data/html/images/page_white_width.png +0 -0
- data/html/images/plugin.png +0 -0
- data/html/images/ruby.png +0 -0
- data/html/images/tag_blue.png +0 -0
- data/html/images/tag_green.png +0 -0
- data/html/images/transparent.png +0 -0
- data/html/images/wrench.png +0 -0
- data/html/images/wrench_orange.png +0 -0
- data/html/images/zoom.png +0 -0
- data/html/index.html +308 -0
- data/html/js/darkfish.js +161 -0
- data/html/js/jquery.js +4 -0
- data/html/js/navigation.js +141 -0
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search.js +109 -0
- data/html/js/search_index.js +1 -0
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js +229 -0
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +995 -0
- data/lib/gravaty/application.rb +354 -0
- data/lib/gravaty/constants.rb +65 -0
- data/lib/gravaty/locales/en.yml +38 -0
- data/lib/gravaty/locales/it.yml +38 -0
- data/lib/gravaty/locales/ja.yml +39 -0
- data/lib/gravaty/parser.rb +50 -0
- data/lib/gravaty/parsers/avatar.rb +40 -0
- data/lib/gravaty/parsers/callback.rb +41 -0
- data/lib/gravaty/parsers/default.rb +92 -0
- data/lib/gravaty/parsers/force.rb +40 -0
- data/lib/gravaty/parsers/format.rb +45 -0
- data/lib/gravaty/parsers/pixelsize.rb +45 -0
- data/lib/gravaty/parsers/rating.rb +45 -0
- data/lib/gravaty/parsers/secure.rb +39 -0
- data/lib/gravaty/parsers/type.rb +45 -0
- data/lib/gravaty/utils/downloader.rb +156 -0
- data/lib/gravaty/utils/raisers.rb +63 -0
- data/lib/gravaty/utils/rfc5322.rb +110 -0
- data/lib/gravaty/utils/rpc_connector.rb +86 -0
- data/lib/gravaty/version.rb +24 -0
- data/lib/gravaty.rb +75 -0
- data/test/gravaty/locales/test_locales.rb +69 -0
- data/test/gravaty/parsers/test_avatar.rb +39 -0
- data/test/gravaty/parsers/test_callback.rb +42 -0
- data/test/gravaty/parsers/test_default.rb +79 -0
- data/test/gravaty/parsers/test_force.rb +39 -0
- data/test/gravaty/parsers/test_format.rb +54 -0
- data/test/gravaty/parsers/test_pixelsize.rb +56 -0
- data/test/gravaty/parsers/test_rating.rb +54 -0
- data/test/gravaty/parsers/test_secure.rb +39 -0
- data/test/gravaty/parsers/test_type.rb +44 -0
- data/test/gravaty/test_application.rb +126 -0
- data/test/gravaty/test_avatar.rb +122 -0
- data/test/gravaty/test_parser.rb +59 -0
- data/test/gravaty/test_profile.rb +70 -0
- data/test/gravaty/utils/test_downloader.rb +51 -0
- data/test/gravaty/utils/test_raisers.rb +62 -0
- data/test/gravaty/utils/test_rfc5322.rb +82 -0
- data/test/gravaty/utils/test_rpc_connector.rb +82 -0
- data/test/test_gravaty.rb +48 -0
- data/test/test_helper.rb +105 -0
- metadata +348 -0
@@ -0,0 +1,82 @@
|
|
1
|
+
#--
|
2
|
+
# gravaty
|
3
|
+
# Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
4
|
+
#
|
5
|
+
# This file is part of gravaty.
|
6
|
+
#
|
7
|
+
# gravaty is free software: you can redistribute it and/or modify it
|
8
|
+
# under the terms of the GNU General Public License as published by the
|
9
|
+
# Free Software Foundation, either version 3 of the License, or (at your
|
10
|
+
# option) any later version.
|
11
|
+
#
|
12
|
+
# gravaty is distributed in the hope that it will be useful, but WITHOUT
|
13
|
+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
14
|
+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
15
|
+
# for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with gravaty. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#++
|
20
|
+
|
21
|
+
require_relative '../../test_helper'
|
22
|
+
|
23
|
+
describe Gravaty::Utils::RpcConnector do
|
24
|
+
before do
|
25
|
+
I18n.load_path = Dir[File.join(File.dirname(__FILE__),
|
26
|
+
'/../../../lib/gravaty/locales/',
|
27
|
+
'*.yml')]
|
28
|
+
I18n.locale = 'it'
|
29
|
+
end
|
30
|
+
|
31
|
+
digest = Digest::MD5.hexdigest('[YOUR EMAIL HERE]'.downcase)
|
32
|
+
password = '[YOUR PASSWORD HERE]'
|
33
|
+
|
34
|
+
subject {Gravaty::Utils::RpcConnector::RpcConnector
|
35
|
+
.new digest, password}
|
36
|
+
|
37
|
+
describe 'when receiving an invalid parameter' do
|
38
|
+
[nil, ''].each do |param|
|
39
|
+
it "shall raise an ArgumentError when digest is '#{param}'" do
|
40
|
+
assert_raises ArgumentError do
|
41
|
+
Gravaty::Utils::RpcConnector::RpcConnector.new param, password
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
it "shall raise an ArgumentError when password is '#{param}'" do
|
46
|
+
assert_raises ArgumentError do
|
47
|
+
Gravaty::Utils::RpcConnector::RpcConnector.new digest, param
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
it "shall raise an ArgumentError when parameters are '#{param}'" do
|
52
|
+
assert_raises ArgumentError do
|
53
|
+
Gravaty::Utils::RpcConnector::RpcConnector.new param, param
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'when created with valid parameters' do
|
60
|
+
it 'shall provide an useable connector' do
|
61
|
+
subject.wont_be_nil
|
62
|
+
end
|
63
|
+
|
64
|
+
it 'shall provide information through test method' do
|
65
|
+
skip 'This test shall be configured with own Gravatar email and password.'
|
66
|
+
result = subject.call(Gravaty::RPC_TEST_METHOD)
|
67
|
+
|
68
|
+
result.wont_be_nil
|
69
|
+
result.wont_be_empty
|
70
|
+
result['response'].wont_be_nil
|
71
|
+
end
|
72
|
+
|
73
|
+
it 'shall provide information through exists method' do
|
74
|
+
skip 'This test shall be configured with own Gravatar email and password.'
|
75
|
+
result = subject.call('grav.exists', hashes: [digest])
|
76
|
+
|
77
|
+
result.wont_be_nil
|
78
|
+
result.wont_be_empty
|
79
|
+
result[digest].wont_be_nil
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
#--
|
2
|
+
# gravaty
|
3
|
+
# Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
4
|
+
#
|
5
|
+
# This file is part of gravaty.
|
6
|
+
#
|
7
|
+
# gravaty is free software: you can redistribute it and/or modify it
|
8
|
+
# under the terms of the GNU General Public License as published by the
|
9
|
+
# Free Software Foundation, either version 3 of the License, or (at your
|
10
|
+
# option) any later version.
|
11
|
+
#
|
12
|
+
# gravaty is distributed in the hope that it will be useful, but WITHOUT
|
13
|
+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
14
|
+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
15
|
+
# for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with gravaty. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#++
|
20
|
+
|
21
|
+
require_relative 'test_helper'
|
22
|
+
|
23
|
+
describe Gravaty::Gravaty do
|
24
|
+
describe 'when passed a nil email address' do
|
25
|
+
it 'must raise an argument error' do
|
26
|
+
assert_raises ArgumentError do
|
27
|
+
Gravaty::gravatize nil
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe 'when passed an invalid email address according to RF5322' do
|
33
|
+
it 'must raise an argument error' do
|
34
|
+
assert_raises ArgumentError do
|
35
|
+
Gravaty::gravatize '-.'
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'when created with a valid email address' do
|
41
|
+
subject {Gravaty::gravatize Gravaty::TEST_MY_ADDRESS}
|
42
|
+
|
43
|
+
it 'must create a gravaty object' do
|
44
|
+
subject.wont_be_nil
|
45
|
+
subject.must_be_instance_of Gravaty::Gravaty
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
#--
|
2
|
+
# gravaty
|
3
|
+
# Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
4
|
+
#
|
5
|
+
# This file is part of gravaty.
|
6
|
+
#
|
7
|
+
# gravaty is free software: you can redistribute it and/or modify it
|
8
|
+
# under the terms of the GNU General Public License as published by the
|
9
|
+
# Free Software Foundation, either version 3 of the License, or (at your
|
10
|
+
# option) any later version.
|
11
|
+
#
|
12
|
+
# gravaty is distributed in the hope that it will be useful, but WITHOUT
|
13
|
+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
14
|
+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
15
|
+
# for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with gravaty. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#++
|
20
|
+
|
21
|
+
require 'simplecov'
|
22
|
+
SimpleCov.start
|
23
|
+
|
24
|
+
require 'json'
|
25
|
+
require 'minitest/autorun'
|
26
|
+
require 'minitest/spec'
|
27
|
+
|
28
|
+
require_relative '../lib/gravaty'
|
29
|
+
require_relative '../lib/gravaty/constants'
|
30
|
+
require_relative '../lib/gravaty/parsers/avatar'
|
31
|
+
require_relative '../lib/gravaty/parsers/callback'
|
32
|
+
require_relative '../lib/gravaty/parsers/default'
|
33
|
+
require_relative '../lib/gravaty/parsers/force'
|
34
|
+
require_relative '../lib/gravaty/parsers/format'
|
35
|
+
require_relative '../lib/gravaty/parsers/pixelsize'
|
36
|
+
require_relative '../lib/gravaty/parsers/rating'
|
37
|
+
require_relative '../lib/gravaty/parsers/secure'
|
38
|
+
require_relative '../lib/gravaty/parsers/type'
|
39
|
+
require_relative '../lib/gravaty/utils/rpc_connector'
|
40
|
+
|
41
|
+
module Gravaty
|
42
|
+
|
43
|
+
# Example mail address for testing purposes.
|
44
|
+
TEST_MY_ADDRESS = '"Example User" <user@example.com>'
|
45
|
+
|
46
|
+
# Example MD5'ed mail address for testing purposes.
|
47
|
+
TEST_MY_MD5 = Digest::MD5.hexdigest TEST_MY_ADDRESS.downcase
|
48
|
+
|
49
|
+
# Example basic URI (profile part) for testing purposes.
|
50
|
+
TEST_BASIC_PROFILE = 'gravatar.com/'
|
51
|
+
|
52
|
+
# Example basic URI (avatar part) for testing purposes.
|
53
|
+
TEST_BASIC_AVATAR = TEST_BASIC_PROFILE + 'avatar/'
|
54
|
+
|
55
|
+
# Example generic callback string for testing purposes.
|
56
|
+
TEST_CALLBACK = 'my_test_callback'
|
57
|
+
|
58
|
+
# Example resulting query string when forced default for testing
|
59
|
+
# purposes.
|
60
|
+
TEST_FORCED = 'f=y'
|
61
|
+
|
62
|
+
# Example json file extension regular expression for testing
|
63
|
+
# purposes.
|
64
|
+
TEST_JSON_REGEXP = /.json$/
|
65
|
+
|
66
|
+
# Example QRCode file extension regular expression for testing
|
67
|
+
# purposes.
|
68
|
+
TEST_QR_REGEXP = /.qr$/
|
69
|
+
|
70
|
+
# Example secure (HTTPS) URI header regular expression for testing
|
71
|
+
# purposes.
|
72
|
+
TEST_SECURE_URI_REGEXP = /\Ahttps:\/\/secure./
|
73
|
+
|
74
|
+
# Example unsecure (HTTP) URI header regular expression for testing
|
75
|
+
# purposes.
|
76
|
+
TEST_UNSECURE_URI_REGEXP = /\Ahttp:\/\//
|
77
|
+
|
78
|
+
# Example simple (HTTP) URI header regular expression for testing
|
79
|
+
# purposes.
|
80
|
+
TEST_SIMPLE_URI_REGEXP = /\Ahttp/
|
81
|
+
|
82
|
+
# Example size string regular expression for testing purposes.
|
83
|
+
TEST_SIZE_REGEXP = /s=\d\d?\d?\d?/
|
84
|
+
|
85
|
+
# Example hash with basic URI parts for testing purposes.
|
86
|
+
TEST_STRING = Hash.new
|
87
|
+
TEST_STRING[:avatar] = TEST_BASIC_AVATAR
|
88
|
+
TEST_STRING[:profile] = TEST_BASIC_PROFILE
|
89
|
+
|
90
|
+
# This module represents the parsable duck type element for testing
|
91
|
+
# purposes.
|
92
|
+
#
|
93
|
+
# Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
|
94
|
+
# Copyright:: Copyright © 2013, 2014, 2015, 2016, 2017, 2018,
|
95
|
+
# 2019 Marco Bresciani
|
96
|
+
# License:: GNU General Public License version 3
|
97
|
+
module ParsableDuckType
|
98
|
+
|
99
|
+
# The method that tests the parsable duck type interface and its
|
100
|
+
# +parse+ method.
|
101
|
+
def test_parsable_duck_type
|
102
|
+
subject.must_respond_to :parse unless subject.nil?
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
metadata
ADDED
@@ -0,0 +1,348 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gravaty
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 9.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marco Bresciani
|
8
|
+
- 新部裕
|
9
|
+
- Peter R. Marreck
|
10
|
+
- Jon Maken
|
11
|
+
- Łukasz Niemier
|
12
|
+
autorequire:
|
13
|
+
bindir: bin
|
14
|
+
cert_chain: []
|
15
|
+
date: 2019-04-23 00:00:00.000000000 Z
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
18
|
+
name: i18n
|
19
|
+
requirement: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - "~>"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '1.6'
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - "~>"
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '1.6'
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: json
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - "~>"
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '2.2'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - "~>"
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '2.2'
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: xmlrpc
|
47
|
+
requirement: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - "~>"
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: 0.3.0
|
52
|
+
type: :runtime
|
53
|
+
prerelease: false
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - "~>"
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: 0.3.0
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: bundler
|
61
|
+
requirement: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - "~>"
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '2.0'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '2.0'
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: minitest
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '5.11'
|
80
|
+
type: :development
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - "~>"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '5.11'
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: rake
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '12.3'
|
94
|
+
type: :development
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - "~>"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '12.3'
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: rdoc
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - "~>"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '6.1'
|
108
|
+
type: :development
|
109
|
+
prerelease: false
|
110
|
+
version_requirements: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - "~>"
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '6.1'
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: simplecov
|
117
|
+
requirement: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - "~>"
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0.16'
|
122
|
+
type: :development
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - "~>"
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0.16'
|
129
|
+
description: |-
|
130
|
+
This gem automagically prepares complete URIs for Gravatar,
|
131
|
+
for both avatars and profiles, with all currently supported options,
|
132
|
+
included the XML-RPC API, as of 2014-04-30, starting from a single
|
133
|
+
email address! It's my first 'real' Ruby gem, hoping
|
134
|
+
it will be useful for someone (let me know if you use it, please!).
|
135
|
+
GNU GPLv3 license; source code available through anonymous checkout:
|
136
|
+
hg clone http://hg.savannah.nongnu.org/hgweb/gravaty/ or write me and
|
137
|
+
I'll send it. You can even decide to contribute to this little free
|
138
|
+
software project by registering to Savannah and ask to be part of the
|
139
|
+
'gravaty' project! With contributions from: 新部裕, Peter R. Marreck,
|
140
|
+
Jon Maken, Łukasz Niemier.
|
141
|
+
email: marcobresciani_1974@libero.it
|
142
|
+
executables: []
|
143
|
+
extensions: []
|
144
|
+
extra_rdoc_files:
|
145
|
+
- acknowledgements.md
|
146
|
+
- authors.md
|
147
|
+
- CHANGELOG
|
148
|
+
- COPYING.md
|
149
|
+
- copyright.md
|
150
|
+
- Gemfile
|
151
|
+
- gravaty.gemspec
|
152
|
+
- gravaty.odp
|
153
|
+
- gravaty.pdf
|
154
|
+
- ISSUES.md
|
155
|
+
- Rakefile
|
156
|
+
- README.md
|
157
|
+
files:
|
158
|
+
- CHANGELOG
|
159
|
+
- COPYING.md
|
160
|
+
- Gemfile
|
161
|
+
- ISSUES.md
|
162
|
+
- README.md
|
163
|
+
- Rakefile
|
164
|
+
- acknowledgements.md
|
165
|
+
- authors.md
|
166
|
+
- copyright.md
|
167
|
+
- examples/avatar.rb
|
168
|
+
- examples/basics.rb
|
169
|
+
- examples/cacert.pem
|
170
|
+
- examples/profile.rb
|
171
|
+
- examples/xmlrpc.rb
|
172
|
+
- gravaty.gemspec
|
173
|
+
- gravaty.odp
|
174
|
+
- gravaty.pdf
|
175
|
+
- html/CHANGELOG.html
|
176
|
+
- html/COPYING_md.html
|
177
|
+
- html/Gemfile.html
|
178
|
+
- html/Gravaty.html
|
179
|
+
- html/Gravaty/Gravaty.html
|
180
|
+
- html/Gravaty/ParsableDuckType.html
|
181
|
+
- html/Gravaty/Parser.html
|
182
|
+
- html/Gravaty/Parsers.html
|
183
|
+
- html/Gravaty/Parsers/Avatar.html
|
184
|
+
- html/Gravaty/Parsers/Callback.html
|
185
|
+
- html/Gravaty/Parsers/Default.html
|
186
|
+
- html/Gravaty/Parsers/Force.html
|
187
|
+
- html/Gravaty/Parsers/Format.html
|
188
|
+
- html/Gravaty/Parsers/Pixelsize.html
|
189
|
+
- html/Gravaty/Parsers/Rating.html
|
190
|
+
- html/Gravaty/Parsers/Secure.html
|
191
|
+
- html/Gravaty/Parsers/Type.html
|
192
|
+
- html/Gravaty/Utils.html
|
193
|
+
- html/Gravaty/Utils/Downloader.html
|
194
|
+
- html/Gravaty/Utils/Downloader/Downloader.html
|
195
|
+
- html/Gravaty/Utils/Raisers.html
|
196
|
+
- html/Gravaty/Utils/Rfc5322.html
|
197
|
+
- html/Gravaty/Utils/RpcConnector.html
|
198
|
+
- html/Gravaty/Utils/RpcConnector/RpcConnector.html
|
199
|
+
- html/ISSUES_md.html
|
200
|
+
- html/Object.html
|
201
|
+
- html/README_md.html
|
202
|
+
- html/Rakefile.html
|
203
|
+
- html/acknowledgements_md.html
|
204
|
+
- html/authors_md.html
|
205
|
+
- html/copyright_md.html
|
206
|
+
- html/created.rid
|
207
|
+
- html/css/fonts.css
|
208
|
+
- html/css/rdoc.css
|
209
|
+
- html/examples/cacert_pem.html
|
210
|
+
- html/fonts/Lato-Light.ttf
|
211
|
+
- html/fonts/Lato-LightItalic.ttf
|
212
|
+
- html/fonts/Lato-Regular.ttf
|
213
|
+
- html/fonts/Lato-RegularItalic.ttf
|
214
|
+
- html/fonts/SourceCodePro-Bold.ttf
|
215
|
+
- html/fonts/SourceCodePro-Regular.ttf
|
216
|
+
- html/gravaty_gemspec.html
|
217
|
+
- html/images/add.png
|
218
|
+
- html/images/arrow_up.png
|
219
|
+
- html/images/brick.png
|
220
|
+
- html/images/brick_link.png
|
221
|
+
- html/images/bug.png
|
222
|
+
- html/images/bullet_black.png
|
223
|
+
- html/images/bullet_toggle_minus.png
|
224
|
+
- html/images/bullet_toggle_plus.png
|
225
|
+
- html/images/date.png
|
226
|
+
- html/images/delete.png
|
227
|
+
- html/images/find.png
|
228
|
+
- html/images/loadingAnimation.gif
|
229
|
+
- html/images/macFFBgHack.png
|
230
|
+
- html/images/package.png
|
231
|
+
- html/images/page_green.png
|
232
|
+
- html/images/page_white_text.png
|
233
|
+
- html/images/page_white_width.png
|
234
|
+
- html/images/plugin.png
|
235
|
+
- html/images/ruby.png
|
236
|
+
- html/images/tag_blue.png
|
237
|
+
- html/images/tag_green.png
|
238
|
+
- html/images/transparent.png
|
239
|
+
- html/images/wrench.png
|
240
|
+
- html/images/wrench_orange.png
|
241
|
+
- html/images/zoom.png
|
242
|
+
- html/index.html
|
243
|
+
- html/js/darkfish.js
|
244
|
+
- html/js/jquery.js
|
245
|
+
- html/js/navigation.js
|
246
|
+
- html/js/navigation.js.gz
|
247
|
+
- html/js/search.js
|
248
|
+
- html/js/search_index.js
|
249
|
+
- html/js/search_index.js.gz
|
250
|
+
- html/js/searcher.js
|
251
|
+
- html/js/searcher.js.gz
|
252
|
+
- html/table_of_contents.html
|
253
|
+
- lib/gravaty.rb
|
254
|
+
- lib/gravaty/application.rb
|
255
|
+
- lib/gravaty/constants.rb
|
256
|
+
- lib/gravaty/locales/en.yml
|
257
|
+
- lib/gravaty/locales/it.yml
|
258
|
+
- lib/gravaty/locales/ja.yml
|
259
|
+
- lib/gravaty/parser.rb
|
260
|
+
- lib/gravaty/parsers/avatar.rb
|
261
|
+
- lib/gravaty/parsers/callback.rb
|
262
|
+
- lib/gravaty/parsers/default.rb
|
263
|
+
- lib/gravaty/parsers/force.rb
|
264
|
+
- lib/gravaty/parsers/format.rb
|
265
|
+
- lib/gravaty/parsers/pixelsize.rb
|
266
|
+
- lib/gravaty/parsers/rating.rb
|
267
|
+
- lib/gravaty/parsers/secure.rb
|
268
|
+
- lib/gravaty/parsers/type.rb
|
269
|
+
- lib/gravaty/utils/downloader.rb
|
270
|
+
- lib/gravaty/utils/raisers.rb
|
271
|
+
- lib/gravaty/utils/rfc5322.rb
|
272
|
+
- lib/gravaty/utils/rpc_connector.rb
|
273
|
+
- lib/gravaty/version.rb
|
274
|
+
- test/gravaty/locales/test_locales.rb
|
275
|
+
- test/gravaty/parsers/test_avatar.rb
|
276
|
+
- test/gravaty/parsers/test_callback.rb
|
277
|
+
- test/gravaty/parsers/test_default.rb
|
278
|
+
- test/gravaty/parsers/test_force.rb
|
279
|
+
- test/gravaty/parsers/test_format.rb
|
280
|
+
- test/gravaty/parsers/test_pixelsize.rb
|
281
|
+
- test/gravaty/parsers/test_rating.rb
|
282
|
+
- test/gravaty/parsers/test_secure.rb
|
283
|
+
- test/gravaty/parsers/test_type.rb
|
284
|
+
- test/gravaty/test_application.rb
|
285
|
+
- test/gravaty/test_avatar.rb
|
286
|
+
- test/gravaty/test_parser.rb
|
287
|
+
- test/gravaty/test_profile.rb
|
288
|
+
- test/gravaty/utils/test_downloader.rb
|
289
|
+
- test/gravaty/utils/test_raisers.rb
|
290
|
+
- test/gravaty/utils/test_rfc5322.rb
|
291
|
+
- test/gravaty/utils/test_rpc_connector.rb
|
292
|
+
- test/test_gravaty.rb
|
293
|
+
- test/test_helper.rb
|
294
|
+
homepage: https://savannah.nongnu.org/projects/gravaty/
|
295
|
+
licenses:
|
296
|
+
- GPL-3.0
|
297
|
+
- BSD-3-Clause
|
298
|
+
metadata: {}
|
299
|
+
post_install_message: Thank you for using gravaty version 9.0.0.
|
300
|
+
rdoc_options: []
|
301
|
+
require_paths:
|
302
|
+
- lib
|
303
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
304
|
+
requirements:
|
305
|
+
- - "~>"
|
306
|
+
- !ruby/object:Gem::Version
|
307
|
+
version: '2.6'
|
308
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
309
|
+
requirements:
|
310
|
+
- - ">="
|
311
|
+
- !ruby/object:Gem::Version
|
312
|
+
version: '0'
|
313
|
+
requirements:
|
314
|
+
- "~> 2.6"
|
315
|
+
- '[<Gem::Dependency type=:runtime name="i18n" requirements="~> 1.6">, <Gem::Dependency
|
316
|
+
type=:runtime name="json" requirements="~> 2.2">, <Gem::Dependency type=:runtime
|
317
|
+
name="xmlrpc" requirements="~> 0.3.0">, <Gem::Dependency type=:development name="bundler"
|
318
|
+
requirements="~> 2.0">, <Gem::Dependency type=:development name="minitest" requirements="~>
|
319
|
+
5.11">, <Gem::Dependency type=:development name="rake" requirements="~> 12.3">,
|
320
|
+
<Gem::Dependency type=:development name="rdoc" requirements="~> 6.1">, <Gem::Dependency
|
321
|
+
type=:development name="simplecov" requirements="~> 0.16">]'
|
322
|
+
rubygems_version: 3.0.3
|
323
|
+
signing_key:
|
324
|
+
specification_version: 4
|
325
|
+
summary: This gem automagically prepares complete URIs for Gravatar, for both avatars
|
326
|
+
and profiles, with all currently supported options, included the XML-RPC API, as
|
327
|
+
of 2014-04-30, starting from a single email address!
|
328
|
+
test_files:
|
329
|
+
- test/gravaty/locales/test_locales.rb
|
330
|
+
- test/gravaty/parsers/test_avatar.rb
|
331
|
+
- test/gravaty/parsers/test_callback.rb
|
332
|
+
- test/gravaty/parsers/test_default.rb
|
333
|
+
- test/gravaty/parsers/test_force.rb
|
334
|
+
- test/gravaty/parsers/test_format.rb
|
335
|
+
- test/gravaty/parsers/test_pixelsize.rb
|
336
|
+
- test/gravaty/parsers/test_rating.rb
|
337
|
+
- test/gravaty/parsers/test_secure.rb
|
338
|
+
- test/gravaty/parsers/test_type.rb
|
339
|
+
- test/gravaty/test_application.rb
|
340
|
+
- test/gravaty/test_avatar.rb
|
341
|
+
- test/gravaty/test_parser.rb
|
342
|
+
- test/gravaty/test_profile.rb
|
343
|
+
- test/gravaty/utils/test_downloader.rb
|
344
|
+
- test/gravaty/utils/test_raisers.rb
|
345
|
+
- test/gravaty/utils/test_rfc5322.rb
|
346
|
+
- test/gravaty/utils/test_rpc_connector.rb
|
347
|
+
- test/test_gravaty.rb
|
348
|
+
- test/test_helper.rb
|