pomo 0.3.0 → 0.3.1
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/History.md +5 -0
- data/bin/pomo +16 -20
- data/lib/pomo/version.rb +1 -1
- data/pomo.gemspec +2 -2
- metadata +2 -2
data/History.md
CHANGED
data/bin/pomo
CHANGED
@@ -66,27 +66,23 @@ command :import do |c|
|
|
66
66
|
c.summary = 'Import Github project issues'
|
67
67
|
c.description = 'Import Github project issues which have not yet been closed'
|
68
68
|
c.action do |args, options|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
:number => issue.number
|
85
|
-
list << task
|
86
|
-
say " - Added #{task}"
|
87
|
-
end
|
88
|
-
list.save
|
69
|
+
gem 'octopi', '>=0.2.1'
|
70
|
+
require 'octopi'
|
71
|
+
user = args.shift or raise('Github <user> is required')
|
72
|
+
project = args.shift or raise('Github <project> is required')
|
73
|
+
if repo = Octopi::Repository.find(:user => user, :name => project)
|
74
|
+
say "Importing items from http://github.com/#{user}/#{project}"
|
75
|
+
repo.issues.select { |i| not i.closed_at }.each do |issue|
|
76
|
+
task = Pomo::GithubTask.new issue.title,
|
77
|
+
:username => user,
|
78
|
+
:project => project,
|
79
|
+
:description => issue.body,
|
80
|
+
:labels => issue.labels,
|
81
|
+
:number => issue.number
|
82
|
+
list << task
|
83
|
+
say " - Added #{task}"
|
89
84
|
end
|
85
|
+
list.save
|
90
86
|
end
|
91
87
|
end
|
92
88
|
end
|
data/lib/pomo/version.rb
CHANGED
data/pomo.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{pomo}
|
5
|
-
s.version = "0.3.
|
5
|
+
s.version = "0.3.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["TJ Holowaychuk"]
|
9
|
-
s.date = %q{2009-11-
|
9
|
+
s.date = %q{2009-11-23}
|
10
10
|
s.default_executable = %q{pomo}
|
11
11
|
s.description = %q{Pomodoro time management for the command-line}
|
12
12
|
s.email = %q{tj@vision-media.ca}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pomo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TJ Holowaychuk
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-23 00:00:00 -08:00
|
13
13
|
default_executable: pomo
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|