semaph 0.3.0 → 0.8.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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +39 -0
  3. data/.semaph +9 -0
  4. data/.semaphore/semaphore.yml +5 -1
  5. data/Gemfile.lock +21 -1
  6. data/README.md +12 -8
  7. data/Rakefile +4 -1
  8. data/lib/semaph.rb +43 -8
  9. data/lib/semaph/{api.rb → client.rb} +24 -3
  10. data/lib/semaph/commands.rb +63 -0
  11. data/lib/semaph/commands/rerun_workflow_command.rb +0 -2
  12. data/lib/semaph/commands/stop_workflow_command.rb +0 -2
  13. data/lib/semaph/formatting.rb +15 -1
  14. data/lib/semaph/model/job.rb +29 -2
  15. data/lib/semaph/model/job_collection.rb +21 -5
  16. data/lib/semaph/model/pipeline.rb +29 -3
  17. data/lib/semaph/model/promotion.rb +31 -0
  18. data/lib/semaph/model/promotion_collection.rb +21 -0
  19. data/lib/semaph/model/workflow.rb +17 -3
  20. data/lib/semaph/shells/organisation/organisation_shell.rb +4 -4
  21. data/lib/semaph/shells/organisation/projects_select_command.rb +6 -0
  22. data/lib/semaph/shells/organisations/organisations_list_command.rb +2 -2
  23. data/lib/semaph/shells/organisations/organisations_select_command.rb +11 -2
  24. data/lib/semaph/shells/organisations/organisations_shell.rb +2 -2
  25. data/lib/semaph/shells/pipeline/{jobs_logs_command.rb → job_debug_command.rb} +4 -5
  26. data/lib/semaph/shells/pipeline/job_log_command.rb +44 -0
  27. data/lib/semaph/shells/pipeline/job_log_grep_command.rb +28 -0
  28. data/lib/semaph/shells/pipeline/job_show_command.rb +28 -0
  29. data/lib/semaph/shells/pipeline/job_stop_command.rb +28 -0
  30. data/lib/semaph/shells/pipeline/jobs_list_command.rb +4 -2
  31. data/lib/semaph/shells/pipeline/jobs_poll_command.rb +57 -22
  32. data/lib/semaph/shells/pipeline/pipeline_shell.rb +29 -67
  33. data/lib/semaph/shells/pipeline/promote_command.rb +21 -0
  34. data/lib/semaph/shells/pipeline/promotions_list_command.rb +21 -0
  35. data/lib/semaph/shells/project/project_shell.rb +4 -2
  36. data/lib/semaph/shells/project/save_command.rb +26 -0
  37. data/lib/semaph/shells/project/workflows_list_command.rb +3 -16
  38. data/lib/semaph/shells/workflow/pipelines_list_command.rb +3 -1
  39. data/lib/semaph/shells/workflow/workflow_shell.rb +6 -66
  40. data/lib/semaph/version.rb +1 -1
  41. data/semaph.gemspec +1 -0
  42. metadata +32 -7
@@ -1,3 +1,3 @@
1
1
  module Semaph
2
- VERSION = "0.3.0".freeze
2
+ VERSION = "0.8.0".freeze
3
3
  end
@@ -28,4 +28,5 @@ Gem::Specification.new do |spec|
28
28
  spec.add_dependency "shell_shock"
29
29
 
30
30
  spec.add_development_dependency "pry"
31
+ spec.add_development_dependency "rubocop"
31
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semaph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Ryall
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-02 00:00:00.000000000 Z
11
+ date: 2020-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description: api client and shell for api
70
84
  email:
71
85
  - mark@ryall.name
@@ -76,6 +90,7 @@ extra_rdoc_files: []
76
90
  files:
77
91
  - ".gitignore"
78
92
  - ".rubocop.yml"
93
+ - ".semaph"
79
94
  - ".semaphore/semaphore.yml"
80
95
  - ".tool-versions"
81
96
  - ".travis.yml"
@@ -89,7 +104,8 @@ files:
89
104
  - bin/setup
90
105
  - exe/semaph
91
106
  - lib/semaph.rb
92
- - lib/semaph/api.rb
107
+ - lib/semaph/client.rb
108
+ - lib/semaph/commands.rb
93
109
  - lib/semaph/commands/reload_command.rb
94
110
  - lib/semaph/commands/rerun_workflow_command.rb
95
111
  - lib/semaph/commands/stop_workflow_command.rb
@@ -101,6 +117,8 @@ files:
101
117
  - lib/semaph/model/pipeline_collection.rb
102
118
  - lib/semaph/model/project.rb
103
119
  - lib/semaph/model/project_collection.rb
120
+ - lib/semaph/model/promotion.rb
121
+ - lib/semaph/model/promotion_collection.rb
104
122
  - lib/semaph/model/workflow.rb
105
123
  - lib/semaph/model/workflow_collection.rb
106
124
  - lib/semaph/shells/organisation/organisation_shell.rb
@@ -109,11 +127,18 @@ files:
109
127
  - lib/semaph/shells/organisations/organisations_list_command.rb
110
128
  - lib/semaph/shells/organisations/organisations_select_command.rb
111
129
  - lib/semaph/shells/organisations/organisations_shell.rb
130
+ - lib/semaph/shells/pipeline/job_debug_command.rb
131
+ - lib/semaph/shells/pipeline/job_log_command.rb
132
+ - lib/semaph/shells/pipeline/job_log_grep_command.rb
133
+ - lib/semaph/shells/pipeline/job_show_command.rb
134
+ - lib/semaph/shells/pipeline/job_stop_command.rb
112
135
  - lib/semaph/shells/pipeline/jobs_list_command.rb
113
- - lib/semaph/shells/pipeline/jobs_logs_command.rb
114
136
  - lib/semaph/shells/pipeline/jobs_poll_command.rb
115
137
  - lib/semaph/shells/pipeline/pipeline_shell.rb
138
+ - lib/semaph/shells/pipeline/promote_command.rb
139
+ - lib/semaph/shells/pipeline/promotions_list_command.rb
116
140
  - lib/semaph/shells/project/project_shell.rb
141
+ - lib/semaph/shells/project/save_command.rb
117
142
  - lib/semaph/shells/project/workflows_list_command.rb
118
143
  - lib/semaph/shells/project/workflows_select_command.rb
119
144
  - lib/semaph/shells/workflow/pipelines_list_command.rb
@@ -128,7 +153,7 @@ metadata:
128
153
  homepage_uri: http://github.com/markryall/semaph
129
154
  source_code_uri: http://github.com/markryall/semaph
130
155
  changelog_uri: http://github.com/markryall/semaph
131
- post_install_message:
156
+ post_install_message:
132
157
  rdoc_options: []
133
158
  require_paths:
134
159
  - lib
@@ -144,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
169
  version: '0'
145
170
  requirements: []
146
171
  rubygems_version: 3.1.2
147
- signing_key:
172
+ signing_key:
148
173
  specification_version: 4
149
174
  summary: client for semaphore 2
150
175
  test_files: []