rumember 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/rumember.rb +4 -4
- data/lib/rumember/abstract.rb +1 -1
- data/lib/rumember/list.rb +6 -2
- data/lib/rumember/task.rb +1 -1
- data/rumember.gemspec +6 -4
- data/spec/rumember/timeline_spec.rb +1 -1
- data/spec/rumember/transaction_spec.rb +1 -1
- metadata +23 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 46c819b41ae355fb968eeb92f6d5b6cc8599ad0f052a10f5d728ee9bd14f4dc8
|
4
|
+
data.tar.gz: 57545264a8d69343ebeeff71b165c41a6933b86f41eb8828e5c5fb50f3889188
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f66bba4437ae34c4e1037806b55dc3ef59be3ab0e31645160b6944bae1c63188464e1571ad4e6099189185bbf1325675c550d08076ff5f1ba08b85af43c7e8eb
|
7
|
+
data.tar.gz: 5687511ae43d6053cae9b2a6fda08214400020d00dbdbc4f0c07b4640c4e49137227d371beedabe43c9d02a5b62affca9926eb541af095f4522bf5ad1b2b588a
|
data/lib/rumember.rb
CHANGED
@@ -67,7 +67,7 @@ class Rumember
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def sign(params)
|
70
|
-
params = params.merge('api_key' => api_key
|
70
|
+
params = params.merge('api_key' => api_key)
|
71
71
|
params.update('api_sig' => api_sig(params))
|
72
72
|
end
|
73
73
|
|
@@ -79,7 +79,7 @@ class Rumember
|
|
79
79
|
end
|
80
80
|
|
81
81
|
def auth_url(perms = :delete, extra = {})
|
82
|
-
"
|
82
|
+
"https://rememberthemilk.com/services/auth?" +
|
83
83
|
params({'perms' => perms}.merge(extra))
|
84
84
|
end
|
85
85
|
|
@@ -125,13 +125,13 @@ class Rumember
|
|
125
125
|
end
|
126
126
|
|
127
127
|
def url(params)
|
128
|
-
"
|
128
|
+
"https://api.rememberthemilk.com/services/rest?#{params(params)}"
|
129
129
|
end
|
130
130
|
|
131
131
|
def dispatch(method, params = {})
|
132
132
|
require 'json'
|
133
133
|
require 'open-uri'
|
134
|
-
raw = open(url(params.merge('method' => "rtm.#{method}", 'format' => 'json'))).read
|
134
|
+
raw = URI.open(url(params.merge('method' => "rtm.#{method}", 'format' => 'json'))).read
|
135
135
|
rsp = JSON.parse(raw)['rsp']
|
136
136
|
case rsp['stat']
|
137
137
|
when 'fail'
|
data/lib/rumember/abstract.rb
CHANGED
data/lib/rumember/list.rb
CHANGED
@@ -20,8 +20,12 @@ class Rumember
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
else
|
23
|
-
|
24
|
-
|
23
|
+
if list.has_key?('taskseries')
|
24
|
+
(list['taskseries'].kind_of?(Array) ? list['taskseries'] : [list['taskseries']]).map do |t|
|
25
|
+
Task.new(self, t)
|
26
|
+
end
|
27
|
+
else
|
28
|
+
[]
|
25
29
|
end
|
26
30
|
end
|
27
31
|
end
|
data/lib/rumember/task.rb
CHANGED
data/rumember.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "rumember"
|
3
|
-
s.version = "1.1.
|
3
|
+
s.version = "1.1.1"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.authors = ["Tim Pope"]
|
6
6
|
s.email = ["code@tpope.n"+'et']
|
@@ -12,7 +12,9 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
13
13
|
s.require_paths = ["lib"]
|
14
14
|
|
15
|
-
s.add_runtime_dependency("json", ["~>
|
16
|
-
s.add_runtime_dependency("launchy", ["~>
|
17
|
-
|
15
|
+
s.add_runtime_dependency("json", ["~> 2.0"])
|
16
|
+
s.add_runtime_dependency("launchy", ["~> 2"])
|
17
|
+
|
18
|
+
s.add_development_dependency("rake", ["< 11"])
|
19
|
+
s.add_development_dependency("rspec", ["~> 2"])
|
18
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rumember
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Pope
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -16,42 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: launchy
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "<"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '11'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "<"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '11'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rspec
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
59
|
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2
|
61
|
+
version: '2'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2
|
68
|
+
version: '2'
|
55
69
|
description:
|
56
70
|
email:
|
57
71
|
- code@tpope.net
|
@@ -97,8 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
111
|
- !ruby/object:Gem::Version
|
98
112
|
version: '0'
|
99
113
|
requirements: []
|
100
|
-
|
101
|
-
rubygems_version: 2.6.8
|
114
|
+
rubygems_version: 3.1.4
|
102
115
|
signing_key:
|
103
116
|
specification_version: 4
|
104
117
|
summary: Remember The Milk Ruby API and command line client
|