git-semaphore 0.0.9 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +9 -19
  3. data/.pryrc +6 -0
  4. data/.ruby-version +1 -1
  5. data/CODE_OF_CONDUCT.md +49 -0
  6. data/LICENSE.txt +17 -18
  7. data/README.md +166 -40
  8. data/Rakefile +8 -9
  9. data/bin/console +14 -0
  10. data/bin/setup +10 -0
  11. data/exe/git-semaphore +79 -0
  12. data/git-semaphore.gemspec +15 -19
  13. data/lib/git/semaphore/api.rb +133 -0
  14. data/lib/git/semaphore/api_cache.rb +59 -0
  15. data/lib/git/semaphore/api_enrich.rb +40 -0
  16. data/lib/git/semaphore/app.rb +121 -0
  17. data/lib/{git-semaphore → git/semaphore}/banner.rb +0 -0
  18. data/lib/{git-semaphore → git/semaphore}/copyright.rb +1 -1
  19. data/lib/{git-semaphore → git/semaphore}/version.rb +1 -1
  20. data/lib/git/semaphore.rb +77 -0
  21. metadata +55 -181
  22. data/.bundle/config +0 -3
  23. data/.irbrc +0 -13
  24. data/bin/git-semaphore +0 -115
  25. data/features/cassettes/cucumber_tags/api_branch_status.json +0 -20
  26. data/features/cassettes/cucumber_tags/api_project_branches.json +0 -14
  27. data/features/cassettes/cucumber_tags/api_projects.json +0 -46
  28. data/features/cassettes/cucumber_tags/vcr_api_branches.yml +0 -70
  29. data/features/cassettes/cucumber_tags/vcr_api_projects.yml +0 -102
  30. data/features/cassettes/cucumber_tags/vcr_api_rebuild_last_revision.yml +0 -55
  31. data/features/cassettes/cucumber_tags/vcr_api_status.yml +0 -76
  32. data/features/coming_soon.feature +0 -13
  33. data/features/env_config.feature +0 -11
  34. data/features/git_config.feature +0 -11
  35. data/features/help_and_version.feature +0 -33
  36. data/features/semaphore_app_api.feature +0 -29
  37. data/features/semaphore_app_config.feature +0 -37
  38. data/features/semaphore_auth_token.feature +0 -32
  39. data/features/semaphore_project_token.feature +0 -32
  40. data/features/step_definitions/git-semaphore_steps.rb +0 -121
  41. data/features/step_definitions/patch_methadone_steps.rb +0 -5
  42. data/features/step_definitions/vcr_semaphore_steps.rb +0 -25
  43. data/features/support/env.rb +0 -7
  44. data/features/support/semaphoreapp.rb +0 -2
  45. data/features/support/vcr.rb +0 -14
  46. data/features/working_directory.feature +0 -22
  47. data/lib/git-semaphore/api.rb +0 -60
  48. data/lib/git-semaphore/app.rb +0 -123
  49. data/lib/git-semaphore.rb +0 -15
  50. data/spec_helper.rb +0 -6
  51. data/vendor/bundle/.gitignore +0 -2
metadata CHANGED
@@ -1,198 +1,114 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-semaphore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Vandenberk
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-18 00:00:00.000000000 Z
11
+ date: 2016-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: grit
14
+ name: slop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: trollop
28
+ name: grit
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '2.0'
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: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: pry
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
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: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '>='
67
- - !ruby/object:Gem::Version
68
- version: '0'
40
+ version: '2.0'
69
41
  - !ruby/object:Gem::Dependency
70
42
  name: bundler
71
43
  requirement: !ruby/object:Gem::Requirement
72
44
  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'
83
- - !ruby/object:Gem::Dependency
84
- name: cucumber
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '>='
45
+ - - "~>"
88
46
  - !ruby/object:Gem::Version
89
- version: '0'
47
+ version: '1.12'
90
48
  type: :development
91
49
  prerelease: false
92
50
  version_requirements: !ruby/object:Gem::Requirement
93
51
  requirements:
94
- - - '>='
52
+ - - "~>"
95
53
  - !ruby/object:Gem::Version
96
- version: '0'
54
+ version: '1.12'
97
55
  - !ruby/object:Gem::Dependency
98
- name: rspec
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '>='
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: aruba
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '>='
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: methadone
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - '>='
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - '>='
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: vcr
56
+ name: rake
141
57
  requirement: !ruby/object:Gem::Requirement
142
58
  requirements:
143
- - - '>='
59
+ - - "~>"
144
60
  - !ruby/object:Gem::Version
145
- version: '0'
61
+ version: '10.0'
146
62
  type: :development
