zzamboni-things2thl 0.4.1 → 0.4.3

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/README CHANGED
@@ -13,12 +13,14 @@ INSTALL:
13
13
  You need Things 1.1.1 or later, since things2thl requires Applescript
14
14
  support.
15
15
 
16
- You need to install rb-appscript from
17
- http://appscript.sourceforge.net/rb-appscript/install.html
18
-
19
16
  Then install things2thl by running:
20
17
  $ sudo gem install zzamboni-things2thl --source http://gems.github.com/
21
18
 
19
+ Note: things2thl need the rb-appscript library from
20
+ http://appscript.sourceforge.net/rb-appscript/install.html. If you
21
+ don't have it already, it will be automatically installed by gem.
22
+
23
+
22
24
 
23
25
  USAGE:
24
26
  -----
@@ -26,26 +28,38 @@ USAGE:
26
28
  Usage: things2thl [options]
27
29
 
28
30
  Options:
29
- --projects-as-lists Convert projects in Things to lists in THL (default)
30
- --projects-as-tasks Convert projects in Things to tasks in THL
31
+ -L, --projects-as-lists Convert projects in Things to lists in THL
32
+ (default)
33
+ -T, --projects-as-tasks Convert projects in Things to tasks in THL
31
34
  --[no-]areas Transfer areas from Things (default: yes)
32
- -C, --context-tags-regex REGEX Regular expression to identify tags that should be interpreted as contexts.
35
+ -C, --context-tags-regex REGEX Regular expression to identify tags that
36
+ should be interpreted as contexts.
33
37
  (default: ^@)
34
- --top-level-folder FOLDER If specified, do the import inside the named folders, instead of the top level
35
- (Inbox, etc. will also be created there instead of their corresponding places)
36
- --projects-folder FOLDER If specified, the named folder will be created to contain all projects when
37
- --projects-as-lists is used (otherwise they will be put in the top folders group).
38
- If --projects-as-tasks is used, a 'Projects' list is always created, but this option
39
- can be used to specify its name.
40
- -c, --completed Transfer also completed/canceled tasks and projects (default: no)
41
- --[no-]archive-completed If transferring completed/canceled tasks, also mark them as archived (default: yes)
38
+ --top-level-folder FOLDER Do the import inside the named folders,
39
+ instead of the top level
40
+ (Inbox, etc. will also be created there
41
+ instead of their corresponding places)
42
+ --projects-folder FOLDER The named folder will be created to
43
+ contain all projects when
44
+ --projects-as-lists is used (otherwise
45
+ they will be in the top folders group).
46
+ If --projects-as-tasks is used, a
47
+ 'Projects' list is always created, but
48
+ this option can be used to specify
49
+ its name.
50
+ -c, --completed Transfer also completed/canceled tasks
51
+ and projects (default: no)
52
+ --[no-]archive-completed If transferring completed/canceled tasks,
53
+ also mark them as archived (default: yes)
42
54
  -q, --quiet Do not print items as they are processed
43
55
  -h, --help Shows this help message
44
56
  -v, --version Shows version
45
57
 
46
58
  Options you should seldom need:
47
- --things THINGSAPP Location of the Things application (default: /Applications/Things.app)
48
- --thl THLAPP Location of the The Hit List application (default: /Applications/The Hit List.app)
59
+ --things THINGSAPP Location of the Things application
60
+ (default: /Applications/Things.app)
61
+ --thl THLAPP Location of the The Hit List application
62
+ (default: /Applications/The Hit List.app)
49
63
 
50
64
 
51
65
  Functionality still missing:
data/Rakefile CHANGED
@@ -10,6 +10,7 @@ begin
10
10
  gemspec.homepage = "http://zzamboni.github.com/things2thl/"
11
11
  gemspec.description = "Library and command-line tool for migrating Things data to The Hit List"
12
12
  gemspec.authors = ["Diego Zamboni"]
13
+ gemspec.add_dependency('rb-appscript', '>=0.5.1')
13
14
  end
14
15
  rescue LoadError
15
16
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.3
data/bin/things2thl CHANGED
@@ -17,27 +17,36 @@ opts = OptionParser.new do |opts|
17
17
  exit
18
18
  end
19
19
 
20
- opts.on("--projects-as-lists", "Convert projects in Things to lists in THL" + ((options.structure == :projects_as_lists) ? " (default)" : "") ) { options.structure = :projects_as_lists }
21
- opts.on("--projects-as-tasks", "Convert projects in Things to tasks in THL" + ((options.structure == :projects_as_tasks) ? " (default)" : "") ) { options.structure = :projects_as_tasks }
20
+ opts.on("-L", "--projects-as-lists", "Convert projects in Things to lists in THL", ((options.structure == :projects_as_lists) ? " (default)" : "") ) { options.structure = :projects_as_lists }
21
+ opts.on("-T", "--projects-as-tasks", "Convert projects in Things to tasks in THL" + ((options.structure == :projects_as_tasks) ? " (default)" : "") ) { options.structure = :projects_as_tasks }
22
22
  opts.on("--[no-]areas", "Transfer areas from Things (default: #{options.areas ? 'yes' : 'no'})") { |v| options.areas = v }
