miracle_grow 0.1.8 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ef5a9079f3cda7aa04e9206cf0f19332df25e1d
4
- data.tar.gz: aa7a94c24d02d40a10d55ba05ff3364d3893a70e
3
+ metadata.gz: 495dafbf111c76473a9da1e83dd1ff556c13061e
4
+ data.tar.gz: a84d8975d4cd88e16baadc949cadb807a64d1218
5
5
  SHA512:
6
- metadata.gz: 3ab133286f2456641386e5c9282782bee4f2983d3a5073aa54aa0b6f2f0f0245f6ca90059964665d9f56b030b885ecc20ed05c2c9fbeeae817d0df3e7755a21c
7
- data.tar.gz: e4a7e606f5b47a049ca1d8fd37b5cef1cf638a4802151a479b95a0fca2b28beec0a3c1579e309aab27fd5346bf3459c362eeaec3ffe5ddb38145bb9e1932bf74
6
+ metadata.gz: 099017c1e222ee2d506117cc1b8f5a7b450ca166aa376397f1770d0d2b0f92d93c49bdf733189a52e19c3aa4abd675efbaf5d3890fce2282e72c92bf25464272
7
+ data.tar.gz: 2f9c3361f155018eff2a5aafa243514840ff11761d69ec5982677caf7108af72db91260fb54f7785ed44dde67c30bb6cbb89c8944b91663359690a6c459a5cd6
@@ -2,6 +2,8 @@ module MiracleGrow
2
2
 
3
3
  class Bed
4
4
  class << self
5
+ ENV['HOST'] ||= "http://107.170.7.85"
6
+
5
7
  def find_bed(id)
6
8
  response = Faraday.get("#{ENV["HOST"]}/api/v1/beds/#{id}")
7
9
  JSON.parse(response.body)
@@ -57,4 +59,4 @@ module MiracleGrow
57
59
 
58
60
  end
59
61
  end
60
- end
62
+ end
@@ -2,6 +2,7 @@ module MiracleGrow
2
2
 
3
3
  class Plant
4
4
  class << self
5
+ ENV['HOST'] ||= "http://107.170.7.85"
5
6
 
6
7
  def all_the_plants
7
8
  response = Faraday.get("#{ENV["HOST"]}/api/v1/plants")
@@ -14,4 +15,4 @@ module MiracleGrow
14
15
 
15
16
  end
16
17
  end
17
- end
18
+ end
@@ -2,6 +2,7 @@ module MiracleGrow
2
2
 
3
3
  class Planting
4
4
  class << self
5
+ ENV['HOST'] ||= "http://107.170.7.85"
5
6
 
6
7
  def plantings_for_bed(id)
7
8
  response = Faraday.get("#{ENV["HOST"]}/api/v1/plantings/for_bed/#{id}")
@@ -16,4 +17,4 @@ module MiracleGrow
16
17
 
17
18
  end
18
19
  end
19
- end
20
+ end
@@ -1,3 +1,3 @@
1
1
  module MiracleGrow
2
- VERSION = "0.1.8"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miracle_grow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Lewinsky