mina-circle 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e5bf71d94a607a56347a3c3ab80afa2d9325e9f
4
- data.tar.gz: 44c5ec52f7da57f76120672fac1e6363fa691b90
3
+ metadata.gz: 80dd94bc32c90a72023b306f6f8b9e47dfc51719
4
+ data.tar.gz: f89b4d4d90539b3465b0d639bfe35e50392da578
5
5
  SHA512:
6
- metadata.gz: 8b3b1a63f845941884c0b5bdb3c2e1ee552ba7c5c44bcb4b107c4cc5f2352520aa937b115aac2edd41a1b57d16fb28271099baf0e30737d9b8bf094a90f4fad6
7
- data.tar.gz: d417462a18c397720a9fac13db88fc6b6ab33022d29f5c6332808241f21ff27cf6feb2900df04840faa4298dc09bbb99c22d950c2e6198444a47e3b32850f838
6
+ metadata.gz: 618af2c34ca21dfa81f2158c7e1abc43ccd5d59cf248f6deff4a61eee8cb0ec1dddddc8a9134ae25e2c6ed87d47afc5b54ee8e68d185d1968ebbc52712d475c9
7
+ data.tar.gz: 724a72aa23658307da54f274cd676a31b82c810cd4eb325457af1cb4ccd6b62d5c37449a0456ec7fbefb7cb4b182e81e41ff6967f836a138eb0b64f173908960
@@ -10,11 +10,12 @@ module MinaCircle
10
10
 
11
11
  def latest_build_number
12
12
  base_uri = 'https://circleci.com/api/v1/project'
13
- base_path = "#{circle_user}/#{circle_project}/tree/master"
13
+ base_path = "#{circle_user}/#{circle_project}/tree/#{branch}"
14
14
  url = "#{base_uri}/#{base_path}?circle-token=#{circle_token}&limit=1&filter=completed"
15
15
  build_num = JSON.parse(open(url).read).first['build_num'].to_s
16
- puts "[mina-circle] Using build number: #{build_num}"
16
+ puts "[mina-circle] Build number: #{build_num}"
17
17
  puts "[mina-circle] Using username/project: #{circle_user}/#{circle_project}"
18
+ puts "[mina-circle] Branch: #{branch}"
18
19
  build_num
19
20
  end
20
21
 
@@ -1,3 +1,3 @@
1
1
  module MinaCircle
2
- VERSION = '1.0.2'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-circle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Simpson