farmstead 0.0.42 → 0.0.43

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d37e7dbfd1bdfb01c36d292ab4f68ea766cd16c
4
- data.tar.gz: 7eebc85c065b78657f42a954c5559a2abffe0ea0
3
+ metadata.gz: fcdc5231080791c955c1005d68e94c2f1ba2265e
4
+ data.tar.gz: 823997c88ada7c6d7797586d4c33cb8e615168ea
5
5
  SHA512:
6
- metadata.gz: 6b14bb1b3cb06ee007bd2e6e6327e254890753cfb5ec6c1af3fe16e2608a9333852cfb665fe698158dd498d2fdb794ffe6ddc722462c1fe311c140f4a11798d5
7
- data.tar.gz: 866e4dd886ec9d6fb6ab0fd9c3be93ea839ea71a032d6b5f332e4829e0550945c54cbb9f60d44f6ed53c3a5fd6e3272d11875a6ff4d4109c3a69566be9a39bf1
6
+ metadata.gz: befbf6ac0d5df2078abd6a08d735211337062f6f25d3bf2c8905e07f215b5587d840b824cba8cac45159ac3dc213e1405473b3b80961719e56a216af239696d0
7
+ data.tar.gz: 1c245c327e38d6151e2d99c6b80567e6c2db891928d89774d3c2fcefa967c9757f4d3effcd10410a8dd5b73f2aece9372b0ddf34d59493d86778484019b38bbc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- farmstead (0.0.42)
4
+ farmstead (0.0.43)
5
5
  httparty (~> 0.15.6)
6
6
  mechanize (~> 2.7)
7
7
  mysql2 (~> 0.4.10)
@@ -1,5 +1,6 @@
1
1
  require "sinatra/base"
2
2
  require "sinatra/namespace"
3
+ require "json"
3
4
 
4
5
  module Sinatra
5
6
  module V1
@@ -12,8 +13,8 @@ module Sinatra
12
13
  end
13
14
 
14
15
  put "/source" do
15
- JSON.parse(app.request.body.read)
16
- #Farmstead::DB.add_source
16
+ payload = JSON.parse(request.body.read)
17
+ Farmstead::DB.add_source(payload)
17
18
  end
18
19
  end
19
20
  end
@@ -22,8 +22,9 @@ docker-compose up -d mysql zookeeper > /dev/null 2>&1
22
22
  echo "Sleeping"
23
23
  sleep 10
24
24
 
25
+ echo "Starting everything else"
26
+ docker-compose up -d > /dev/null 2>&1
27
+
25
28
  echo "Create database tables"
26
29
  docker-compose exec manage farmstead db setup
27
30
 
28
- echo "Starting everything else"
29
- docker-compose up -d > /dev/null 2>&1
@@ -1,3 +1,3 @@
1
1
  module Farmstead
2
- VERSION = "0.0.42"
2
+ VERSION = "0.0.43"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: farmstead
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.42
4
+ version: 0.0.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Jenney