hellotxt 1.0.0 → 1.0.1
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.
- data/History.txt +5 -0
- data/lib/hellotxt.rb +1 -1
- data/lib/hellotxt/client.rb +1 -1
- data/spec/client_spec.rb +2 -2
- data/tasks/gem.rake +11 -2
- metadata +3 -3
data/History.txt
CHANGED
data/lib/hellotxt.rb
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__))
|
|
3
3
|
module HelloTxt
|
4
4
|
|
5
5
|
# :stopdoc:
|
6
|
-
VERSION = '1.0.
|
6
|
+
VERSION = '1.0.1'
|
7
7
|
LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
|
8
8
|
PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
|
9
9
|
# :startdoc:
|
data/lib/hellotxt/client.rb
CHANGED
@@ -84,7 +84,7 @@ module HelloTxt
|
|
84
84
|
# <tt>parameters</tt>: Optional (depending on the <tt>type</tt>) parameters to be passed along
|
85
85
|
# with the request. The API key and USER key are merged with this on every call.
|
86
86
|
def get_response(type, parameters = {})
|
87
|
-
parameters.merge!('
|
87
|
+
parameters.merge!('app_key' => @api_key, 'user_key' => @user_key)
|
88
88
|
REXML::Document.new(http_request("#{API_URL}/method/#{type}", parameters))
|
89
89
|
end
|
90
90
|
|
data/spec/client_spec.rb
CHANGED
@@ -5,7 +5,7 @@ describe HelloTxt::Client, "with expected results" do
|
|
5
5
|
|
6
6
|
before(:each) do
|
7
7
|
@client = HelloTxt::Client.new('a','b')
|
8
|
-
@params = {'
|
8
|
+
@params = {'app_key' => 'a', 'user_key' => 'b'}
|
9
9
|
end
|
10
10
|
|
11
11
|
it "should validate keys successfully" do
|
@@ -71,7 +71,7 @@ end
|
|
71
71
|
describe HelloTxt::Client, "with error messages" do
|
72
72
|
before(:each) do
|
73
73
|
@client = HelloTxt::Client.new('a','b')
|
74
|
-
@params = {'
|
74
|
+
@params = {'app_key' => 'a', 'user_key' => 'b'}
|
75
75
|
end
|
76
76
|
|
77
77
|
it "should handle a failed validate cleanly" do
|
data/tasks/gem.rake
CHANGED
@@ -37,8 +37,6 @@ class GemPackageTask < Rake::PackageTask
|
|
37
37
|
local_setup = File.join(Dir.pwd, %w[tasks setup.rb])
|
38
38
|
if !test(?e, local_setup)
|
39
39
|
Dir.glob(::Bones.path(%w[lib bones tasks *])).each {|fn| bones_files << fn}
|
40
|
-
gem_spec.files = (gem_spec.files +
|
41
|
-
bones_files.map {|fn| File.join('tasks', File.basename(fn))}).sort
|
42
40
|
end
|
43
41
|
end
|
44
42
|
|
@@ -63,6 +61,10 @@ class GemPackageTask < Rake::PackageTask
|
|
63
61
|
|
64
62
|
file package_dir_path => bones_files do
|
65
63
|
mkdir_p package_dir rescue nil
|
64
|
+
|
65
|
+
gem_spec.files = (gem_spec.files +
|
66
|
+
bones_files.map {|fn| File.join('tasks', File.basename(fn))}).sort
|
67
|
+
|
66
68
|
bones_files.each do |fn|
|
67
69
|
base_fn = File.join('tasks', File.basename(fn))
|
68
70
|
f = File.join(package_dir_path, base_fn)
|
@@ -157,6 +159,13 @@ namespace :gem do
|
|
157
159
|
puts PROJ.gem._spec.to_ruby
|
158
160
|
end
|
159
161
|
|
162
|
+
desc 'Write the gemspec '
|
163
|
+
task :spec => 'gem:prereqs' do
|
164
|
+
File.open("#{PROJ.name}.gemspec", 'w') do |f|
|
165
|
+
f.write PROJ.gem._spec.to_ruby
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
160
169
|
desc 'Install the gem'
|
161
170
|
task :install => [:clobber, 'gem:package'] do
|
162
171
|
sh "#{SUDO} #{GEM} install --local pkg/#{PROJ.gem._spec.full_name}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hellotxt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Williams
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-01-03 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.
|
23
|
+
version: 2.2.0
|
24
24
|
version:
|
25
25
|
description: HelloTxt (http://hellotxt.com) is a simple service that makes updating your social networks a snap, and this is it's Ruby library.
|
26
26
|
email:
|