23
- opts.on('-C REGEX', '--context-tags-regex REGEX', 'Regular expression to identify tags that should be interpreted as contexts.',
23
+ opts.on('-C REGEX', '--context-tags-regex REGEX', 'Regular expression to identify tags that',' should be interpreted as contexts.',
24
24
  " (default: #{options.contexttagsregex})") do |regex|
25
25
  options.contexttagsregex = regex
26
26
  end
27
27
 
28
- opts.on("--top-level-folder FOLDER", "If specified, do the import inside the named folders, instead of the top level",
29
- " (Inbox, etc. will also be created there instead of their corresponding places)") do |toplevel|
28
+ opts.on("--top-level-folder FOLDER", "Do the import inside the named folders,"," instead of the top level",
29
+ " (Inbox, etc. will also be created there"," instead of their corresponding places)") do |toplevel|
30
30
  options.toplevel = toplevel
31
31
  end
32
- opts.on("--projects-folder FOLDER", "If specified, the named folder will be created to contain all projects when",
33
- " --projects-as-lists is used (otherwise they will be put in the top folders group).",
34
- " If --projects-as-tasks is used, a 'Projects' list is always created, but this option",
35
- " can be used to specify its name.") do |projfolder|
32
+ opts.on("--projects-folder FOLDER",
33
+ "The named folder will be created to",
34
+ " contain all projects when",
35
+ " --projects-as-lists is used (otherwise",
36
+ " they will be in the top folders group).",
37
+ " If --projects-as-tasks is used, a",
38
+ " 'Projects' list is always created, but",
39
+ " this option can be used to specify",
40
+ " its name.") do |projfolder|
36
41
  options.projectsfolder = projfolder
37
42
  end
38
43
 
39
- opts.on("-c", "--completed", "Transfer also completed/canceled tasks and projects (default: #{options.completed ? 'yes' : 'no'})") { options.completed = true }
40
- opts.on("--[no-]archive-completed", "If transferring completed/canceled tasks, also mark them as archived (default: #{options.archivecompleted ? 'yes' : 'no'})") {|v| options.archivecompleted = v }
44
+ opts.on("-c", "--completed",
45
+ "Transfer also completed/canceled tasks",
46
+ " and projects (default: #{options.completed ? 'yes' : 'no'})") { options.completed = true }
47
+ opts.on("--[no-]archive-completed",
48
+ "If transferring completed/canceled tasks,",
49
+ " also mark them as archived (default: #{options.archivecompleted ? 'yes' : 'no'})") {|v| options.archivecompleted = v }
41
50
  opts.on("-q", "--quiet", "Do not print items as they are processed") { options.quiet = true }
42
51
  # opts.on("-n", "--dry-run", "Do not create anything in THL, just print the items that would be created") { options.dryrun = true }
43
52
  # opts.on("-n", "--notes", "Shows only tasks with notes") { options[:tasks] = { :onlynotes => true } }
@@ -51,10 +60,14 @@ opts = OptionParser.new do |opts|
51
60
 
52
61
  opts.separator("")
53
62
  opts.separator("Options you should seldom need:")
54
- opts.on("--things THINGSAPP", "Location of the Things application (default: /Applications/Things.app)") do |things|
63
+ opts.on("--things THINGSAPP",
64
+ "Location of the Things application",
65
+ " (default: /Applications/Things.app)") do |things|
55
66
  options.thingsapp = things
56
67
  end
57
- opts.on("--thl THLAPP", "Location of the The Hit List application (default: /Applications/The Hit List.app)") do |thl|
68
+ opts.on("--thl THLAPP",
69
+ "Location of the The Hit List application",
70
+ " (default: /Applications/The Hit List.app)") do |thl|
58
71
  options.thlapp = thl
59
72
  end
60
73
 
data/lib/Things2THL.rb CHANGED
@@ -12,7 +12,7 @@ module Things2THL
12
12
  module Version
13
13
  MAJOR = 0
14
14
  MINOR = 4
15
- PATCH = 0
15
+ PATCH = 3
16
16
 
17
17
  STRING = [MAJOR, MINOR, PATCH].join(".")
18
18
  end
data/things2thl.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{things2thl}
5
- s.version = "0.4.1"
5
+ s.version = "0.4.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Diego Zamboni"]
@@ -37,8 +37,11 @@ Gem::Specification.new do |s|
37
37
  s.specification_version = 2
38
38
 
39
39
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
40
+ s.add_runtime_dependency(%q<rb-appscript>, [">= 0.5.1"])
40
41
  else
42
+ s.add_dependency(%q<rb-appscript>, [">= 0.5.1"])
41
43
  end
42
44
  else
45
+ s.add_dependency(%q<rb-appscript>, [">= 0.5.1"])
43
46
  end
44
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zzamboni-things2thl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Zamboni
@@ -11,8 +11,17 @@ cert_chain: []
11
11
 
12
12
  date: 2009-05-19 00:00:00 -07:00
13
13
  default_executable: things2thl
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rb-appscript
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.5.1
24
+ version:
16
25
  description: Library and command-line tool for migrating Things data to The Hit List
17
26
  email: diego@zzamboni.org
18
27
  executables: