airvend 0.1.0 → 0.1.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
  SHA256:
3
- metadata.gz: e8779b413dd8f8efb5b0263e161814e671b914b7f2ecc990ec7d080da399ab1f
4
- data.tar.gz: fd7d73d444c292622545c441fc78d614caa0e53bce738481ea4be72929335fb7
3
+ metadata.gz: 79d23fb314a3bfb388041a025ac750ab839e683519d9a23853861833a2284cbf
4
+ data.tar.gz: 02da8d0b9e6ec4cbf631b2ad3c7be1367d74ed2c725d6572ff079c7996419c1f
5
5
  SHA512:
6
- metadata.gz: 3bc28beb95fe5066f3e7ef75b3af9e3210c96eeaa4996630f12871b96df848d2c7da7a7f839fb0cd2ba94250b5bd94ef8db05a26e5c7d1eb245b0b2d45d0b355
7
- data.tar.gz: '092aabc5563547b77e0208a78384fa1fabf2817bc33ce189983eddf96241b2e4d062aa1756a2aaecfe7994b7dd686ae8923bc2a3e76c2e4b891ba64f58c9e5d3'
6
+ metadata.gz: 4e0dca25b70ed87d501af79ba8524289dafc8a761a34174dad7f08a9316130cb7cf6580672b9c8a4098bad4b3fa5719be61f1d4d6628575e4f464f6e7cb7d8cb
7
+ data.tar.gz: cf17553194a77710468b0286b2df09598930a2f12c7670e9ffa4c085bbbfba406a1d59206e016501546f971175038702c33eb113bbac8588327d21a68ba6cbe6
data/lib/airvend.rb CHANGED
@@ -29,21 +29,18 @@ class Airvend
29
29
 
30
30
  if (ENV['RAILS_ENV'].nil?)
31
31
  @production = production
32
+ @url = sandbox_url
32
33
  warn "Warning: Make sure you set RAILS_ENV to production or development"
33
34
  else
34
35
  if ENV['RAILS_ENV'] == "production"
35
36
  @production=true
37
+ @url = live_url
36
38
  else
37
39
  @prodcution=false
40
+ @url = sandbox_url
38
41
  end
39
42
  end
40
43
 
41
- # set rave url to sandbox or live if we are in production or development
42
- if production == false
43
- @url = sandbox_url
44
- else
45
- @url = live_url
46
- end
47
44
 
48
45
  # check if we set our public and secret keys to the environment variable
49
46
  if (username.nil? && password.nil?)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Airvend
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airvend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uchenna Mba