gocd 0.5 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +2 -0
  3. data/.ruby-version +1 -0
  4. data/Gemfile +3 -0
  5. data/Gemfile.lock +34 -1
  6. data/LICENSE.txt +201 -0
  7. data/README.md +71 -0
  8. data/Rakefile +7 -0
  9. data/gocd.gemspec +3 -0
  10. data/lib/gocd/agents/agent.rb +1 -1
  11. data/lib/gocd/agents/agents_repository.rb +1 -1
  12. data/lib/gocd/config/credentials.rb +2 -0
  13. data/lib/gocd/history/history_fetcher.rb +35 -0
  14. data/lib/gocd/pipeline_config/environment.rb +29 -0
  15. data/lib/gocd/pipeline_config/job.rb +21 -0
  16. data/lib/gocd/pipeline_config/pipeline.rb +30 -0
  17. data/lib/gocd/pipeline_config/pipeline_config.rb +72 -0
  18. data/lib/gocd/pipeline_config/pipeline_group.rb +20 -0
  19. data/lib/gocd/pipeline_config/repository/pipeline_config_repository.rb +11 -0
  20. data/lib/gocd/pipeline_config/stage.rb +26 -0
  21. data/lib/gocd/pipeline_config/template.rb +6 -0
  22. data/lib/gocd/{pipeline → pipeline_status}/pipeline.rb +0 -0
  23. data/lib/gocd/{pipeline → pipeline_status}/pipeline_repository.rb +0 -0
  24. data/lib/gocd/{pipeline → pipeline_status}/pipelines.rb +0 -0
  25. data/lib/gocd/version.rb +1 -1
  26. data/spec/gocd/agents/agent_spec.rb +98 -0
  27. data/spec/gocd/agents/agents_repository_spec.rb +79 -0
  28. data/spec/gocd/agents/agents_spec.rb +37 -0
  29. data/spec/gocd/config/credentials_spec.rb +9 -0
  30. data/spec/gocd/history/history_fetcher_spec.rb +54 -0
  31. data/spec/gocd/pipeline_config/environment_spec.rb +27 -0
  32. data/spec/gocd/pipeline_config/job_spec.rb +23 -0
  33. data/spec/gocd/pipeline_config/pipeline_group_spec.rb +50 -0
  34. data/spec/gocd/pipeline_config/pipeline_spec.rb +62 -0
  35. data/spec/gocd/pipeline_config/stage_spec.rb +32 -0
  36. data/spec/gocd/pipeline_config/template_spec.rb +32 -0
  37. data/spec/gocd/pipeline_status/pipeline_spec.rb +47 -0
  38. data/spec/gocd/pipeline_status/pipelines_repository_spec.rb +43 -0
  39. data/spec/gocd/pipeline_status/pipelines_spec.rb +80 -0
  40. data/spec/spec_helper.rb +103 -0
  41. metadata +91 -5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gocd
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: '1.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ajit Singh
@@ -38,6 +38,48 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rest-client
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.5'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.5'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
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'
41
83
  description: Get info from gocd using its apis
42
84
  email: jeetsingh.ajit@gamil.com
43
85
  executables: []
@@ -45,8 +87,13 @@ extensions: []
45
87
  extra_rdoc_files: []
46
88
  files:
47
89
  - ".gitignore"
90
+ - ".rspec"
91
+ - ".ruby-version"
48
92
  - Gemfile
49
93
  - Gemfile.lock
94
+ - LICENSE.txt
95
+ - README.md
96
+ - Rakefile
50
97
  - gocd.gemspec
51
98
  - lib/gocd.rb
52
99
  - lib/gocd/agents/agent.rb
@@ -55,10 +102,34 @@ files:
55
102
  - lib/gocd/config/credentials.rb
56
103
  - lib/gocd/config/server.rb
57
104
  - lib/gocd/exception/data_fetch_exception.rb
58
- - lib/gocd/pipeline/pipeline.rb
59
- - lib/gocd/pipeline/pipeline_repository.rb
60
- - lib/gocd/pipeline/pipelines.rb
105
+ - lib/gocd/history/history_fetcher.rb
106
+ - lib/gocd/pipeline_config/environment.rb
107
+ - lib/gocd/pipeline_config/job.rb
108
+ - lib/gocd/pipeline_config/pipeline.rb
109
+ - lib/gocd/pipeline_config/pipeline_config.rb
110
+ - lib/gocd/pipeline_config/pipeline_group.rb
111
+ - lib/gocd/pipeline_config/repository/pipeline_config_repository.rb
112
+ - lib/gocd/pipeline_config/stage.rb
113
+ - lib/gocd/pipeline_config/template.rb
114
+ - lib/gocd/pipeline_status/pipeline.rb
115
+ - lib/gocd/pipeline_status/pipeline_repository.rb
116
+ - lib/gocd/pipeline_status/pipelines.rb
61
117
  - lib/gocd/version.rb
118
+ - spec/gocd/agents/agent_spec.rb
119
+ - spec/gocd/agents/agents_repository_spec.rb
120
+ - spec/gocd/agents/agents_spec.rb
121
+ - spec/gocd/config/credentials_spec.rb
122
+ - spec/gocd/history/history_fetcher_spec.rb
123
+ - spec/gocd/pipeline_config/environment_spec.rb
124
+ - spec/gocd/pipeline_config/job_spec.rb
125
+ - spec/gocd/pipeline_config/pipeline_group_spec.rb
126
+ - spec/gocd/pipeline_config/pipeline_spec.rb
127
+ - spec/gocd/pipeline_config/stage_spec.rb
128
+ - spec/gocd/pipeline_config/template_spec.rb
129
+ - spec/gocd/pipeline_status/pipeline_spec.rb
130
+ - spec/gocd/pipeline_status/pipelines_repository_spec.rb
131
+ - spec/gocd/pipeline_status/pipelines_spec.rb
132
+ - spec/spec_helper.rb
62
133
  homepage: https://github.com/ajitsing/gocd.git
63
134
  licenses:
64
135
  - MIT
@@ -83,4 +154,19 @@ rubygems_version: 2.5.1
83
154
  signing_key:
84
155
  specification_version: 4
85
156
  summary: Get info from gocd using its apis
86
- test_files: []
157
+ test_files:
158
+ - spec/gocd/agents/agent_spec.rb
159
+ - spec/gocd/agents/agents_repository_spec.rb
160
+ - spec/gocd/agents/agents_spec.rb
161
+ - spec/gocd/config/credentials_spec.rb
162
+ - spec/gocd/history/history_fetcher_spec.rb
163
+ - spec/gocd/pipeline_config/environment_spec.rb
164
+ - spec/gocd/pipeline_config/job_spec.rb
165
+ - spec/gocd/pipeline_config/pipeline_group_spec.rb
166
+ - spec/gocd/pipeline_config/pipeline_spec.rb
167
+ - spec/gocd/pipeline_config/stage_spec.rb
168
+ - spec/gocd/pipeline_config/template_spec.rb
169
+ - spec/gocd/pipeline_status/pipeline_spec.rb
170
+ - spec/gocd/pipeline_status/pipelines_repository_spec.rb
171
+ - spec/gocd/pipeline_status/pipelines_spec.rb
172
+ - spec/spec_helper.rb