spacex 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +53 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +14 -0
  5. data/.rubocop_todo.yml +24 -0
  6. data/.ruby-version +1 -0
  7. data/.travis.yml +6 -0
  8. data/CHANGELOG.md +53 -0
  9. data/CONTRIBUTING.md +35 -0
  10. data/Gemfile +7 -0
  11. data/LICENSE +21 -0
  12. data/README.md +495 -0
  13. data/Rakefile +19 -0
  14. data/lib/spacex.rb +19 -0
  15. data/lib/spacex/base_request.rb +57 -0
  16. data/lib/spacex/capsules.rb +19 -0
  17. data/lib/spacex/company_info.rb +7 -0
  18. data/lib/spacex/cores.rb +22 -0
  19. data/lib/spacex/dragon_capsules.rb +33 -0
  20. data/lib/spacex/endpoint.rb +3 -0
  21. data/lib/spacex/history.rb +7 -0
  22. data/lib/spacex/launches.rb +27 -0
  23. data/lib/spacex/missions.rb +18 -0
  24. data/lib/spacex/payloads.rb +7 -0
  25. data/lib/spacex/resource.rb +5 -0
  26. data/lib/spacex/roadster.rb +7 -0
  27. data/lib/spacex/rockets.rb +7 -0
  28. data/lib/spacex/ships.rb +33 -0
  29. data/lib/spacex/version.rb +7 -0
  30. data/rubocop.yml +8 -0
  31. data/spacex.gemspec +29 -0
  32. data/spec/fixtures/spacex/capsules.yml +83 -0
  33. data/spec/fixtures/spacex/capsules/C202.yml +123 -0
  34. data/spec/fixtures/spacex/company_info/info.yml +129 -0
  35. data/spec/fixtures/spacex/cores.yml +62 -0
  36. data/spec/fixtures/spacex/cores/B1041.yml +123 -0
  37. data/spec/fixtures/spacex/dragon_capsules/info.yml +77 -0
  38. data/spec/fixtures/spacex/dragon_capsules/info/dragon1.yml +131 -0
  39. data/spec/fixtures/spacex/history/info.yml +62 -0
  40. data/spec/fixtures/spacex/history/info/4.yml +62 -0
  41. data/spec/fixtures/spacex/launches.yml +62 -0
  42. data/spec/fixtures/spacex/launches/68.yml +69 -0
  43. data/spec/fixtures/spacex/launches/all.yml +62 -0
  44. data/spec/fixtures/spacex/launches/info.yml +62 -0
  45. data/spec/fixtures/spacex/launches/latest.yml +245 -0
  46. data/spec/fixtures/spacex/launches/next.yml +123 -0
  47. data/spec/fixtures/spacex/launches/past.yml +62 -0
  48. data/spec/fixtures/spacex/launches/upcoming.yml +64 -0
  49. data/spec/fixtures/spacex/missions/F3364BF.yml +157 -0
  50. data/spec/fixtures/spacex/missions/info.yml +62 -0
  51. data/spec/fixtures/spacex/payloads/RatSat.yml +62 -0
  52. data/spec/fixtures/spacex/payloads/info.yml +62 -0
  53. data/spec/fixtures/spacex/roadster/info.yml +133 -0
  54. data/spec/fixtures/spacex/rockets/info.yml +105 -0
  55. data/spec/fixtures/spacex/rockets/info/falcon1.yml +139 -0
  56. data/spec/fixtures/spacex/rockets/info/invalid.yml +61 -0
  57. data/spec/fixtures/spacex/ships/info.yml +139 -0
  58. data/spec/fixtures/spacex/ships/info/AMERICANCHAMPION.yml +125 -0
  59. data/spec/spacex/capsules_spec.rb +38 -0
  60. data/spec/spacex/company_info_spec.rb +27 -0
  61. data/spec/spacex/cores_spec.rb +45 -0
  62. data/spec/spacex/dragon_capsules_spec.rb +107 -0
  63. data/spec/spacex/endpoint_spec.rb +9 -0
  64. data/spec/spacex/history_spec.rb +50 -0
  65. data/spec/spacex/launches_spec.rb +652 -0
  66. data/spec/spacex/missions_spec.rb +35 -0
  67. data/spec/spacex/payloads_spec.rb +62 -0
  68. data/spec/spacex/roadster_spec.rb +36 -0
  69. data/spec/spacex/rockets_spec.rb +210 -0
  70. data/spec/spacex/ships_spec.rb +65 -0
  71. data/spec/spacex/version_spec.rb +7 -0
  72. data/spec/spec_helper.rb +20 -0
  73. data/spec/support/vcr.rb +11 -0
  74. metadata +283 -0
