yapt 0.0.6 → 0.0.7
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.
- checksums.yaml +4 -4
- data/lib/yapt.rb +5 -9
- data/lib/yapt/git_view.rb +7 -0
- data/lib/yapt/templates/git.erb +10 -0
- data/lib/yapt/version.rb +1 -1
- metadata +3 -2
- data/lib/yapt/templates/for_git_display.erb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 374e048c2960b7f3ef011bf37b3ee80f6a565a39
|
4
|
+
data.tar.gz: 6477259c5cd0f9f5e66f27cc3605864b1e815cb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 278cb42ce4a9644178278aed35e76028a6501a433ab997303c50a42afb962d386d4ffcc3fb5f21e8633816233f54d468e1443b2d8536ff2611609cde08959bbc
|
7
|
+
data.tar.gz: 802452d0cf1e9edf4aee3a94fb8d68fd814b65354525cdc13682fb1e85068c638f9d9998d83094039436cbdda688d0699eafe5a2bf7c26584bb007361187fd23
|
data/lib/yapt.rb
CHANGED
@@ -11,6 +11,7 @@ module Yapt
|
|
11
11
|
autoload :Config, "yapt/config"
|
12
12
|
autoload :Move, "yapt/move"
|
13
13
|
autoload :Comment, "yapt/comment"
|
14
|
+
autoload :GitView, "yapt/git_view"
|
14
15
|
|
15
16
|
def self.config
|
16
17
|
@config ||= Config.new(Dir.pwd)
|
@@ -68,14 +69,8 @@ module Yapt
|
|
68
69
|
"#{Yapt.github_url_base}/commit/#{sha}"
|
69
70
|
end
|
70
71
|
|
71
|
-
def
|
72
|
-
|
73
|
-
tracker_ids.each do |id|
|
74
|
-
story = Story.find(id)
|
75
|
-
output << View.new([story]).display("for_git_display").strip + "\n"
|
76
|
-
end
|
77
|
-
output << "Git commit:\n #{message} by #{author}\n #{github_link}\n\n"
|
78
|
-
output
|
72
|
+
def stories
|
73
|
+
@stories ||= tracker_ids.collect {|t| Story.find(t) }
|
79
74
|
end
|
80
75
|
end
|
81
76
|
|
@@ -87,7 +82,8 @@ module Yapt
|
|
87
82
|
end
|
88
83
|
|
89
84
|
def git(since_until)
|
90
|
-
|
85
|
+
commits = GitLogShiv.find(since_until)
|
86
|
+
output GitView.new(commits).display("git")
|
91
87
|
end
|
92
88
|
|
93
89
|
def list(*args)
|
data/lib/yapt/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yapt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Schenkman-Moore
|
@@ -126,12 +126,13 @@ files:
|
|
126
126
|
- lib/yapt/comment.rb
|
127
127
|
- lib/yapt/config.rb
|
128
128
|
- lib/yapt/filter.rb
|
129
|
+
- lib/yapt/git_view.rb
|
129
130
|
- lib/yapt/member.rb
|
130
131
|
- lib/yapt/move.rb
|
131
132
|
- lib/yapt/request.rb
|
132
133
|
- lib/yapt/story.rb
|
133
134
|
- lib/yapt/templates/detail.erb
|
134
|
-
- lib/yapt/templates/
|
135
|
+
- lib/yapt/templates/git.erb
|
135
136
|
- lib/yapt/templates/simple.erb
|
136
137
|
- lib/yapt/version.rb
|
137
138
|
- lib/yapt/view.rb
|