haravan_theme 0.0.25
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 +7 -0
- data/.gitignore +6 -0
- data/.travis.yml +7 -0
- data/CHANGELOG.md +31 -0
- data/CONTRIBUTING +6 -0
- data/Gemfile +4 -0
- data/MIT-LICENSE +20 -0
- data/README.md +171 -0
- data/Rakefile +28 -0
- data/bin/theme +26 -0
- data/doc/API-key-and-password.jpg +0 -0
- data/doc/how_to_find_theme_id.png +0 -0
- data/haravan_theme.gemspec +33 -0
- data/lib/certs/cacert.pem +3988 -0
- data/lib/haravan_theme/api_checker.rb +41 -0
- data/lib/haravan_theme/cli.rb +344 -0
- data/lib/haravan_theme/file_filters.rb +18 -0
- data/lib/haravan_theme/filters/blacklist.rb +17 -0
- data/lib/haravan_theme/filters/command_input.rb +17 -0
- data/lib/haravan_theme/filters/whitelist.rb +19 -0
- data/lib/haravan_theme/releases.rb +57 -0
- data/lib/haravan_theme/version.rb +3 -0
- data/lib/haravan_theme.rb +171 -0
- data/shipit.rubygems.yml +1 -0
- data/spec/cassettes/api_check_api_down.yml +55 -0
- data/spec/cassettes/api_check_success.yml +55 -0
- data/spec/cassettes/api_check_unauthorized.yml +55 -0
- data/spec/cassettes/timber_releases.yml +994 -0
- data/spec/smoke/ca_cert_spec.rb +43 -0
- data/spec/spec_helper.rb +9 -0
- data/spec/unit/api_checker_spec.rb +44 -0
- data/spec/unit/cli_spec.rb +90 -0
- data/spec/unit/file_filters_spec.rb +37 -0
- data/spec/unit/filters/blacklist_spec.rb +32 -0
- data/spec/unit/filters/command_input_spec.rb +18 -0
- data/spec/unit/filters/whitelist_spec.rb +41 -0
- data/spec/unit/releases_spec.rb +45 -0
- metadata +236 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://something.myharavan.com/admin/assets.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Haravan-Access-Token:
|
11
|
+
- alakazam
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 503
|
15
|
+
message: Unavailable
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- nginx
|
19
|
+
Date:
|
20
|
+
- Tue, 01 Sep 2015 18:47:36 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
X-Sorting-Hat-Podid:
|
28
|
+
- '0'
|
29
|
+
X-Sorting-Hat-Shopid:
|
30
|
+
- '2538'
|
31
|
+
X-Sorting-Hat-Podid-Cached:
|
32
|
+
- '1'
|
33
|
+
X-Sorting-Hat-Shopid-Cached:
|
34
|
+
- '1'
|
35
|
+
Status:
|
36
|
+
- 401 Unauthorized
|
37
|
+
X-Frame-Options:
|
38
|
+
- DENY
|
39
|
+
X-Shopid:
|
40
|
+
- '2538'
|
41
|
+
X-Shardid:
|
42
|
+
- '0'
|
43
|
+
Www-Authenticate:
|
44
|
+
- Basic Realm="Haravan API Authentication"
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block; report=/xss-report/6cb4f1eb-40ea-4f96-b36c-e7edc4cc6005?source%5Baction%5D=index&source%5Bcontroller%5D=admin%2Fassets&source%5Bsection%5D=admin
|
47
|
+
X-Request-Id:
|
48
|
+
- 6cb4f1eb-40ea-4f96-b36c-e7edc4cc6005
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"errors":"[API] Invalid API key or access token (unrecognized login
|
52
|
+
or wrong password)"}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Tue, 01 Sep 2015 18:47:36 GMT
|
55
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://something.myharavan.com/admin/assets.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Haravan-Access-Token:
|
11
|
+
- alakazam
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- nginx
|
19
|
+
Date:
|
20
|
+
- Tue, 01 Sep 2015 18:47:35 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
X-Sorting-Hat-Podid:
|
28
|
+
- '0'
|
29
|
+
X-Sorting-Hat-Shopid:
|
30
|
+
- '2538'
|
31
|
+
X-Sorting-Hat-Podid-Cached:
|
32
|
+
- '0'
|
33
|
+
X-Sorting-Hat-Shopid-Cached:
|
34
|
+
- '0'
|
35
|
+
Status:
|
36
|
+
- 401 Unauthorized
|
37
|
+
X-Frame-Options:
|
38
|
+
- DENY
|
39
|
+
X-Shopid:
|
40
|
+
- '2538'
|
41
|
+
X-Shardid:
|
42
|
+
- '0'
|
43
|
+
Www-Authenticate:
|
44
|
+
- Basic Realm="Haravan API Authentication"
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block; report=/xss-report/f2203a5b-1bf3-4207-942b-81472f5d3073?source%5Baction%5D=index&source%5Bcontroller%5D=admin%2Fassets&source%5Bsection%5D=admin
|
47
|
+
X-Request-Id:
|
48
|
+
- f2203a5b-1bf3-4207-942b-81472f5d3073
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"errors":"[API] Invalid API key or access token (unrecognized login
|
52
|
+
or wrong password)"}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Tue, 01 Sep 2015 18:47:36 GMT
|
55
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://something.myharavan.com/admin/assets.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Haravan-Access-Token:
|
11
|
+
- alakazam
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 401
|
15
|
+
message: Unauthorized
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- nginx
|
19
|
+
Date:
|
20
|
+
- Tue, 01 Sep 2015 18:47:36 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
X-Sorting-Hat-Podid:
|
28
|
+
- '0'
|
29
|
+
X-Sorting-Hat-Shopid:
|
30
|
+
- '2538'
|
31
|
+
X-Sorting-Hat-Podid-Cached:
|
32
|
+
- '1'
|
33
|
+
X-Sorting-Hat-Shopid-Cached:
|
34
|
+
- '1'
|
35
|
+
Status:
|
36
|
+
- 401 Unauthorized
|
37
|
+
X-Frame-Options:
|
38
|
+
- DENY
|
39
|
+
X-Shopid:
|
40
|
+
- '2538'
|
41
|
+
X-Shardid:
|
42
|
+
- '0'
|
43
|
+
Www-Authenticate:
|
44
|
+
- Basic Realm="Haravan API Authentication"
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block; report=/xss-report/94fab138-9672-45ff-81b7-38f35ba81ed2?source%5Baction%5D=index&source%5Bcontroller%5D=admin%2Fassets&source%5Bsection%5D=admin
|
47
|
+
X-Request-Id:
|
48
|
+
- 94fab138-9672-45ff-81b7-38f35ba81ed2
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"errors":"[API] Invalid API key or access token (unrecognized login
|
52
|
+
or wrong password)"}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Tue, 01 Sep 2015 18:47:36 GMT
|
55
|
+
recorded_with: VCR 2.9.3
|