147
63
  prerelease: false
148
64
  version_requirements: !ruby/object:Gem::Requirement
149
65
  requirements:
150
- - - '>='
66
+ - - "~>"
151
67
  - !ruby/object:Gem::Version
152
- version: '0'
68
+ version: '10.0'
153
69
  - !ruby/object:Gem::Dependency
154
- name: webmock
70
+ name: minitest
155
71
  requirement: !ruby/object:Gem::Requirement
156
72
  requirements:
157
- - - '>='
73
+ - - "~>"
158
74
  - !ruby/object:Gem::Version
159
- version: '0'
75
+ version: '5.0'
160
76
  type: :development
161
77
  prerelease: false
162
78
  version_requirements: !ruby/object:Gem::Requirement
163
79
  requirements:
164
- - - '>='
80
+ - - "~>"
165
81
  - !ruby/object:Gem::Version
166
- version: '0'
82
+ version: '5.0'
167
83
  - !ruby/object:Gem::Dependency
168
- name: jazor
84
+ name: pry
169
85
  requirement: !ruby/object:Gem::Requirement
170
86
  requirements:
171
- - - '>='
87
+ - - ">="
172
88
  - !ruby/object:Gem::Version
173
89
  version: '0'
174
90
  type: :development
175
91
  prerelease: false
176
92
  version_requirements: !ruby/object:Gem::Requirement
177
93
  requirements:
178
- - - '>='
94
+ - - ">="
179
95
  - !ruby/object:Gem::Version
180
96
  version: '0'
181
97
  - !ruby/object:Gem::Dependency
182
- name: json_spec
98
+ name: pry-rescue
183
99
  requirement: !ruby/object:Gem::Requirement
184
100
  requirements:
185
- - - '>='
101
+ - - ">="
186
102
  - !ruby/object:Gem::Version
187
103
  version: '0'
188
104
  type: :development
189
105
  prerelease: false
190
106
  version_requirements: !ruby/object:Gem::Requirement
191
107
  requirements:
192
- - - '>='
108
+ - - ">="
193
109
  - !ruby/object:Gem::Version
194
110
  version: '0'
195
- description: '["git integration with https://semaphoreci.com"]'
111
+ description: command-line integration with semaphoreci.com for git repositories
196
112
  email:
197
113
  - pvandenberk@mac.com
198
114
  executables:
@@ -200,48 +116,28 @@ executables:
200
116
  extensions: []
201
117
  extra_rdoc_files: []
202
118
  files:
203
- - .bundle/config
204
- - .gitconform
205
- - .gitignore
206
- - .irbrc
207
- - .ruby-version
119
+ - ".gitconform"
120
+ - ".gitignore"
121
+ - ".pryrc"
122
+ - ".ruby-version"
123
+ - CODE_OF_CONDUCT.md
208
124
  - Gemfile
209
125
  - Guardfile
210
126
  - LICENSE.txt
211
127
  - README.md
212
128
  - Rakefile
213
- - bin/git-semaphore
214
- - features/cassettes/cucumber_tags/api_branch_status.json
215
- - features/cassettes/cucumber_tags/api_project_branches.json
216
- - features/cassettes/cucumber_tags/api_projects.json
217
- - features/cassettes/cucumber_tags/vcr_api_branches.yml
218
- - features/cassettes/cucumber_tags/vcr_api_projects.yml
219
- - features/cassettes/cucumber_tags/vcr_api_rebuild_last_revision.yml
220
- - features/cassettes/cucumber_tags/vcr_api_status.yml
221
- - features/coming_soon.feature
222
- - features/env_config.feature
223
- - features/git_config.feature
224
- - features/help_and_version.feature
225
- - features/semaphore_app_api.feature
226
- - features/semaphore_app_config.feature
227
- - features/semaphore_auth_token.feature
228
- - features/semaphore_project_token.feature
229
- - features/step_definitions/git-semaphore_steps.rb
230
- - features/step_definitions/patch_methadone_steps.rb
231
- - features/step_definitions/vcr_semaphore_steps.rb
232
- - features/support/env.rb
233
- - features/support/semaphoreapp.rb
234
- - features/support/vcr.rb
235
- - features/working_directory.feature
129
+ - bin/console
130
+ - bin/setup
131
+ - exe/git-semaphore
236
132
  - git-semaphore.gemspec
237
- - lib/git-semaphore.rb
238
- - lib/git-semaphore/api.rb
239
- - lib/git-semaphore/app.rb
240
- - lib/git-semaphore/banner.rb
241
- - lib/git-semaphore/copyright.rb
242
- - lib/git-semaphore/version.rb
243
- - spec_helper.rb
244
- - vendor/bundle/.gitignore
133
+ - lib/git/semaphore.rb
134
+ - lib/git/semaphore/api.rb
135
+ - lib/git/semaphore/api_cache.rb
136
+ - lib/git/semaphore/api_enrich.rb
137
+ - lib/git/semaphore/app.rb
138
+ - lib/git/semaphore/banner.rb
139
+ - lib/git/semaphore/copyright.rb
140
+ - lib/git/semaphore/version.rb
245
141
  homepage: https://github.com/pvdb/git-semaphore
246
142
  licenses:
247
143
  - MIT
@@ -252,40 +148,18 @@ require_paths:
252
148
  - lib
253
149
  required_ruby_version: !ruby/object:Gem::Requirement
254
150
  requirements:
255
- - - '>='
151
+ - - ">="
256
152
  - !ruby/object:Gem::Version
257
153
  version: '0'
258
154
  required_rubygems_version: !ruby/object:Gem::Requirement
259
155
  requirements:
260
- - - '>='
156
+ - - ">="
261
157
  - !ruby/object:Gem::Version
262
158
  version: '0'
263
159
  requirements: []
264
160
  rubyforge_project:
265
- rubygems_version: 2.4.8
161
+ rubygems_version: 2.5.1
266
162
  signing_key:
267
163
  specification_version: 4
