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 +4 -4
- data/lib/airvend.rb +3 -6
- data/lib/airvend/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: 79d23fb314a3bfb388041a025ac750ab839e683519d9a23853861833a2284cbf
|
|
4
|
+
data.tar.gz: 02da8d0b9e6ec4cbf631b2ad3c7be1367d74ed2c725d6572ff079c7996419c1f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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?)
|
data/lib/airvend/version.rb
CHANGED