spacex 1.0.2 → 2.0.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.
- checksums.yaml +5 -5
- data/.github/workflows/ruby.yml +26 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +6 -0
- data/.rubocop_todo.yml +1 -1
- data/CHANGELOG.md +54 -1
- data/CLAUDE.md +55 -0
- data/Dangerfile +28 -0
- data/Gemfile +12 -1
- data/README.md +52 -510
- data/docs/v3.md +525 -0
- data/docs/v4.md +179 -0
- data/lib/spacex/base_request.rb +8 -8
- data/lib/spacex/capsules.rb +10 -12
- data/lib/spacex/company.rb +7 -0
- data/lib/spacex/cores.rb +11 -14
- data/lib/spacex/crew.rb +15 -0
- data/lib/spacex/{dragon_capsules.rb → dragons.rb} +14 -16
- data/lib/spacex/history.rb +9 -2
- data/lib/spacex/landpads.rb +23 -0
- data/lib/spacex/launches.rb +35 -11
- data/lib/spacex/launchpads.rb +23 -0
- data/lib/spacex/models.rb +16 -0
- data/lib/spacex/payloads.rb +31 -2
- data/lib/spacex/rockets.rb +26 -3
- data/lib/spacex/ships.rb +22 -24
- data/lib/spacex/starlink.rb +16 -0
- data/lib/spacex/version.rb +1 -1
- data/lib/spacex.rb +2 -17
- data/spacex.gemspec +6 -9
- data/spec/coverage_helper.rb +5 -0
- data/spec/fixtures/spacex/v4/capsules/all.yml +122 -0
- data/spec/fixtures/spacex/v4/capsules/one.yml +89 -0
- data/spec/fixtures/spacex/v4/company.yml +80 -0
- data/spec/fixtures/spacex/v4/cores/all.yml +76 -0
- data/spec/fixtures/spacex/v4/cores/one.yml +75 -0
- data/spec/fixtures/spacex/v4/crew/all.yml +92 -0
- data/spec/fixtures/spacex/v4/crew/one.yml +74 -0
- data/spec/fixtures/spacex/v4/dragons/all.yml +101 -0
- data/spec/fixtures/spacex/v4/dragons/one.yml +189 -0
- data/spec/fixtures/spacex/v4/history/all.yml +85 -0
- data/spec/fixtures/spacex/v4/history/one.yml +168 -0
- data/spec/fixtures/spacex/v4/landpads/all.yml +85 -0
- data/spec/fixtures/spacex/v4/landpads/one.yml +172 -0
- data/spec/fixtures/spacex/v4/launches/all.yml +85 -0
- data/spec/fixtures/spacex/v4/launches/latest.yml +84 -0
- data/spec/fixtures/spacex/v4/launches/next.yml +84 -0
- data/spec/fixtures/spacex/v4/launches/one.yml +167 -0
- data/spec/fixtures/spacex/v4/launches/past.yml +85 -0
- data/spec/fixtures/spacex/v4/launches/upcoming.yml +97 -0
- data/spec/fixtures/spacex/v4/launchpads/all.yml +139 -0
- data/spec/fixtures/spacex/v4/launchpads/one.yml +225 -0
- data/spec/fixtures/spacex/v4/payloads/all.yml +85 -0
- data/spec/fixtures/spacex/v4/payloads/one.yml +167 -0
- data/spec/fixtures/spacex/v4/roadster.yml +90 -0
- data/spec/fixtures/spacex/v4/rockets/all.yml +76 -0
- data/spec/fixtures/spacex/v4/rockets/one.yml +84 -0
- data/spec/fixtures/spacex/v4/ships/all.yml +164 -0
- data/spec/fixtures/spacex/v4/ships/one.yml +248 -0
- data/spec/fixtures/spacex/v4/starlink/all.yml +17713 -0
- data/spec/fixtures/spacex/v4/starlink/one.yml +17798 -0
- data/spec/spacex/base_request_spec.rb +112 -0
- data/spec/spacex/capsules_spec.rb +19 -28
- data/spec/spacex/company_spec.rb +26 -0
- data/spec/spacex/cores_spec.rb +18 -31
- data/spec/spacex/crew_spec.rb +27 -0
- data/spec/spacex/dragons_spec.rb +39 -0
- data/spec/spacex/history_spec.rb +16 -40
- data/spec/spacex/landpads_spec.rb +35 -0
- data/spec/spacex/launches_spec.rb +28 -628
- data/spec/spacex/launchpads_spec.rb +34 -0
- data/spec/spacex/payloads_spec.rb +27 -51
- data/spec/spacex/roadster_spec.rb +5 -29
- data/spec/spacex/rockets_spec.rb +26 -194
- data/spec/spacex/ships_spec.rb +20 -51
- data/spec/spacex/starlink_spec.rb +28 -0
- data/spec/spacex/version_spec.rb +12 -0
- data/spec/spec_helper.rb +3 -9
- metadata +106 -137
- data/.ruby-version +0 -1
- data/.travis.yml +0 -21
- data/lib/spacex/api_info.rb +0 -7
- data/lib/spacex/company_info.rb +0 -7
- data/lib/spacex/endpoint.rb +0 -3
- data/lib/spacex/landing_pads.rb +0 -11
- data/lib/spacex/launch_pads.rb +0 -11
- data/lib/spacex/missions.rb +0 -18
- data/spec/fixtures/spacex/api_info/info.yml +0 -65
- data/spec/fixtures/spacex/capsules/C202.yml +0 -123
- data/spec/fixtures/spacex/capsules.yml +0 -83
- data/spec/fixtures/spacex/company_info/info.yml +0 -129
- data/spec/fixtures/spacex/cores/B1041.yml +0 -123
- data/spec/fixtures/spacex/cores.yml +0 -62
- data/spec/fixtures/spacex/dragon_capsules/info/dragon1.yml +0 -131
- data/spec/fixtures/spacex/dragon_capsules/info.yml +0 -77
- data/spec/fixtures/spacex/history/info/4.yml +0 -62
- data/spec/fixtures/spacex/history/info.yml +0 -62
- data/spec/fixtures/spacex/landing_pads/info/LZ-4.yml +0 -70
- data/spec/fixtures/spacex/landing_pads/info.yml +0 -68
- data/spec/fixtures/spacex/launch_pads/info/vafb_slc_4e.yml +0 -71
- data/spec/fixtures/spacex/launch_pads/info.yml +0 -104
- data/spec/fixtures/spacex/launches/68.yml +0 -69
- data/spec/fixtures/spacex/launches/all.yml +0 -62
- data/spec/fixtures/spacex/launches/info.yml +0 -62
- data/spec/fixtures/spacex/launches/latest.yml +0 -245
- data/spec/fixtures/spacex/launches/next.yml +0 -123
- data/spec/fixtures/spacex/launches/past.yml +0 -62
- data/spec/fixtures/spacex/launches/upcoming.yml +0 -64
- data/spec/fixtures/spacex/launches.yml +0 -62
- data/spec/fixtures/spacex/missions/F3364BF.yml +0 -157
- data/spec/fixtures/spacex/missions/info.yml +0 -62
- data/spec/fixtures/spacex/payloads/RatSat.yml +0 -62
- data/spec/fixtures/spacex/payloads/info.yml +0 -62
- data/spec/fixtures/spacex/roadster/info.yml +0 -133
- data/spec/fixtures/spacex/rockets/info/falcon1.yml +0 -139
- data/spec/fixtures/spacex/rockets/info/invalid.yml +0 -61
- data/spec/fixtures/spacex/rockets/info.yml +0 -105
- data/spec/fixtures/spacex/ships/info/AMERICANCHAMPION.yml +0 -125
- data/spec/fixtures/spacex/ships/info.yml +0 -139
- data/spec/spacex/api_info_spec.rb +0 -16
- data/spec/spacex/company_info_spec.rb +0 -27
- data/spec/spacex/dragon_capsules_spec.rb +0 -107
- data/spec/spacex/endpoint_spec.rb +0 -9
- data/spec/spacex/landing_pads_spec.rb +0 -72
- data/spec/spacex/launch_pads_spec.rb +0 -77
- data/spec/spacex/missions_spec.rb +0 -35
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spacex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rodolfo Bandeira
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: faraday
|
|
@@ -16,70 +15,42 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0
|
|
18
|
+
version: '2.0'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0
|
|
25
|
+
version: '2.0'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
27
|
+
name: hashie
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - "~>"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0
|
|
32
|
+
version: '5.0'
|
|
34
33
|
type: :runtime
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - "~>"
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '0
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: hashie
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - '='
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: 3.6.0
|
|
48
|
-
type: :runtime
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - '='
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: 3.6.0
|
|
39
|
+
version: '5.0'
|
|
55
40
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
41
|
+
name: rake
|
|
57
42
|
requirement: !ruby/object:Gem::Requirement
|
|
58
43
|
requirements:
|
|
59
44
|
- - ">="
|
|
60
45
|
- !ruby/object:Gem::Version
|
|
61
|
-
version:
|
|
46
|
+
version: 12.3.3
|
|
62
47
|
type: :development
|
|
63
48
|
prerelease: false
|
|
64
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
50
|
requirements:
|
|
66
51
|
- - ">="
|
|
67
52
|
- !ruby/object:Gem::Version
|
|
68
|
-
version:
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rake
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '10'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - "~>"
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '10'
|
|
53
|
+
version: 12.3.3
|
|
83
54
|
- !ruby/object:Gem::Dependency
|
|
84
55
|
name: rspec
|
|
85
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -98,30 +69,30 @@ dependencies:
|
|
|
98
69
|
name: rubocop
|
|
99
70
|
requirement: !ruby/object:Gem::Requirement
|
|
100
71
|
requirements:
|
|
101
|
-
- -
|
|
72
|
+
- - "~>"
|
|
102
73
|
- !ruby/object:Gem::Version
|
|
103
|
-
version:
|
|
74
|
+
version: '1.22'
|
|
104
75
|
type: :development
|
|
105
76
|
prerelease: false
|
|
106
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
78
|
requirements:
|
|
108
|
-
- -
|
|
79
|
+
- - "~>"
|
|
109
80
|
- !ruby/object:Gem::Version
|
|
110
|
-
version:
|
|
81
|
+
version: '1.22'
|
|
111
82
|
- !ruby/object:Gem::Dependency
|
|
112
83
|
name: vcr
|
|
113
84
|
requirement: !ruby/object:Gem::Requirement
|
|
114
85
|
requirements:
|
|
115
86
|
- - "~>"
|
|
116
87
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: '
|
|
88
|
+
version: '6.0'
|
|
118
89
|
type: :development
|
|
119
90
|
prerelease: false
|
|
120
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
92
|
requirements:
|
|
122
93
|
- - "~>"
|
|
123
94
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: '
|
|
95
|
+
version: '6.0'
|
|
125
96
|
- !ruby/object:Gem::Dependency
|
|
126
97
|
name: webmock
|
|
127
98
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -144,86 +115,88 @@ extra_rdoc_files: []
|
|
|
144
115
|
files:
|
|
145
116
|
- ".github/ISSUE_TEMPLATE.md"
|
|
146
117
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
|
118
|
+
- ".github/workflows/ruby.yml"
|
|
147
119
|
- ".gitignore"
|
|
148
120
|
- ".rspec"
|
|
149
121
|
- ".rubocop.yml"
|
|
150
122
|
- ".rubocop_todo.yml"
|
|
151
|
-
- ".ruby-version"
|
|
152
|
-
- ".travis.yml"
|
|
153
123
|
- CHANGELOG.md
|
|
124
|
+
- CLAUDE.md
|
|
154
125
|
- CONTRIBUTING.md
|
|
126
|
+
- Dangerfile
|
|
155
127
|
- Gemfile
|
|
156
128
|
- LICENSE
|
|
157
129
|
- README.md
|
|
158
130
|
- Rakefile
|
|
131
|
+
- docs/v3.md
|
|
132
|
+
- docs/v4.md
|
|
159
133
|
- lib/spacex.rb
|
|
160
|
-
- lib/spacex/api_info.rb
|
|
161
134
|
- lib/spacex/base_request.rb
|
|
162
135
|
- lib/spacex/capsules.rb
|
|
163
|
-
- lib/spacex/
|
|
136
|
+
- lib/spacex/company.rb
|
|
164
137
|
- lib/spacex/cores.rb
|
|
165
|
-
- lib/spacex/
|
|
166
|
-
- lib/spacex/
|
|
138
|
+
- lib/spacex/crew.rb
|
|
139
|
+
- lib/spacex/dragons.rb
|
|
167
140
|
- lib/spacex/history.rb
|
|
168
|
-
- lib/spacex/
|
|
169
|
-
- lib/spacex/launch_pads.rb
|
|
141
|
+
- lib/spacex/landpads.rb
|
|
170
142
|
- lib/spacex/launches.rb
|
|
171
|
-
- lib/spacex/
|
|
143
|
+
- lib/spacex/launchpads.rb
|
|
144
|
+
- lib/spacex/models.rb
|
|
172
145
|
- lib/spacex/payloads.rb
|
|
173
146
|
- lib/spacex/resource.rb
|
|
174
147
|
- lib/spacex/roadster.rb
|
|
175
148
|
- lib/spacex/rockets.rb
|
|
176
149
|
- lib/spacex/ships.rb
|
|
150
|
+
- lib/spacex/starlink.rb
|
|
177
151
|
- lib/spacex/version.rb
|
|
178
152
|
- rubocop.yml
|
|
179
153
|
- spacex.gemspec
|
|
180
|
-
- spec/
|
|
181
|
-
- spec/fixtures/spacex/capsules.yml
|
|
182
|
-
- spec/fixtures/spacex/capsules/
|
|
183
|
-
- spec/fixtures/spacex/
|
|
184
|
-
- spec/fixtures/spacex/cores.yml
|
|
185
|
-
- spec/fixtures/spacex/cores/
|
|
186
|
-
- spec/fixtures/spacex/
|
|
187
|
-
- spec/fixtures/spacex/
|
|
188
|
-
- spec/fixtures/spacex/
|
|
189
|
-
- spec/fixtures/spacex/
|
|
190
|
-
- spec/fixtures/spacex/
|
|
191
|
-
- spec/fixtures/spacex/
|
|
192
|
-
- spec/fixtures/spacex/
|
|
193
|
-
- spec/fixtures/spacex/
|
|
194
|
-
- spec/fixtures/spacex/launches.yml
|
|
195
|
-
- spec/fixtures/spacex/launches/
|
|
196
|
-
- spec/fixtures/spacex/launches/
|
|
197
|
-
- spec/fixtures/spacex/launches/
|
|
198
|
-
- spec/fixtures/spacex/launches/
|
|
199
|
-
- spec/fixtures/spacex/launches/
|
|
200
|
-
- spec/fixtures/spacex/
|
|
201
|
-
- spec/fixtures/spacex/
|
|
202
|
-
- spec/fixtures/spacex/
|
|
203
|
-
- spec/fixtures/spacex/
|
|
204
|
-
- spec/fixtures/spacex/
|
|
205
|
-
- spec/fixtures/spacex/
|
|
206
|
-
- spec/fixtures/spacex/
|
|
207
|
-
- spec/fixtures/spacex/
|
|
208
|
-
- spec/fixtures/spacex/
|
|
209
|
-
- spec/fixtures/spacex/
|
|
210
|
-
- spec/fixtures/spacex/
|
|
211
|
-
- spec/
|
|
212
|
-
- spec/spacex/api_info_spec.rb
|
|
154
|
+
- spec/coverage_helper.rb
|
|
155
|
+
- spec/fixtures/spacex/v4/capsules/all.yml
|
|
156
|
+
- spec/fixtures/spacex/v4/capsules/one.yml
|
|
157
|
+
- spec/fixtures/spacex/v4/company.yml
|
|
158
|
+
- spec/fixtures/spacex/v4/cores/all.yml
|
|
159
|
+
- spec/fixtures/spacex/v4/cores/one.yml
|
|
160
|
+
- spec/fixtures/spacex/v4/crew/all.yml
|
|
161
|
+
- spec/fixtures/spacex/v4/crew/one.yml
|
|
162
|
+
- spec/fixtures/spacex/v4/dragons/all.yml
|
|
163
|
+
- spec/fixtures/spacex/v4/dragons/one.yml
|
|
164
|
+
- spec/fixtures/spacex/v4/history/all.yml
|
|
165
|
+
- spec/fixtures/spacex/v4/history/one.yml
|
|
166
|
+
- spec/fixtures/spacex/v4/landpads/all.yml
|
|
167
|
+
- spec/fixtures/spacex/v4/landpads/one.yml
|
|
168
|
+
- spec/fixtures/spacex/v4/launches/all.yml
|
|
169
|
+
- spec/fixtures/spacex/v4/launches/latest.yml
|
|
170
|
+
- spec/fixtures/spacex/v4/launches/next.yml
|
|
171
|
+
- spec/fixtures/spacex/v4/launches/one.yml
|
|
172
|
+
- spec/fixtures/spacex/v4/launches/past.yml
|
|
173
|
+
- spec/fixtures/spacex/v4/launches/upcoming.yml
|
|
174
|
+
- spec/fixtures/spacex/v4/launchpads/all.yml
|
|
175
|
+
- spec/fixtures/spacex/v4/launchpads/one.yml
|
|
176
|
+
- spec/fixtures/spacex/v4/payloads/all.yml
|
|
177
|
+
- spec/fixtures/spacex/v4/payloads/one.yml
|
|
178
|
+
- spec/fixtures/spacex/v4/roadster.yml
|
|
179
|
+
- spec/fixtures/spacex/v4/rockets/all.yml
|
|
180
|
+
- spec/fixtures/spacex/v4/rockets/one.yml
|
|
181
|
+
- spec/fixtures/spacex/v4/ships/all.yml
|
|
182
|
+
- spec/fixtures/spacex/v4/ships/one.yml
|
|
183
|
+
- spec/fixtures/spacex/v4/starlink/all.yml
|
|
184
|
+
- spec/fixtures/spacex/v4/starlink/one.yml
|
|
185
|
+
- spec/spacex/base_request_spec.rb
|
|
213
186
|
- spec/spacex/capsules_spec.rb
|
|
214
|
-
- spec/spacex/
|
|
187
|
+
- spec/spacex/company_spec.rb
|
|
215
188
|
- spec/spacex/cores_spec.rb
|
|
216
|
-
- spec/spacex/
|
|
217
|
-
- spec/spacex/
|
|
189
|
+
- spec/spacex/crew_spec.rb
|
|
190
|
+
- spec/spacex/dragons_spec.rb
|
|
218
191
|
- spec/spacex/history_spec.rb
|
|
219
|
-
- spec/spacex/
|
|
220
|
-
- spec/spacex/launch_pads_spec.rb
|
|
192
|
+
- spec/spacex/landpads_spec.rb
|
|
221
193
|
- spec/spacex/launches_spec.rb
|
|
222
|
-
- spec/spacex/
|
|
194
|
+
- spec/spacex/launchpads_spec.rb
|
|
223
195
|
- spec/spacex/payloads_spec.rb
|
|
224
196
|
- spec/spacex/roadster_spec.rb
|
|
225
197
|
- spec/spacex/rockets_spec.rb
|
|
226
198
|
- spec/spacex/ships_spec.rb
|
|
199
|
+
- spec/spacex/starlink_spec.rb
|
|
227
200
|
- spec/spacex/version_spec.rb
|
|
228
201
|
- spec/spec_helper.rb
|
|
229
202
|
- spec/support/vcr.rb
|
|
@@ -231,7 +204,6 @@ homepage: https://github.com/rodolfobandeira/spacex
|
|
|
231
204
|
licenses:
|
|
232
205
|
- MIT
|
|
233
206
|
metadata: {}
|
|
234
|
-
post_install_message:
|
|
235
207
|
rdoc_options: []
|
|
236
208
|
require_paths:
|
|
237
209
|
- lib
|
|
@@ -239,66 +211,63 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
239
211
|
requirements:
|
|
240
212
|
- - ">="
|
|
241
213
|
- !ruby/object:Gem::Version
|
|
242
|
-
version: '
|
|
214
|
+
version: '2.5'
|
|
243
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
216
|
requirements:
|
|
245
217
|
- - ">="
|
|
246
218
|
- !ruby/object:Gem::Version
|
|
247
219
|
version: '0'
|
|
248
220
|
requirements: []
|
|
249
|
-
|
|
250
|
-
rubygems_version: 2.6.14.1
|
|
251
|
-
signing_key:
|
|
221
|
+
rubygems_version: 3.6.9
|
|
252
222
|
specification_version: 4
|
|
253
223
|
summary: SpaceX API with Ruby
|
|
254
224
|
test_files:
|
|
255
|
-
- spec/
|
|
256
|
-
- spec/fixtures/spacex/capsules.yml
|
|
257
|
-
- spec/fixtures/spacex/capsules/
|
|
258
|
-
- spec/fixtures/spacex/
|
|
259
|
-
- spec/fixtures/spacex/cores.yml
|
|
260
|
-
- spec/fixtures/spacex/cores/
|
|
261
|
-
- spec/fixtures/spacex/
|
|
262
|
-
- spec/fixtures/spacex/
|
|
263
|
-
- spec/fixtures/spacex/
|
|
264
|
-
- spec/fixtures/spacex/
|
|
265
|
-
- spec/fixtures/spacex/
|
|
266
|
-
- spec/fixtures/spacex/
|
|
267
|
-
- spec/fixtures/spacex/
|
|
268
|
-
- spec/fixtures/spacex/
|
|
269
|
-
- spec/fixtures/spacex/launches.yml
|
|
270
|
-
- spec/fixtures/spacex/launches/
|
|
271
|
-
- spec/fixtures/spacex/launches/
|
|
272
|
-
- spec/fixtures/spacex/launches/
|
|
273
|
-
- spec/fixtures/spacex/launches/
|
|
274
|
-
- spec/fixtures/spacex/launches/
|
|
275
|
-
- spec/fixtures/spacex/
|
|
276
|
-
- spec/fixtures/spacex/
|
|
277
|
-
- spec/fixtures/spacex/
|
|
278
|
-
- spec/fixtures/spacex/
|
|
279
|
-
- spec/fixtures/spacex/
|
|
280
|
-
- spec/fixtures/spacex/
|
|
281
|
-
- spec/fixtures/spacex/
|
|
282
|
-
- spec/fixtures/spacex/
|
|
283
|
-
- spec/fixtures/spacex/
|
|
284
|
-
- spec/fixtures/spacex/
|
|
285
|
-
- spec/fixtures/spacex/
|
|
286
|
-
- spec/
|
|
287
|
-
- spec/spacex/api_info_spec.rb
|
|
225
|
+
- spec/coverage_helper.rb
|
|
226
|
+
- spec/fixtures/spacex/v4/capsules/all.yml
|
|
227
|
+
- spec/fixtures/spacex/v4/capsules/one.yml
|
|
228
|
+
- spec/fixtures/spacex/v4/company.yml
|
|
229
|
+
- spec/fixtures/spacex/v4/cores/all.yml
|
|
230
|
+
- spec/fixtures/spacex/v4/cores/one.yml
|
|
231
|
+
- spec/fixtures/spacex/v4/crew/all.yml
|
|
232
|
+
- spec/fixtures/spacex/v4/crew/one.yml
|
|
233
|
+
- spec/fixtures/spacex/v4/dragons/all.yml
|
|
234
|
+
- spec/fixtures/spacex/v4/dragons/one.yml
|
|
235
|
+
- spec/fixtures/spacex/v4/history/all.yml
|
|
236
|
+
- spec/fixtures/spacex/v4/history/one.yml
|
|
237
|
+
- spec/fixtures/spacex/v4/landpads/all.yml
|
|
238
|
+
- spec/fixtures/spacex/v4/landpads/one.yml
|
|
239
|
+
- spec/fixtures/spacex/v4/launches/all.yml
|
|
240
|
+
- spec/fixtures/spacex/v4/launches/latest.yml
|
|
241
|
+
- spec/fixtures/spacex/v4/launches/next.yml
|
|
242
|
+
- spec/fixtures/spacex/v4/launches/one.yml
|
|
243
|
+
- spec/fixtures/spacex/v4/launches/past.yml
|
|
244
|
+
- spec/fixtures/spacex/v4/launches/upcoming.yml
|
|
245
|
+
- spec/fixtures/spacex/v4/launchpads/all.yml
|
|
246
|
+
- spec/fixtures/spacex/v4/launchpads/one.yml
|
|
247
|
+
- spec/fixtures/spacex/v4/payloads/all.yml
|
|
248
|
+
- spec/fixtures/spacex/v4/payloads/one.yml
|
|
249
|
+
- spec/fixtures/spacex/v4/roadster.yml
|
|
250
|
+
- spec/fixtures/spacex/v4/rockets/all.yml
|
|
251
|
+
- spec/fixtures/spacex/v4/rockets/one.yml
|
|
252
|
+
- spec/fixtures/spacex/v4/ships/all.yml
|
|
253
|
+
- spec/fixtures/spacex/v4/ships/one.yml
|
|
254
|
+
- spec/fixtures/spacex/v4/starlink/all.yml
|
|
255
|
+
- spec/fixtures/spacex/v4/starlink/one.yml
|
|
256
|
+
- spec/spacex/base_request_spec.rb
|
|
288
257
|
- spec/spacex/capsules_spec.rb
|
|
289
|
-
- spec/spacex/
|
|
258
|
+
- spec/spacex/company_spec.rb
|
|
290
259
|
- spec/spacex/cores_spec.rb
|
|
291
|
-
- spec/spacex/
|
|
292
|
-
- spec/spacex/
|
|
260
|
+
- spec/spacex/crew_spec.rb
|
|
261
|
+
- spec/spacex/dragons_spec.rb
|
|
293
262
|
- spec/spacex/history_spec.rb
|
|
294
|
-
- spec/spacex/
|
|
295
|
-
- spec/spacex/launch_pads_spec.rb
|
|
263
|
+
- spec/spacex/landpads_spec.rb
|
|
296
264
|
- spec/spacex/launches_spec.rb
|
|
297
|
-
- spec/spacex/
|
|
265
|
+
- spec/spacex/launchpads_spec.rb
|
|
298
266
|
- spec/spacex/payloads_spec.rb
|
|
299
267
|
- spec/spacex/roadster_spec.rb
|
|
300
268
|
- spec/spacex/rockets_spec.rb
|
|
301
269
|
- spec/spacex/ships_spec.rb
|
|
270
|
+
- spec/spacex/starlink_spec.rb
|
|
302
271
|
- spec/spacex/version_spec.rb
|
|
303
272
|
- spec/spec_helper.rb
|
|
304
273
|
- spec/support/vcr.rb
|
data/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.4.4
|
data/.travis.yml
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
env:
|
|
2
|
-
global:
|
|
3
|
-
- CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID
|
|
4
|
-
|
|
5
|
-
language: ruby
|
|
6
|
-
rvm:
|
|
7
|
-
- 2.4.2
|
|
8
|
-
cache: bundler
|
|
9
|
-
sudo: required
|
|
10
|
-
|
|
11
|
-
before_script:
|
|
12
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
13
|
-
- chmod +x ./cc-test-reporter
|
|
14
|
-
- ./cc-test-reporter before-build
|
|
15
|
-
|
|
16
|
-
script:
|
|
17
|
-
- bundle exec rspec
|
|
18
|
-
|
|
19
|
-
after_script:
|
|
20
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
|
21
|
-
|
data/lib/spacex/api_info.rb
DELETED
data/lib/spacex/company_info.rb
DELETED
data/lib/spacex/endpoint.rb
DELETED
data/lib/spacex/landing_pads.rb
DELETED
data/lib/spacex/launch_pads.rb
DELETED
data/lib/spacex/missions.rb
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
module SPACEX
|
|
2
|
-
class Missions < Hashie::Trash
|
|
3
|
-
include Hashie::Extensions::IgnoreUndeclared
|
|
4
|
-
|
|
5
|
-
property 'mission_id'
|
|
6
|
-
property 'mission_name'
|
|
7
|
-
property 'manufacturers'
|
|
8
|
-
property 'payload_ids'
|
|
9
|
-
property 'wikipedia'
|
|
10
|
-
property 'website'
|
|
11
|
-
property 'twitter'
|
|
12
|
-
property 'description'
|
|
13
|
-
|
|
14
|
-
def self.info(mission_id = nil)
|
|
15
|
-
SPACEX::BaseRequest.info("missions/#{mission_id}", SPACEX::Missions)
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
4
|
-
method: get
|
|
5
|
-
uri: https://api.spacexdata.com/v3/
|
|
6
|
-
body:
|
|
7
|
-
encoding: US-ASCII
|
|
8
|
-
string: ''
|
|
9
|
-
headers:
|
|
10
|
-
User-Agent:
|
|
11
|
-
- Faraday v0.16.2
|
|
12
|
-
Accept-Encoding:
|
|
13
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
14
|
-
Accept:
|
|
15
|
-
- "*/*"
|
|
16
|
-
response:
|
|
17
|
-
status:
|
|
18
|
-
code: 200
|
|
19
|
-
message: OK
|
|
20
|
-
headers:
|
|
21
|
-
Date:
|
|
22
|
-
- Wed, 02 Oct 2019 01:04:51 GMT
|
|
23
|
-
Content-Type:
|
|
24
|
-
- application/json; charset=utf-8
|
|
25
|
-
Transfer-Encoding:
|
|
26
|
-
- chunked
|
|
27
|
-
Connection:
|
|
28
|
-
- keep-alive
|
|
29
|
-
Set-Cookie:
|
|
30
|
-
- __cfduid=dd7abdb6b7f9c36b6bdc298c15ec390b81569978291; expires=Thu, 01-Oct-20
|
|
31
|
-
01:04:51 GMT; path=/; domain=.spacexdata.com; HttpOnly; Secure
|
|
32
|
-
X-Dns-Prefetch-Control:
|
|
33
|
-
- 'off'
|
|
34
|
-
X-Frame-Options:
|
|
35
|
-
- SAMEORIGIN
|
|
36
|
-
Strict-Transport-Security:
|
|
37
|
-
- max-age=15552000; includeSubDomains
|
|
38
|
-
X-Download-Options:
|
|
39
|
-
- noopen
|
|
40
|
-
X-Content-Type-Options:
|
|
41
|
-
- nosniff
|
|
42
|
-
X-Xss-Protection:
|
|
43
|
-
- 1; mode=block
|
|
44
|
-
Vary:
|
|
45
|
-
- Origin
|
|
46
|
-
Access-Control-Allow-Origin:
|
|
47
|
-
- "*"
|
|
48
|
-
Access-Control-Expose-Headers:
|
|
49
|
-
- spacex-api-cache,spacex-api-count,spacex-api-response-time
|
|
50
|
-
Spacex-Api-Response-Time:
|
|
51
|
-
- 19ms
|
|
52
|
-
Expect-Ct:
|
|
53
|
-
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
|
54
|
-
Server:
|
|
55
|
-
- cloudflare
|
|
56
|
-
Cf-Ray:
|
|
57
|
-
- 51f2c3c2ae854a4c-GRU
|
|
58
|
-
body:
|
|
59
|
-
encoding: ASCII-8BIT
|
|
60
|
-
string: '{"project_name":"SpaceX-API","version":"3.1.0","project_link":"https://github.com/r-spacex/SpaceX-API","docs":"https://documenter.getpostman.com/view/2025350/RWaEzAiG","organization":"r/SpaceX","organization_link":"https://github.com/r-spacex","description":"Open
|
|
61
|
-
Source REST API for rocket, core, capsule, pad, and launch data, created and
|
|
62
|
-
maintained by the developers of the r/SpaceX organization"}'
|
|
63
|
-
http_version:
|
|
64
|
-
recorded_at: Wed, 02 Oct 2019 01:04:51 GMT
|
|
65
|
-
recorded_with: VCR 4.0.0
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
4
|
-
method: get
|
|
5
|
-
uri: https://api.spacexdata.com/v3/capsules/C202
|
|
6
|
-
body:
|
|
7
|
-
encoding: US-ASCII
|
|
8
|
-
string: ''
|
|
9
|
-
headers:
|
|
10
|
-
User-Agent:
|
|
11
|
-
- Faraday v0.15.3
|
|
12
|
-
Accept-Encoding:
|
|
13
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
14
|
-
Accept:
|
|
15
|
-
- "*/*"
|
|
16
|
-
response:
|
|
17
|
-
status:
|
|
18
|
-
code: 200
|
|
19
|
-
message: OK
|
|
20
|
-
headers:
|
|
21
|
-
Date:
|
|
22
|
-
- Thu, 11 Oct 2018 16:56:57 GMT
|
|
23
|
-
Content-Type:
|
|
24
|
-
- application/json; charset=utf-8
|
|
25
|
-
Transfer-Encoding:
|
|
26
|
-
- chunked
|
|
27
|
-
Connection:
|
|
28
|
-
- keep-alive
|
|
29
|
-
Set-Cookie:
|
|
30
|
-
- __cfduid=dde4b2f1d71fa0b62f41b29183867cebd1539277017; expires=Fri, 11-Oct-19
|
|
31
|
-
16:56:57 GMT; path=/; domain=.spacexdata.com; HttpOnly; Secure
|
|
32
|
-
Vary:
|
|
33
|
-
- Accept-Encoding, Origin
|
|
34
|
-
X-Dns-Prefetch-Control:
|
|
35
|
-
- 'off'
|
|
36
|
-
X-Frame-Options:
|
|
37
|
-
- SAMEORIGIN
|
|
38
|
-
Strict-Transport-Security:
|
|
39
|
-
- max-age=15552000; includeSubDomains
|
|
40
|
-
X-Download-Options:
|
|
41
|
-
- noopen
|
|
42
|
-
X-Content-Type-Options:
|
|
43
|
-
- nosniff
|
|
44
|
-
X-Xss-Protection:
|
|
45
|
-
- 1; mode=block
|
|
46
|
-
Access-Control-Allow-Origin:
|
|
47
|
-
- "*"
|
|
48
|
-
X-Response-Time:
|
|
49
|
-
- 35ms
|
|
50
|
-
Expect-Ct:
|
|
51
|
-
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
|
52
|
-
Server:
|
|
53
|
-
- cloudflare
|
|
54
|
-
Cf-Ray:
|
|
55
|
-
- 4682dcee4d542474-IAD
|
|
56
|
-
body:
|
|
57
|
-
encoding: ASCII-8BIT
|
|
58
|
-
string: '{"capsule_serial":"C202","capsule_id":"dragon2","status":"active","original_launch":null,"original_launch_unix":null,"missions":[],"landings":0,"type":"Dragon
|
|
59
|
-
2.0","details":"Capsule used to qualify Dragon 2''s environmental control
|
|
60
|
-
and life support systems.","reuse_count":0}'
|
|
61
|
-
http_version:
|
|
62
|
-
recorded_at: Thu, 11 Oct 2018 16:56:57 GMT
|
|
63
|
-
- request:
|
|
64
|
-
method: get
|
|
65
|
-
uri: https://api.spacexdata.com/v3/capsules/C202
|
|
66
|
-
body:
|
|
67
|
-
encoding: US-ASCII
|
|
68
|
-
string: ''
|
|
69
|
-
headers:
|
|
70
|
-
User-Agent:
|
|
71
|
-
- Faraday v0.15.3
|
|
72
|
-
Accept-Encoding:
|
|
73
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
74
|
-
Accept:
|
|
75
|
-
- "*/*"
|
|
76
|
-
response:
|
|
77
|
-
status:
|
|
78
|
-
code: 200
|
|
79
|
-
message: OK
|
|
80
|
-
headers:
|
|
81
|
-
Date:
|
|
82
|
-
- Thu, 11 Oct 2018 16:56:57 GMT
|
|
83
|
-
Content-Type:
|
|
84
|
-
- application/json; charset=utf-8
|
|
85
|
-
Transfer-Encoding:
|
|
86
|
-
- chunked
|
|
87
|
-
Connection:
|
|
88
|
-
- keep-alive
|
|
89
|
-
Set-Cookie:
|
|
90
|
-
- __cfduid=d39640f3b8c92ab574c8c50a302d44b5b1539277017; expires=Fri, 11-Oct-19
|
|
91
|
-
16:56:57 GMT; path=/; domain=.spacexdata.com; HttpOnly; Secure
|
|
92
|
-
Vary:
|
|
93
|
-
- Accept-Encoding, Origin
|
|
94
|
-
X-Dns-Prefetch-Control:
|
|
95
|
-
- 'off'
|
|
96
|
-
X-Frame-Options:
|
|
97
|
-
- SAMEORIGIN
|
|
98
|
-
Strict-Transport-Security:
|
|
99
|
-
- max-age=15552000; includeSubDomains
|
|
100
|
-
X-Download-Options:
|
|
101
|
-
- noopen
|
|
102
|
-
X-Content-Type-Options:
|
|
103
|
-
- nosniff
|
|
104
|
-
X-Xss-Protection:
|
|
105
|
-
- 1; mode=block
|
|
106
|
-
Access-Control-Allow-Origin:
|
|
107
|
-
- "*"
|
|
108
|
-
X-Response-Time:
|
|
109
|
-
- 38ms
|
|
110
|
-
Expect-Ct:
|
|
111
|
-
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
|
112
|
-
Server:
|
|
113
|
-
- cloudflare
|
|
114
|
-
Cf-Ray:
|
|
115
|
-
- 4682dcefa91a5729-IAD
|
|
116
|
-
body:
|
|
117
|
-
encoding: ASCII-8BIT
|
|
118
|
-
string: '{"capsule_serial":"C202","capsule_id":"dragon2","status":"active","original_launch":null,"original_launch_unix":null,"missions":[],"landings":0,"type":"Dragon
|
|
119
|
-
2.0","details":"Capsule used to qualify Dragon 2''s environmental control
|
|
120
|
-
and life support systems.","reuse_count":0}'
|
|
121
|
-
http_version:
|
|
122
|
-
recorded_at: Thu, 11 Oct 2018 16:56:57 GMT
|
|
123
|
-
recorded_with: VCR 4.0.0
|