senju 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/senju/repository.rb +12 -6
- data/lib/senju/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 037c6026f81cee82d50ab61bb124b91d20daaaedf74a976c8673efeb8d1e4f46
|
4
|
+
data.tar.gz: b159aed23d33d78c257e1eb3e3101a143ca726e01e96bf9086511fed291a0615
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ca451f7959e4b2ed67c4c8511da44f134a9f2d4d1fe3c5110bfa5c7522f3492017b86f5e594da6c97df6e3e1e059cd99ec46462abe9a1700137b687249f105b
|
7
|
+
data.tar.gz: 95f2470e100144d86ec4ab750afd17e676d48158cd171733bd28a743525b328dc1b9c9122a6d215797c399ccca3badf05997010d00cdc3adba3abaad1411d576
|
data/README.md
CHANGED
data/lib/senju/repository.rb
CHANGED
@@ -43,6 +43,18 @@ class Senju::Repository
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
+
def issues
|
47
|
+
if type == "github"
|
48
|
+
client.issues(name, labels: options["label"], assignee: options["assignee"]).map do |raw|
|
49
|
+
Senju::Issue.new(raw, type)
|
50
|
+
end
|
51
|
+
else
|
52
|
+
client.issues(name).map do |raw|
|
53
|
+
Senju::Issue.new(raw, type)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
46
58
|
def issue(no)
|
47
59
|
Senju::Issue.new(client.issue(name, no), type)
|
48
60
|
end
|
@@ -76,12 +88,6 @@ class Senju::Repository
|
|
76
88
|
end
|
77
89
|
end
|
78
90
|
|
79
|
-
def issues
|
80
|
-
client.issues(name).map do |raw|
|
81
|
-
Senju::Issue.new(raw, type)
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
91
|
def pull_requests
|
86
92
|
case type
|
87
93
|
when "github" then list = client.pull_requests(name)
|
data/lib/senju/version.rb
CHANGED