drone-builds 0.3.2 → 0.4.0

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: c3105238793da28045e3d9197d940a837c0a189c
4
- data.tar.gz: cfb8f766da24557ec3be51ab797be44db92727a6
3
+ metadata.gz: 346420d5d7188991e9e7ee84757521342b3f5729
4
+ data.tar.gz: 0b6c8857e43de451e66840e06f680a22e4eeff61
5
5
  SHA512:
6
- metadata.gz: e130717f9dcf6db486e11b74f9cb06da35fa74441cbdcdce379f0f345bb6ba7c5b9012d38266ccd65e491913586d5f1ac84d826cbdba6729728dcf5eeff64625
7
- data.tar.gz: aba8681cca20feadba1e9eabc3659a7b47d970936a8e2731bf329a4d2a29075443ed5c8a00a8e98fce5665e659f3c323ae6132fd4e829a1ab8bdccd1a76100a7
6
+ metadata.gz: 44367d4cf8024834c1cdbdb04dd97e7207e07f153326173f5f94d576f8f1e55bf956af2d5fc4ee1d13b6a6b573e971c303ecc190412976c5223b13e63e3ac5d6
7
+ data.tar.gz: eff6aefb008f6751c3540eca1b6c59705aee46eed8a3361563fd0515c5307177dad5bd2f9bd55dffb46e8c4364b147bf0c1184030439d48f9924332290c99619
data/README.md CHANGED
@@ -2,21 +2,24 @@
2
2
 
3
3
  Read your drone builds from the terminal
4
4
 
5
+ <img width=600 src="http://i.imgur.com/X4la3zR.png" />
6
+
5
7
  ## Installation
6
8
 
7
9
  $ gem install drone-builds
8
10
 
9
11
  ## Usage
10
12
 
11
- In your `~/.env` file:
13
+ In your `~/.env` file, `env`, your `.bashrc`, etc.:
12
14
 
13
15
  ```
14
- DRONECI_TOKEN=YoUrdRoneTOkEN
15
- DRONECI_DOMAIN=your.ci.server.com
16
- DRONECI_OWNER=org-name
17
- DRONECI_NAME=repo-name
16
+ DRONE_TOKEN=YoUrdRoneTOkEN
17
+ DRONE_SERVER=your.ci.server.com
18
+ DRONE_OWNER=org-name
19
+ DRONE_NAME=repo-name
18
20
  ```
19
21
 
22
+
20
23
  ### `drone-builds`
21
24
 
22
25
  ```
@@ -29,8 +32,6 @@ drone-builds commands:
29
32
 
30
33
  ### `drone-builds list`
31
34
 
32
- ![drone builds list](http://i.imgur.com/9C24brvm.png)
33
-
34
35
  ```
35
36
  Usage:
36
37
  drone-builds list
@@ -46,8 +47,6 @@ list last builds
46
47
 
47
48
  ### `drone-builds show ID`
48
49
 
49
- ![drone builds show with filter](http://i.imgur.com/PP6ys9mm.png)
50
-
51
50
  ```
52
51
  Usage:
53
52
  drone-builds show
data/drone-builds.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.require_paths = ['lib']
24
24
 
25
25
  spec.add_runtime_dependency 'colorize', '~> 0'
26
- spec.add_runtime_dependency 'home-dotenv', '~> 0'
26
+ spec.add_runtime_dependency 'home-dotenv', '~> 0.0.5'
27
27
  spec.add_runtime_dependency 'json', '~> 2'
28
28
  spec.add_runtime_dependency 'terminal-table', '~> 1'
29
29
  spec.add_runtime_dependency 'thor', '~> 0'
@@ -56,11 +56,11 @@ class Drone::Builds::Cli < Thor
56
56
  def self.client
57
57
  @client ||=
58
58
  Drone::Builds.new(
59
- token: HOME_ENV[:DRONECI_TOKEN],
60
- domain: HOME_ENV[:DRONECI_DOMAIN],
61
- owner: HOME_ENV[:DRONECI_OWNER],
62
- name: HOME_ENV[:DRONECI_NAME],
63
- job_id: HOME_ENV[:DRONECI_JOB_ID]
59
+ token: HOME_ENV[:DRONE_TOKEN],
60
+ domain: HOME_ENV[:DRONE_DOMAIN],
61
+ owner: HOME_ENV[:DRONE_OWNER],
62
+ name: HOME_ENV[:DRONE_NAME],
63
+ job_id: HOME_ENV[:DRONE_JOB_ID]
64
64
  )
65
65
  end
66
66
 
@@ -1,5 +1,5 @@
1
1
  module Drone
2
2
  class Builds
3
- VERSION = '0.3.2'.freeze
3
+ VERSION = '0.4.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drone-builds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-20 00:00:00.000000000 Z
11
+ date: 2017-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.0.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.0.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement