myvr 0.0.0 → 0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46a476e0ad9beca3e9b4f43790c54cbde5281a43
4
- data.tar.gz: 13cee268b5ab3cc57988100ee89c47ef742a8ea7
3
+ metadata.gz: 51c3aa3df4bec4604af969710f2309691cc1cd42
4
+ data.tar.gz: 43996eeaf65222fa3be29c550dbac35f1f42ddf2
5
5
  SHA512:
6
- metadata.gz: 74c28bbfa0f70f05d1ee2b2da7c379e509cb196e48c8803b714b7892418b56263fb3de1cec7ddd04a954bce1fac10a1da3b6d192267033fc129d19dfa596808b
7
- data.tar.gz: 7e04def406f644f3a544925202a20bd247823cbb954c82f9ff4c3d6ee0890216e465838697115d4a8715e77381bebcd637156a72a7429b6fd51480dcdbb9e165
6
+ metadata.gz: 5bd9e64f93ba81e7bd24e94be454a8ad8702a37beba423d3bf0c91c45edd51c6cdb6a078ed984c8f1bf3962fcae749417efdab028fbc3677776bc41d03f4996a
7
+ data.tar.gz: 0b7abe058a3439c1cef2193ce6f0214f28cfdd85044106c3ddff3dd8bc6ddac1889e186f9b15d08dda1ef08a961e3583c5e6356fd23752455f65956e2fc33ca3
@@ -38,17 +38,31 @@ module MyVR
38
38
  c.http_auth_types = :basic
39
39
  c.username = access_key
40
40
  c.send(http_method)
41
- p JSON.parse(c.body_str)
41
+ if ENV["MYVR_TEST"]
42
+ p JSON.parse(c.body_str)
43
+ else
44
+ JSON.parse(c.body_str)
45
+ end
42
46
  end
43
47
 
44
48
  def base_url(path, params={})
45
- Addressable::URI.new(
46
- host: 'api.local.myvr.com',
47
- port: 8000,
48
- scheme: 'http',
49
- path: path,
50
- query_values: params
51
- )
49
+ if ENV["MYVR_TEST"]
50
+ Addressable::URI.new(
51
+ host: 'api.local.myvr.com',
52
+ port: 8000,
53
+ scheme: 'http',
54
+ path: path,
55
+ query_values: params
56
+ )
57
+ else
58
+ Addressable::URI.new(
59
+ host: 'api.myvr.com',
60
+ port: 80,
61
+ scheme: 'https',
62
+ path: path,
63
+ query_values: params
64
+ )
65
+ end
52
66
  end
53
67
 
54
68
  private
@@ -10,7 +10,7 @@ module MyVR
10
10
  end
11
11
 
12
12
  def patch
13
- 0
13
+ 1
14
14
  end
15
15
 
16
16
  def to_h
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myvr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CJ Avilla