metadata ADDED
@@ -0,0 +1,283 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spacex
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Rodolfo Bandeira
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-11-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday_middleware
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.12'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.12'
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
55
+ - !ruby/object:Gem::Dependency
56
+ name: coveralls
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'
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'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.8'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.8'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '='
102
+ - !ruby/object:Gem::Version
103
+ version: 0.51.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.51.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: vcr
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '4'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '4'
125
+ - !ruby/object:Gem::Dependency
126
+ name: webmock
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '3.4'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '3.4'
139
+ description: Ruby library to consume SpaceX launch data
140
+ email: rodolfobandeira@protonmail.com
141
+ executables: []
142
+ extensions: []
143
+ extra_rdoc_files: []
144
+ files:
145
+ - ".gitignore"
146
+ - ".rspec"
147
+ - ".rubocop.yml"
148
+ - ".rubocop_todo.yml"
149
+ - ".ruby-version"
150
+ - ".travis.yml"
151
+ - CHANGELOG.md
152
+ - CONTRIBUTING.md
153
+ - Gemfile
154
+ - LICENSE
155
+ - README.md
156
+ - Rakefile
157
+ - lib/spacex.rb
158
+ - lib/spacex/base_request.rb
159
+ - lib/spacex/capsules.rb
160
+ - lib/spacex/company_info.rb
161
+ - lib/spacex/cores.rb
162
+ - lib/spacex/dragon_capsules.rb
163
+ - lib/spacex/endpoint.rb
164
+ - lib/spacex/history.rb
165
+ - lib/spacex/launches.rb
166
+ - lib/spacex/missions.rb
167
+ - lib/spacex/payloads.rb
168
+ - lib/spacex/resource.rb
169
+ - lib/spacex/roadster.rb
170
+ - lib/spacex/rockets.rb
171
+ - lib/spacex/ships.rb
172
+ - lib/spacex/version.rb
173
+ - rubocop.yml
174
+ - spacex.gemspec
175
+ - spec/fixtures/spacex/capsules.yml
176
+ - spec/fixtures/spacex/capsules/C202.yml
177
+ - spec/fixtures/spacex/company_info/info.yml
178
+ - spec/fixtures/spacex/cores.yml
179
+ - spec/fixtures/spacex/cores/B1041.yml
180
+ - spec/fixtures/spacex/dragon_capsules/info.yml
181
+ - spec/fixtures/spacex/dragon_capsules/info/dragon1.yml
182
+ - spec/fixtures/spacex/history/info.yml
183
+ - spec/fixtures/spacex/history/info/4.yml
184
+ - spec/fixtures/spacex/launches.yml
185
+ - spec/fixtures/spacex/launches/68.yml
186
+ - spec/fixtures/spacex/launches/all.yml
187
+ - spec/fixtures/spacex/launches/info.yml
188
+ - spec/fixtures/spacex/launches/latest.yml
189
+ - spec/fixtures/spacex/launches/next.yml
190
+ - spec/fixtures/spacex/launches/past.yml
191
+ - spec/fixtures/spacex/launches/upcoming.yml
192
+ - spec/fixtures/spacex/missions/F3364BF.yml
193
+ - spec/fixtures/spacex/missions/info.yml
194
+ - spec/fixtures/spacex/payloads/RatSat.yml
195
+ - spec/fixtures/spacex/payloads/info.yml
196
+ - spec/fixtures/spacex/roadster/info.yml
197
+ - spec/fixtures/spacex/rockets/info.yml
198
+ - spec/fixtures/spacex/rockets/info/falcon1.yml
199
+ - spec/fixtures/spacex/rockets/info/invalid.yml
200
+ - spec/fixtures/spacex/ships/info.yml
201
+ - spec/fixtures/spacex/ships/info/AMERICANCHAMPION.yml
202
+ - spec/spacex/capsules_spec.rb
203
+ - spec/spacex/company_info_spec.rb
204
+ - spec/spacex/cores_spec.rb
205
+ - spec/spacex/dragon_capsules_spec.rb
206
+ - spec/spacex/endpoint_spec.rb
207
+ - spec/spacex/history_spec.rb
208
+ - spec/spacex/launches_spec.rb
209
+ - spec/spacex/missions_spec.rb
210
+ - spec/spacex/payloads_spec.rb
211
+ - spec/spacex/roadster_spec.rb
212
+ - spec/spacex/rockets_spec.rb
213
+ - spec/spacex/ships_spec.rb
214
+ - spec/spacex/version_spec.rb
215
+ - spec/spec_helper.rb
216
+ - spec/support/vcr.rb
217
+ homepage: https://github.com/rodolfobandeira/spacex
218
+ licenses:
219
+ - MIT
220
+ metadata: {}
221
+ post_install_message:
222
+ rdoc_options: []
223
+ require_paths:
224
+ - lib
225
+ required_ruby_version: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ required_rubygems_version: !ruby/object:Gem::Requirement
231
+ requirements:
232
+ - - ">="
233
+ - !ruby/object:Gem::Version
234
+ version: '0'
235
+ requirements: []
236
+ rubyforge_project:
237
+ rubygems_version: 2.6.11
238
+ signing_key:
239
+ specification_version: 4
240
+ summary: SpaceX API with Ruby
241
+ test_files:
242
+ - spec/fixtures/spacex/capsules.yml
243
+ - spec/fixtures/spacex/capsules/C202.yml
244
+ - spec/fixtures/spacex/company_info/info.yml
245
+ - spec/fixtures/spacex/cores.yml
246
+ - spec/fixtures/spacex/cores/B1041.yml
247
+ - spec/fixtures/spacex/dragon_capsules/info.yml
248
+ - spec/fixtures/spacex/dragon_capsules/info/dragon1.yml
249
+ - spec/fixtures/spacex/history/info.yml
250
+ - spec/fixtures/spacex/history/info/4.yml
251
+ - spec/fixtures/spacex/launches.yml
252
+ - spec/fixtures/spacex/launches/68.yml
253
+ - spec/fixtures/spacex/launches/all.yml
254
+ - spec/fixtures/spacex/launches/info.yml
255
+ - spec/fixtures/spacex/launches/latest.yml
256
+ - spec/fixtures/spacex/launches/next.yml
257
+ - spec/fixtures/spacex/launches/past.yml
258
+ - spec/fixtures/spacex/launches/upcoming.yml
259
+ - spec/fixtures/spacex/missions/F3364BF.yml
260
+ - spec/fixtures/spacex/missions/info.yml
261
+ - spec/fixtures/spacex/payloads/RatSat.yml
262
+ - spec/fixtures/spacex/payloads/info.yml
263
+ - spec/fixtures/spacex/roadster/info.yml
264
+ - spec/fixtures/spacex/rockets/info.yml
265
+ - spec/fixtures/spacex/rockets/info/falcon1.yml
266
+ - spec/fixtures/spacex/rockets/info/invalid.yml
267
+ - spec/fixtures/spacex/ships/info.yml
268
+ - spec/fixtures/spacex/ships/info/AMERICANCHAMPION.yml
269
+ - spec/spacex/capsules_spec.rb
270
+ - spec/spacex/company_info_spec.rb
271
+ - spec/spacex/cores_spec.rb
272
+ - spec/spacex/dragon_capsules_spec.rb
273
+ - spec/spacex/endpoint_spec.rb
274
+ - spec/spacex/history_spec.rb
275
+ - spec/spacex/launches_spec.rb
276
+ - spec/spacex/missions_spec.rb
277
+ - spec/spacex/payloads_spec.rb
278
+ - spec/spacex/roadster_spec.rb
279
+ - spec/spacex/rockets_spec.rb
280
+ - spec/spacex/ships_spec.rb
281
+ - spec/spacex/version_spec.rb
282
+ - spec/spec_helper.rb
283
+ - spec/support/vcr.rb