hellotxt 1.0.4 → 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 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/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ doc/
2
+ pkg/
3
+ coverage/
4
+ .idea/
5
+ .rvmrc
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 (http://kevwil.github.com/)
5
+ * Kevin Williams (<https://kevwil.github.io/>)
6
6
 
7
7
  == CODE:
8
8
 
9
- http://github.com/kevwil/hellotxt/
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 and user key here: http://hellotxt.com/developers/applications
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
- # Require the library and initialize it.
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
- # Ensure proper API and USER keys.
42
+ ## Ensure proper API and USER keys
43
+
42
44
  hellotxt.validate['status']
43
- # => 'OK' if success, otherwise 'FAIL'
44
45
 
45
- # Posting to all services.
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
 
@@ -57,36 +61,11 @@ Ruby!
57
61
 
58
62
  $ (sudo) gem install hellotxt
59
63
 
60
- (you really should try RVM if you still need sudo to manage your gems. http://rvm.beginrescueend.com/)
64
+ (you really should try RVM if you still need sudo to manage your gems. <https://rvm.io/>)
61
65
 
62
66
  == RUN TESTS:
63
67
 
64
68
  $ (sudo) gem install bones-extras
65
69
  $ rake
66
70
 
67
- (you really should try RVM if you still need sudo to manage your gems. http://rvm.beginrescueend.com/)
68
-
69
- == LICENSE:
70
-
71
- (The MIT License)
72
-
73
- Copyright (c) 2008-2010 Kevin Williams
74
-
75
- Permission is hereby granted, free of charge, to any person obtaining
76
- a copy of this software and associated documentation files (the
77
- 'Software'), to deal in the Software without restriction, including
78
- without limitation the rights to use, copy, modify, merge, publish,
79
- distribute, sublicense, and/or sell copies of the Software, and to
80
- permit persons to whom the Software is furnished to do so, subject to
81
- the following conditions:
82
-
83
- The above copyright notice and this permission notice shall be
84
- included in all copies or substantial portions of the Software.
85
-
86
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
87
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
88
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
89
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
90
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
91
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
92
- 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
@@ -14,20 +14,22 @@ Bones do
14
14
  name 'hellotxt'
15
15
  authors ['Kevin Williams']
16
16
  email ['kevwil@gmail.com']
17
- url 'http://kevwil.github.com/hellotxt'
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 'rcov', :development => true
23
+ depend_on 'simplecov', :development => true
23
24
  depend_on 'rspec', :development => true
24
25
  depend_on 'mocha', :development => true
25
26
  depend_on 'bones-git', :development => true
26
27
  depend_on 'bones-rspec', :development => true
27
- ruby_opts << '-Ilib' << '-rubygems'
28
+ # ruby_opts << '-Ilib' << '-rubygems'
29
+ ruby_opts << '-Ilib'
28
30
  test.opts << '--color'# << '--format html:./spec_out.html'
29
- rcov.opts << ['--exclude', 'rcov']
30
- rcov.opts << ['--exclude', 'mocha']
31
+ # rcov.opts << ['--exclude', 'rcov']
32
+ # rcov.opts << ['--exclude', 'mocha']
31
33
  use_gmail
32
34
  enable_sudo
33
35
  end
@@ -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 be_true
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 be_true
32
- File.exist?(loader.keyfile).should be_true
33
- File.readable?(loader.keyfile).should be_true
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 be_false
40
- loader.api_key.should be_nil
41
- loader.user_key.should be_nil
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,10 +1,10 @@
1
- require 'rubygems'
1
+ # require 'rubygems'
2
2
  require 'mocha'
3
3
 
4
4
  require File.expand_path(File.join(File.dirname(__FILE__),'/../lib/hellotxt'))
5
5
  require 'spec_responses'
6
6
 
7
- Spec::Runner.configure do |config|
7
+ RSpec.configure do |config|
8
8
  # == Mock Framework
9
9
  #
10
10
  # RSpec uses it's own mocking framework by default. If you prefer to
metadata CHANGED
@@ -1,133 +1,115 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: hellotxt
3
- version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 0
9
- - 4
10
- version: 1.0.4
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.4.3
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Kevin Williams
14
- autorequire:
8
+ autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2010-11-11 00:00:00 -07:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: rcov
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 41
30
- segments:
31
- - 0
32
- - 9
33
- - 9
34
- version: 0.9.9
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
35
20
  type: :development
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: rspec
39
21
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 25
46
- segments:
47
- - 1
48
- - 3
49
- - 1
50
- version: 1.3.1
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
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 3.13.0
51
34
  type: :development
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: mocha
55
35
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 41
62
- segments:
63
- - 0
64
- - 9
65
- - 9
66
- version: 0.9.9
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
42
+ name: mocha
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.4.0
67
48
  type: :development
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: bones-git
71
49
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 31
78
- segments:
79
- - 1
80
- - 2
81
- - 0
82
- version: 1.2.0
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
83
62
  type: :development
84
- version_requirements: *id004
85
- - !ruby/object:Gem::Dependency
86
- name: bones-rspec
87
63
  prerelease: false
88
- requirement: &id005 !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- hash: 19
94
- segments:
95
- - 1
96
- - 1
97
- - 0
98
- version: 1.1.0
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
99
76
  type: :development
100
- version_requirements: *id005
101
- - !ruby/object:Gem::Dependency
102
- name: bones
103
77
  prerelease: false
104
- requirement: &id006 !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- hash: 17
110
- segments:
111
- - 3
112
- - 5
113
- - 1
114
- version: 3.5.1
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
84
+ name: bones
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 3.9.0
115
90
  type: :development
116
- version_requirements: *id006
117
- description: HelloTxt (http://hellotxt.com) is a simple service that makes updating your social networks a snap, and this is it's Ruby library.
118
- 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:
119
100
  - kevwil@gmail.com
120
- executables:
101
+ executables:
121
102
  - hellotxt
122
103
  extensions: []
123
-
124
- extra_rdoc_files:
104
+ extra_rdoc_files:
125
105
  - History.txt
126
106
  - Manifest.txt
127
107
  - bin/hellotxt
128
- files:
129
- - .autotest
108
+ files:
109
+ - ".autotest"
110
+ - ".gitignore"
130
111
  - History.txt
112
+ - LICENSE
131
113
  - Manifest.txt
132
114
  - README
133
115
  - Rakefile
@@ -139,40 +121,29 @@ files:
139
121
  - spec/keyloader_spec.rb
140
122
  - spec/spec_helper.rb
141
123
  - spec/spec_responses.rb
142
- has_rdoc: true
143
- homepage: http://kevwil.github.com/hellotxt
144
- licenses: []
145
-
146
- post_install_message:
147
- rdoc_options:
148
- - --main
124
+ homepage: https://kevwil.github.io/hellotxt
125
+ licenses:
126
+ - MIT
127
+ metadata: {}
128
+ post_install_message:
129
+ rdoc_options:
130
+ - "--main"
149
131
  - README
150
- require_paths:
132
+ require_paths:
151
133
  - lib
152
- required_ruby_version: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
134
+ required_ruby_version: !ruby/object:Gem::Requirement
135
+ requirements:
155
136
  - - ">="
156
- - !ruby/object:Gem::Version
157
- hash: 3
158
- segments:
159
- - 0
160
- version: "0"
161
- required_rubygems_version: !ruby/object:Gem::Requirement
162
- none: false
163
- requirements:
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ requirements:
164
141
  - - ">="
165
- - !ruby/object:Gem::Version
166
- hash: 3
167
- segments:
168
- - 0
169
- version: "0"
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
170
144
  requirements: []
171
-
172
- rubyforge_project: hellotxt
173
- rubygems_version: 1.3.7
174
- signing_key:
175
- specification_version: 3
176
- summary: HelloTxt (http://hellotxt
145
+ rubygems_version: 3.5.14
146
+ signing_key:
147
+ specification_version: 4
148
+ summary: "* Kevin Williams (<https://kevwil."
177
149
  test_files: []
178
-