envato 1.0.0 → 1.0.1

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.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +12 -0
  3. data/.github/workflows/ci.yml +51 -0
  4. data/.gitignore +1 -0
  5. data/README.md +6 -147
  6. data/envato.gemspec +7 -7
  7. data/lib/envato/version.rb +1 -1
  8. data/lib/envato.rb +2 -5
  9. metadata +38 -79
  10. data/Gemfile.lock +0 -84
  11. data/spec/bookmarks_spec.rb +0 -15
  12. data/spec/envato_spec.rb +0 -26
  13. data/spec/item_spec.rb +0 -90
  14. data/spec/market_spec.rb +0 -100
  15. data/spec/markets_spec.rb +0 -14
  16. data/spec/search_spec.rb +0 -41
  17. data/spec/spec_helper.rb +0 -51
  18. data/spec/user_spec.rb +0 -118
  19. data/spec/users_spec.rb +0 -15
  20. data/spec/vcr/bookmarks_list.yml +0 -87
  21. data/spec/vcr/item_info.yml +0 -88
  22. data/spec/vcr/item_list_purchases.yml +0 -87
  23. data/spec/vcr/item_prices.yml +0 -86
  24. data/spec/vcr/item_purchases.yml +0 -87
  25. data/spec/vcr/item_version.yml +0 -87
  26. data/spec/vcr/market_categories_graphicriver.yml +0 -147
  27. data/spec/vcr/market_categories_themeforest.yml +0 -201
  28. data/spec/vcr/market_features_graphicriver.yml +0 -97
  29. data/spec/vcr/market_features_themeforest.yml +0 -93
  30. data/spec/vcr/market_new_files.yml +0 -86
  31. data/spec/vcr/market_new_files_graphicriver_graphics.yml +0 -115
  32. data/spec/vcr/market_popular_items_themeforest.yml +0 -86
  33. data/spec/vcr/market_total_items.yml +0 -85
  34. data/spec/vcr/search_comments.yml +0 -88
  35. data/spec/vcr/search_item.yml +0 -88
  36. data/spec/vcr/search_more_like_this.yml +0 -88
  37. data/spec/vcr/user_account.yml +0 -86
  38. data/spec/vcr/user_badges.yml +0 -98
  39. data/spec/vcr/user_badges_not_exists.yml +0 -83
  40. data/spec/vcr/user_collection.yml +0 -88
  41. data/spec/vcr/user_collections.yml +0 -90
  42. data/spec/vcr/user_email.yml +0 -85
  43. data/spec/vcr/user_items.yml +0 -86
  44. data/spec/vcr/user_name.yml +0 -85
  45. data/spec/vcr/user_statement.yml +0 -111
  46. data/spec/vcr/users_total.yml +0 -85
