farmstead 0.0.46 → 0.0.47

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: 9af9766d2bf99aff2dc4853eb04d44b8253e162c
4
- data.tar.gz: 9a6dc71173f7c358f817cc3851cde2aec1f5ead6
3
+ metadata.gz: 84f17c36d90a78c53393d73db4986e9826bfce69
4
+ data.tar.gz: 752a9e161dda9bb050ab9725557c88f53206f941
5
5
  SHA512:
6
- metadata.gz: a3d38fa3acff331621727307330525f21981966dfe001e84603823aca0514b52c5b00a0cba1e89c38016ebf7979d0bb884017ec883f3a6d0354b867882d4effb
7
- data.tar.gz: bfcc00e7a2635b2db989dc04640269e4f700c258331a4f2162e1753d784c289f0b5ea44da354b6868a23ed1d6eff4f74bf0b5e4f95e03a61919743f615e910fa
6
+ metadata.gz: 232d6b021ccf08e8215ea054d341c9587de06b92a9884264761549b273a87db05e6697d3cb8ce1df49f39248f4405edf7f92ff0723cdc4de7130746953f7c29d
7
+ data.tar.gz: 226d4e3571fc41e451e350910f6680f174fc7a23b7d0ca4a4dcd1d921313e8642a6b5be5855166de8739c35f49cac3a810c08baf668fb1bcb31efd634ff35211
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- farmstead (0.0.46)
4
+ farmstead (0.0.47)
5
5
  httparty (~> 0.15.6)
6
6
  mechanize (~> 2.7)
7
7
  mysql2 (~> 0.4.10)
data/README.md CHANGED
@@ -16,11 +16,6 @@ Farmstead is a modular data pipeline platform. Farmstead makes creating and depl
16
16
  - [Environment Variables](#env)
17
17
  - [Deployment Methods](#deployment)
18
18
  - [Architecture](#architecture)
19
- - [Scheduler - Glenda](#glenda)
20
- - [Fertilize - Tinman](#tinman)
21
- - [Harvest - Scarecrow](#scarecrow)
22
- - [Mill - CowardlyLion](#cowardlylion)
23
- - [Serve - Dorothy](#dorothy)
24
19
  - [License](#license)
25
20
 
26
21
  <!-- /TOC -->
@@ -108,7 +103,9 @@ ETL
108
103
  * Transform
109
104
  * Load
110
105
 
111
- All of the services are only running a Kafka consumer and producer. There is a Manager service that
106
+ All of the services are only running a Kafka consumer and producer. There is a Manager service that manages the flow.
107
+
108
+ Projects are built with their own classes to allow extending the API.
112
109
 
113
110
  **Classes:**
114
111
 
@@ -129,7 +126,7 @@ Transforms one or more datasets.
129
126
  Loads the data into a database.
130
127
 
131
128
  **Test**
132
- curl -X PUT -H "Accept: application/json" -d '{ "name": "test", "type": "test" }' http://localhost:3000/api/v1/source
129
+ curl -X PUT -H "Accept: application/json" -d '{ "name": "test", "type": "test", "module": "Test" }' http://localhost:3000/api/v1/source
133
130
 
134
131
 
135
132
  ## License
data/lib/farmstead/cli.rb CHANGED
@@ -43,7 +43,6 @@ module Farmstead
43
43
 
44
44
  desc "pipelined", "Test a pipeline API"
45
45
  def pipeline
46
- Farmstead.const_set("OPERATION", "started")
47
46
  require_relative "farmstead/extract"
48
47
  end
49
48
 
data/lib/farmstead/db.rb CHANGED
@@ -13,7 +13,7 @@ module Farmstead
13
13
  def self.add_source(payload)
14
14
  self.pull_variables
15
15
  ds = @@DB[:sources]
16
- ds.insert(:name => payload["name"], :type => payload["type"])
16
+ ds.insert(name: payload["name"], type: payload["type"], module: payload["module"])
17
17
  end
18
18
 
19
19
  def self.setup
@@ -22,6 +22,7 @@ module Farmstead
22
22
  primary_key(:id)
23
23
  String(:name)
24
24
  String(:type)
25
+ String(:module)
25
26
  end
26
27
  end
27
28
 
@@ -8,7 +8,6 @@
8
8
  #
9
9
  # Every micro-service inherits the Service class
10
10
  module Farmstead
11
- OPERATION = 1
12
11
  module Extract
13
12
  class Producer < Farmstead::Service
14
13
  def run
@@ -1,7 +1,5 @@
1
1
  module <%= @name.capitalize %>
2
2
  module Extracter
3
- include Farmstead::Extract
4
-
5
3
  # Sinatra API - Customize here
6
4
  class API < Farmstead::API
7
5
  end
@@ -1,7 +1,5 @@
1
1
  module <%= @name.capitalize %>
2
2
  module Loader
3
- include Farmstead::Load
4
-
5
3
  # Sinatra API - Customize here
6
4
  class API < Farmstead::API
7
5
  end
@@ -1,7 +1,5 @@
1
1
  module <%= @name.capitalize %>
2
2
  module Manager
3
- include Farmstead::Manage
4
-
5
3
  # Sinatra API - Customize here
6
4
  class API < Farmstead::API
7
5
  end
@@ -1,7 +1,5 @@
1
1
  module <%= @name.capitalize %>
2
2
  module Transformer
3
- include Farmstead::Transform
4
-
5
3
  # Sinatra API - Customize here
6
4
  class API < Farmstead::API
7
5
  end
@@ -1,3 +1,3 @@
1
1
  module Farmstead
2
- VERSION = "0.0.46"
2
+ VERSION = "0.0.47"
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.46
4
+ version: 0.0.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Jenney