travis 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +22 -0
- data/README.md +154 -0
- data/Rakefile +38 -0
- data/bin/travis +4 -0
- data/lib/travis.rb +8 -0
- data/lib/travis/cacert.pem +3895 -0
- data/lib/travis/cli.rb +83 -0
- data/lib/travis/cli/api_command.rb +65 -0
- data/lib/travis/cli/command.rb +212 -0
- data/lib/travis/cli/encrypt.rb +57 -0
- data/lib/travis/cli/endpoint.rb +13 -0
- data/lib/travis/cli/help.rb +21 -0
- data/lib/travis/cli/login.rb +57 -0
- data/lib/travis/cli/parser.rb +43 -0
- data/lib/travis/cli/raw.rb +16 -0
- data/lib/travis/cli/repo_command.rb +54 -0
- data/lib/travis/cli/version.rb +12 -0
- data/lib/travis/cli/whoami.rb +12 -0
- data/lib/travis/client.rb +20 -0
- data/lib/travis/client/entity.rb +139 -0
- data/lib/travis/client/error.rb +11 -0
- data/lib/travis/client/methods.rb +45 -0
- data/lib/travis/client/namespace.rb +78 -0
- data/lib/travis/client/repository.rb +66 -0
- data/lib/travis/client/session.rb +191 -0
- data/lib/travis/client/user.rb +20 -0
- data/lib/travis/pro.rb +5 -0
- data/lib/travis/tools/token_finder.rb +51 -0
- data/lib/travis/version.rb +3 -0
- data/spec/cli/encrypt_spec.rb +18 -0
- data/spec/cli/endpoint_spec.rb +23 -0
- data/spec/cli/help_spec.rb +33 -0
- data/spec/cli/login_spec.rb +13 -0
- data/spec/cli/version_spec.rb +18 -0
- data/spec/cli/whoami_spec.rb +27 -0
- data/spec/client/methods_spec.rb +15 -0
- data/spec/client/namespace_spec.rb +19 -0
- data/spec/client/repository_spec.rb +15 -0
- data/spec/client/session_spec.rb +145 -0
- data/spec/client/user_spec.rb +16 -0
- data/spec/client_spec.rb +5 -0
- data/spec/pro_spec.rb +10 -0
- data/spec/spec_helper.rb +16 -0
- data/spec/support/fake_api.rb +89 -0
- data/spec/support/fake_github.rb +20 -0
- data/spec/support/helpers.rb +43 -0
- data/spec/travis_spec.rb +9 -0
- data/travis.gemspec +84 -0
- metadata +240 -0
data/travis.gemspec
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Run `rake travis.gemspec` to update the gemspec.
|
2
|
+
Gem::Specification.new do |s|
|
3
|
+
# general infos
|
4
|
+
s.name = "travis"
|
5
|
+
s.version = "1.0.0"
|
6
|
+
s.description = "CLI and Ruby client library for Travis CI"
|
7
|
+
s.homepage = "https://github.com/travis-ci/travis"
|
8
|
+
s.summary = "Travis CI client"
|
9
|
+
s.license = "MIT"
|
10
|
+
s.executables = ["travis"]
|
11
|
+
|
12
|
+
# generated from git shortlog -sn
|
13
|
+
s.authors = [
|
14
|
+
"Konstantin Haase"
|
15
|
+
]
|
16
|
+
|
17
|
+
# generated from git shortlog -sne
|
18
|
+
s.email = [
|
19
|
+
"konstantin.mailinglists@googlemail.com"
|
20
|
+
]
|
21
|
+
|
22
|
+
# generated from git ls-files
|
23
|
+
s.files = [
|
24
|
+
"LICENSE",
|
25
|
+
"README.md",
|
26
|
+
"Rakefile",
|
27
|
+
"bin/travis",
|
28
|
+
"lib/travis.rb",
|
29
|
+
"lib/travis/cacert.pem",
|
30
|
+
"lib/travis/cli.rb",
|
31
|
+
"lib/travis/cli/api_command.rb",
|
32
|
+
"lib/travis/cli/command.rb",
|
33
|
+
"lib/travis/cli/encrypt.rb",
|
34
|
+
"lib/travis/cli/endpoint.rb",
|
35
|
+
"lib/travis/cli/help.rb",
|
36
|
+
"lib/travis/cli/login.rb",
|
37
|
+
"lib/travis/cli/parser.rb",
|
38
|
+
"lib/travis/cli/raw.rb",
|
39
|
+
"lib/travis/cli/repo_command.rb",
|
40
|
+
"lib/travis/cli/version.rb",
|
41
|
+
"lib/travis/cli/whoami.rb",
|
42
|
+
"lib/travis/client.rb",
|
43
|
+
"lib/travis/client/entity.rb",
|
44
|
+
"lib/travis/client/error.rb",
|
45
|
+
"lib/travis/client/methods.rb",
|
46
|
+
"lib/travis/client/namespace.rb",
|
47
|
+
"lib/travis/client/repository.rb",
|
48
|
+
"lib/travis/client/session.rb",
|
49
|
+
"lib/travis/client/user.rb",
|
50
|
+
"lib/travis/pro.rb",
|
51
|
+
"lib/travis/tools/token_finder.rb",
|
52
|
+
"lib/travis/version.rb",
|
53
|
+
"spec/cli/encrypt_spec.rb",
|
54
|
+
"spec/cli/endpoint_spec.rb",
|
55
|
+
"spec/cli/help_spec.rb",
|
56
|
+
"spec/cli/login_spec.rb",
|
57
|
+
"spec/cli/version_spec.rb",
|
58
|
+
"spec/cli/whoami_spec.rb",
|
59
|
+
"spec/client/methods_spec.rb",
|
60
|
+
"spec/client/namespace_spec.rb",
|
61
|
+
"spec/client/repository_spec.rb",
|
62
|
+
"spec/client/session_spec.rb",
|
63
|
+
"spec/client/user_spec.rb",
|
64
|
+
"spec/client_spec.rb",
|
65
|
+
"spec/pro_spec.rb",
|
66
|
+
"spec/spec_helper.rb",
|
67
|
+
"spec/support/fake_api.rb",
|
68
|
+
"spec/support/fake_github.rb",
|
69
|
+
"spec/support/helpers.rb",
|
70
|
+
"spec/travis_spec.rb",
|
71
|
+
"travis.gemspec"
|
72
|
+
]
|
73
|
+
|
74
|
+
# dependencies
|
75
|
+
s.add_dependency "faraday", "~> 0.8"
|
76
|
+
s.add_dependency "faraday_middleware", "~> 0.9"
|
77
|
+
s.add_dependency "highline", "~> 1.6"
|
78
|
+
s.add_dependency "netrc", "~> 0.7"
|
79
|
+
s.add_dependency "gh", "~> 0.9"
|
80
|
+
s.add_dependency "backports", "~> 2.6"
|
81
|
+
s.add_development_dependency "rspec", "~> 2.12"
|
82
|
+
s.add_development_dependency "sinatra", "~> 1.3"
|
83
|
+
s.add_development_dependency "rack-test", "~> 0.6"
|
84
|
+
end
|
metadata
ADDED
@@ -0,0 +1,240 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: travis
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Konstantin Haase
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-01-14 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: faraday
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.8'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.8'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: faraday_middleware
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0.9'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0.9'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: highline
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.6'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.6'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: netrc
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.7'
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0.7'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: gh
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0.9'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0.9'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: backports
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '2.6'
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '2.6'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rspec
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.12'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '2.12'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: sinatra
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ~>
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '1.3'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '1.3'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: rack-test
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ~>
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0.6'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ~>
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0.6'
|
158
|
+
description: CLI and Ruby client library for Travis CI
|
159
|
+
email:
|
160
|
+
- konstantin.mailinglists@googlemail.com
|
161
|
+
executables:
|
162
|
+
- travis
|
163
|
+
extensions: []
|
164
|
+
extra_rdoc_files: []
|
165
|
+
files:
|
166
|
+
- LICENSE
|
167
|
+
- README.md
|
168
|
+
- Rakefile
|
169
|
+
- bin/travis
|
170
|
+
- lib/travis.rb
|
171
|
+
- lib/travis/cacert.pem
|
172
|
+
- lib/travis/cli.rb
|
173
|
+
- lib/travis/cli/api_command.rb
|
174
|
+
- lib/travis/cli/command.rb
|
175
|
+
- lib/travis/cli/encrypt.rb
|
176
|
+
- lib/travis/cli/endpoint.rb
|
177
|
+
- lib/travis/cli/help.rb
|
178
|
+
- lib/travis/cli/login.rb
|
179
|
+
- lib/travis/cli/parser.rb
|
180
|
+
- lib/travis/cli/raw.rb
|
181
|
+
- lib/travis/cli/repo_command.rb
|
182
|
+
- lib/travis/cli/version.rb
|
183
|
+
- lib/travis/cli/whoami.rb
|
184
|
+
- lib/travis/client.rb
|
185
|
+
- lib/travis/client/entity.rb
|
186
|
+
- lib/travis/client/error.rb
|
187
|
+
- lib/travis/client/methods.rb
|
188
|
+
- lib/travis/client/namespace.rb
|
189
|
+
- lib/travis/client/repository.rb
|
190
|
+
- lib/travis/client/session.rb
|
191
|
+
- lib/travis/client/user.rb
|
192
|
+
- lib/travis/pro.rb
|
193
|
+
- lib/travis/tools/token_finder.rb
|
194
|
+
- lib/travis/version.rb
|
195
|
+
- spec/cli/encrypt_spec.rb
|
196
|
+
- spec/cli/endpoint_spec.rb
|
197
|
+
- spec/cli/help_spec.rb
|
198
|
+
- spec/cli/login_spec.rb
|
199
|
+
- spec/cli/version_spec.rb
|
200
|
+
- spec/cli/whoami_spec.rb
|
201
|
+
- spec/client/methods_spec.rb
|
202
|
+
- spec/client/namespace_spec.rb
|
203
|
+
- spec/client/repository_spec.rb
|
204
|
+
- spec/client/session_spec.rb
|
205
|
+
- spec/client/user_spec.rb
|
206
|
+
- spec/client_spec.rb
|
207
|
+
- spec/pro_spec.rb
|
208
|
+
- spec/spec_helper.rb
|
209
|
+
- spec/support/fake_api.rb
|
210
|
+
- spec/support/fake_github.rb
|
211
|
+
- spec/support/helpers.rb
|
212
|
+
- spec/travis_spec.rb
|
213
|
+
- travis.gemspec
|
214
|
+
homepage: https://github.com/travis-ci/travis
|
215
|
+
licenses:
|
216
|
+
- MIT
|
217
|
+
post_install_message:
|
218
|
+
rdoc_options: []
|
219
|
+
require_paths:
|
220
|
+
- lib
|
221
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
222
|
+
none: false
|
223
|
+
requirements:
|
224
|
+
- - ! '>='
|
225
|
+
- !ruby/object:Gem::Version
|
226
|
+
version: '0'
|
227
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
|
+
none: false
|
229
|
+
requirements:
|
230
|
+
- - ! '>='
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: '0'
|
233
|
+
requirements: []
|
234
|
+
rubyforge_project:
|
235
|
+
rubygems_version: 1.8.23
|
236
|
+
signing_key:
|
237
|
+
specification_version: 3
|
238
|
+
summary: Travis CI client
|
239
|
+
test_files: []
|
240
|
+
has_rdoc:
|