turbot 0.0.13 → 0.0.14

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.
@@ -1,3 +1,3 @@
1
1
  module Turbot
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "bot_id": "{{bot_id}}",
3
+ "description": "This is a simple bot",
3
4
  "data_type": "primary data",
4
5
  "identifying_fields": ["number"],
5
6
  "files": ["{{scraper_name}}"],
6
- "description": "This is a simple bot"
7
+ "frequency": "monthly"
7
8
  }
@@ -1,5 +1,9 @@
1
1
  import json
2
+ import datetime
2
3
 
3
4
  for n in range(0,20):
4
- data = {"number": n, "message": "Hello %s" % n}
5
+ data = {"number": n,
6
+ "message": "Hello %s" % n,
7
+ "sample_date": datetime.datetime.now().isoformat(),
8
+ "source_url": "http://somewhere.com/%s" % n}
5
9
  print json.dumps(data)
@@ -1,6 +1,11 @@
1
1
  require 'json'
2
2
 
3
3
  (1...20).each do |n|
4
- data = {number: n, message: "Hello #{n}"}
4
+ data = {
5
+ number: n,
6
+ message: "Hello #{n}",
7
+ sample_date: Time.now,
8
+ source_url: "http://somewhere.com/#{n}"
9
+ }
5
10
  puts JSON.dump(data)
6
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: