Method: Gem::Release::Context::Github#release
- Defined in:
- lib/gem/release/context/github.rb
#release ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/gem/release/context/github.rb', line 24 def release # Create a release # https://developer.github.com/v3/repos/releases/#create-a-release resp = post(url, body, headers) status, body = resp # success status code is 201 (created) not 200 (ok) raise Abort, MSGS.fetch(:error) % [status, body] unless status == 201 end |