farmstead 0.0.67 → 0.0.68

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: c531b9f64329fd45cd8b0fa111e91994e9d5b02e
4
- data.tar.gz: a685c08bbee7a9077e6be27a87506090525c4028
3
+ metadata.gz: c50d83de14a670a1b0acbe2764cf71232508e9ca
4
+ data.tar.gz: 4e6e4e13597caee497b5c668f37967d4bdab4094
5
5
  SHA512:
6
- metadata.gz: 0a03c3968428d50be8e202308b79df311ff5cc653648361cec5d93206089ef6c5996e1ebf6aed1e5a25a9189b0a7cb755426050aa8025ff91cf597687cc1316e
7
- data.tar.gz: ff071d75a1ab5c2456eb260c86ce17ca700f2ccaa81b41b8e4f5f1fa2437ce394d7d1a1e8fc310f7ca4dd040ad432d69bfce61bf05cf8cb167d1aa1c442df78a
6
+ metadata.gz: 9f546f79bdda08bc9949622ad3ac385d1738d11286657058bf6b0cd56905d4d57f5f6a62f7ebe5037553923932fae8f8d4fa7cb9a94bbe2d2b1572ccf1baf345
7
+ data.tar.gz: d8856f390a10ed9c2ec3cef79c571cb00f6b9ab8e02db9b6ca466d34a8546e263a6c1faaad1a21c35599877587eb3f597d099db1dd16c513c03f0a4fcfe2aba6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- farmstead (0.0.67)
4
+ farmstead (0.0.68)
5
5
  httparty (~> 0.15.6)
6
6
  mechanize (~> 2.7)
7
7
  mysql2 (~> 0.4.10)
@@ -11,6 +11,16 @@ module Farmstead
11
11
  module Extract
12
12
  class Service < Farmstead::Service
13
13
  def run
14
+ message = "StopandShop"
15
+ puts "Received: #{message}"
16
+ module_name = message
17
+ my_module = Object.const_get "<%= ENV['name'].capitalize %>::#{module_name}"
18
+ result = my_module::extract
19
+ puts result.inspect
20
+ Farmstead::DB.insert_test(result)
21
+ end
22
+
23
+ def runs
14
24
  @consumer.subscribe("Field")
15
25
  trap('TERM') { @consumer.stop }
16
26
  @consumer.each_message do |message|
@@ -1,3 +1,3 @@
1
1
  module Farmstead
2
- VERSION = "0.0.67"
2
+ VERSION = "0.0.68"
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.67
4
+ version: 0.0.68
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Jenney