technicalpickles-therapist 0.1.0 → 0.1.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/README.rdoc +4 -0
- data/VERSION +1 -1
- data/bin/therapist +11 -2
- data/lib/therapist.rb +5 -1
- data/therapist.gemspec +59 -0
- metadata +3 -2
data/README.rdoc
CHANGED
|
@@ -42,6 +42,10 @@ Knowing an issue you want to look in, you can show more details:
|
|
|
42
42
|
|
|
43
43
|
<snipped for brevity>
|
|
44
44
|
|
|
45
|
+
== Limitations
|
|
46
|
+
|
|
47
|
+
* Issues only ever get fetchd once. They should get stale after a while, or you should be able to force a download
|
|
48
|
+
* Was built as a 1 hour spike before Railscamp NE, so no tests yet
|
|
45
49
|
|
|
46
50
|
== Copyright
|
|
47
51
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.1
|
data/bin/therapist
CHANGED
|
@@ -10,7 +10,7 @@ class Therapist::Commands
|
|
|
10
10
|
command :list do
|
|
11
11
|
# Lists issues for the current repository
|
|
12
12
|
#
|
|
13
|
-
# USAGE
|
|
13
|
+
# USAGE:
|
|
14
14
|
#
|
|
15
15
|
# $ cd path/to/git/repo
|
|
16
16
|
# $ therapist list
|
|
@@ -20,13 +20,22 @@ class Therapist::Commands
|
|
|
20
20
|
command :show do |number|
|
|
21
21
|
# Shows a specific issue for the current repository
|
|
22
22
|
#
|
|
23
|
-
# USAGE
|
|
23
|
+
# USAGE:
|
|
24
24
|
#
|
|
25
25
|
# $ cd path/to/git/repo
|
|
26
26
|
# $ therapist show <number>
|
|
27
27
|
number.gsub!('#', '')
|
|
28
28
|
Therapist.new.show(number)
|
|
29
29
|
end
|
|
30
|
+
|
|
31
|
+
command :fetch do
|
|
32
|
+
# Fetches issues for the current repository
|
|
33
|
+
# USAGE:
|
|
34
|
+
#
|
|
35
|
+
# $ cd path/to/git/repo
|
|
36
|
+
# $ therapist list
|
|
37
|
+
Therapist.new.fetch
|
|
38
|
+
end
|
|
30
39
|
end
|
|
31
40
|
|
|
32
41
|
Therapist::Commands.new
|
data/lib/therapist.rb
CHANGED
|
@@ -38,6 +38,10 @@ class Therapist
|
|
|
38
38
|
@out.puts issue['body']
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
def fetch
|
|
42
|
+
fetch_issues
|
|
43
|
+
end
|
|
44
|
+
|
|
41
45
|
def open_issues
|
|
42
46
|
YAML.load(File.read(open_issues_file))['issues']
|
|
43
47
|
end
|
|
@@ -54,7 +58,7 @@ class Therapist
|
|
|
54
58
|
end
|
|
55
59
|
|
|
56
60
|
open_issues.each do |issue|
|
|
57
|
-
fetch_issue(issue['
|
|
61
|
+
fetch_issue(issue['number'])
|
|
58
62
|
end
|
|
59
63
|
end
|
|
60
64
|
|
data/therapist.gemspec
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
Gem::Specification.new do |s|
|
|
4
|
+
s.name = %q{therapist}
|
|
5
|
+
s.version = "0.1.1"
|
|
6
|
+
|
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
8
|
+
s.authors = ["Josh Nichols"]
|
|
9
|
+
s.date = %q{2009-07-17}
|
|
10
|
+
s.default_executable = %q{therapist}
|
|
11
|
+
s.description = %q{Therapist is a command line tool to help you interact with GitHub issues. Also supports offline viewing of said issues.}
|
|
12
|
+
s.email = %q{josh@technicalpickles.com}
|
|
13
|
+
s.executables = ["therapist"]
|
|
14
|
+
s.extra_rdoc_files = [
|
|
15
|
+
"LICENSE",
|
|
16
|
+
"README.rdoc"
|
|
17
|
+
]
|
|
18
|
+
s.files = [
|
|
19
|
+
".document",
|
|
20
|
+
".gitignore",
|
|
21
|
+
"LICENSE",
|
|
22
|
+
"README.rdoc",
|
|
23
|
+
"Rakefile",
|
|
24
|
+
"VERSION",
|
|
25
|
+
"bin/therapist",
|
|
26
|
+
"lib/therapist.rb",
|
|
27
|
+
"test/test_helper.rb",
|
|
28
|
+
"test/therapist_test.rb",
|
|
29
|
+
"therapist.gemspec"
|
|
30
|
+
]
|
|
31
|
+
s.homepage = %q{http://github.com/technicalpickles/therapist}
|
|
32
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
|
33
|
+
s.require_paths = ["lib"]
|
|
34
|
+
s.rubygems_version = %q{1.3.4}
|
|
35
|
+
s.summary = %q{Helps you deal with your (GitHub) issues}
|
|
36
|
+
s.test_files = [
|
|
37
|
+
"test/test_helper.rb",
|
|
38
|
+
"test/therapist_test.rb"
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
if s.respond_to? :specification_version then
|
|
42
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
43
|
+
s.specification_version = 3
|
|
44
|
+
|
|
45
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
46
|
+
s.add_runtime_dependency(%q<nakajima-nakajima>, [">= 0"])
|
|
47
|
+
s.add_runtime_dependency(%q<nakajima-optimus-prime>, [">= 0"])
|
|
48
|
+
s.add_runtime_dependency(%q<git>, [">= 0"])
|
|
49
|
+
else
|
|
50
|
+
s.add_dependency(%q<nakajima-nakajima>, [">= 0"])
|
|
51
|
+
s.add_dependency(%q<nakajima-optimus-prime>, [">= 0"])
|
|
52
|
+
s.add_dependency(%q<git>, [">= 0"])
|
|
53
|
+
end
|
|
54
|
+
else
|
|
55
|
+
s.add_dependency(%q<nakajima-nakajima>, [">= 0"])
|
|
56
|
+
s.add_dependency(%q<nakajima-optimus-prime>, [">= 0"])
|
|
57
|
+
s.add_dependency(%q<git>, [">= 0"])
|
|
58
|
+
end
|
|
59
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: technicalpickles-therapist
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Nichols
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-07-
|
|
12
|
+
date: 2009-07-17 00:00:00 -07:00
|
|
13
13
|
default_executable: therapist
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -62,6 +62,7 @@ files:
|
|
|
62
62
|
- lib/therapist.rb
|
|
63
63
|
- test/test_helper.rb
|
|
64
64
|
- test/therapist_test.rb
|
|
65
|
+
- therapist.gemspec
|
|
65
66
|
has_rdoc: false
|
|
66
67
|
homepage: http://github.com/technicalpickles/therapist
|
|
67
68
|
post_install_message:
|