semaphore_api 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/bin/publish +6 -0
- data/lib/semaphore_api/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d06d96c5bc4f60c2f37bece42852fed7d0e5afc
|
4
|
+
data.tar.gz: c435230fcbb2162182b52e7926eda33bd4c3bf7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 207c246bb5eb3b6138f025057b4ae90f5f85f66b406698cd74284394a9cf07d2237a17bc5952a6064b848391740fa9416320ac5198398aea2b69a03667ecc951
|
7
|
+
data.tar.gz: 5bc3f9d13e59168b854e9e799d5eb24b48f608bf3e37b635e223838f2835f585218401083cf28ac1b15318cf0bacd771529ee43aa850baa5c0f642d19b97157e
|
data/README.md
CHANGED
@@ -21,19 +21,19 @@ projects = semaphore.projects
|
|
21
21
|
Display their names
|
22
22
|
|
23
23
|
``` rb
|
24
|
-
puts projects.
|
24
|
+
puts projects.pluck(&:name)
|
25
25
|
```
|
26
26
|
|
27
27
|
Find projects via their name
|
28
28
|
|
29
29
|
``` rb
|
30
|
-
sempahore_api = projects.
|
30
|
+
sempahore_api = projects.find_by(:name => "semaphore_api")
|
31
31
|
```
|
32
32
|
|
33
33
|
Display active branches for a project
|
34
34
|
|
35
35
|
``` rb
|
36
|
-
semaphore_api.branches.
|
36
|
+
semaphore_api.branches.pluck(:branch_name) # => ["master", "development"]
|
37
37
|
```
|
38
38
|
|
39
39
|
List all the webhooks for a project
|
@@ -45,7 +45,7 @@ webhooks = client.webhooks(semaphore_api.hash_id)
|
|
45
45
|
Collect information about a build
|
46
46
|
|
47
47
|
``` rb
|
48
|
-
master = semaphore_api.branches.
|
48
|
+
master = semaphore_api.branches.find_by(:name => "master")
|
49
49
|
|
50
50
|
build = client.build_status(semaphore_api.hash_id, master.branch_id)
|
51
51
|
```
|
data/bin/publish
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semaphore_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Sarcevic
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- README.md
|
94
94
|
- Rakefile
|
95
95
|
- bin/console
|
96
|
+
- bin/publish
|
96
97
|
- bin/setup
|
97
98
|
- lib/semaphore_api.rb
|
98
99
|
- lib/semaphore_api/client.rb
|