diff_test 0.2.0 → 0.3.0
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 +4 -4
- data/lib/diff_test/api_client.rb +1 -1
- data/lib/diff_test/configuration.rb +5 -2
- data/lib/diff_test/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b00951e239cced08eb938139295dfe36c0d646230bd08c0d38ba728b2355d50e
|
4
|
+
data.tar.gz: 0435351def4d332f16980732071cf33781bf2eb26d75abcf6a5a5f3452721892
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbb9ff938b1d3c915e636d40302dc735e306b0b0cfde9cea300edc11818128d8b6708b12f5330efe75722e238f998b558a14a93bcd90239925bb764f225b0e1a
|
7
|
+
data.tar.gz: 8e5686d0de7c6861fb78c85075715ac748ae95d5488ed2fbede94eb9aead9fd2944f57e3ce8e27205ac4667927530491eeb885a1be658bf9bccf89fbc657fcfb
|
data/lib/diff_test/api_client.rb
CHANGED
@@ -30,7 +30,7 @@ module DiffTest
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def self.set_api_key_in_headers(options)
|
33
|
-
base_uri
|
33
|
+
base_uri DiffTest.configuration.base_api_url
|
34
34
|
options[:headers] ||= {}
|
35
35
|
options[:headers]['X-Diff-Test-Api-Key'] = DiffTest.configuration.api_key
|
36
36
|
end
|
@@ -2,13 +2,13 @@ module DiffTest
|
|
2
2
|
class Configuration
|
3
3
|
attr_writer \
|
4
4
|
:api_key,
|
5
|
-
:port,
|
6
5
|
:project_root,
|
7
6
|
:vendor_bundle_path,
|
8
7
|
:project_files,
|
9
8
|
:ignored_files,
|
10
9
|
:tracked_files,
|
11
|
-
:tracked_js_files
|
10
|
+
:tracked_js_files,
|
11
|
+
:base_api_url
|
12
12
|
|
13
13
|
def api_key
|
14
14
|
@api_key || ENV['DIFF_TEST_API_KEY']
|
@@ -174,5 +174,8 @@ module DiffTest
|
|
174
174
|
end.to_set
|
175
175
|
end
|
176
176
|
|
177
|
+
def base_api_url
|
178
|
+
@base_api_url || "https://diff-test.owaiskhan.me"
|
179
|
+
end
|
177
180
|
end
|
178
181
|
end
|
data/lib/diff_test/version.rb
CHANGED