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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c52fce9266d2c6df953de18a1e8849bfb2c7543a
4
- data.tar.gz: 0cf305fe9ca686e7e9f74552e1c2848065872773
3
+ metadata.gz: 6d06d96c5bc4f60c2f37bece42852fed7d0e5afc
4
+ data.tar.gz: c435230fcbb2162182b52e7926eda33bd4c3bf7b
5
5
  SHA512:
6
- metadata.gz: b139a8ecb5866a77f2ad2a7c15e685cf9362bf73c502bf2a5493f2b86b31bf7d461ee02ec9c330d2a314d3090d43c8ea85b6f78f311fbfb62b55863560c48340
7
- data.tar.gz: 215c4adbcb9000d423f59bbb973db3c83e173e6fd81f3f1e3fb04efc1d55e3fd4d6ed3cec1c76be7f27f1eff10b01a8a58879f50cfc7a9a1137c25970d2db270
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.map(&:name)
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.find { |project| project.name == "semaphore_api" }
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.map(&:branch_name) # => ["master", "development"]
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.find { |branch| branch.name == "master" }
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
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "semaphore_api"
5
+
6
+ system("gem build semaphore_api.gemspec && gem push semaphore_api-#{SemaphoreApi::VERSION}.gem; rm -f semaphore_api-#{SemaphoreApi::VERSION}.gem")
@@ -1,3 +1,3 @@
1
1
  module SemaphoreApi
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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