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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 312293d69ef176ee8c456b216f123055d5b04f14
4
- data.tar.gz: 023c9fc1a6d0de658d44b96267df7fc587447652
2
+ SHA256:
3
+ metadata.gz: 46c819b41ae355fb968eeb92f6d5b6cc8599ad0f052a10f5d728ee9bd14f4dc8
4
+ data.tar.gz: 57545264a8d69343ebeeff71b165c41a6933b86f41eb8828e5c5fb50f3889188
5
5
  SHA512:
6
- metadata.gz: b80383d1b96ae875269c465ad791a726f482616cd4a903c8dc52ceeb89d956ec6d779c96fbd597300a750bda22b65f0eda879e8b981293829e39efdff7864d37
7
- data.tar.gz: 5ca7e7aa7b34047d7f593b12c9a1532522d7ab7d7a75bdbd7b77bcaff223dac0c5780056aafd0ac82bcdde76c265a3289efdd3f037dabcebcc6de8540cf0a9bb
6
+ metadata.gz: f66bba4437ae34c4e1037806b55dc3ef59be3ab0e31645160b6944bae1c63188464e1571ad4e6099189185bbf1325675c550d08076ff5f1ba08b85af43c7e8eb
7
+ data.tar.gz: 5687511ae43d6053cae9b2a6fda08214400020d00dbdbc4f0c07b4640c4e49137227d371beedabe43c9d02a5b62affca9926eb541af095f4522bf5ad1b2b588a
@@ -67,7 +67,7 @@ class Rumember
67
67
  end
68
68
 
69
69
  def sign(params)
70
- params = params.merge('api_key' => api_key, 'v' => api_version)
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
- "http://rememberthemilk.com/services/auth?" +
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
- "http://api.rememberthemilk.com/services/rest?#{params(params)}"
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'
@@ -28,7 +28,7 @@ class Rumember
28
28
 
29
29
  def self.integer_reader(*methods)
30
30
  reader(*methods) do |value|
31
- Integer(value)
31
+ Integer(value) unless value.kind_of?(String) && value.empty?
32
32
  end
33
33
  end
34
34
 
@@ -20,8 +20,12 @@ class Rumember
20
20
  end
21
21
  end
22
22
  else
23
- (list['taskseries'].kind_of?(Array) ? list['taskseries'] : [list['taskseries']]).map do |t|
24
- Task.new(self, t)
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
@@ -1,6 +1,6 @@
1
1
  class Rumember
2
2
  class Task < Abstract
3
- integer_reader :id, :location_id
3
+ integer_reader :id, :location_id, :parent_task_id
4
4
  time_reader :created, :modified
5
5
  reader :name, :source, :url
6
6
  alias taskseries_id id
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rumember"
3
- s.version = "1.1.0"
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", ["~> 1.8.0"])
16
- s.add_runtime_dependency("launchy", ["~> 0.3.0"])
17
- s.add_development_dependency("rspec", ["~> 2.5.0"])
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
@@ -3,7 +3,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec/spec_helper')
3
3
  describe Rumember::Timeline do
4
4
 
5
5
  let :interface do
6
- stub.as_null_object
6
+ double.as_null_object
7
7
  end
8
8
 
9
9
  let :account do
@@ -7,7 +7,7 @@ describe Rumember::Transaction do
7
7
  end
8
8
 
9
9
  let :parent do
10
- stub.as_null_object
10
+ double.as_null_object
11
11
  end
12
12
 
13
13
  subject do
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.0
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: 2017-05-06 00:00:00.000000000 Z
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: 1.8.0
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: 1.8.0
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: 0.3.0
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: 0.3.0
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.5.0
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.5.0
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
- rubyforge_project:
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