turbot 0.0.29 → 0.0.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/turbot/command/bots.rb +3 -6
- data/lib/turbot/version.rb +1 -1
- data/templates/python/scraper.py +7 -0
- data/templates/ruby/scraper.rb +7 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDA5ZDU1YmEwNTE2ZGM5NDExNWU4ZTZjNDY4NDY4ZjNkZjlmODhjZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzRjMDk5YmYyZGIxN2ZkYmI0OTg4Yjc2MDAzMzA0Yzg5ZTdjNzM3Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTI3NWIxMjM2YzE2YzEwMWE2OThhZDUwMzllZjc1NGMwZjg2Nzk4ZWQ5Zjc3
|
10
|
+
Yjg1ZWY5NWY1ZGEwNWFlOTFmMDVlODE0ZmVkMjM5NDQxZDg0NmJlM2NhYTI0
|
11
|
+
NTYwOTgwODMyNTc1ZmQwOTUwYmIzYTU4MDIxZThjNTVmZTc2MWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTdmOWI5ZDZhZjkxMWExYzM1YmEzN2EyYmUxMjE1MjZkZGI3NDMwZDM1N2Jj
|
14
|
+
MWZkNmFlNWQ4YjViNDY2NzJmNGZiNjZhOTdmZWY0YjFmNjZjNmIyNTRkMDU2
|
15
|
+
NGJiZjUzMGZkMDk0MjEyM2FiMGFjYTIyYjU5MzlmMWY3NzZkZjM=
|
data/lib/turbot/command/bots.rb
CHANGED
@@ -325,9 +325,8 @@ class PreviewRunner < TurbotRunner::BaseRunner
|
|
325
325
|
puts "View your records at #{result.data[:url]}"
|
326
326
|
end
|
327
327
|
|
328
|
-
def handle_failed_run
|
328
|
+
def handle_failed_run
|
329
329
|
puts "Bot did not run to completion:"
|
330
|
-
puts output
|
331
330
|
end
|
332
331
|
|
333
332
|
private
|
@@ -351,9 +350,8 @@ class DumpRunner < TurbotRunner::BaseRunner
|
|
351
350
|
puts
|
352
351
|
end
|
353
352
|
|
354
|
-
def handle_failed_run
|
353
|
+
def handle_failed_run
|
355
354
|
puts "Bot did not run to completion:"
|
356
|
-
puts output
|
357
355
|
end
|
358
356
|
end
|
359
357
|
|
@@ -376,9 +374,8 @@ class ValidationRunner < TurbotRunner::BaseRunner
|
|
376
374
|
interrupt
|
377
375
|
end
|
378
376
|
|
379
|
-
def handle_failed_run
|
377
|
+
def handle_failed_run
|
380
378
|
puts "Bot did not run to completion:"
|
381
|
-
puts output
|
382
379
|
end
|
383
380
|
|
384
381
|
def handle_interrupted_run
|
data/lib/turbot/version.rb
CHANGED
data/templates/python/scraper.py
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
|
1
3
|
import json
|
2
4
|
import datetime
|
5
|
+
import turbotlib
|
6
|
+
|
7
|
+
turbotlib.log("starting run...")
|
3
8
|
|
4
9
|
for n in range(0,20):
|
5
10
|
data = {"number": n,
|
@@ -8,3 +13,5 @@ for n in range(0,20):
|
|
8
13
|
"source_url": "http://somewhere.com/%s" % n}
|
9
14
|
# The Turbot specification simply requires us to output lines of JSON
|
10
15
|
print json.dumps(data)
|
16
|
+
|
17
|
+
turbotlib.log("done!")
|
data/templates/ruby/scraper.rb
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
|
1
3
|
require 'json'
|
4
|
+
require 'turbotlib'
|
5
|
+
|
6
|
+
Turbotlib.log("Starting run...")
|
2
7
|
|
3
8
|
(1...20).each do |n|
|
4
9
|
data = {
|
@@ -10,3 +15,5 @@ require 'json'
|
|
10
15
|
# The Turbot specification simply requires us to output lines of JSON
|
11
16
|
puts JSON.dump(data)
|
12
17
|
end
|
18
|
+
|
19
|
+
Turbotlib.log("Done!")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Turbot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: netrc
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - '='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.0.
|
117
|
+
version: 0.0.3
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - '='
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.0.
|
124
|
+
version: 0.0.3
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: excon
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|