ebay-ysr 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/workspace.xml +63 -20
- data/lib/ebay/ysr.rb +8 -0
- data/lib/ebay/ysr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a8c52be19127fc89602c6245d94190dd699a5a5
|
4
|
+
data.tar.gz: 095f8f7fbfcd9521931e547f6b3e2069c539a808
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7aaffa26239443983430ca44ba7e7456e38e1e15f201f103cd88a1b2d4c7b0bfcc4da3e8ea276bcf780a2b658b63a6c7eb4aa8a6e7c602566fe56fab4debb6c
|
7
|
+
data.tar.gz: 15412c421717a61f92a2026b672038bc0000f3b628e063003bfc01de24117bb71203b8e59ccfca72825a24deeb405c702b32e8640728e3e008b607ef644353b9
|
data/.idea/workspace.xml
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
4
|
<list default="true" id="0f669997-968a-40a4-a873-94ec91691267" name="Default" comment="">
|
5
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/ebay-ysr-0.1.5.gem" afterPath="" />
|
5
6
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/ebay/ysr/version.rb" afterPath="$PROJECT_DIR$/lib/ebay/ysr/version.rb" />
|
6
7
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
7
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/ebay/ysr.rb" afterPath="$PROJECT_DIR$/lib/ebay/ysr.rb" />
|
8
8
|
</list>
|
9
9
|
<ignored path="ebay-ysr.iws" />
|
10
10
|
<ignored path=".idea/workspace.xml" />
|
@@ -35,7 +35,7 @@
|
|
35
35
|
<entry file="file://$PROJECT_DIR$/Gemfile">
|
36
36
|
<provider selected="true" editor-type-id="text-editor">
|
37
37
|
<state vertical-scroll-proportion="0.0">
|
38
|
-
<caret line="
|
38
|
+
<caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
|
39
39
|
<folding />
|
40
40
|
</state>
|
41
41
|
</provider>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
<entry file="file://$PROJECT_DIR$/ebay-ysr.gemspec">
|
46
46
|
<provider selected="true" editor-type-id="text-editor">
|
47
47
|
<state vertical-scroll-proportion="0.0">
|
48
|
-
<caret line="
|
48
|
+
<caret line="25" column="0" selection-start-line="25" selection-start-column="0" selection-end-line="25" selection-end-column="0" />
|
49
49
|
<folding />
|
50
50
|
</state>
|
51
51
|
</provider>
|
@@ -67,7 +67,7 @@
|
|
67
67
|
<file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
|
68
68
|
<entry file="file://$PROJECT_DIR$/lib/ebay/ysr/version.rb">
|
69
69
|
<provider selected="true" editor-type-id="text-editor">
|
70
|
-
<state vertical-scroll-proportion="0.
|
70
|
+
<state vertical-scroll-proportion="0.060913704">
|
71
71
|
<caret line="2" column="20" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
|
72
72
|
<folding />
|
73
73
|
</state>
|
@@ -78,7 +78,7 @@
|
|
78
78
|
<entry file="file://$PROJECT_DIR$/lib/ebay/ysr.rb">
|
79
79
|
<provider selected="true" editor-type-id="text-editor">
|
80
80
|
<state vertical-scroll-proportion="0.0">
|
81
|
-
<caret line="
|
81
|
+
<caret line="53" column="29" selection-start-line="53" selection-start-column="29" selection-end-line="53" selection-end-column="29" />
|
82
82
|
<folding />
|
83
83
|
</state>
|
84
84
|
</provider>
|
@@ -108,9 +108,9 @@
|
|
108
108
|
</component>
|
109
109
|
<component name="ProjectFrameBounds">
|
110
110
|
<option name="x" value="39" />
|
111
|
-
<option name="y" value="
|
111
|
+
<option name="y" value="-4" />
|
112
112
|
<option name="width" value="1241" />
|
113
|
-
<option name="height" value="
|
113
|
+
<option name="height" value="1028" />
|
114
114
|
</component>
|
115
115
|
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
116
116
|
<OptionsSetting value="true" id="Add" />
|
@@ -135,7 +135,7 @@
|
|
135
135
|
<sortByType />
|
136
136
|
</navigator>
|
137
137
|
<panes>
|
138
|
-
<pane id="
|
138
|
+
<pane id="Scope" />
|
139
139
|
<pane id="ProjectPane">
|
140
140
|
<subPane>
|
141
141
|
<PATH>
|
@@ -196,7 +196,7 @@
|
|
196
196
|
</PATH>
|
197
197
|
</subPane>
|
198
198
|
</pane>
|
199
|
-
<pane id="
|
199
|
+
<pane id="Scratches" />
|
200
200
|
</panes>
|
201
201
|
</component>
|
202
202
|
<component name="PropertiesComponent">
|
@@ -204,7 +204,7 @@
|
|
204
204
|
<property name="options.splitter.main.proportions" value="0.3" />
|
205
205
|
<property name="options.splitter.details.proportions" value="0.2" />
|
206
206
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
207
|
-
<property name="last_opened_file_path" value="$
|
207
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
208
208
|
<property name="FullScreen" value="false" />
|
209
209
|
</component>
|
210
210
|
<component name="ShelveChangesManager" show_recycled="false" />
|
@@ -221,17 +221,17 @@
|
|
221
221
|
<servers />
|
222
222
|
</component>
|
223
223
|
<component name="ToolWindowManager">
|
224
|
-
<frame x="39" y="
|
224
|
+
<frame x="39" y="-4" width="1241" height="1028" extended-state="6" />
|
225
225
|
<editor active="true" />
|
226
226
|
<layout>
|
227
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
227
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.29288703" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
228
228
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
229
229
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="10" side_tool="true" content_ui="tabs" />
|
230
230
|
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="12" side_tool="false" content_ui="tabs" />
|
231
231
|
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.20669456" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
232
232
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="11" side_tool="false" content_ui="tabs" />
|
233
233
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
234
|
-
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
234
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3329753" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
|
235
235
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
236
236
|
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
237
237
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
@@ -265,7 +265,7 @@
|
|
265
265
|
<entry file="file://$PROJECT_DIR$/Gemfile">
|
266
266
|
<provider selected="true" editor-type-id="text-editor">
|
267
267
|
<state vertical-scroll-proportion="0.0">
|
268
|
-
<caret line="
|
268
|
+
<caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
|
269
269
|
<folding />
|
270
270
|
</state>
|
271
271
|
</provider>
|
@@ -273,7 +273,7 @@
|
|
273
273
|
<entry file="file://$PROJECT_DIR$/ebay-ysr.gemspec">
|
274
274
|
<provider selected="true" editor-type-id="text-editor">
|
275
275
|
<state vertical-scroll-proportion="0.0">
|
276
|
-
<caret line="
|
276
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
277
277
|
<folding />
|
278
278
|
</state>
|
279
279
|
</provider>
|
@@ -292,7 +292,7 @@
|
|
292
292
|
<entry file="file://$PROJECT_DIR$/lib/ebay/ysr/version.rb">
|
293
293
|
<provider selected="true" editor-type-id="text-editor">
|
294
294
|
<state vertical-scroll-proportion="0.0">
|
295
|
-
<caret line="
|
295
|
+
<caret line="2" column="20" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
|
296
296
|
<folding />
|
297
297
|
</state>
|
298
298
|
</provider>
|
@@ -300,7 +300,7 @@
|
|
300
300
|
<entry file="file://$PROJECT_DIR$/lib/ebay/ysr.rb">
|
301
301
|
<provider selected="true" editor-type-id="text-editor">
|
302
302
|
<state vertical-scroll-proportion="0.0">
|
303
|
-
<caret line="
|
303
|
+
<caret line="40" column="0" selection-start-line="40" selection-start-column="0" selection-end-line="40" selection-end-column="0" />
|
304
304
|
<folding />
|
305
305
|
</state>
|
306
306
|
</provider>
|
@@ -356,6 +356,41 @@
|
|
356
356
|
</state>
|
357
357
|
</provider>
|
358
358
|
</entry>
|
359
|
+
<entry file="file://$PROJECT_DIR$/ebay-ysr.gemspec">
|
360
|
+
<provider selected="true" editor-type-id="text-editor">
|
361
|
+
<state vertical-scroll-proportion="0.0">
|
362
|
+
<caret line="12" column="58" selection-start-line="11" selection-start-column="26" selection-end-line="12" selection-end-column="58" />
|
363
|
+
<folding />
|
364
|
+
</state>
|
365
|
+
</provider>
|
366
|
+
</entry>
|
367
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
368
|
+
<provider selected="true" editor-type-id="text-editor">
|
369
|
+
<state vertical-scroll-proportion="0.0">
|
370
|
+
<caret line="28" column="29" selection-start-line="28" selection-start-column="29" selection-end-line="28" selection-end-column="29" />
|
371
|
+
<folding />
|
372
|
+
</state>
|
373
|
+
</provider>
|
374
|
+
<provider editor-type-id="MarkdownPreviewEditor">
|
375
|
+
<state />
|
376
|
+
</provider>
|
377
|
+
</entry>
|
378
|
+
<entry file="file://$PROJECT_DIR$/lib/ebay/ysr/version.rb">
|
379
|
+
<provider selected="true" editor-type-id="text-editor">
|
380
|
+
<state vertical-scroll-proportion="0.0">
|
381
|
+
<caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
|
382
|
+
<folding />
|
383
|
+
</state>
|
384
|
+
</provider>
|
385
|
+
</entry>
|
386
|
+
<entry file="file://$PROJECT_DIR$/lib/ebay/ysr.rb">
|
387
|
+
<provider selected="true" editor-type-id="text-editor">
|
388
|
+
<state vertical-scroll-proportion="0.0">
|
389
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
390
|
+
<folding />
|
391
|
+
</state>
|
392
|
+
</provider>
|
393
|
+
</entry>
|
359
394
|
<entry file="file://$PROJECT_DIR$/README.md">
|
360
395
|
<provider selected="true" editor-type-id="text-editor">
|
361
396
|
<state vertical-scroll-proportion="0.0">
|
@@ -367,10 +402,18 @@
|
|
367
402
|
<state />
|
368
403
|
</provider>
|
369
404
|
</entry>
|
405
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
406
|
+
<provider selected="true" editor-type-id="text-editor">
|
407
|
+
<state vertical-scroll-proportion="0.0">
|
408
|
+
<caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
|
409
|
+
<folding />
|
410
|
+
</state>
|
411
|
+
</provider>
|
412
|
+
</entry>
|
370
413
|
<entry file="file://$PROJECT_DIR$/lib/ebay/ysr.rb">
|
371
414
|
<provider selected="true" editor-type-id="text-editor">
|
372
415
|
<state vertical-scroll-proportion="0.0">
|
373
|
-
<caret line="
|
416
|
+
<caret line="53" column="29" selection-start-line="53" selection-start-column="29" selection-end-line="53" selection-end-column="29" />
|
374
417
|
<folding />
|
375
418
|
</state>
|
376
419
|
</provider>
|
@@ -378,14 +421,14 @@
|
|
378
421
|
<entry file="file://$PROJECT_DIR$/ebay-ysr.gemspec">
|
379
422
|
<provider selected="true" editor-type-id="text-editor">
|
380
423
|
<state vertical-scroll-proportion="0.0">
|
381
|
-
<caret line="
|
424
|
+
<caret line="25" column="0" selection-start-line="25" selection-start-column="0" selection-end-line="25" selection-end-column="0" />
|
382
425
|
<folding />
|
383
426
|
</state>
|
384
427
|
</provider>
|
385
428
|
</entry>
|
386
429
|
<entry file="file://$PROJECT_DIR$/lib/ebay/ysr/version.rb">
|
387
430
|
<provider selected="true" editor-type-id="text-editor">
|
388
|
-
<state vertical-scroll-proportion="0.
|
431
|
+
<state vertical-scroll-proportion="0.060913704">
|
389
432
|
<caret line="2" column="20" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
|
390
433
|
<folding />
|
391
434
|
</state>
|
data/lib/ebay/ysr.rb
CHANGED
@@ -27,6 +27,7 @@ module Ebay
|
|
27
27
|
url = "http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByCategory&SERVICE-VERSION=1.0.0&SECURITY-APPNAME=#{APPID.to_s}&RESPONSE-DATA-FORMAT=JSON&REST-PAYLOAD&categoryId=#{categoryId}"
|
28
28
|
postData = Net::HTTP.get(URI(url))
|
29
29
|
parse = JSON.parse(postData)
|
30
|
+
begin
|
30
31
|
results = parse['findItemsByCategoryResponse'][0]['searchResult']
|
31
32
|
count = results[0]['@count']
|
32
33
|
puts count
|
@@ -34,6 +35,9 @@ module Ebay
|
|
34
35
|
a=0
|
35
36
|
items = gg[0]['item']
|
36
37
|
return items
|
38
|
+
rescue => e
|
39
|
+
return items = "Invalid result"
|
40
|
+
end
|
37
41
|
elsif word != nil && categoryId != nil
|
38
42
|
encode = URI.encode(word)
|
39
43
|
Rails.logger.info categoryId
|
@@ -41,6 +45,7 @@ module Ebay
|
|
41
45
|
uri = URI.parse(url)
|
42
46
|
postData = Net::HTTP.get(uri)
|
43
47
|
parse = JSON.parse(postData)
|
48
|
+
begin
|
44
49
|
results = parse['findItemsAdvancedResponse'][0]['searchResult']
|
45
50
|
count = results[0]['@count']
|
46
51
|
puts count
|
@@ -48,6 +53,9 @@ module Ebay
|
|
48
53
|
a=0
|
49
54
|
items = gg[0]['item']
|
50
55
|
return items
|
56
|
+
rescue => e
|
57
|
+
return items = "Invalid result"
|
58
|
+
end
|
51
59
|
else
|
52
60
|
return nil
|
53
61
|
end
|
data/lib/ebay/ysr/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ebay-ysr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Syed Muhammad Yasir
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|