@@ -1,85 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.envato.com/v1/market/private/user/email.json
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - TOKEN
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- Accept:
17
- - "*/*"
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Date:
24
- - Wed, 12 Oct 2022 08:19:49 GMT
25
- Content-Type:
26
- - application/json; charset=utf-8
27
- Content-Length:
28
- - '49'
29
- Connection:
30
- - keep-alive
31
- X-Amzn-Requestid:
32
- - '01721928-d951-4f5e-9c55-ebf71d17715c'
33
- Referrer-Policy:
34
- - origin-when-cross-origin
35
- X-Xss-Protection:
36
- - 1; mode=block
37
- X-Runtime:
38
- - '0.012845'
39
- Access-Control-Allow-Origin:
40
- - "*"
41
- Strict-Transport-Security:
42
- - max-age=31536000
43
- X-Frame-Options:
44
- - SAMEORIGIN
45
- X-Amzn-Remapped-Connection:
46
- - keep-alive
47
- X-Download-Options:
48
- - noopen
49
- X-Request-Id:
50
- - 758e69a89acb1607-DME
51
- X-Amz-Apigw-Id:
52
- - Z4fJ5GrmoAMFuQA=
53
- Cache-Control:
54
- - no-store
55
- X-Amzn-Remapped-Server:
56
- - nginx
57
- Expires:
58
- - '0'
59
- X-Content-Type-Options:
60
- - nosniff
61
- Etag:
62
- - W/"984b5cc631d77eabcf7d81ff2760b0da"
63
- Pragma:
64
- - no-cache
65
- X-Amzn-Remapped-Date:
66
- - Wed, 12 Oct 2022 08:19:49 GMT
67
- X-Cache:
68
- - Miss from cloudfront
69
- Via:
70
- - 1.1 21305ab0d95c2d5c15ba0379048ef740.cloudfront.net (CloudFront)
71
- X-Amz-Cf-Pop:
72
- - HEL51-P2
73
- X-Amz-Cf-Id:
74
- - PsgyZ8W2sWPh4f-VHkrsdSlZ6rtf23s-BZY1qrG4dZp8hcgsfk_jbg==
75
- Cf-Cache-Status:
76
- - DYNAMIC
77
- Server:
78
- - cloudflare
79
- Cf-Ray:
80
- - 758e69a89acb1607-DME
81
- body:
82
- encoding: ASCII-8BIT
83
- string: '{"email":"email@example.com"}'
84
- recorded_at: Wed, 12 Oct 2022 08:19:49 GMT
85
- recorded_with: VCR 6.1.0
@@ -1,86 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.envato.com/v1/market/user-items-by-site:collis.json
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - TOKEN
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- Accept:
17
- - "*/*"
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Date:
24
- - Wed, 12 Oct 2022 08:17:30 GMT
25
- Content-Type:
26
- - application/json; charset=utf-8
27
- Content-Length:
28
- - '94'
29
- Connection:
30
- - keep-alive
31
- X-Amzn-Requestid:
32
- - 687a705b-9e12-4a91-822b-b6352b4a7dec
33
- Referrer-Policy:
34
- - origin-when-cross-origin
35
- X-Xss-Protection:
36
- - 1; mode=block
37
- X-Runtime:
38
- - '0.015217'
39
- Access-Control-Allow-Origin:
40
- - "*"
41
- Strict-Transport-Security:
42
- - max-age=31536000
43
- X-Frame-Options:
44
- - SAMEORIGIN
45
- X-Amzn-Remapped-Connection:
46
- - keep-alive
47
- X-Download-Options:
48
- - noopen
49
- X-Request-Id:
50
- - 758e66441c470058-DME
51
- X-Amz-Apigw-Id:
52
- - Z4e0LEJtoAMF9Mw=
53
- Cache-Control:
54
- - no-store
55
- X-Amzn-Remapped-Server:
56
- - nginx
57
- Expires:
58
- - '0'
59
- X-Content-Type-Options:
60
- - nosniff
61
- Etag:
62
- - W/"11c33e3f33b7750f27ac529b972aca2f"
63
- Pragma:
64
- - no-cache
65
- X-Amzn-Remapped-Date:
66
- - Wed, 12 Oct 2022 08:17:30 GMT
67
- X-Cache:
68
- - Miss from cloudfront
69
- Via:
70
- - 1.1 04ee3bd8d240238266b689a79ae47416.cloudfront.net (CloudFront)
71
- X-Amz-Cf-Pop:
72
- - HEL51-P2
73
- X-Amz-Cf-Id:
74
- - 22h3Hh6wpGCV3bc84dagYh6HKkQnY7wJXkYmIjvkm3epgvlMMMCnoA==
75
- Cf-Cache-Status:
76
- - DYNAMIC
77
- Server:
78
- - cloudflare
79
- Cf-Ray:
80
- - 758e66441c470058-DME
81
- body:
82
- encoding: ASCII-8BIT
83
- string: '{"user-items-by-site":[{"site":"ThemeForest","items":"1"},{"site":"Tuts+
84
- Marketplace","items":"2"}]}'
85
- recorded_at: Wed, 12 Oct 2022 08:17:30 GMT
86
- recorded_with: VCR 6.1.0
@@ -1,85 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.envato.com/v1/market/private/user/username.json
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - TOKEN
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- Accept:
17
- - "*/*"
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Date:
24
- - Tue, 11 Oct 2022 15:59:25 GMT
25
- Content-Type:
26
- - application/json; charset=utf-8
27
- Content-Length:
28
- - '44'
29
- Connection:
30
- - keep-alive
31
- X-Amzn-Requestid:
32
- - 5f60faf1-a4f1-415b-9c44-fc59885982b3
33
- Referrer-Policy:
34
- - origin-when-cross-origin
35
- X-Xss-Protection:
36
- - 1; mode=block
37
- X-Runtime:
38
- - '0.013283'
39
- Access-Control-Allow-Origin:
40
- - "*"
41
- Strict-Transport-Security:
42
- - max-age=31536000
43
- X-Frame-Options:
44
- - SAMEORIGIN
45
- X-Amzn-Remapped-Connection:
46
- - keep-alive
47
- X-Download-Options:
48
- - noopen
49
- X-Request-Id:
50
- - 7588cd87fb519d58-DME
51
- X-Amz-Apigw-Id:
52
- - Z2PipFMEoAMF41Q=
53
- Cache-Control:
54
- - no-store
55
- X-Amzn-Remapped-Server:
56
- - nginx
57
- Expires:
58
- - '0'
59
- X-Content-Type-Options:
60
- - nosniff
61
- Etag:
62
- - W/"5adabf21f993f72d22363eaf333ded8b"
63
- Pragma:
64
- - no-cache
65
- X-Amzn-Remapped-Date:
66
- - Tue, 11 Oct 2022 15:59:25 GMT
67
- X-Cache:
68
- - Miss from cloudfront
69
- Via:
70
- - 1.1 e10153740ff95eb4d0c9f3172baeb43e.cloudfront.net (CloudFront)
71
- X-Amz-Cf-Pop:
72
- - AMS1-C1
73
- X-Amz-Cf-Id:
74
- - J9hvsSS7vPtSurePnPdKGDf6TFFucAO923k5CFklrCrX5zxm72U7SQ==
75
- Cf-Cache-Status:
76
- - DYNAMIC
77
- Server:
78
- - cloudflare
79
- Cf-Ray:
80
- - 7588cd87fb519d58-DME
81
- body:
82
- encoding: ASCII-8BIT
83
- string: '{"username":"collis"}'
84
- recorded_at: Tue, 11 Oct 2022 15:59:21 GMT
85
- recorded_with: VCR 6.1.0
@@ -1,111 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.envato.com/v3/market/user/statement
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - TOKEN
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- Accept:
17
- - "*/*"
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Date:
24
- - Wed, 12 Oct 2022 08:17:30 GMT
25
- Content-Type:
26
- - application/json; charset=utf-8
27
- Content-Length:
28
- - '1085'
29
- Connection:
30
- - keep-alive
31
- X-Amzn-Requestid:
32
- - cb173e81-1a53-4c7b-93b2-5bb037dd10a9
33
- Referrer-Policy:
34
- - origin-when-cross-origin
35
- X-Xss-Protection:
36
- - 1; mode=block
37
- X-Runtime:
38
- - '0.035192'
39
- Access-Control-Allow-Origin:
40
- - "*"
41
- Strict-Transport-Security:
42
- - max-age=31536000
43
- X-Frame-Options:
44
- - SAMEORIGIN
45
- X-Amzn-Remapped-Connection:
46
- - keep-alive
47
- X-Download-Options:
48
- - noopen
49
- X-Request-Id:
50
- - 758e663fcf9d00b0-DME
51
- X-Amz-Apigw-Id:
52
- - Z4e0EH9GoAMFq3Q=
53
- Vary:
54
- - Accept
55
- Cache-Control:
56
- - no-store
57
- X-Amzn-Remapped-Server:
58
- - nginx
59
- Expires:
60
- - '0'
61
- X-Content-Type-Options:
62
- - nosniff
63
- Etag:
64
- - W/"2ab1c8570aa252949526589a4f59788c"
65
- Pragma:
66
- - no-cache
67
- X-Amzn-Remapped-Date:
68
- - Wed, 12 Oct 2022 08:17:30 GMT
69
- X-Cache:
70
- - Miss from cloudfront
71
- Via:
72
- - 1.1 554927166d10692a589190ab59950854.cloudfront.net (CloudFront)
73
- X-Amz-Cf-Pop:
74
- - HEL51-P2
75
- X-Amz-Cf-Id:
76
- - oR7zpX81-QkFpk1Bv5nManlqcwKe3up88FlXDxHkQ0N5cSTQp0KBEQ==
77
- Cf-Cache-Status:
78
- - DYNAMIC
79
- Server:
80
- - cloudflare
81
- Cf-Ray:
82
- - 758e663fcf9d00b0-DME
83
- body:
84
- encoding: ASCII-8BIT
85
- string: '{"count":12,"results":[{"unique_id":"847f684661dde47ad7a18bfba6597779","date":"2020-07-06
86
- 03:30:17 +1000","order_id":129281000,"type":"Purchase","detail":"Appgen -
87
- App, Saas \u0026 Software Landing Page Template (6 months extended support)","item_id":27152521,"document":"IVIP38802533","price":3.0,"au_gst":null,"eu_vat":null,"us_rwt":null,"us_bwt":null,"amount":-3.0,"site":"themeforest.net","other_party_country":null,"other_party_region":null,"other_party_city":null,"other_party_zipcode":null},{"unique_id":"9c44975e887d0ebeb96fb8dee40cc528","date":"2020-07-06
88
- 03:30:17 +1000","order_id":129281000,"type":"Purchase","detail":"Appgen -
89
- App, Saas \u0026 Software Landing Page Template (6 months included support)","item_id":27152521,"document":"IVIP38802533","price":3.0,"au_gst":null,"eu_vat":null,"us_rwt":null,"us_bwt":null,"amount":-3.0,"site":"themeforest.net","other_party_country":null,"other_party_region":null,"other_party_city":null,"other_party_zipcode":null},{"unique_id":"aeb0ce959af0a720a15c05f083dfe86b","date":"2020-07-06
90
- 03:30:17 +1000","order_id":129281000,"type":"Purchase","detail":"Appgen -
91
- App, Saas \u0026 Software Landing Page Template (Regular License)","item_id":27152521,"document":"IVIP38802533","price":5.0,"au_gst":null,"eu_vat":null,"us_rwt":null,"us_bwt":null,"amount":-5.0,"site":"themeforest.net","other_party_country":null,"other_party_region":null,"other_party_city":null,"other_party_zipcode":null},{"unique_id":"126abcd14e0190d55469cf2fd06be730","date":"2020-07-06
92
- 03:30:17 +1000","order_id":129281000,"type":"Purchase","detail":"Buyer Fee
93
- for Appgen - App, Saas \u0026 Software Landing Page Template","item_id":27152521,"document":"IVBF38550204","price":4.0,"au_gst":null,"eu_vat":null,"us_rwt":null,"us_bwt":null,"amount":-4.0,"site":null,"other_party_country":null,"other_party_region":null,"other_party_city":null,"other_party_zipcode":null},{"unique_id":"d3e7ee3953c0c562b2c6d6cb8f674fb6","date":"2020-07-06
94
- 03:30:17 +1000","order_id":129281000,"type":"Purchase","detail":"Handling
95
- fee for order 129281000","item_id":null,"document":"IVHF22866483","price":2.0,"au_gst":null,"eu_vat":null,"us_rwt":null,"us_bwt":null,"amount":-2.0,"site":null,"other_party_country":null,"other_party_region":null,"other_party_city":null,"other_party_zipcode":null},{"unique_id":"ca24b84941edf011d47740729e62f9ec","date":"2020-07-06
96
- 03:30:17 +1000","order_id":null,"type":"Deposit","detail":"Deposit via Credit
97
- Card","item_id":null,"document":"RCD27837184","price":null,"au_gst":null,"eu_vat":null,"us_rwt":null,"us_bwt":null,"amount":17.0,"site":null,"other_party_country":null,"other_party_region":null,"other_party_city":null,"other_party_zipcode":null},{"unique_id":"45e6fc05732f0d4e0add387f8e5bb1ea","date":"2013-09-01
98
- 21:34:38 +1000","order_id":null,"type":"Purchase","detail":"The Envato Birthday
99
- Bundle is on for 2 Weeks!","item_id":5361538,"document":null,"price":null,"au_gst":null,"eu_vat":null,"us_rwt":null,"us_bwt":null,"amount":-20.0,"site":"graphicriver.net","other_party_country":null,"other_party_region":null,"other_party_city":null,"other_party_zipcode":null},{"unique_id":"63221d4a41f86ab06883bc7ba8845791","date":"2013-09-01
100
- 21:34:38 +1000","order_id":null,"type":"Deposit","detail":"Expires 01 Sep
101
- 2014.","item_id":null,"document":"6459720","price":null,"au_gst":null,"eu_vat":null,"us_rwt":null,"us_bwt":null,"amount":20.0,"site":null,"other_party_country":null,"other_party_region":null,"other_party_city":null,"other_party_zipcode":null},{"unique_id":"a93fa81d2be8e5259ab572d2bc020472","date":"2013-08-21
102
- 14:11:38 +1000","order_id":null,"type":"Credit Expiry","detail":"Remainder
103
- forfeited","item_id":null,"document":null,"price":null,"au_gst":null,"eu_vat":null,"us_rwt":null,"us_bwt":null,"amount":-10.0,"site":null,"other_party_country":null,"other_party_region":null,"other_party_city":null,"other_party_zipcode":null},{"unique_id":"c816050271798c99556c4ff21a79bee0","date":"2012-08-21
104
- 00:57:13 +1000","order_id":null,"type":"Purchase","detail":"Envato Birthday
105
- Bundle 2012","item_id":2792744,"document":null,"price":null,"au_gst":null,"eu_vat":null,"us_rwt":null,"us_bwt":null,"amount":-20.0,"site":"themeforest.net","other_party_country":null,"other_party_region":null,"other_party_city":null,"other_party_zipcode":null},{"unique_id":"cdf1814351800de402de97fcbfb3eae2","date":"2012-08-21
106
- 00:56:52 +1000","order_id":null,"type":"Deposit","detail":"Expires 21 Aug
107
- 2013.","item_id":null,"document":"3413319","price":null,"au_gst":null,"eu_vat":null,"us_rwt":null,"us_bwt":null,"amount":30.0,"site":null,"other_party_country":null,"other_party_region":null,"other_party_city":null,"other_party_zipcode":null},{"unique_id":"2f680e1697d46d954e23671f5b093ade","date":"2011-04-17
108
- 00:40:32 +1000","order_id":null,"type":"Agreement Change","detail":"Enrolled
109
- in exclusive author program","item_id":null,"document":null,"price":null,"au_gst":null,"eu_vat":null,"us_rwt":null,"us_bwt":null,"amount":null,"site":null,"other_party_country":null,"other_party_region":null,"other_party_city":null,"other_party_zipcode":null}]}'
110
- recorded_at: Wed, 12 Oct 2022 08:17:30 GMT
111
- recorded_with: VCR 6.1.0
@@ -1,85 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.envato.com/v1/market/total-users.json
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - TOKEN
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- Accept:
17
- - "*/*"
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Date:
24
- - Tue, 11 Oct 2022 22:13:53 GMT
25
- Content-Type:
26
- - application/json; charset=utf-8
27
- Content-Length:
28
- - '52'
29
- Connection:
30
- - keep-alive
31
- X-Amzn-Requestid:
32
- - b9617de7-cb0c-4df1-826b-3c2f09654202
33
- Referrer-Policy:
34
- - origin-when-cross-origin
35
- X-Xss-Protection:
36
- - 1; mode=block
37
- X-Runtime:
38
- - '0.015769'
39
- Access-Control-Allow-Origin:
40
- - "*"
41
- Strict-Transport-Security:
42
- - max-age=31536000
43
- X-Frame-Options:
44
- - SAMEORIGIN
45
- X-Amzn-Remapped-Connection:
46
- - keep-alive
47
- X-Download-Options:
48
- - noopen
49
- X-Request-Id:
50
- - 758af20f2ec11616-DME
51
- X-Amz-Apigw-Id:
52
- - Z3GZOEgRoAMFt7w=
53
- Cache-Control:
54
- - no-store
55
- X-Amzn-Remapped-Server:
56
- - nginx
57
- Expires:
58
- - '0'
59
- X-Content-Type-Options:
60
- - nosniff
61
- Etag:
62
- - W/"b937114d37c27bab59f2297c3ec94c2a"
63
- Pragma:
64
- - no-cache
65
- X-Amzn-Remapped-Date:
66
- - Tue, 11 Oct 2022 22:13:53 GMT
67
- X-Cache:
68
- - Miss from cloudfront
69
- Via:
70
- - 1.1 e976f829f2d1c4787d42d0595ae7cf74.cloudfront.net (CloudFront)
71
- X-Amz-Cf-Pop:
72
- - FRA2-C1
73
- X-Amz-Cf-Id:
74
- - kWpy4wYRpAu9hv-rGwNI_mplHuQaGbOIMvMde2YFePoe5LDhJrpkQA==
75
- Cf-Cache-Status:
76
- - DYNAMIC
77
- Server:
78
- - cloudflare
79
- Cf-Ray:
80
- - 758af20f2ec11616-DME
81
- body:
82
- encoding: ASCII-8BIT
83
- string: '{"total-users":{"total_users":"16863730"}}'
84
- recorded_at: Tue, 11 Oct 2022 22:13:53 GMT
85
- recorded_with: VCR 6.1.0