farmstead 0.0.76 → 0.0.77

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: 39cda35f302ea101df3c5856e16f03b352f32dd1
4
- data.tar.gz: ed1c3ec539cbe31e013590ef438a8ca038ef41b5
3
+ metadata.gz: f8d9cf814e57468301326aabaa67dc8d3a54dfce
4
+ data.tar.gz: fa9f3d9e375bd29fad966368992e31bd6d0c515c
5
5
  SHA512:
6
- metadata.gz: 5dd6bc0819f4694ba5322194aca57c3a2d2c7a2c1244f7217d89e3032ac3abd820f3eb15a00086d54569c75cad2f7a399c3c3ed01948b8dbfb5b8dbdcf3024f3
7
- data.tar.gz: ea1b213f9d26db27a819ca043eb82bc3f7e09b1b75d6ac13acbb0730b3d72b8226d5ee77d9fb3dfe9bfe8baed5c4b8c5c0f9ae8618eea03860f896b465c5956c
6
+ metadata.gz: 33cc0b4ba3347c5288643e8b98c145787a9a169afc914a9bf4b418cf066ea3269672bc12ad6043350601a12add56537144d911e45bc0715ebc4f20ed2fa7acb9
7
+ data.tar.gz: c56b21060b141d1520b1f976671e7ed6bc1187053e7c5f35b219a88b99f1d6779930994342c550802830361e9ab7b99c8a5d58ac37a29c0ff6d249fe93f91d55
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- farmstead (0.0.76)
4
+ farmstead (0.0.77)
5
5
  httparty (~> 0.15.6)
6
6
  mechanize (~> 2.7)
7
7
  mysql2 (~> 0.4.10)
data/lib/farmstead/db.rb CHANGED
@@ -50,6 +50,16 @@ module Farmstead
50
50
  ds.insert(array)
51
51
  end
52
52
 
53
+ def self.create_table(table, hash)
54
+ self.pull_variables
55
+ @@DB.create_table? [":#{table}"] do
56
+ #primary_key(:id) if hash[:primary_key]
57
+ String(:name)
58
+ String(:type)
59
+ String(:module)
60
+ end
61
+ end
62
+
53
63
  # Insert an array of values into a table
54
64
  def self.insert_test(result)
55
65
  self.pull_variables
@@ -21,7 +21,7 @@ module Farmstead
21
21
  module_name = obj["module_name"]
22
22
  my_module = Object.const_get "#{project_name}::#{module_name}"
23
23
  puts obj["result"]
24
- #result = my_module::load(obj["result"])
24
+ result = my_module::load(obj["result"])
25
25
  @consumer.mark_message_as_processed(message)
26
26
  end
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module Farmstead
2
- VERSION = "0.0.76"
2
+ VERSION = "0.0.77"
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.76
4
+ version: 0.0.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Jenney