thartm 0.0.18 → 0.0.20

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.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/bin/rrtm +1 -1
  3. data/lib/thartm.rb +11 -2
  4. data/lib/thartm_lib.rb +1 -0
  5. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.18
1
+ 0.0.20
data/bin/rrtm CHANGED
@@ -9,7 +9,7 @@ rescue
9
9
  end
10
10
 
11
11
 
12
- ENV['TZ'] = @@config['tz']
12
+ #ENV['TZ'] = @@config['tz']
13
13
 
14
14
  # validating token
15
15
  unless @@config['token']
data/lib/thartm.rb CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  require 'rubygems'
4
4
  require 'yaml'
5
- require 'thartm_lib.rb'
5
+ require 'tzinfo'
6
+ require './lib/thartm_lib.rb'
6
7
 
7
8
  class Rrtm
8
9
 
@@ -34,6 +35,7 @@ class Rrtm
34
35
 
35
36
  def tasks(args = {})
36
37
  tasks = @rtm.tasks.getList args
38
+
37
39
  end
38
40
 
39
41
  def tasksAllTaskList
@@ -87,6 +89,10 @@ class Rrtm
87
89
  @rtm.tasks.setName :timeline => @timeline,:list_id =>v.list_id , :taskseries_id => v.taskseries_id, :task_id => v.task_id, :name => newname
88
90
  end
89
91
 
92
+ def getTimezone
93
+ sets = @rtm.settings.getList
94
+ return sets[:timezone]
95
+ end
90
96
  end
91
97
 
92
98
  class CommandLineInterface
@@ -145,7 +151,10 @@ class CommandLineInterface
145
151
  def postpone
146
152
  @rtm.postpone(ARGV[1])
147
153
  end
148
-
154
+
155
+ def tz
156
+ return @rtm.getTimezone
157
+ end
149
158
  def first
150
159
  t = Array.new
151
160
  tasks = @rtm.tasksAllTaskList
data/lib/thartm_lib.rb CHANGED
@@ -39,6 +39,7 @@ require 'tzinfo'
39
39
  #TODO: allow specifying whether retval should be indexed by rtm_id or list name for lists
40
40
 
41
41
  class ThaRememberTheMilk
42
+
42
43
  RUBY_API_VERSION = '0.6'
43
44
  # you can just put set these here so you don't have to pass them in with
44
45
  # every constructor call
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thartm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - tha
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-06-06 00:00:00 +02:00
12
+ date: 2010-06-07 00:00:00 +02:00
13
13
  default_executable: rrtm
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency