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 +4 -4
- data/README.md +8 -9
- data/drone-builds.gemspec +1 -1
- data/lib/drone/builds/cli.rb +5 -5
- data/lib/drone/builds/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 346420d5d7188991e9e7ee84757521342b3f5729
|
4
|
+
data.tar.gz: 0b6c8857e43de451e66840e06f680a22e4eeff61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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
|
-

|
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
|
-

|
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'
|
data/lib/drone/builds/cli.rb
CHANGED
@@ -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[:
|
60
|
-
domain: HOME_ENV[:
|
61
|
-
owner: HOME_ENV[:
|
62
|
-
name: HOME_ENV[:
|
63
|
-
job_id: HOME_ENV[:
|
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
|
|
data/lib/drone/builds/version.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
40
|
+
version: 0.0.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: json
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|