stub_hub_api 1.1.4 → 1.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c102374323a739fcdd8e693469b81de49329d7de
4
- data.tar.gz: d74203b2d9ecda50c0417165573ed551fa5f906b
3
+ metadata.gz: 72ef50712ef118c0f6dcd17a86f7d12251891647
4
+ data.tar.gz: 486523aab32ae62c8ec6929c1809af7a6b58a7ff
5
5
  SHA512:
6
- metadata.gz: 5ed73ff6affc950ac2e1dfc0b20fe10db43adcd154c515aab431c7373053c06d4bd4066d9d30bad8914ef2f067ab776bcfc4521458ca673ff5516ab368538b77
7
- data.tar.gz: bc5a8e4e4c555c4b02cefcfe3627b4b4fe7d82c09b2ab5325ce867a78f8cddc60726ae2e848ba93c60c2fa2516b75db2ffab06f27feefc5f95efb93c61cfe636
6
+ metadata.gz: 88ebad0394cc38d935fd0f1526af156a66555016c008f636351548263be2f3fd9bba138ebbae38b96a0ff05ef89892cccd0ba03bb32d6266fba76fdf08348a36
7
+ data.tar.gz: 8d8ab96ee01cf2cb632861b31eb7e5795b8adbdc368e5edecece81177350e7b14ab37d1a0c9b655d7424c284afb105ce3d0b48091f9dd1d065440b8aefe582cb
@@ -21,75 +21,3 @@ require_relative 'stub_hub_api/alert'
21
21
 
22
22
 
23
23
  module StubHubApi;end
24
- #
25
- # data = {:eventId=>"103765980",
26
- # :isElectronicDelivery=>true,
27
- # :pricePerProduct=>{:amount=>"559.98", :currency=>"USD"},
28
- # :inhandDate=>"2018-11-07T09:59:56Z",
29
- # :section=>"Parterre Center",
30
- # :products=>
31
- # [{:fullfillmentArtifact=>"99000002000071965129",
32
- # :productType=>"ticket",
33
- # :row=>"U ",
34
- # :seat=>117,
35
- # :operation=>"ADD"},
36
- # {:fullfillmentArtifact=>"99000002000071965128",
37
- # :productType=>"ticket",
38
- # :row=>"U ",
39
- # :seat=>118,
40
- # :operation=>"ADD"},
41
- # {:fullfillmentArtifact=>"99000002000071965127",
42
- # :productType=>"ticket",
43
- # :row=>"U ",
44
- # :seat=>119,
45
- # :operation=>"ADD"},
46
- # {:fullfillmentArtifact=>"99000002000071965126",
47
- # :productType=>"ticket",
48
- # :row=>"U ",
49
- # :seat=>120,
50
- # :operation=>"ADD"}],
51
- # :splitOption=>"MULTIPLES",
52
- # :splitQuantity=>"1",
53
- # :externalListingId=>359710}
54
- #
55
- # # c = StubHubApi::Listing.new(token: '0d85c364-10fb-3ee8-a41f-c5bf0c2ad7eb', sandbox: false)
56
- # # r = c.create(data)
57
- # # puts r.inspect
58
- # # exit
59
- #
60
- # #1380812233
61
- #
62
- # # sleep(5)
63
- # # puts "uploading...."
64
- # cc = StubHubApi::Fulfillment.new(token: '0d85c364-10fb-3ee8-a41f-c5bf0c2ad7eb', sandbox: false)
65
- #
66
- # options = {
67
- # :listing=>{
68
- # :tickets=>[
69
- # {:row=>"U", :seat=>"117", :name=>"17"},
70
- # {:row=>"U", :seat=>"118", :name=>"18"},
71
- # {:row=>"U", :seat=>"119", :name=>"19"},
72
- # {:row=>"U", :seat=>"120", :name=>"20"}
73
- # ]
74
- # }
75
- # }
76
- # files = [
77
- # {file_name: '17', file: '/Users/chebyte/rails/neuro/apis/stub_hub_api/lib/17.pdf'},
78
- # {file_name: '18', file: '/Users/chebyte/rails/neuro/apis/stub_hub_api/lib/18.pdf'},
79
- # {file_name: '19', file: '/Users/chebyte/rails/neuro/apis/stub_hub_api/lib/19.pdf'},
80
- # {file_name: '20', file: '/Users/chebyte/rails/neuro/apis/stub_hub_api/lib/20.pdf'}
81
- # ]
82
- #
83
- #
84
- # r = cc.preload_pdf_json("1382617308", options, files)
85
- #
86
- # puts r.inspect
87
- # exit
88
- #
89
- # #
90
- # c = StubHubApi::Listing.new(token: '0d85c364-10fb-3ee8-a41f-c5bf0c2ad7eb', sandbox: false)
91
- #
92
- #
93
- # r = c.delete('1382617308')
94
- #
95
- # puts r.inspect
@@ -36,7 +36,7 @@ module StubHubApi
36
36
  post_body << "Content-Type: application/pdf\r\n\r\n"
37
37
  post_body << ""
38
38
  post_body << ""
39
- post_body << File.read(file[:file])
39
+ post_body << open(file[:file]).read
40
40
  post_body << ""
41
41
  post_body << "\r\n"
42
42
  end
@@ -1,3 +1,3 @@
1
1
  module StubHubApi
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stub_hub_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - chebyte