rtmilk 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gemtest +0 -0
- data/Manifest.txt +1 -2
- data/README.md +3 -0
- data/Rakefile +8 -16
- data/lib/rtmilk/api.rb +3 -3
- data/lib/rtmilk/version.rb +1 -1
- metadata +83 -49
- data/README.txt +0 -3
- data/test/error_test.rb +0 -21
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b642bfac373d10ea9267dac432ff2a3f036f7923
|
4
|
+
data.tar.gz: 7f01237fb8121129203dedcb0252e3459d23c3ff
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 87510ca1a9e3d095d449b278d3149d1b087a86a7cff2e413410d3c42d755dcc8402e6d8a5c24f2058d2e45abf6e37528dcbf7b5c44fa9b5f4ee2ed99f4fa7597
|
7
|
+
data.tar.gz: 2e0ccf26c6124cac4213217a229fa768c1039d3cbbdb944d10654de7135b9ca2b61bf644fb4cc3522eb9203effc690ae85320e9fe0b46cae8b84a522c3dc6df6
|
data/.gemtest
ADDED
File without changes
|
data/Manifest.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
README.
|
1
|
+
README.md
|
2
2
|
Rakefile
|
3
3
|
CHANGELOG.txt
|
4
4
|
Manifest.txt
|
@@ -15,7 +15,6 @@ lib/rtmilk/error.rb
|
|
15
15
|
lib/rtmilk/version.rb
|
16
16
|
lib/rtmilk.rb
|
17
17
|
test/auth_api_test.rb
|
18
|
-
test/error_test.rb
|
19
18
|
test/lists_api_test.rb
|
20
19
|
test/make_config.rb
|
21
20
|
test/notes_api_test.rb
|
data/README.md
ADDED
data/Rakefile
CHANGED
@@ -3,9 +3,8 @@ require 'rake'
|
|
3
3
|
require 'rake/clean'
|
4
4
|
require 'rake/testtask'
|
5
5
|
require 'rake/packagetask'
|
6
|
-
require '
|
7
|
-
require '
|
8
|
-
require 'rake/contrib/rubyforgepublisher'
|
6
|
+
require 'rubygems/package_task'
|
7
|
+
require 'rdoc/task'
|
9
8
|
require 'fileutils'
|
10
9
|
require 'hoe'
|
11
10
|
include FileUtils
|
@@ -15,8 +14,7 @@ AUTHOR = "takayama" # can also be an array of Authors
|
|
15
14
|
EMAIL = "mootoh@gmail.com"
|
16
15
|
DESCRIPTION = 'a "Remember the Milk" wrapper library.'
|
17
16
|
GEM_NAME = "rtmilk" # what ppl will type to install your gem
|
18
|
-
|
19
|
-
HOMEPATH = "http://rtmilk.rubyforge.org"
|
17
|
+
HOMEPATH = "https://github.com/mootoh/rtmilk"
|
20
18
|
|
21
19
|
|
22
20
|
NAME = "rtmilk"
|
@@ -29,7 +27,7 @@ RDOC_OPTS = ['--quiet', '--title', "rtmilk documentation",
|
|
29
27
|
"--exclude", "setup.rb",
|
30
28
|
"--opname", "index.html",
|
31
29
|
"--line-numbers",
|
32
|
-
"--main", "README.
|
30
|
+
"--main", "README.md",
|
33
31
|
"-diagram",
|
34
32
|
"--inline-source"]
|
35
33
|
|
@@ -41,13 +39,13 @@ end
|
|
41
39
|
|
42
40
|
# Generate all the Rake tasks
|
43
41
|
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
44
|
-
hoe = Hoe.
|
42
|
+
hoe = Hoe.spec(GEM_NAME) do |p|
|
43
|
+
p.version = VERS
|
45
44
|
p.author = AUTHOR
|
46
45
|
p.description = DESCRIPTION
|
47
46
|
p.email = EMAIL
|
48
47
|
p.summary = DESCRIPTION
|
49
|
-
p.
|
50
|
-
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
|
48
|
+
p.urls = [HOMEPATH]
|
51
49
|
p.test_globs = ["test/**/*_test.rb"]
|
52
50
|
p.clean_globs = CLEAN #An array of file patterns to delete on clean.
|
53
51
|
|
@@ -64,13 +62,7 @@ Rake::RDocTask.new do |rdoc|
|
|
64
62
|
if ENV['DOC_FILES']
|
65
63
|
rdoc.rdoc_files.include(ENV['DOC_FILES'].split(/,\s*/))
|
66
64
|
else
|
67
|
-
rdoc.rdoc_files.include('README.
|
65
|
+
rdoc.rdoc_files.include('README.md', 'CHANGELOG.txt')
|
68
66
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
69
67
|
end
|
70
68
|
end
|
71
|
-
|
72
|
-
desc "Publish to RubyForge"
|
73
|
-
task :rubyforge => [:rdoc, :package] do
|
74
|
-
Rake::RubyForgePublisher.new(RUBYFORGE_PROJECT, 'takayama').upload
|
75
|
-
end
|
76
|
-
|
data/lib/rtmilk/api.rb
CHANGED
@@ -7,7 +7,7 @@ require 'net/http'
|
|
7
7
|
require 'digest/md5'
|
8
8
|
require 'rubygems'
|
9
9
|
require 'xmlsimple'
|
10
|
-
require 'uri'
|
10
|
+
require 'open-uri'
|
11
11
|
|
12
12
|
# access the {Remember the Milk}[http://www.rememberthemilk.com/] REST APIs.
|
13
13
|
module RTM
|
@@ -16,7 +16,7 @@ module RTM
|
|
16
16
|
class API
|
17
17
|
|
18
18
|
private
|
19
|
-
RTM_URI = '
|
19
|
+
RTM_URI = 'https://api.rememberthemilk.com'
|
20
20
|
REST_PATH = '/services/rest/'
|
21
21
|
AUTH_PATH = '/services/auth/'
|
22
22
|
PERMS = ['read', 'write', 'delete']
|
@@ -47,7 +47,7 @@ public
|
|
47
47
|
|
48
48
|
# invoke a method
|
49
49
|
def invoke
|
50
|
-
response =
|
50
|
+
response = URI.join(RTM_URI, make_url).read
|
51
51
|
# puts '--------------------------------------------------'
|
52
52
|
# puts response
|
53
53
|
# puts '--------------------------------------------------'
|
data/lib/rtmilk/version.rb
CHANGED
metadata
CHANGED
@@ -1,77 +1,111 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.1
|
3
|
-
specification_version: 1
|
1
|
+
--- !ruby/object:Gem::Specification
|
4
2
|
name: rtmilk
|
5
|
-
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.
|
7
|
-
date: 2007-03-17 00:00:00 +09:00
|
8
|
-
summary: a "Remember the Milk" wrapper library.
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: mootoh@gmail.com
|
12
|
-
homepage: http://rtmilk.rubyforge.org
|
13
|
-
rubyforge_project: rtmilk
|
14
|
-
description: a "Remember the Milk" wrapper library.
|
15
|
-
autorequire:
|
16
|
-
default_executable:
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.1
|
25
5
|
platform: ruby
|
26
|
-
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
|
-
authors:
|
6
|
+
authors:
|
30
7
|
- takayama
|
31
|
-
|
32
|
-
|
33
|
-
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-02-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rdoc
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: hoe
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.13'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.13'
|
41
|
+
description: a "Remember the Milk" wrapper library.
|
42
|
+
email: mootoh@gmail.com
|
43
|
+
executables: []
|
44
|
+
extensions: []
|
45
|
+
extra_rdoc_files:
|
34
46
|
- CHANGELOG.txt
|
47
|
+
- History.txt
|
35
48
|
- Manifest.txt
|
49
|
+
- README.md
|
50
|
+
files:
|
51
|
+
- .gemtest
|
52
|
+
- CHANGELOG.txt
|
36
53
|
- History.txt
|
37
|
-
-
|
54
|
+
- Manifest.txt
|
55
|
+
- README.md
|
56
|
+
- Rakefile
|
38
57
|
- example/get.rb
|
58
|
+
- lib/rtmilk.rb
|
59
|
+
- lib/rtmilk/api.rb
|
39
60
|
- lib/rtmilk/api/auth.rb
|
40
61
|
- lib/rtmilk/api/lists.rb
|
41
62
|
- lib/rtmilk/api/notes.rb
|
42
63
|
- lib/rtmilk/api/tasks.rb
|
43
64
|
- lib/rtmilk/api/timelines.rb
|
44
|
-
- lib/rtmilk/api.rb
|
45
65
|
- lib/rtmilk/error.rb
|
46
66
|
- lib/rtmilk/version.rb
|
47
|
-
-
|
67
|
+
- setup.rb
|
68
|
+
- test/Rakefile
|
48
69
|
- test/auth_api_test.rb
|
49
|
-
- test/error_test.rb
|
50
70
|
- test/lists_api_test.rb
|
51
71
|
- test/make_config.rb
|
52
72
|
- test/notes_api_test.rb
|
53
|
-
- test/
|
73
|
+
- test/rtm_api_test.rb
|
74
|
+
- test/rtm_test.rb
|
54
75
|
- test/tasks_api_test.rb
|
55
76
|
- test/test_helper.rb
|
56
77
|
- test/timelines_api_test.rb
|
57
|
-
|
78
|
+
homepage: https://github.com/mootoh/rtmilk
|
79
|
+
licenses:
|
80
|
+
- MIT
|
81
|
+
metadata: {}
|
82
|
+
post_install_message:
|
83
|
+
rdoc_options:
|
84
|
+
- --main
|
85
|
+
- README.md
|
86
|
+
require_paths:
|
87
|
+
- lib
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - '>='
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - '>='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
requirements: []
|
99
|
+
rubyforge_project:
|
100
|
+
rubygems_version: 2.4.5
|
101
|
+
signing_key:
|
102
|
+
specification_version: 4
|
103
|
+
summary: a "Remember the Milk" wrapper library.
|
104
|
+
test_files:
|
58
105
|
- test/auth_api_test.rb
|
59
|
-
- test/error_test.rb
|
60
106
|
- test/lists_api_test.rb
|
61
107
|
- test/notes_api_test.rb
|
62
108
|
- test/rtm_api_test.rb
|
63
109
|
- test/rtm_test.rb
|
64
110
|
- test/tasks_api_test.rb
|
65
111
|
- test/timelines_api_test.rb
|
66
|
-
rdoc_options: []
|
67
|
-
|
68
|
-
extra_rdoc_files: []
|
69
|
-
|
70
|
-
executables: []
|
71
|
-
|
72
|
-
extensions: []
|
73
|
-
|
74
|
-
requirements: []
|
75
|
-
|
76
|
-
dependencies: []
|
77
|
-
|
data/README.txt
DELETED
data/test/error_test.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# tests for RTM::Auth API.
|
3
|
-
#
|
4
|
-
|
5
|
-
require File.dirname(__FILE__) + '/test_helper.rb'
|
6
|
-
|
7
|
-
class RTMErrorTest < Test::Unit::TestCase
|
8
|
-
CONFIG = File.dirname(__FILE__) + '/../config.dat' # config data file
|
9
|
-
|
10
|
-
def setup
|
11
|
-
end
|
12
|
-
|
13
|
-
def teardown
|
14
|
-
end
|
15
|
-
|
16
|
-
def test_raise
|
17
|
-
assert_raise(RTM::Error) { raise RTM::Error, "login failed" }
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|
21
|
-
# vim:fdm=indent
|