zenhub_ruby 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/zenhub_ruby.rb +1 -1
- data/lib/zenhub_ruby/client/api.rb +3 -3
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 481f5482147c50065cce36312f9a581e5eacccd0
|
4
|
+
data.tar.gz: e1e5af1336b9b4928469a41136a058d37b370a53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e0b4ab352e5d9765b0e4f189935833b325d3d9379109c0e62387bd688ffe4a8a4e304d644ece79323d6731bf30d295b8feb5558bb9ee47b552709f0f9dd2ffb
|
7
|
+
data.tar.gz: 0a2c07982b27dde6fb8e7a6381d509490254b6d1716a372c460bc3aac1a096a4ebe8f03d6fa2e84d23b934d0f4623fd0fa4bfecda6107f5a4276ba821be1aeec
|
data/README.md
CHANGED
@@ -31,19 +31,19 @@ client = ZenhubRuby::Client.new('YOUR_ACCESS_TOKEN')
|
|
31
31
|
### Get issue data
|
32
32
|
|
33
33
|
```ruby
|
34
|
-
client.issue_data(
|
34
|
+
client.issue_data(REPO_ID, ISSUE_NUMBER)
|
35
35
|
```
|
36
36
|
|
37
37
|
### Get issue events
|
38
38
|
|
39
39
|
```ruby
|
40
|
-
client.issue_events(
|
40
|
+
client.issue_events(REPO_ID, ISSUE_NUMBER)
|
41
41
|
```
|
42
42
|
|
43
43
|
### Get the ZenHub Board data for a repository
|
44
44
|
|
45
45
|
```ruby
|
46
|
-
client.board_data(
|
46
|
+
client.board_data(REPO_ID)
|
47
47
|
```
|
48
48
|
|
49
49
|
## Contributing
|
data/lib/zenhub_ruby.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
module ZenhubRuby
|
2
2
|
class Client
|
3
3
|
module Api
|
4
|
-
def issue_data(repo_id
|
4
|
+
def issue_data(repo_id, issue_number)
|
5
5
|
get "/p1/repositories/#{repo_id}/issues/#{issue_number}"
|
6
6
|
end
|
7
7
|
|
8
|
-
def issue_events(repo_id
|
8
|
+
def issue_events(repo_id, issue_number)
|
9
9
|
get "/p1/repositories/#{repo_id}/issues/#{issue_number}/events"
|
10
10
|
end
|
11
11
|
|
12
|
-
def board_data(repo_id
|
12
|
+
def board_data(repo_id)
|
13
13
|
get "/p1/repositories/#{repo_id}/board"
|
14
14
|
end
|
15
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zenhub_ruby
|
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
|
- Takumi Kaji
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -165,4 +165,3 @@ signing_key:
|
|
165
165
|
specification_version: 4
|
166
166
|
summary: Ruby client of ZenHub API.
|
167
167
|
test_files: []
|
168
|
-
has_rdoc:
|