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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 950b69518e62b88beabe2c43517cfcba289b6ba9005a415203685f5aefbb153f
4
- data.tar.gz: cdc76ba61623367c731390092e35e93bb1fd6b47b1aa9128e1b570efbf2ae0ac
3
+ metadata.gz: 037c6026f81cee82d50ab61bb124b91d20daaaedf74a976c8673efeb8d1e4f46
4
+ data.tar.gz: b159aed23d33d78c257e1eb3e3101a143ca726e01e96bf9086511fed291a0615
5
5
  SHA512:
6
- metadata.gz: b2a6fa9374729c555b90f3d5b8dcb060878de08e31b2612814d4b8e7d77927edf5f0aff5903d0c4bc805576e6faa0f619b99e57d802370413368dd28868d6cec
7
- data.tar.gz: 5a5b12034cdb28c6ef5896662ef57609dd75957be1d1793df64a0c150bf60388454164fadbdce95f991d6a8a199e746f882d7275a5f70720eb0124f3f5082a64
6
+ metadata.gz: 2ca451f7959e4b2ed67c4c8511da44f134a9f2d4d1fe3c5110bfa5c7522f3492017b86f5e594da6c97df6e3e1e059cd99ec46462abe9a1700137b687249f105b
7
+ data.tar.gz: 95f2470e100144d86ec4ab750afd17e676d48158cd171733bd28a743525b328dc1b9c9122a6d215797c399ccca3badf05997010d00cdc3adba3abaad1411d576
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Senju
2
2
 
3
- Listing your issues.
3
+ Issue manager.
4
4
 
5
5
  ## Installation
6
6
 
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Senju
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: senju
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira SUENAMI