rubhub 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/github/issues/issues.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19d4a83ea1736893826253694f9f4dbfb46364c6
4
- data.tar.gz: 4bbf3d1931151e450fefa2a45b181e02ba769cfe
3
+ metadata.gz: 677dce692df56f241f4f4327008d039e34b139f7
4
+ data.tar.gz: 1b271447d3b0ac3a27dba9caff897d2f20a8dd1a
5
5
  SHA512:
6
- metadata.gz: 46e83c2c53ca100bdaa70fca749030b8423bfd3b7e0418aa779882e00400bd479d7cad6e7e4fc0ab409290e100d223ce850ede04256b82327548777637130dd2
7
- data.tar.gz: 4be00c372f26e01d0ad103579c3ee3f74ac628c161293bffc0896397f0668185f8bb81651da8cba830fd8d3d3f50a6307dd3ca6408a41352850b77c2e4689238
6
+ metadata.gz: e29a2e6fbc4c01b5606355cd081d97a639e86678031d849d9627bb10e670f687caa158df25a7f82931d6c5d71001bf0bc6cf398335339e46155884628b174fbf
7
+ data.tar.gz: 2d9c503efffd54c6ce5565786dff88c2f4454c971ad42fbbaf265a19dc50136ce9cd559adddaff7339c53ca9bf3a7a377f724096f139891a3f75fc0f4cb48acb
@@ -51,6 +51,7 @@ class Issues
51
51
 
52
52
  def createIssue(repo, title, body: nil, assignee: nil,
53
53
  milestone: nil, labels: nil, user: nil)
54
+ username = user == nil ? @github.username : user
54
55
  params = {
55
56
  title: title,
56
57
  body: body,
@@ -60,7 +61,7 @@ class Issues
60
61
  }
61
62
  params = @github.removeEmptyParams(params)
62
63
  data = params.to_json
63
- @github.post('repos/%s/%s/issues' % [user, repo], data)
64
+ @github.post('repos/%s/%s/issues' % [username, repo], data)
64
65
  end
65
66
 
66
67
  def editIssue(repo, id, title: nil, body: nil, assignee: nil,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubhub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Kennedy