ruboty-github 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a9cc642e1d299500001715d58cc30360b90c10b
4
- data.tar.gz: b09dc9c9fd58ce20b24be12ce90c5325dc17ab29
3
+ metadata.gz: bd8c7fa7a1712071c061bc2e3bddb463bec6e71c
4
+ data.tar.gz: 6c1972801274751c46b23015b0d4e74f0cad2440
5
5
  SHA512:
6
- metadata.gz: a9445e559959cbc331de24e4074f8d31d1ca07bfd49932dd6bd8a6aecc1f106c5c277caf4c15f5e6ae8ff902cc8a9c310faca5212387ed80bb927adaaa5a142c
7
- data.tar.gz: ecc5f90bbeb0397263bf6a1ab06857e7fa0a7c8308026f3de25e96fb9eeada110fbd9338d1fa01634278a023626099b4085dd65f45f504ef9381f81f401d6c50
6
+ metadata.gz: 2ab00bdaa439941043be9126323bc6d2db1ec57cba540acdbed41832a806e5cd941aca250cb96ee54bbb8bcf34e0f66eed6d542d3b05c2628319b87b2e17e60c
7
+ data.tar.gz: 9e047674f00296b8c8674968583018d14d763e096fecf4bdbbb1c369e27855e2aea757882b370756d398dd39585109961de684f0ff64134f3aab8583e1b1bb5f
data/CHANGELOG.md CHANGED
@@ -1,29 +1,32 @@
1
+ ## 0.1.1
2
+ - Pass empty string as issue body instead of nil
3
+
1
4
  ## 0.1.0
2
- * Change command: merge pull request -> merge
5
+ - Change command: merge pull request -> merge
3
6
 
4
7
  ## 0.0.9
5
- * Rename: Ellen -> Ruboty
8
+ - Rename: Ellen -> Ruboty
6
9
 
7
10
  ## 0.0.8
8
- * Support Github Enterprise
11
+ - Support Github Enterprise
9
12
 
10
13
  ## 0.0.7
11
- * Use Ruboty::Message#from_name as user identifier
14
+ - Use Ruboty::Message#from_name as user identifier
12
15
 
13
16
  ## 0.0.6
14
- * Add Create & Merge Pull Request commands
17
+ - Add Create & Merge Pull Request commands
15
18
 
16
19
  ## 0.0.5
17
- * Description support
20
+ - Description support
18
21
 
19
22
  ## 0.0.4
20
- * Add close command
23
+ - Add close command
21
24
 
22
25
  ## 0.0.3
23
- * Support Ruboty v0.2.0
26
+ - Support Ruboty v0.2.0
24
27
 
25
28
  ## 0.0.2
26
- * Memorize access token and use it to create a new issue
29
+ - Memorize access token and use it to create a new issue
27
30
 
28
31
  ## 0.0.1
29
- * 1st Release
32
+ - 1st Release
@@ -16,6 +16,10 @@ module Ruboty
16
16
  message.robot.brain.data[NAMESPACE] ||= {}
17
17
  end
18
18
 
19
+ def body
20
+ message[:description] || ""
21
+ end
22
+
19
23
  def sender_name
20
24
  message.from_name
21
25
  end
@@ -29,10 +29,6 @@ module Ruboty
29
29
  def title
30
30
  message[:title]
31
31
  end
32
-
33
- def body
34
- message[:description]
35
- end
36
32
  end
37
33
  end
38
34
  end
@@ -23,17 +23,13 @@ module Ruboty
23
23
  end
24
24
 
25
25
  def pull_request
26
- client.create_pull_request(repository, base, head, title, description)
26
+ client.create_pull_request(repository, base, head, title, body)
27
27
  end
28
28
 
29
29
  def title
30
30
  message[:title]
31
31
  end
32
32
 
33
- def description
34
- message[:description]
35
- end
36
-
37
33
  # e.g. alice/foo:test
38
34
  def from
39
35
  message[:from]
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Github
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-08 00:00:00.000000000 Z
11
+ date: 2014-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport