cloudfactory 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/cf.gemspec +9 -6
- data/lib/cf/cli/production.rb +1 -2
- data/lib/cf/cli/templates/sample-line/form.css +6 -7
- data/lib/cf/cli/templates/sample-line/form.html +9 -15
- data/lib/cf/cli/templates/sample-line/form.js +2 -2
- data/lib/cf/cli/templates/sample-line/line.yml.erb +70 -46
- data/lib/cf/cli/templates/sample-line/sample-line.csv +3 -3
- data/lib/cf/run.rb +1 -1
- data/lib/cf/version.rb +1 -1
- metadata +61 -84
- data/example/google_translate_app/Gemfile +0 -12
- data/example/google_translate_app/config.ru +0 -7
- data/example/google_translate_app/google_translate_input.csv +0 -4
- data/example/google_translate_app/google_translator_app.rb +0 -53
- data/example/google_translate_app/views/index.haml +0 -2
- data/example/google_translate_app/views/layout.haml +0 -7
- data/example/google_translate_app/views/run.haml +0 -4
- data/example/google_translate_app/views/style.sass +0 -2
- data/example/human_worker_app/Gemfile +0 -12
- data/example/human_worker_app/config.ru +0 -7
- data/example/human_worker_app/human_worker_app.rb +0 -55
- data/example/human_worker_app/human_worker_input.csv +0 -5
- data/example/human_worker_app/public/app.js +0 -12
- data/example/human_worker_app/temp.csv +0 -3
- data/example/human_worker_app/views/index.haml +0 -15
- data/example/human_worker_app/views/layout.haml +0 -10
- data/example/human_worker_app/views/result.haml +0 -18
- data/example/human_worker_app/views/run.haml +0 -12
- data/example/human_worker_app/views/style.sass +0 -25
- data/example/sample_yaml_files/concept_tagging_robot.yaml +0 -18
- data/example/sample_yaml_files/content_scraping_robot.yaml +0 -19
- data/example/sample_yaml_files/entity_extraction_robot.yaml +0 -18
- data/example/sample_yaml_files/google_translate_robot.yaml +0 -20
- data/example/sample_yaml_files/image_processing_robot.yaml +0 -20
- data/example/sample_yaml_files/keyword_matching_and_text_extraction_robot.yaml +0 -26
- data/example/sample_yaml_files/mailer_robot.yaml +0 -21
- data/example/sample_yaml_files/media_converter_robot.yaml +0 -21
- data/example/sample_yaml_files/media_splitting_robot.yaml +0 -20
- data/example/sample_yaml_files/multiple_skill_badge.yaml +0 -75
- data/example/sample_yaml_files/sentiment_robot.yaml +0 -19
- data/example/sample_yaml_files/skill_badge.yaml +0 -56
- data/example/sample_yaml_files/stat_badge.yaml +0 -40
- data/example/sample_yaml_files/term_extraction_robot.yaml +0 -20
- data/example/sample_yaml_files/tournament_station_and_form_fields.yaml +0 -40
data/cf.gemspec
CHANGED
@@ -29,19 +29,22 @@ Gem::Specification.new do |s|
|
|
29
29
|
http://cloudfactory.com/users/sign_up
|
30
30
|
Get API key from welcome email or http://cloudfactory.com/account#settings
|
31
31
|
|
32
|
-
2.
|
32
|
+
2. Login with your credentials
|
33
|
+
> cf login
|
34
|
+
|
35
|
+
3. Generate your first assembly line...
|
33
36
|
> cf line generate <line-title>
|
34
37
|
|
35
|
-
|
38
|
+
4. Edit the generated line.yml to design your perfect assembly line
|
36
39
|
See http://developers.cloudfactory.com/lines/yaml.html
|
37
40
|
|
38
|
-
|
41
|
+
5. Create your line in CloudFactory
|
39
42
|
> cf line create
|
40
43
|
|
41
|
-
|
44
|
+
6. Do a test production run in the sandbox first...
|
42
45
|
> cf production start TITLE -i=INPUT_DATA.CSV
|
43
46
|
|
44
|
-
|
47
|
+
7. Go live! Send your production run to real workers...
|
45
48
|
> cf production start TITLE -i=INPUT_DATA.CSV --live
|
46
49
|
|
47
50
|
------------------------------------------------------------------------------
|
@@ -66,7 +69,7 @@ EOF
|
|
66
69
|
s.add_dependency "terminal-table", "~> 1.4.2"
|
67
70
|
s.add_dependency "millisami-csv-hash"
|
68
71
|
|
69
|
-
|
72
|
+
s.add_development_dependency 'ruby-debug19'
|
70
73
|
s.add_development_dependency "aruba"
|
71
74
|
s.add_development_dependency "rails", "~> 3.0.3"
|
72
75
|
s.add_development_dependency "bundler", "~> 1.0.0"
|
data/lib/cf/cli/production.rb
CHANGED
@@ -33,7 +33,7 @@ module Cf
|
|
33
33
|
unless File.exist?(input_data)
|
34
34
|
say("The input data csv file named #{input_data} is missing.", :red) and return
|
35
35
|
end
|
36
|
-
|
36
|
+
|
37
37
|
set_target_uri(options[:live])
|
38
38
|
# before starting the run creation process, we need to make sure whether the line exists or not
|
39
39
|
# if not, then we got to first create the line and then do the production run
|
@@ -42,7 +42,6 @@ module Cf
|
|
42
42
|
CF.account_name = CF::Account.info.name
|
43
43
|
line = CF::Line.info(line_title)
|
44
44
|
input_data_path = "#{Dir.pwd}/#{input_data}"
|
45
|
-
|
46
45
|
if line.error.blank?
|
47
46
|
say "Creating a production run with title #{run_title}", :green
|
48
47
|
run = CF::Run.create(line, run_title, input_data_path)
|
@@ -1,27 +1,26 @@
|
|
1
1
|
body {background: grey;}
|
2
2
|
|
3
|
-
#instructions{
|
3
|
+
#instructions {
|
4
4
|
text-align:center;
|
5
5
|
}
|
6
6
|
|
7
|
-
#image-field-wrapper{
|
7
|
+
#image-field-wrapper {
|
8
8
|
min-width:1050px;
|
9
9
|
overflow:hidden;
|
10
10
|
}
|
11
11
|
|
12
|
-
#field-panel{
|
12
|
+
#field-panel {
|
13
13
|
float:left;
|
14
14
|
padding: 10px 10px 0 10px;
|
15
15
|
min-width:512px;
|
16
16
|
overflow:hidden;
|
17
17
|
}
|
18
18
|
|
19
|
-
.input-field{
|
19
|
+
.input-field {
|
20
20
|
width:150px;
|
21
21
|
margin:4px;
|
22
22
|
}
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
font-family: Verdana, Arial;
|
24
|
+
#gender, #age {
|
25
|
+
font-weight: bold;
|
27
26
|
}
|
@@ -1,26 +1,20 @@
|
|
1
1
|
<div id="station_2_instructions" class="station_2 cf_form_instruction">
|
2
2
|
<ul>
|
3
|
-
|
4
|
-
<li>
|
3
|
+
<li>Go to the <a href="http://www.facebook.com/search.php?type=users">people search in Facebook</a>.</li>
|
4
|
+
<li>Enter the <strong>location</strong> below and hit enter to search</li>
|
5
|
+
<li>Now go through and find the hottest date that is <span id="gender">{{gender}}</span> and looks about <span id="age">{{age}}</span> years old.</li>
|
6
|
+
<li>After you have searched through many and found the best date, paste their Facebook URL into the field below.</li>
|
5
7
|
</ul>
|
6
8
|
</div>
|
7
9
|
|
8
10
|
<div id="station_2_form" class="station_2 cf_form_content">
|
9
|
-
<label>{{ceo-name}}</label>
|
10
|
-
<label>{{company}}</label>
|
11
|
-
|
12
11
|
<div id = "field-panel">
|
13
12
|
<p>
|
14
|
-
<
|
15
|
-
|
16
|
-
<
|
17
|
-
<
|
18
|
-
|
19
|
-
</select>
|
20
|
-
</p>
|
21
|
-
<p>
|
22
|
-
<label>University</label>
|
23
|
-
<input id="university" type="text" name="output[university]" data-valid-type="general" />
|
13
|
+
<form>
|
14
|
+
<label>Facebook Profile URL of hottest date found</label><br />
|
15
|
+
<input id="fb_url" type="text" name="output[fb_url]" data-valid-type="general" /></br>
|
16
|
+
<input type="submit" value="submit" />
|
17
|
+
</form>
|
24
18
|
</p>
|
25
19
|
</div>
|
26
20
|
</div>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<script src="http://code.jquery.com/jquery-latest.js"></script>
|
2
2
|
|
3
3
|
<script type="text/javascript">
|
4
|
-
$(document).ready(function(){
|
5
|
-
|
4
|
+
$(document).ready(function() {
|
5
|
+
($('span#gender').text().toLowerCase() == "female") ? "MALE":"FEMALE"
|
6
6
|
});
|
7
7
|
</script>
|
@@ -1,67 +1,91 @@
|
|
1
1
|
# ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁
|
2
2
|
# Assembly Line: <%= title.underscore.dasherize %>
|
3
3
|
# ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁
|
4
|
-
# See docs at http://
|
5
|
-
# See
|
6
|
-
#
|
7
|
-
# api_key: fill_in_your_api_key #(optional)
|
4
|
+
# See docs at http://cloudfactory.com/developers/lines/yaml.html
|
5
|
+
# See example lines at http://cloudfactory.com/developers/lines/examples.html
|
6
|
+
# Run `cf login` OR manually specify your API key below (See http://cloudfactory.com/developers/account#settings)
|
7
|
+
# api_key: fill_in_your_api_key #(optional)
|
8
|
+
|
8
9
|
title: <%= title.underscore.dasherize %>
|
9
|
-
description: A
|
10
|
-
department: Data Processing #Digitization, Web Research, etc
|
10
|
+
description: A shiny new assembly line ready for you to customize. Right now it is finding people dates (uncomment and try for fun) but you should just replace everything below accordingly for your line.
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
# - name: company
|
15
|
-
# required: true
|
16
|
-
# valid_type: general #general, url, date, email, ...
|
12
|
+
# Department to build line in (See http://cloudfactory.com/developers/lines/yaml.html#departments)
|
13
|
+
department: Web Research
|
17
14
|
|
18
|
-
|
19
|
-
|
20
|
-
#
|
15
|
+
# Line Input Formats (see http://cloudfactory.com/developers/lines/yaml.html#line-input-formats)
|
16
|
+
input_formats:
|
17
|
+
# - name: email
|
18
|
+
# required: true
|
19
|
+
# valid_type: email # general, url, date, email, ...
|
20
|
+
# - name: location
|
21
|
+
# required: true
|
22
|
+
# valid_type: general # general, url, date, email, ...
|
23
|
+
# - name: photo
|
24
|
+
# required: true
|
25
|
+
# valid_type: url # general, url, date, email, ...
|
26
|
+
#
|
27
|
+
# # Stations (see http://cloudfactory.com/developers/lines/yaml.html#stations)
|
28
|
+
stations:
|
29
|
+
# # Sample Station #1: WORKER looks at photo of person seeking a date and determines their gender and approximate age
|
21
30
|
# - station:
|
22
31
|
# station_index: 1
|
23
|
-
# station_type: work
|
24
|
-
# # Worker (see http://
|
32
|
+
# station_type: work # work, improve, tournament
|
33
|
+
# # Worker (see http://cloudfactory.com/developers/lines/yaml.html#workers)
|
25
34
|
# worker:
|
26
|
-
# worker_type: human
|
27
|
-
# num_workers:
|
35
|
+
# worker_type: human # "human" or name of robot (google_translate_robot, etc)
|
36
|
+
# num_workers: 1
|
28
37
|
# reward: 5
|
29
|
-
# # Task Form (see http://
|
38
|
+
# # Task Form (see http://cloudfactory.com/developers/lines/yaml.html#task-forms)
|
30
39
|
# task_form:
|
31
|
-
# form_title:
|
32
|
-
# instruction:
|
40
|
+
# form_title: Look at a photo to determine the person's gender and approximate age
|
41
|
+
# instruction: Click the photo link and then enter the person's gender and approximate age in the form below
|
33
42
|
# form_fields:
|
34
|
-
# - label:
|
35
|
-
# field_type:
|
43
|
+
# - label: Gender
|
44
|
+
# field_type: RB
|
36
45
|
# required: true
|
37
|
-
#
|
38
|
-
#
|
46
|
+
# option_values:
|
47
|
+
# - male
|
48
|
+
# - female
|
49
|
+
# - not sure
|
50
|
+
# - label: Age
|
51
|
+
# field_type: SB
|
39
52
|
# required: true
|
40
|
-
|
41
|
-
#
|
42
|
-
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
# worker:
|
47
|
-
# worker_type: google_translate_robot #"human" or name of robot (content_scraper_robot, etc)
|
48
|
-
# # Robot Settings (see http://developers.cloudfactory.com/robots/)
|
49
|
-
# settings:
|
50
|
-
# data: ["{sentence}"]
|
51
|
-
# from: en
|
52
|
-
# to: fr
|
53
|
+
# option_values:
|
54
|
+
# - Under 18
|
55
|
+
# - 18 to 30
|
56
|
+
# - 30 to 45
|
57
|
+
# - 45 to 60
|
58
|
+
# - Over 60
|
53
59
|
#
|
54
|
-
# # Sample Station #
|
60
|
+
# # Sample Station #2: TOURNAMENT to find the best local person on facebook that matches the right gender and age
|
55
61
|
# - station:
|
56
|
-
# station_index:
|
57
|
-
# station_type: tournament
|
62
|
+
# station_index: 2
|
63
|
+
# station_type: tournament # work, improve, tournament
|
64
|
+
# jury_worker:
|
65
|
+
# max_judges: 8
|
66
|
+
# reward: 3
|
67
|
+
# auto_judge:
|
68
|
+
# enabled: true
|
58
69
|
# worker:
|
59
|
-
# worker_type: human
|
60
|
-
# num_workers:
|
70
|
+
# worker_type: human # "human" or name of robot (google_translate_robot, etc)
|
71
|
+
# num_workers: 3
|
61
72
|
# reward: 3
|
62
73
|
# custom_task_form:
|
63
|
-
# form_title:
|
64
|
-
# instruction:
|
74
|
+
# form_title: Do a search on Facebook
|
75
|
+
# instruction: Search on Facebook to find the best date in a certain location and age group
|
65
76
|
# html: form.html
|
66
77
|
# css: form.css
|
67
|
-
# js: form.js
|
78
|
+
# js: form.js
|
79
|
+
#
|
80
|
+
# # Sample Station #3: ROBOT to email the person seeking a date with their recommended match!
|
81
|
+
# - station:
|
82
|
+
# station_index: 3
|
83
|
+
# station_type: work # work, improve, tournament
|
84
|
+
# # Worker (see http://cloudfactory.com/developers/lines/yaml.html#workers)
|
85
|
+
# worker:
|
86
|
+
# worker_type: mailer_robot
|
87
|
+
# settings:
|
88
|
+
# to: {{email}}
|
89
|
+
# template: '<html><body><h1>We have searched high and low to find a sweet date for you. Now the rest is up to you - head to their facebook page and request them as a friend: {{fb_url}}</h1><p>Good luck!!!!</p></body></html>'
|
90
|
+
# template_variables:
|
91
|
+
# fb_url: {{fb_url}}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
email,location,photo
|
2
|
+
mjdavidson@gmail.com,Jacksonville, http://www.studio757blog.com/wp-content/uploads/2008/03/copy-of-3617-500x3001.jpg
|
3
|
+
johndavid13@yahoo.com,San Diego, http://us.123rf.com/400wm/400/400/dotshock/dotshock1104/dotshock110400439/9404522-casual-young-man-portrait-waiting-for-date-outdoor-in-nature-at-beautiful-sunny-spring-day.jpg
|
data/lib/cf/run.rb
CHANGED
@@ -32,7 +32,7 @@ module CF
|
|
32
32
|
#
|
33
33
|
# run = CF::Run.new(line, "run name", File.expand_path("../../fixtures/input_data/test.csv", __FILE__))
|
34
34
|
def initialize(line, title, input)
|
35
|
-
if line.class == CF::Line
|
35
|
+
if line.class == CF::Line || Hashie::Mash
|
36
36
|
@line = line
|
37
37
|
@line_title = @line.title
|
38
38
|
else
|
data/lib/cf/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudfactory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-08-
|
12
|
+
date: 2011-08-10 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
16
|
-
requirement: &
|
16
|
+
requirement: &2154589380 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2154589380
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: activesupport
|
27
|
-
requirement: &
|
27
|
+
requirement: &2154588880 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 3.0.3
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2154588880
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: hashie
|
38
|
-
requirement: &
|
38
|
+
requirement: &2154588380 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.0.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2154588380
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rest-client
|
49
|
-
requirement: &
|
49
|
+
requirement: &2154588000 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2154588000
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: json
|
60
|
-
requirement: &
|
60
|
+
requirement: &2154587540 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2154587540
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: thor
|
71
|
-
requirement: &
|
71
|
+
requirement: &2154587040 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 0.14.6
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2154587040
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: highline
|
82
|
-
requirement: &
|
82
|
+
requirement: &2154586620 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *2154586620
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: httparty
|
93
|
-
requirement: &
|
93
|
+
requirement: &2154586080 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 0.7.8
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *2154586080
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: terminal-table
|
104
|
-
requirement: &
|
104
|
+
requirement: &2154585580 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: 1.4.2
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *2154585580
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: millisami-csv-hash
|
115
|
-
requirement: &
|
115
|
+
requirement: &2154585200 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,21 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *2154585200
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: ruby-debug19
|
126
|
+
requirement: &2154584740 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: *2154584740
|
124
135
|
- !ruby/object:Gem::Dependency
|
125
136
|
name: aruba
|
126
|
-
requirement: &
|
137
|
+
requirement: &2154584320 !ruby/object:Gem::Requirement
|
127
138
|
none: false
|
128
139
|
requirements:
|
129
140
|
- - ! '>='
|
@@ -131,10 +142,10 @@ dependencies:
|
|
131
142
|
version: '0'
|
132
143
|
type: :development
|
133
144
|
prerelease: false
|
134
|
-
version_requirements: *
|
145
|
+
version_requirements: *2154584320
|
135
146
|
- !ruby/object:Gem::Dependency
|
136
147
|
name: rails
|
137
|
-
requirement: &
|
148
|
+
requirement: &2154583820 !ruby/object:Gem::Requirement
|
138
149
|
none: false
|
139
150
|
requirements:
|
140
151
|
- - ~>
|
@@ -142,10 +153,10 @@ dependencies:
|
|
142
153
|
version: 3.0.3
|
143
154
|
type: :development
|
144
155
|
prerelease: false
|
145
|
-
version_requirements: *
|
156
|
+
version_requirements: *2154583820
|
146
157
|
- !ruby/object:Gem::Dependency
|
147
158
|
name: bundler
|
148
|
-
requirement: &
|
159
|
+
requirement: &2154583320 !ruby/object:Gem::Requirement
|
149
160
|
none: false
|
150
161
|
requirements:
|
151
162
|
- - ~>
|
@@ -153,10 +164,10 @@ dependencies:
|
|
153
164
|
version: 1.0.0
|
154
165
|
type: :development
|
155
166
|
prerelease: false
|
156
|
-
version_requirements: *
|
167
|
+
version_requirements: *2154583320
|
157
168
|
- !ruby/object:Gem::Dependency
|
158
169
|
name: generator_spec
|
159
|
-
requirement: &
|
170
|
+
requirement: &2154582860 !ruby/object:Gem::Requirement
|
160
171
|
none: false
|
161
172
|
requirements:
|
162
173
|
- - ~>
|
@@ -164,10 +175,10 @@ dependencies:
|
|
164
175
|
version: 0.8.3
|
165
176
|
type: :development
|
166
177
|
prerelease: false
|
167
|
-
version_requirements: *
|
178
|
+
version_requirements: *2154582860
|
168
179
|
- !ruby/object:Gem::Dependency
|
169
180
|
name: rspec-rails
|
170
|
-
requirement: &
|
181
|
+
requirement: &2156141760 !ruby/object:Gem::Requirement
|
171
182
|
none: false
|
172
183
|
requirements:
|
173
184
|
- - ! '>='
|
@@ -175,10 +186,10 @@ dependencies:
|
|
175
186
|
version: '0'
|
176
187
|
type: :development
|
177
188
|
prerelease: false
|
178
|
-
version_requirements: *
|
189
|
+
version_requirements: *2156141760
|
179
190
|
- !ruby/object:Gem::Dependency
|
180
191
|
name: cucumber
|
181
|
-
requirement: &
|
192
|
+
requirement: &2156141300 !ruby/object:Gem::Requirement
|
182
193
|
none: false
|
183
194
|
requirements:
|
184
195
|
- - ! '>='
|
@@ -186,10 +197,10 @@ dependencies:
|
|
186
197
|
version: '0'
|
187
198
|
type: :development
|
188
199
|
prerelease: false
|
189
|
-
version_requirements: *
|
200
|
+
version_requirements: *2156141300
|
190
201
|
- !ruby/object:Gem::Dependency
|
191
202
|
name: rdoc
|
192
|
-
requirement: &
|
203
|
+
requirement: &2156140800 !ruby/object:Gem::Requirement
|
193
204
|
none: false
|
194
205
|
requirements:
|
195
206
|
- - ~>
|
@@ -197,10 +208,10 @@ dependencies:
|
|
197
208
|
version: 3.5.3
|
198
209
|
type: :development
|
199
210
|
prerelease: false
|
200
|
-
version_requirements: *
|
211
|
+
version_requirements: *2156140800
|
201
212
|
- !ruby/object:Gem::Dependency
|
202
213
|
name: vcr
|
203
|
-
requirement: &
|
214
|
+
requirement: &2156140380 !ruby/object:Gem::Requirement
|
204
215
|
none: false
|
205
216
|
requirements:
|
206
217
|
- - ! '>='
|
@@ -208,10 +219,10 @@ dependencies:
|
|
208
219
|
version: '0'
|
209
220
|
type: :development
|
210
221
|
prerelease: false
|
211
|
-
version_requirements: *
|
222
|
+
version_requirements: *2156140380
|
212
223
|
- !ruby/object:Gem::Dependency
|
213
224
|
name: rake
|
214
|
-
requirement: &
|
225
|
+
requirement: &2156139920 !ruby/object:Gem::Requirement
|
215
226
|
none: false
|
216
227
|
requirements:
|
217
228
|
- - ! '>='
|
@@ -219,10 +230,10 @@ dependencies:
|
|
219
230
|
version: '0'
|
220
231
|
type: :development
|
221
232
|
prerelease: false
|
222
|
-
version_requirements: *
|
233
|
+
version_requirements: *2156139920
|
223
234
|
- !ruby/object:Gem::Dependency
|
224
235
|
name: webmock
|
225
|
-
requirement: &
|
236
|
+
requirement: &2156139500 !ruby/object:Gem::Requirement
|
226
237
|
none: false
|
227
238
|
requirements:
|
228
239
|
- - ! '>='
|
@@ -230,7 +241,7 @@ dependencies:
|
|
230
241
|
version: '0'
|
231
242
|
type: :development
|
232
243
|
prerelease: false
|
233
|
-
version_requirements: *
|
244
|
+
version_requirements: *2156139500
|
234
245
|
description: A Ruby wrapper and CLI for to interact with Cloudfactory.com REST API
|
235
246
|
email:
|
236
247
|
- info@cloudfactory.com
|
@@ -246,41 +257,6 @@ files:
|
|
246
257
|
- Rakefile
|
247
258
|
- bin/cf
|
248
259
|
- cf.gemspec
|
249
|
-
- example/google_translate_app/Gemfile
|
250
|
-
- example/google_translate_app/config.ru
|
251
|
-
- example/google_translate_app/google_translate_input.csv
|
252
|
-
- example/google_translate_app/google_translator_app.rb
|
253
|
-
- example/google_translate_app/views/index.haml
|
254
|
-
- example/google_translate_app/views/layout.haml
|
255
|
-
- example/google_translate_app/views/run.haml
|
256
|
-
- example/google_translate_app/views/style.sass
|
257
|
-
- example/human_worker_app/Gemfile
|
258
|
-
- example/human_worker_app/Gemfile.lock
|
259
|
-
- example/human_worker_app/config.ru
|
260
|
-
- example/human_worker_app/human_worker_app.rb
|
261
|
-
- example/human_worker_app/human_worker_input.csv
|
262
|
-
- example/human_worker_app/public/app.js
|
263
|
-
- example/human_worker_app/temp.csv
|
264
|
-
- example/human_worker_app/views/index.haml
|
265
|
-
- example/human_worker_app/views/layout.haml
|
266
|
-
- example/human_worker_app/views/result.haml
|
267
|
-
- example/human_worker_app/views/run.haml
|
268
|
-
- example/human_worker_app/views/style.sass
|
269
|
-
- example/sample_yaml_files/concept_tagging_robot.yaml
|
270
|
-
- example/sample_yaml_files/content_scraping_robot.yaml
|
271
|
-
- example/sample_yaml_files/entity_extraction_robot.yaml
|
272
|
-
- example/sample_yaml_files/google_translate_robot.yaml
|
273
|
-
- example/sample_yaml_files/image_processing_robot.yaml
|
274
|
-
- example/sample_yaml_files/keyword_matching_and_text_extraction_robot.yaml
|
275
|
-
- example/sample_yaml_files/mailer_robot.yaml
|
276
|
-
- example/sample_yaml_files/media_converter_robot.yaml
|
277
|
-
- example/sample_yaml_files/media_splitting_robot.yaml
|
278
|
-
- example/sample_yaml_files/multiple_skill_badge.yaml
|
279
|
-
- example/sample_yaml_files/sentiment_robot.yaml
|
280
|
-
- example/sample_yaml_files/skill_badge.yaml
|
281
|
-
- example/sample_yaml_files/stat_badge.yaml
|
282
|
-
- example/sample_yaml_files/term_extraction_robot.yaml
|
283
|
-
- example/sample_yaml_files/tournament_station_and_form_fields.yaml
|
284
260
|
- features/form_generation.feature
|
285
261
|
- features/form_preview.feature
|
286
262
|
- features/line_creation.feature
|
@@ -362,13 +338,14 @@ post_install_message: ! " ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁
|
|
362
338
|
☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁\n \n Sweet. You now have the 'cf' command installed. Test
|
363
339
|
drive it with:\n > cf help\n\n 1. Sign up for your CloudFactory account and get
|
364
340
|
your API key\n http://cloudfactory.com/users/sign_up\n Get API key from welcome
|
365
|
-
email or http://cloudfactory.com/account#settings\n\n 2.
|
366
|
-
|
367
|
-
design your perfect assembly
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
TITLE -i=INPUT_DATA.CSV
|
341
|
+
email or http://cloudfactory.com/account#settings\n\n 2. Login with your credentials\n
|
342
|
+
\ > cf login\n \n 3. Generate your first assembly line...\n > cf line generate
|
343
|
+
<line-title>\n\n 4. Edit the generated line.yml to design your perfect assembly
|
344
|
+
line\n See http://developers.cloudfactory.com/lines/yaml.html\n\n 5. Create your
|
345
|
+
line in CloudFactory\n > cf line create\n\n 6. Do a test production run in the
|
346
|
+
sandbox first...\n > cf production start TITLE -i=INPUT_DATA.CSV\n\n 7. Go live!
|
347
|
+
Send your production run to real workers...\n > cf production start TITLE -i=INPUT_DATA.CSV
|
348
|
+
--live\n \n ------------------------------------------------------------------------------\n
|
372
349
|
\n Follow @thecloudfactory on Twitter for announcements, updates, and news.\n https://twitter.com/thecloudfactory\n\n
|
373
350
|
\ Add your project or organization to the apps wiki!\n https://github.com/sprout/cloudfactory_ruby/wiki/Apps\n
|
374
351
|
\ \n ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁
|