Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error in line 5: while requiring "./spec/docker/client/images_spec.cr"
- in spec/docker/client/images_spec.cr:60: instantiating 'Docker::ImageCollection.class#[](String)'
- gotten = Docker::ImageCollection["sha256 hash value"]
- ^
- in src/docker/client/images.cr:83: instantiating 'Docker::ImageCollection.class#request()'
- self.request.each { |img| return img if img.id === img_id }
- ^~~~~~~
- in src/docker/client/images.cr:54: instantiating 'from_json(String)'
- from_json response.body
- ^~~~~~~~~
- in /usr/share/crystal/src/json/from_json.cr:13: instantiating 'new(JSON::PullParser)'
- new parser
- ^~~
- in /usr/share/crystal/src/json/from_json.cr:103: instantiating 'new(JSON::PullParser)'
- new(pull) do |element|
- ^~~
- in /usr/share/crystal/src/json/from_json.cr:110: instantiating 'JSON::PullParser#read_array()'
- pull.read_array do
- ^~~~~~~~~~
- in /usr/share/crystal/src/json/from_json.cr:110: instantiating 'JSON::PullParser#read_array()'
- pull.read_array do
- ^~~~~~~~~~
- in /usr/share/crystal/src/json/from_json.cr:111: instantiating 'Docker::Image.class#new(JSON::PullParser)'
- yield T.new(pull)
- ^~~
- in /usr/share/crystal/src/json/serialization.cr:136: expanding macro
- {% begin %}
- ^
- in macro 'macro_140536185445776' /usr/share/crystal/src/json/serialization.cr:136, line 259:
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
- 28.
- 29.
- 30.
- 31.
- 32.
- 33.
- 34.
- 35.
- 36.
- 37.
- 38.
- 39.
- 40.
- 41.
- 42.
- 43.
- 44.
- 45.
- 46.
- 47.
- 48.
- 49.
- 50.
- 51.
- 52.
- 53.
- 54.
- 55.
- 56. __temp_1387 = nil
- 57. __temp_1388 = false
- 58.
- 59. __temp_1389 = nil
- 60. __temp_1390 = false
- 61.
- 62. __temp_1391 = nil
- 63. __temp_1392 = false
- 64.
- 65. __temp_1393 = nil
- 66. __temp_1394 = false
- 67.
- 68. __temp_1395 = nil
- 69. __temp_1396 = false
- 70.
- 71. __temp_1397 = nil
- 72. __temp_1398 = false
- 73.
- 74. __temp_1399 = nil
- 75. __temp_1400 = false
- 76.
- 77. __temp_1401 = nil
- 78. __temp_1402 = false
- 79.
- 80. __temp_1403 = nil
- 81. __temp_1404 = false
- 82.
- 83. __temp_1405 = nil
- 84. __temp_1406 = false
- 85.
- 86.
- 87. __temp_1407 = pull.location
- 88. begin
- 89. pull.read_begin_object
- 90. rescue exc : ::JSON::ParseException
- 91. raise ::JSON::MappingError.new(exc.message, self.class.to_s, nil, *__temp_1407, exc)
- 92. end
- 93. while pull.kind != :end_object
- 94. __temp_1408 = pull.location
- 95. key = pull.read_object_key
- 96. case key
- 97.
- 98. when "Id"
- 99. __temp_1388 = true
- 100. begin
- 101. __temp_1387 =
- 102.
- 103.
- 104.
- 105.
- 106.
- 107. ::Union(String).new(pull)
- 108.
- 109.
- 110.
- 111.
- 112.
- 113. rescue exc : ::JSON::ParseException
- 114. raise ::JSON::MappingError.new(exc.message, self.class.to_s, "Id", *__temp_1408, exc)
- 115. end
- 116.
- 117. when "ParentId"
- 118. __temp_1390 = true
- 119. begin
- 120. __temp_1389 =
- 121.
- 122.
- 123.
- 124.
- 125.
- 126. ::Union(String).new(pull)
- 127.
- 128.
- 129.
- 130.
- 131.
- 132. rescue exc : ::JSON::ParseException
- 133. raise ::JSON::MappingError.new(exc.message, self.class.to_s, "ParentId", *__temp_1408, exc)
- 134. end
- 135.
- 136. when "RepoTags"
- 137. __temp_1392 = true
- 138. begin
- 139. __temp_1391 =
- 140.
- 141.
- 142.
- 143.
- 144.
- 145. ::Union(Array(String)).new(pull)
- 146.
- 147.
- 148.
- 149.
- 150.
- 151. rescue exc : ::JSON::ParseException
- 152. raise ::JSON::MappingError.new(exc.message, self.class.to_s, "RepoTags", *__temp_1408, exc)
- 153. end
- 154.
- 155. when "RepoDigests"
- 156. __temp_1394 = true
- 157. begin
- 158. __temp_1393 =
- 159.
- 160.
- 161.
- 162.
- 163.
- 164. ::Union(Array(String)).new(pull)
- 165.
- 166.
- 167.
- 168.
- 169.
- 170. rescue exc : ::JSON::ParseException
- 171. raise ::JSON::MappingError.new(exc.message, self.class.to_s, "RepoDigests", *__temp_1408, exc)
- 172. end
- 173.
- 174. when "Created"
- 175. __temp_1396 = true
- 176. begin
- 177. __temp_1395 =
- 178.
- 179.
- 180.
- 181.
- 182.
- 183. ::Union(Int32).new(pull)
- 184.
- 185.
- 186.
- 187.
- 188.
- 189. rescue exc : ::JSON::ParseException
- 190. raise ::JSON::MappingError.new(exc.message, self.class.to_s, "Created", *__temp_1408, exc)
- 191. end
- 192.
- 193. when "Size"
- 194. __temp_1398 = true
- 195. begin
- 196. __temp_1397 =
- 197.
- 198.
- 199.
- 200.
- 201.
- 202. ::Union(Int32).new(pull)
- 203.
- 204.
- 205.
- 206.
- 207.
- 208. rescue exc : ::JSON::ParseException
- 209. raise ::JSON::MappingError.new(exc.message, self.class.to_s, "Size", *__temp_1408, exc)
- 210. end
- 211.
- 212. when "SharedSize"
- 213. __temp_1400 = true
- 214. begin
- 215. __temp_1399 =
- 216.
- 217.
- 218.
- 219.
- 220.
- 221. ::Union(Int32).new(pull)
- 222.
- 223.
- 224.
- 225.
- 226.
- 227. rescue exc : ::JSON::ParseException
- 228. raise ::JSON::MappingError.new(exc.message, self.class.to_s, "SharedSize", *__temp_1408, exc)
- 229. end
- 230.
- 231. when "VirtualSize"
- 232. __temp_1402 = true
- 233. begin
- 234. __temp_1401 =
- 235.
- 236.
- 237.
- 238.
- 239.
- 240. ::Union(Int32).new(pull)
- 241.
- 242.
- 243.
- 244.
- 245.
- 246. rescue exc : ::JSON::ParseException
- 247. raise ::JSON::MappingError.new(exc.message, self.class.to_s, "VirtualSize", *__temp_1408, exc)
- 248. end
- 249.
- 250. when "Labels"
- 251. __temp_1404 = true
- 252. begin
- 253. __temp_1403 =
- 254.
- 255.
- 256.
- 257.
- 258.
- >259. ::Union(Hash(String, String)).new(pull)
- 260.
- 261.
- 262.
- 263.
- 264.
- 265. rescue exc : ::JSON::ParseException
- 266. raise ::JSON::MappingError.new(exc.message, self.class.to_s, "Labels", *__temp_1408, exc)
- 267. end
- 268.
- 269. when "Containers"
- 270. __temp_1406 = true
- 271. begin
- 272. __temp_1405 =
- 273.
- 274.
- 275.
- 276.
- 277.
- 278. ::Union(Int32).new(pull)
- 279.
- 280.
- 281.
- 282.
- 283.
- 284. rescue exc : ::JSON::ParseException
- 285. raise ::JSON::MappingError.new(exc.message, self.class.to_s, "Containers", *__temp_1408, exc)
- 286. end
- 287.
- 288. else
- 289. on_unknown_json_attribute(pull, key, __temp_1408)
- 290. end
- 291. end
- 292. pull.read_next
- 293.
- 294.
- 295.
- 296. if __temp_1387.nil? && !__temp_1388 && !::Union(String).nilable?
- 297. raise ::JSON::MappingError.new("Missing JSON attribute: Id", self.class.to_s, nil, *__temp_1407, nil)
- 298. end
- 299.
- 300.
- 301.
- 302. @id = (__temp_1387).as(String)
- 303.
- 304.
- 305.
- 306.
- 307.
- 308. if __temp_1389.nil? && !__temp_1390 && !::Union(String).nilable?
- 309. raise ::JSON::MappingError.new("Missing JSON attribute: ParentId", self.class.to_s, nil, *__temp_1407, nil)
- 310. end
- 311.
- 312.
- 313.
- 314. @parent_id = (__temp_1389).as(String)
- 315.
- 316.
- 317.
- 318.
- 319.
- 320. if __temp_1391.nil? && !__temp_1392 && !::Union(Array(String)).nilable?
- 321. raise ::JSON::MappingError.new("Missing JSON attribute: RepoTags", self.class.to_s, nil, *__temp_1407, nil)
- 322. end
- 323.
- 324.
- 325.
- 326. @repo_tags = (__temp_1391).as(Array(String))
- 327.
- 328.
- 329.
- 330.
- 331.
- 332. if __temp_1393.nil? && !__temp_1394 && !::Union(Array(String)).nilable?
- 333. raise ::JSON::MappingError.new("Missing JSON attribute: RepoDigests", self.class.to_s, nil, *__temp_1407, nil)
- 334. end
- 335.
- 336.
- 337.
- 338. @repo_digests = (__temp_1393).as(Array(String))
- 339.
- 340.
- 341.
- 342.
- 343.
- 344. if __temp_1395.nil? && !__temp_1396 && !::Union(Int32).nilable?
- 345. raise ::JSON::MappingError.new("Missing JSON attribute: Created", self.class.to_s, nil, *__temp_1407, nil)
- 346. end
- 347.
- 348.
- 349.
- 350. @created_at = (__temp_1395).as(Int32)
- 351.
- 352.
- 353.
- 354.
- 355.
- 356. if __temp_1397.nil? && !__temp_1398 && !::Union(Int32).nilable?
- 357. raise ::JSON::MappingError.new("Missing JSON attribute: Size", self.class.to_s, nil, *__temp_1407, nil)
- 358. end
- 359.
- 360.
- 361.
- 362. @size = (__temp_1397).as(Int32)
- 363.
- 364.
- 365.
- 366.
- 367.
- 368. if __temp_1399.nil? && !__temp_1400 && !::Union(Int32).nilable?
- 369. raise ::JSON::MappingError.new("Missing JSON attribute: SharedSize", self.class.to_s, nil, *__temp_1407, nil)
- 370. end
- 371.
- 372.
- 373.
- 374. @shared_size = (__temp_1399).as(Int32)
- 375.
- 376.
- 377.
- 378.
- 379.
- 380. if __temp_1401.nil? && !__temp_1402 && !::Union(Int32).nilable?
- 381. raise ::JSON::MappingError.new("Missing JSON attribute: VirtualSize", self.class.to_s, nil, *__temp_1407, nil)
- 382. end
- 383.
- 384.
- 385.
- 386. @virtual_size = (__temp_1401).as(Int32)
- 387.
- 388.
- 389.
- 390.
- 391.
- 392. if __temp_1403.nil? && !__temp_1404 && !::Union(Hash(String, String)).nilable?
- 393. raise ::JSON::MappingError.new("Missing JSON attribute: Labels", self.class.to_s, nil, *__temp_1407, nil)
- 394. end
- 395.
- 396.
- 397.
- 398. @labels = (__temp_1403).as(Hash(String, String))
- 399.
- 400.
- 401.
- 402.
- 403.
- 404. if __temp_1405.nil? && !__temp_1406 && !::Union(Int32).nilable?
- 405. raise ::JSON::MappingError.new("Missing JSON attribute: Containers", self.class.to_s, nil, *__temp_1407, nil)
- 406. end
- 407.
- 408.
- 409.
- 410. @containers = (__temp_1405).as(Int32)
- 411.
- 412.
- 413.
- 414.
- 415.
- wrong number of arguments for 'Hash(String, String)#initialize' (given 1, expected 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement