hellotxt 1.0.3 → 1.0.4.3
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/.autotest +6 -0
- data/.gitignore +2 -0
- data/History.txt +7 -0
- data/LICENSE +22 -0
- data/README +20 -39
- data/Rakefile +14 -9
- data/lib/hellotxt/client.rb +108 -108
- data/lib/hellotxt.rb +1 -1
- data/spec/client_spec.rb +1 -1
- data/spec/keyloader_spec.rb +8 -8
- data/spec/spec_helper.rb +4 -6
- data/spec/spec_responses.rb +10 -10
- metadata +113 -74
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: ccf0f319f88603827c1ac96686606fa45e62691a40a9d6e4956c6b584003a5d5
|
|
4
|
+
data.tar.gz: 4bf7450540eb1db0e026baae8d1f497cb991fe70fd60b85edab5ace430632c65
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: ae35859a24c418b99dbe355993c8bfab20236c2327b7c728cb5f96439e7156cc507049edafb2d97c4e9764f98d7a80ec79d09bc6925bd242e9e057f0e6ec4fc0
|
|
7
|
+
data.tar.gz: baedf42289a754dc688d3ee81c9f34e1b527fda9eb98f8eca9f5014feb76bd5d4079c50b92e9fecf280a67acb0e2b701c7fc4a3066f96fbfdf092887a735a6b7
|
data/.autotest
ADDED
data/History.txt
CHANGED
data/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2008-2024 Kevin Williams
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
HelloTxt Ruby Client/Library
|
|
1
|
+
# HelloTxt Ruby Client/Library
|
|
2
2
|
|
|
3
3
|
== Authors
|
|
4
4
|
|
|
5
|
-
* Kevin Williams (
|
|
5
|
+
* Kevin Williams (<https://kevwil.github.io/>)
|
|
6
6
|
|
|
7
7
|
== CODE:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
<https://github.com/kevwil/hellotxt/>
|
|
10
10
|
|
|
11
11
|
== DESCRIPTION:
|
|
12
12
|
|
|
13
|
-
HelloTxt (http://hellotxt.com) is a simple service that makes updating your social networks a snap, and this is it's Ruby library.
|
|
13
|
+
HelloTxt (<http://hellotxt.com>) is a simple service that makes updating your social networks a snap, and this is it's Ruby library.
|
|
14
14
|
|
|
15
15
|
== FEATURES/PROBLEMS:
|
|
16
16
|
|
|
@@ -30,22 +30,26 @@ Everything after the 'hellotxt' command is what will be posted to the service. Y
|
|
|
30
30
|
If your keys have not been stored, it will ask for them. These keys will be saved
|
|
31
31
|
in a YAML file in your home directory and you won't be asked for them again.
|
|
32
32
|
|
|
33
|
-
You can obtain your API key here: http://hellotxt.com/
|
|
33
|
+
You can obtain your API key and user key here: <http://hellotxt.com/developers/applications>
|
|
34
34
|
|
|
35
35
|
Library usage:
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
## Require the library and initialize it
|
|
38
|
+
|
|
38
39
|
require 'hellotxt'
|
|
39
40
|
hellotxt = ::HelloTxt::Client.new('api_key', 'user_key')
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
## Ensure proper API and USER keys
|
|
43
|
+
|
|
42
44
|
hellotxt.validate['status']
|
|
43
|
-
# => 'OK' if success, otherwise 'FAIL'
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
## => 'OK' if success, otherwise 'FAIL'
|
|
47
|
+
|
|
48
|
+
## Posting to all services
|
|
49
|
+
|
|
46
50
|
hellotxt.post('The Dark Knight was amazing.')
|
|
47
|
-
# => {'status' => 'OK'} if success, otherwise 'FAIL'
|
|
48
51
|
|
|
52
|
+
## => {'status' => 'OK'} if success, otherwise 'FAIL'
|
|
49
53
|
|
|
50
54
|
Check the source comments for more details.
|
|
51
55
|
|
|
@@ -55,36 +59,13 @@ Ruby!
|
|
|
55
59
|
|
|
56
60
|
== INSTALL:
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
$ sudo gem install hellotxt
|
|
60
|
-
|
|
61
|
-
*OR*
|
|
62
|
-
|
|
63
|
-
# From Github...
|
|
64
|
-
$ sudo gem sources -a http://gems.github.com (only need to do this once)
|
|
65
|
-
$ sudo gem install kevwil-hellotxt
|
|
66
|
-
|
|
67
|
-
== LICENSE:
|
|
68
|
-
|
|
69
|
-
(The MIT License)
|
|
62
|
+
$ (sudo) gem install hellotxt
|
|
70
63
|
|
|
71
|
-
|
|
64
|
+
(you really should try RVM if you still need sudo to manage your gems. <https://rvm.io/>)
|
|
72
65
|
|
|
73
|
-
|
|
74
|
-
a copy of this software and associated documentation files (the
|
|
75
|
-
'Software'), to deal in the Software without restriction, including
|
|
76
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
77
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
78
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
79
|
-
the following conditions:
|
|
66
|
+
== RUN TESTS:
|
|
80
67
|
|
|
81
|
-
|
|
82
|
-
|
|
68
|
+
$ (sudo) gem install bones-extras
|
|
69
|
+
$ rake
|
|
83
70
|
|
|
84
|
-
|
|
85
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
86
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
87
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
88
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
89
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
90
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
71
|
+
(you really should try RVM if you still need sudo to manage your gems. <https://rvm.io/>)
|
data/Rakefile
CHANGED
|
@@ -10,23 +10,28 @@ require 'hellotxt'
|
|
|
10
10
|
task :default => 'spec:run'
|
|
11
11
|
task 'gem:release' => 'spec:run'
|
|
12
12
|
|
|
13
|
-
Bones
|
|
13
|
+
Bones do
|
|
14
14
|
name 'hellotxt'
|
|
15
15
|
authors ['Kevin Williams']
|
|
16
16
|
email ['kevwil@gmail.com']
|
|
17
|
-
url '
|
|
17
|
+
url 'https://kevwil.github.io/hellotxt'
|
|
18
18
|
version ENV['VERSION'] || HelloTxt::VERSION::STRING
|
|
19
19
|
readme_file 'README'
|
|
20
|
+
license 'MIT'
|
|
20
21
|
ignore_file '.gitignore'
|
|
21
22
|
gem.need_tar false
|
|
22
|
-
depend_on '
|
|
23
|
+
depend_on 'simplecov', :development => true
|
|
23
24
|
depend_on 'rspec', :development => true
|
|
24
25
|
depend_on 'mocha', :development => true
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
#
|
|
30
|
-
|
|
26
|
+
depend_on 'bones-git', :development => true
|
|
27
|
+
depend_on 'bones-rspec', :development => true
|
|
28
|
+
# ruby_opts << '-Ilib' << '-rubygems'
|
|
29
|
+
ruby_opts << '-Ilib'
|
|
30
|
+
test.opts << '--color'# << '--format html:./spec_out.html'
|
|
31
|
+
# rcov.opts << ['--exclude', 'rcov']
|
|
32
|
+
# rcov.opts << ['--exclude', 'mocha']
|
|
33
|
+
use_gmail
|
|
34
|
+
enable_sudo
|
|
35
|
+
end
|
|
31
36
|
|
|
32
37
|
# EOF
|
data/lib/hellotxt/client.rb
CHANGED
|
@@ -10,122 +10,122 @@ module HelloTxt
|
|
|
10
10
|
|
|
11
11
|
class Client
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
# Validates API key and USER key
|
|
19
|
-
# if successful returns:
|
|
20
|
-
# {'status' => 'OK'}
|
|
21
|
-
# if unsuccessful returns:
|
|
22
|
-
# {'status' => 'FAIL', 'message' => 'message what went wrong'}
|
|
23
|
-
def validate
|
|
24
|
-
response = get_response('user.validate')
|
|
25
|
-
if response.elements['rsp'].attributes['status'] == 'OK'
|
|
26
|
-
return status_ok
|
|
27
|
-
else
|
|
28
|
-
return status_fail(response)
|
|
29
|
-
end
|
|
30
|
-
end
|
|
13
|
+
def initialize(api_key, user_key)
|
|
14
|
+
@api_key = api_key
|
|
15
|
+
@user_key = user_key
|
|
16
|
+
end
|
|
31
17
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
# {'status' => '
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
services['services'].push({'id' => service.attributes['id'],
|
|
46
|
-
'name' => service.attributes['name'],
|
|
47
|
-
'code' => service.elements['code'].text,
|
|
48
|
-
'inhome' => service.elements['inhome'].text,
|
|
49
|
-
'friend' => service.elements['friend'].text,
|
|
50
|
-
'collegue' => service.elements['collegue'].text})
|
|
51
|
-
end
|
|
52
|
-
return services
|
|
53
|
-
else
|
|
54
|
-
return status_fail(response)
|
|
55
|
-
end
|
|
56
|
-
end
|
|
18
|
+
# Validates API key and USER key
|
|
19
|
+
# if successful returns:
|
|
20
|
+
# {'status' => 'OK'}
|
|
21
|
+
# if unsuccessful returns:
|
|
22
|
+
# {'status' => 'FAIL', 'message' => 'message what went wrong'}
|
|
23
|
+
def validate
|
|
24
|
+
response = get_response('user.validate')
|
|
25
|
+
if response.elements['rsp'].attributes['status'] == 'OK'
|
|
26
|
+
return status_ok
|
|
27
|
+
else
|
|
28
|
+
return status_fail(response)
|
|
29
|
+
end
|
|
30
|
+
end
|
|
57
31
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
# if successful returns:
|
|
84
|
-
# {'status' => 'OK', 'messages' => [{'id' => 'messageid', 'title' => 'titletext', 'body' => 'bodytext'}, ...]}
|
|
85
|
-
# if unsuccessful returns:
|
|
86
|
-
# {'status' => 'FAIL', 'message' => 'message what went wrong'}
|
|
87
|
-
def latest
|
|
88
|
-
response = get_response('user.latest')
|
|
89
|
-
if response.elements['rsp'].attributes['status'] == 'OK'
|
|
90
|
-
messages = status_ok()
|
|
91
|
-
messages['messages'] = []
|
|
92
|
-
response.elements.each('rsp/messages/message') do |message|
|
|
93
|
-
messages['messages'].push({'id' => message.attributes['id'],
|
|
94
|
-
'title' => message.elements['title'].text,
|
|
95
|
-
'body' => message.elements['body'].text})
|
|
96
|
-
end
|
|
97
|
-
return messages
|
|
98
|
-
else
|
|
99
|
-
return status_fail(response)
|
|
100
|
-
end
|
|
101
|
-
end
|
|
32
|
+
# Returns a list of services the user has set up through HelloTxt
|
|
33
|
+
# Optional arguments:
|
|
34
|
+
# group = service group type; either 'inhome', 'friend', 'colleague', 'all'
|
|
35
|
+
# if successful returns:
|
|
36
|
+
# {'status' => 'OK', 'services' => [{'id' => 'serviceid', 'name' => 'servicename', 'code' => 'servicecode', 'inhome' => 'checked', 'friend' => 'checked', 'colleague' => 'checked'}, ...]}
|
|
37
|
+
# if unsuccessful returns:
|
|
38
|
+
# {'status' => 'FAIL', 'message' => 'message what went wrong'}
|
|
39
|
+
def user_services(group = 'all')
|
|
40
|
+
response = get_response('user.services', 'group' => group)
|
|
41
|
+
if response.elements['rsp'].attributes['status'] == 'OK'
|
|
42
|
+
services = status_ok()
|
|
43
|
+
services['services'] = []
|
|
44
|
+
response.elements.each('rsp/services/service') do |service|
|
|
45
|
+
services['services'].push({'id' => service.attributes['id'],
|
|
46
|
+
'name' => service.attributes['name'],
|
|
47
|
+
'code' => service.elements['code'].text,
|
|
48
|
+
'inhome' => service.elements['inhome'].text,
|
|
49
|
+
'friend' => service.elements['friend'].text,
|
|
50
|
+
'colleague' => service.elements['colleague'].text})
|
|
51
|
+
end
|
|
52
|
+
return services
|
|
53
|
+
else
|
|
54
|
+
return status_fail(response)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
102
57
|
|
|
103
|
-
|
|
58
|
+
# Posts a message to the user's social services
|
|
59
|
+
# Arguments:
|
|
60
|
+
# body = message body
|
|
61
|
+
# Optional arguments:
|
|
62
|
+
# title = title of the posted message, only used if the service supports it
|
|
63
|
+
# group = service group type; either 'inhome', 'friend', 'colleague'
|
|
64
|
+
# image = raw bytes of an image to post
|
|
65
|
+
# debug = set debug to 1 to avoid posting test data
|
|
66
|
+
# if successful returns:
|
|
67
|
+
# {'status' => 'OK'}
|
|
68
|
+
# if unsuccessful returns:
|
|
69
|
+
# {'status' => 'FAIL', 'message' => 'message what went wrong'}
|
|
70
|
+
def post(body, title = '', group = 'inhome', image = '', debug = 0)
|
|
71
|
+
response = get_response('user.post',
|
|
72
|
+
'body' => body, 'title' => title,
|
|
73
|
+
'group' => group, 'image' => image,
|
|
74
|
+
'debug' => debug)
|
|
75
|
+
if response.elements['rsp'].attributes['status'] == 'OK'
|
|
76
|
+
return status_ok
|
|
77
|
+
else
|
|
78
|
+
return status_fail(response)
|
|
79
|
+
end
|
|
80
|
+
end
|
|
104
81
|
|
|
105
|
-
#
|
|
106
|
-
#
|
|
107
|
-
#
|
|
108
|
-
#
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
82
|
+
# Returns a list of 20 status update sent through HelloTxt.
|
|
83
|
+
# if successful returns:
|
|
84
|
+
# {'status' => 'OK', 'messages' => [{'id' => 'messageid', 'title' => 'titletext', 'body' => 'bodytext'}, ...]}
|
|
85
|
+
# if unsuccessful returns:
|
|
86
|
+
# {'status' => 'FAIL', 'message' => 'message what went wrong'}
|
|
87
|
+
def latest
|
|
88
|
+
response = get_response('user.latest')
|
|
89
|
+
if response.elements['rsp'].attributes['status'] == 'OK'
|
|
90
|
+
messages = status_ok()
|
|
91
|
+
messages['messages'] = []
|
|
92
|
+
response.elements.each('rsp/messages/message') do |message|
|
|
93
|
+
messages['messages'].push({'id' => message.attributes['id'],
|
|
94
|
+
'title' => message.elements['title'].text,
|
|
95
|
+
'body' => message.elements['body'].text})
|
|
96
|
+
end
|
|
97
|
+
return messages
|
|
98
|
+
else
|
|
99
|
+
return status_fail(response)
|
|
100
|
+
end
|
|
112
101
|
end
|
|
113
102
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
103
|
+
private
|
|
104
|
+
|
|
105
|
+
# Gets a particular hellotxt response.
|
|
106
|
+
# <tt>type</tt>: The service type (ex. 'user.services'). Gets appended to <tt>API_URL</tt>.
|
|
107
|
+
# <tt>parameters</tt>: Optional (depending on the <tt>type</tt>) parameters to be passed along
|
|
108
|
+
# with the request. The API key and USER key are merged with this on every call.
|
|
109
|
+
def get_response(type, parameters = {})
|
|
110
|
+
parameters.merge!('app_key' => @api_key, 'user_key' => @user_key)
|
|
111
|
+
REXML::Document.new(http_request("#{API_URL}/method/#{type}", parameters))
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# This makes the actual HTTP request.
|
|
115
|
+
def http_request(url, parameters)
|
|
116
|
+
response = Net::HTTP.post_form(URI.parse(url), parameters)
|
|
117
|
+
return response.body
|
|
118
|
+
end
|
|
119
119
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
# Successful response.
|
|
121
|
+
def status_ok
|
|
122
|
+
return {'status' => 'OK'}
|
|
123
|
+
end
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
# Failed response.
|
|
126
|
+
def status_fail(response)
|
|
127
|
+
return {'status' => 'FAIL', 'message' => response.elements['rsp/message'].text}
|
|
128
|
+
end
|
|
129
129
|
|
|
130
130
|
end
|
|
131
131
|
|
data/lib/hellotxt.rb
CHANGED
data/spec/client_spec.rb
CHANGED
data/spec/keyloader_spec.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require
|
|
1
|
+
require 'spec_helper'
|
|
2
2
|
require 'tempfile'
|
|
3
3
|
|
|
4
4
|
describe HelloTxt::Keyloader do
|
|
@@ -17,7 +17,7 @@ describe HelloTxt::Keyloader do
|
|
|
17
17
|
|
|
18
18
|
it "should use keys from yaml file if found" do
|
|
19
19
|
loader = HelloTxt::Keyloader.new(@tmp_path)
|
|
20
|
-
loader.has_keys?.should
|
|
20
|
+
loader.has_keys?.should be true
|
|
21
21
|
loader.keyfile.should eql(@tmp_path)
|
|
22
22
|
loader.api_key.should eql(@keydata['api_key'])
|
|
23
23
|
loader.user_key.should eql(@keydata['user_key'])
|
|
@@ -28,16 +28,16 @@ describe HelloTxt::Keyloader do
|
|
|
28
28
|
loader.user_key = 'baz'
|
|
29
29
|
loader.save
|
|
30
30
|
|
|
31
|
-
loader.has_keys?.should
|
|
32
|
-
File.exist?(loader.keyfile).should
|
|
33
|
-
File.readable?(loader.keyfile).should
|
|
31
|
+
loader.has_keys?.should be true
|
|
32
|
+
File.exist?(loader.keyfile).should be true
|
|
33
|
+
File.readable?(loader.keyfile).should be true
|
|
34
34
|
YAML::load_file(loader.keyfile)['user_key'].should eql('baz')
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
it "should behave if keys cannot be loaded" do
|
|
38
38
|
loader = HelloTxt::Keyloader.new('/tmp/nofile')
|
|
39
|
-
loader.has_keys?.should
|
|
40
|
-
loader.api_key.should
|
|
41
|
-
loader.user_key.should
|
|
39
|
+
loader.has_keys?.should be false
|
|
40
|
+
loader.api_key.should be nil
|
|
41
|
+
loader.user_key.should be nil
|
|
42
42
|
end
|
|
43
43
|
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
require 'rubygems'
|
|
1
|
+
# require 'rubygems'
|
|
2
2
|
require 'mocha'
|
|
3
3
|
|
|
4
|
-
require File.expand_path(
|
|
5
|
-
|
|
6
|
-
require File.expand_path(
|
|
7
|
-
File.join(File.dirname(__FILE__), %w[spec_responses]))
|
|
4
|
+
require File.expand_path(File.join(File.dirname(__FILE__),'/../lib/hellotxt'))
|
|
5
|
+
require 'spec_responses'
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
RSpec.configure do |config|
|
|
10
8
|
# == Mock Framework
|
|
11
9
|
#
|
|
12
10
|
# RSpec uses it's own mocking framework by default. If you prefer to
|
data/spec/spec_responses.rb
CHANGED
|
@@ -30,31 +30,31 @@ def init_service_response
|
|
|
30
30
|
<code>Ee6n</code>
|
|
31
31
|
<inhome>checked</inhome>
|
|
32
32
|
<friend>unchecked</friend>
|
|
33
|
-
<
|
|
33
|
+
<colleague>unchecked</colleague>
|
|
34
34
|
</service>
|
|
35
35
|
<service id="fb" name="facebook">
|
|
36
36
|
<code>XW7G</code>
|
|
37
37
|
<inhome>checked</inhome>
|
|
38
38
|
<friend>false</friend>
|
|
39
|
-
<
|
|
39
|
+
<colleague>false</colleague>
|
|
40
40
|
</service>
|
|
41
41
|
<service id="jk" name="jaiku">
|
|
42
42
|
<code>OK38</code>
|
|
43
43
|
<inhome>checked</inhome>
|
|
44
44
|
<friend>checked</friend>
|
|
45
|
-
<
|
|
45
|
+
<colleague>unchecked</colleague>
|
|
46
46
|
</service>
|
|
47
47
|
<service id="id" name="identica">
|
|
48
48
|
<code>IOZq</code>
|
|
49
49
|
<inhome>checked</inhome>
|
|
50
50
|
<friend>unchecked</friend>
|
|
51
|
-
<
|
|
51
|
+
<colleague>unchecked</colleague>
|
|
52
52
|
</service>
|
|
53
53
|
<service id="rj" name="rejaw">
|
|
54
54
|
<code>s46G</code>
|
|
55
55
|
<inhome>checked</inhome>
|
|
56
56
|
<friend>unchecked</friend>
|
|
57
|
-
<
|
|
57
|
+
<colleague>unchecked</colleague>
|
|
58
58
|
</service>
|
|
59
59
|
</services>
|
|
60
60
|
</rsp>
|
|
@@ -71,7 +71,7 @@ def init_friend_service_response
|
|
|
71
71
|
<code>OK38</code>
|
|
72
72
|
<inhome>checked</inhome>
|
|
73
73
|
<friend>checked</friend>
|
|
74
|
-
<
|
|
74
|
+
<colleague>unchecked</colleague>
|
|
75
75
|
</service>
|
|
76
76
|
</services>
|
|
77
77
|
</rsp>
|
|
@@ -88,10 +88,10 @@ def init_user_latest_response
|
|
|
88
88
|
<title></title>
|
|
89
89
|
<body>this is a test message</body>
|
|
90
90
|
</message>
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
<message id="5678">
|
|
92
|
+
<title></title>
|
|
93
|
+
<body>Desperately trying not to be bored</body>
|
|
94
|
+
</message>
|
|
95
95
|
</messages>
|
|
96
96
|
</rsp>
|
|
97
97
|
EOXML
|
metadata
CHANGED
|
@@ -1,71 +1,115 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hellotxt
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.3
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.4.3
|
|
5
5
|
platform: ruby
|
|
6
|
-
authors:
|
|
6
|
+
authors:
|
|
7
7
|
- Kevin Williams
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
date: 2024-07-10 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: simplecov
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 0.22.0
|
|
17
20
|
type: :development
|
|
18
|
-
|
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
20
|
-
requirements:
|
|
21
|
-
- - "
|
|
22
|
-
- !ruby/object:Gem::Version
|
|
23
|
-
version:
|
|
24
|
-
|
|
25
|
-
- !ruby/object:Gem::Dependency
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 0.22.0
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
26
28
|
name: rspec
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 3.13.0
|
|
27
34
|
type: :development
|
|
28
|
-
|
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
34
|
-
|
|
35
|
-
- !ruby/object:Gem::Dependency
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 3.13.0
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
36
42
|
name: mocha
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: 2.4.0
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: 2.4.0
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: bones-git
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 1.3.1
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: 1.3.1
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: bones-rspec
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: 2.0.1
|
|
37
76
|
type: :development
|
|
38
|
-
|
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
40
|
-
requirements:
|
|
41
|
-
- - "
|
|
42
|
-
- !ruby/object:Gem::Version
|
|
43
|
-
version: 0.
|
|
44
|
-
|
|
45
|
-
- !ruby/object:Gem::Dependency
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: 2.0.1
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
46
84
|
name: bones
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - "~>"
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: 3.9.0
|
|
47
90
|
type: :development
|
|
48
|
-
|
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
-
requirements:
|
|
51
|
-
- - "
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: 3.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
email:
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - "~>"
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: 3.9.0
|
|
97
|
+
description: HelloTxt (<http://hellotxt.com>) is a simple service that makes updating
|
|
98
|
+
your social networks a snap, and this is it's Ruby library.
|
|
99
|
+
email:
|
|
57
100
|
- kevwil@gmail.com
|
|
58
|
-
executables:
|
|
101
|
+
executables:
|
|
59
102
|
- hellotxt
|
|
60
103
|
extensions: []
|
|
61
|
-
|
|
62
|
-
extra_rdoc_files:
|
|
104
|
+
extra_rdoc_files:
|
|
63
105
|
- History.txt
|
|
64
106
|
- Manifest.txt
|
|
65
107
|
- bin/hellotxt
|
|
66
|
-
files:
|
|
67
|
-
- .
|
|
108
|
+
files:
|
|
109
|
+
- ".autotest"
|
|
110
|
+
- ".gitignore"
|
|
68
111
|
- History.txt
|
|
112
|
+
- LICENSE
|
|
69
113
|
- Manifest.txt
|
|
70
114
|
- README
|
|
71
115
|
- Rakefile
|
|
@@ -77,34 +121,29 @@ files:
|
|
|
77
121
|
- spec/keyloader_spec.rb
|
|
78
122
|
- spec/spec_helper.rb
|
|
79
123
|
- spec/spec_responses.rb
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
post_install_message:
|
|
85
|
-
rdoc_options:
|
|
86
|
-
- --main
|
|
124
|
+
homepage: https://kevwil.github.io/hellotxt
|
|
125
|
+
licenses:
|
|
126
|
+
- MIT
|
|
127
|
+
metadata: {}
|
|
128
|
+
post_install_message:
|
|
129
|
+
rdoc_options:
|
|
130
|
+
- "--main"
|
|
87
131
|
- README
|
|
88
|
-
require_paths:
|
|
132
|
+
require_paths:
|
|
89
133
|
- lib
|
|
90
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
|
-
requirements:
|
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
92
136
|
- - ">="
|
|
93
|
-
- !ruby/object:Gem::Version
|
|
94
|
-
version:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
requirements:
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: '0'
|
|
139
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
|
+
requirements:
|
|
98
141
|
- - ">="
|
|
99
|
-
- !ruby/object:Gem::Version
|
|
100
|
-
version:
|
|
101
|
-
version:
|
|
142
|
+
- !ruby/object:Gem::Version
|
|
143
|
+
version: '0'
|
|
102
144
|
requirements: []
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
specification_version: 3
|
|
108
|
-
summary: HelloTxt (http://hellotxt
|
|
145
|
+
rubygems_version: 3.5.14
|
|
146
|
+
signing_key:
|
|
147
|
+
specification_version: 4
|
|
148
|
+
summary: "* Kevin Williams (<https://kevwil."
|
|
109
149
|
test_files: []
|
|
110
|
-
|