github_releases 0.0.2 → 0.0.3

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: 7ddce486b7c2b27da3b914dfdecffb7d7975468a
4
- data.tar.gz: 781c18dc399a0559b31f6b567bd4698fd0b34276
3
+ metadata.gz: becf719af0caba624f4045a612becc9ed5295c35
4
+ data.tar.gz: 917446e7bcee76ebfc874a427a8784d1015cfb40
5
5
  SHA512:
6
- metadata.gz: 917be55ab8f7b18da8c58ff5fadcb4d7e204fc9afa40dbafb107c9247e56f709161e8804463c42a0e767980f2d8ee2d364871d42e5741e1f5c23a81cf8dbf61d
7
- data.tar.gz: e51d42386dbd498dac9cc6ddd945e5c71acf27753aaec832c8ee89883e822603b481e0a3834128e24e2587218bcf76221e51724c1ae1b7b881efad686f7a41b0
6
+ metadata.gz: 2d5ac9ddab28e18887208df0a14256b06ee032507cac358dbef842aa777a9b7dceec534c8492ae1c23db1353f5845e2cdd39a4bfa4d1a73c8b15b67899eaff32
7
+ data.tar.gz: 32e0c001ef4339472e05792e314abc22f569b4bb43d8d7b5614c79d996659b838d9b3c813cc155516e801b755327fd24df2ad809e80fd3e82b4df12b1d38eca0
data/README.md CHANGED
@@ -1,12 +1,11 @@
1
1
  # Github Releases
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/github_releases.svg)](http://badge.fury.io/rb/github_releases)
4
+ [![Build Status](https://travis-ci.org/G5/github_releases.svg?branch=master)](https://travis-ci.org/G5/github_releases)
5
+
3
6
  Github Releases creates an endpoint that exposes an app's releases for use in
4
7
  displaying a current version.
5
8
 
6
- ## Current Version
7
-
8
- [![Gem Version](https://badge.fury.io/rb/github_releases.svg)](http://badge.fury.io/rb/github_releases)
9
-
10
9
  ## Requirements
11
10
 
12
11
  An app that utilizes Github's release feature
@@ -1,4 +1,7 @@
1
1
  module GithubReleases
2
2
  module ApplicationHelper
3
+ def current_version
4
+ GithubReleases.release('latest')['tag_name']
5
+ end
3
6
  end
4
7
  end
@@ -1,3 +1,3 @@
1
1
  module GithubReleases
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_releases
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bbauer