268
- summary: '["git integration with https://semaphoreci.com"]'
269
- test_files:
270
- - features/cassettes/cucumber_tags/api_branch_status.json
271
- - features/cassettes/cucumber_tags/api_project_branches.json
272
- - features/cassettes/cucumber_tags/api_projects.json
273
- - features/cassettes/cucumber_tags/vcr_api_branches.yml
274
- - features/cassettes/cucumber_tags/vcr_api_projects.yml
275
- - features/cassettes/cucumber_tags/vcr_api_rebuild_last_revision.yml
276
- - features/cassettes/cucumber_tags/vcr_api_status.yml
277
- - features/coming_soon.feature
278
- - features/env_config.feature
279
- - features/git_config.feature
280
- - features/help_and_version.feature
281
- - features/semaphore_app_api.feature
282
- - features/semaphore_app_config.feature
283
- - features/semaphore_auth_token.feature
284
- - features/semaphore_project_token.feature
285
- - features/step_definitions/git-semaphore_steps.rb
286
- - features/step_definitions/patch_methadone_steps.rb
287
- - features/step_definitions/vcr_semaphore_steps.rb
288
- - features/support/env.rb
289
- - features/support/semaphoreapp.rb
290
- - features/support/vcr.rb
291
- - features/working_directory.feature
164
+ summary: git integration with semaphoreci.com
165
+ test_files: []
data/.bundle/config DELETED
@@ -1,3 +0,0 @@
1
- ---
2
- BUNDLE_PATH: vendor/bundle/
3
- BUNDLE_DISABLE_SHARED_GEMS: '1'
data/.irbrc DELETED
@@ -1,13 +0,0 @@
1
- # vim:syntax=ruby
2
-
3
- $:.unshift Dir.pwd
4
- $:.unshift File.join(Dir.pwd, 'lib')
5
-
6
- require 'git-semaphore'
7
-
8
- require 'rubygems'
9
-
10
- require 'bundler'
11
- Bundler.require
12
-
13
- # That's all, Folks!
data/bin/git-semaphore DELETED
@@ -1,115 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- $LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
4
-
5
- require 'git-semaphore'
6
-
7
- options = Trollop::options do
8
-
9
- version Git::Semaphore::COPYRIGHT
10
- banner Git::Semaphore::BANNER
11
-
12
- opt :projects, 'List all semaphore.app projects', :short => nil, :default => false
13
- opt :branches, 'List all semaphore.app branches for current project', :short => nil, :default => false
14
- opt :status, 'List the semaphore.app status for the given branch', :short => nil, :default => false
15
- opt :'commit-status', 'Check commit status', :default => false
16
- opt :'rebuild-last-revision', 'Rebuild last revision', :default => false
17
-
18
- opt :'working-dir', 'Print working dir', :short => 'w', :default => false
19
- opt :'project-name', 'Print project name', :short => 'p', :default => false
20
- opt :'branch-name', 'Print branch name', :short => 'b', :default => false
21
-
22
- opt :'check-auth', 'Check auth token', :short => 'x', :default => false
23
- opt :'check-project', 'Check project hash id', :short => 'y', :default => false
24
- opt :'check-branch', 'Check branch id', :short => 'z', :default => false
25
-
26
- opt :'git-config', 'Print git settings', :short => 'g', :default => false
27
- opt :'env-config', 'Print environment settings', :short => 'e', :default => false
28
-
29
- end
30
-
31
- app = Git::Semaphore::App.new(Dir.pwd, ENV)
32
-
33
- if !app.validate
34
- r = app.git_repo rescue false
35
- unless r
36
- STDERR.puts "Error: \"#{Dir.pwd}\" is not a git working directory... exiting!"
37
- exit 255
38
- end
39
- end
40
-
41
- if options[:'rebuild-last-revision']
42
- puts app.rebuild_last_revision
43
- exit 0
44
- end
45
-
46
- if options[:'commit-status']
47
- puts app.commit_status
48
- exit 0
49
- end
50
-
51
- if options[:projects]
52
- puts app.projects
53
- exit 0
54
- end
55
-
56
- if options[:branches]
57
- puts app.branches
58
- exit 0
59
- end
60
-
61
- if options[:status]
62
- puts app.status
63
- exit 0
64
- end
65
-
66
- if options[:'working-dir']
67
- puts app.working_dir
68
- exit 0
69
- end
70
-
71
- if options[:'project-name']
72
- puts app.project_name
73
- exit 0
74
- end
75
-
76
- if options[:'branch-name']
77
- puts app.branch_name
78
- exit 0
79
- end
80
-
81
- if options[:'check-auth']
82
- unless app.auth_token && !app.auth_token.empty?
83
- STDERR.puts 'Please set - and export - the SEMAPHORE_AUTH_TOKEN env variable'
84
- STDERR.puts 'Alternatively, set semaphore.authtoken in your local git config'
85
- exit -1
86
- else
87
- exit 0
88
- end
89
- end
90
-
91
- if options[:'check-project']
92
- unless app.project_token && !app.project_token.empty?
93
- STDERR.puts 'Please set - and export - the SEMAPHORE_PROJECT_TOKEN env variable'
94
- STDERR.puts 'Alternatively, set semaphore.projecttoken in your local git config'
95
- exit -1
96
- else
97
- exit 0
98
- end
99
- end
100
-
101
- if options[:'env-config']
102
- puts "export SEMAPHORE_AUTH_TOKEN=\"#{app.env_auth_token}\""
103
- puts "export SEMAPHORE_PROJECT_TOKEN=\"#{app.env_project_token}\""
104
- exit 0
105
- end
106
-
107
- if options[:'git-config']
108
- puts "git config --local --replace-all semaphore.authtoken \"#{app.git_auth_token}\""
109
- puts "git config --local --replace-all semaphore.projecttoken \"#{app.git_project_token}\""
110
- exit 0
111
- end
112
-
113
- fail "Coming soon!"
114
-
115
- # That's all, Folks!
@@ -1,20 +0,0 @@
1
- {
2
- "branch_name": "gem_updates",
3
- "branch_url": "https://semaphoreci.com/projects/44/branches/50",
4
- "branch_status_url": "http://semaphoreci.com/api/v1/projects/649e584dc507ca4b73e1374d3125ef0b567a949c/89/status?auth_token=Yds3w6o26FLfJTnVK2y9",
5
- "branch_history_url": "http://semaphoreci.com/api/v1/projects/649e584dc507ca4b73e1374d3125ef0b567a949c/89?auth_token=Yds3w6o26FLfJTnVK2y9",
6
- "project_name": "base-app",
7
- "build_url": "https://semaphoreci.com/projects/44/branches/50/builds/15",
8
- "build_number": 15,
9
- "result": "passed",
10
- "started_at": "2012-07-09T15:23:53Z",
11
- "finished_at": "2012-07-09T15:30:16Z",
12
- "commit": {
13
- "id": "dc395381e650f3bac18457909880829fc20e34ba",
14
- "url": "https://github.com/renderedtext/base-app/commit/dc395381e650f3bac18457909880829fc20e34ba",
15
- "author_name": "Vladimir Saric",
16
- "author_email": "vladimir@renderedtext.com",
17
- "message": "Update 'shoulda' gem.",
18
- "timestamp": "2012-07-04T18:14:08Z"
19
- }
20
- }
@@ -1,14 +0,0 @@
1
- [
2
- {
3
- "id": 1324,
4
- "name": "new-build-page"
5
- },
6
- {
7
- "id": 1120,
8
- "name": "development"
9
- },
10
- {
11
- "id": 987,
12
- "name": "branches_api"
13
- }
14
- ]
@@ -1,46 +0,0 @@
1
- [
2
- {
3
- "id": 61,
4
- "hash_id": "3f1004b8343faabda63d441734526c854380ab89",
5
- "name": "testapp-sphinx",
6
- "owner": "renderedtext",
7
- "created_at": "2012-09-04T11:53:22Z",
8
- "updated_at": "2012-09-04T12:01:17Z",
9
- "branches": [
10
- {
11
- "branch_name": "master",
12
- "branch_url": "http://10.0.1.76:3000/projects/61/branches/85",
13
- "branch_status_url": "http://semaphoreci.com/api/v1/projects/3f1004b8343faabda63d441734526c854380ab89/85/status?auth_token=Yds3w6o26FLfJTnVK2y9",
14
- "branch_history_url": "http://semaphoreci.com/api/v1/projects/3f1004b8343faabda63d441734526c854380ab89/85?auth_token=Yds3w6o26FLfJTnVK2y9",
15
- "project_name": "testapp-sphinx",
16
- "build_url": "http://10.0.1.76:3000/projects/61/branches/85/builds/1",
17
- "build_number": 1,
18
- "result": "passed",
19
- "started_at": "2012-09-04T11:55:07Z",
20
- "finished_at": "2012-09-04T12:01:16Z"
21
- }
22
- ]
23
- },
24
- {
25
- "id": 63,
26
- "hash_id": "649e584dc507ca4b73e1374d3125ef0b567a949c",
27
- "name": "testapp-mongodb",
28
- "owner": "renderedtext",
29
- "created_at": "2012-09-14T10:53:38Z",
30
- "updated_at": "2012-09-14T11:16:51Z",
31
- "branches": [
32
- {
33
- "branch_name": "mongoid3",
34
- "branch_url": "http://10.0.1.76:3000/projects/63/branches/89",
35
- "branch_status_url": "http://semaphoreci.com/api/v1/projects/3f1004b8343faabda63d441734526c854380ab89/85/status?auth_token=Yds3w6o26FLfJTnVK2y9",
36
- "branch_history_url": "http://semaphoreci.com/api/v1/projects/3f1004b8343faabda63d441734526c854380ab89/85?auth_token=Yds3w6o26FLfJTnVK2y9",
37
- "project_name": "testapp-mongodb",
38
- "build_url": "http://10.0.1.76:3000/projects/63/branches/89/builds/3",
39
- "build_number": 3,
40
- "result": "passed",
41
- "started_at": "2012-09-14T11:11:39Z",
42
- "finished_at": "2012-09-14T11:16:51Z"
43
- }
44
- ]
45
- }
46
- ]
@@ -1,70 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://semaphoreci.com/api/v1/projects/649e584dc507ca4b73e1374d3125ef0b567a949c/branches?auth_token=Yds3w6o26FLfJTnVK2y9
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - ! '*/*'
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Content-Type:
22
- - application/json; charset=utf-8
23
- Transfer-Encoding:
24
- - chunked
25
- Connection:
26
- - keep-alive
27
- Status:
28
- - '200'
29
- X-Powered-By:
30
- - Phusion Passenger (mod_rails/mod_rack) 3.0.13
31
- Strict-Transport-Security:
32
- - max-age=31536000
33
- X-Ua-Compatible:
34
- - IE=Edge,chrome=1
35
- Etag:
36
- - ! '"645f463f79de43c58d74c6f9bb8b85fb"'
37
- Cache-Control:
38
- - max-age=0, private, must-revalidate
39
- Set-Cookie:
40
- - _base-app_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWZiZGIzMmM5MzFmNmNiNDc2MGI0YWFmZWQ4MDQ1MDkxBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBmkCCANJIiIkMmEkMTAkN3VSVzl5MkpUMHVrdVA5TWVncEpYdQY7AFQ%3D--76ec7f994c872cd2f7537a2f788e9ded073986e3;
41
- path=/; secure; HttpOnly
42
- X-Request-Id:
43
- - 7f52a676f2f8f64cbcbfc9a39a85c48e
44
- X-Runtime:
45
- - '0.092267'
46
- Date:
47
- - Sat, 20 Oct 2012 11:58:28 GMT
48
- X-Rack-Cache:
49
- - miss
50
- Server:
51
- - nginx/1.2.1 + Phusion Passenger 3.0.13 (mod_rails/mod_rack)
52
- body:
53
- encoding: US-ASCII
54
- string: ! '[
55
- {
56
- "id": 1324,
57
- "name": "new-build-page"
58
- },
59
- {
60
- "id": 1120,
61
- "name": "development"
62
- },
63
- {
64
- "id": 987,
65
- "name": "branches_api"
66
- }
67
- ]'
68
- http_version:
69
- recorded_at: Sat, 20 Oct 2012 11:58:31 GMT
70
- recorded_with: VCR 2.2.5