cloud-crowd 0.7.0 → 0.7.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a38547aad32d857200204b7fcb9e0a25f6c13861
4
- data.tar.gz: 644c72ddf7e97a8d130f6ec2116c91f2ad0fd855
3
+ metadata.gz: 9f881c2662b37b888ae7f2879e7fa1a55cc6f5a2
4
+ data.tar.gz: 943946e48251445f413bb14a62f6eddcda212008
5
5
  SHA512:
6
- metadata.gz: 35c026269d179f4a6b86677faeff241a528fe81246b0f5ad02e3e04c7a5b245742f2fce4e1972ebcb716dff150b8a310a9baf145cc90098a1c3a0a006c21ee65
7
- data.tar.gz: e9975da19d0c731288eca031216e4e528a35fe41b2d313176fe577b6049f6259c4d6200a9e02b6d59eaa6d11d90b7c05ba7673fc21da1560214ddf1baf25f33d
6
+ metadata.gz: 2ae8ab76fdc5cc9157a82717c3edd2b48c7ae5ec1e23f04fbc4babebc5421232ff6d417acd7dc6be668f682edad577ae6df8cece452d5307ee0382d20a8a7527
7
+ data.tar.gz: 2df7d0d9e2b9139c71f67ba2f782d7f31c2ab61908d9b6434f3e144a6745fc20159f8b1ad4217a0e045b3fe7dc92bb88fce5b516540ea9211016c9921a1f54a3
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'cloud-crowd'
3
- s.version = '0.7.0' # Keep version in sync with cloud-cloud.rb
4
- s.date = '2014-03-29'
3
+ s.version = '0.7.1' # Keep version in sync with cloud-cloud.rb
4
+ s.date = '2014-04-05'
5
5
 
6
6
  s.homepage = "http://wiki.github.com/documentcloud/cloud-crowd"
7
7
  s.summary = "Parallel Processing for the Rest of Us"
@@ -28,76 +28,36 @@ Gem::Specification.new do |s|
28
28
  '--main' << 'README' <<
29
29
  '--all'
30
30
 
31
- s.files = %w(
32
- actions/graphics_magick.rb
33
- actions/process_pdfs.rb
34
- actions/word_count.rb
35
- cloud-crowd.gemspec
36
- config/config.example.ru
37
- config/config.example.yml
38
- config/database.example.yml
39
- EPIGRAPHS
40
- examples/graphics_magick_example.rb
41
- examples/process_pdfs_example.rb
42
- examples/word_count_example.rb
43
- lib/cloud-crowd.rb
44
- lib/cloud_crowd/action.rb
45
- lib/cloud_crowd/asset_store/filesystem_store.rb
46
- lib/cloud_crowd/asset_store/s3_store.rb
47
- lib/cloud_crowd/asset_store/cloudfiles_store.rb
48
- lib/cloud_crowd/asset_store.rb
49
- lib/cloud_crowd/command_line.rb
50
- lib/cloud_crowd/exceptions.rb
51
- lib/cloud_crowd/helpers/authorization.rb
52
- lib/cloud_crowd/helpers/resources.rb
53
- lib/cloud_crowd/helpers.rb
54
- lib/cloud_crowd/inflector.rb
55
- lib/cloud_crowd/models/job.rb
56
- lib/cloud_crowd/models/node_record.rb
57
- lib/cloud_crowd/models/work_unit.rb
58
- lib/cloud_crowd/models.rb
59
- lib/cloud_crowd/node.rb
60
- lib/cloud_crowd/schema.rb
61
- lib/cloud_crowd/server.rb
62
- lib/cloud_crowd/worker.rb
63
- LICENSE
64
- public/css/admin_console.css
65
- public/css/reset.css
66
- public/images/bullet_green.png
67
- public/images/bullet_white.png
68
- public/images/cloud_hand.png
69
- public/images/header_back.png
70
- public/images/logo.png
71
- public/images/queue_fill.png
72
- public/images/server.png
73
- public/images/server_busy.png
74
- public/images/server_error.png
75
- public/images/sidebar_bottom.png
76
- public/images/sidebar_top.png
77
- public/images/worker_info.png
78
- public/images/worker_info_loading.gif
79
- public/js/admin_console.js
80
- public/js/excanvas.js
81
- public/js/flot.js
82
- public/js/jquery.js
83
- README
84
- test/acceptance/test_node.rb
85
- test/acceptance/test_failing_work_units.rb
86
- test/acceptance/test_server.rb
87
- test/acceptance/test_word_count.rb
88
- test/blueprints.rb
89
- test/config/config.ru
90
- test/config/config.yml
91
- test/config/database.yml
92
- test/config/actions/failure_testing.rb
93
- test/test_helper.rb
94
- test/unit/test_action.rb
95
- test/unit/test_configuration.rb
96
- test/unit/test_node.rb
97
- test/unit/test_node_record.rb
98
- test/unit/test_job.rb
99
- test/unit/test_worker.rb
100
- test/unit/test_work_unit.rb
101
- views/operations_center.erb
102
- )
31
+ s.add_dependency 'activerecord', '>=3.0'
32
+ s.add_dependency 'sinatra'
33
+ s.add_dependency 'active_model_serializers'
34
+ s.add_dependency 'json', ['>= 1.1.7']
35
+ s.add_dependency 'rest-client', ['>= 1.4']
36
+ s.add_dependency 'thin', ['>= 1.2.4']
37
+ s.add_dependency 'rake'
38
+
39
+ if s.respond_to?(:add_development_dependency)
40
+ s.add_development_dependency 'faker', ['>= 0.3.1']
41
+ s.add_development_dependency 'shoulda'
42
+ s.add_development_dependency 'machinist', ['>= 1.0.3']
43
+ s.add_development_dependency 'rack-test', ['>= 0.4.1']
44
+ s.add_development_dependency 'mocha', ['>= 0.9.7']
45
+ end
46
+
47
+ s.files = Dir[
48
+ 'actions/**/*.rb',
49
+ 'cloud-crowd.gemspec',
50
+ 'config/**/*.example.*',
51
+ 'EPIGRAPHS',
52
+ 'examples/**/*.rb',
53
+ 'lib/**/*.rb',
54
+ 'LICENSE',
55
+ 'public/**/*.{js,css,ico,png,gif}',
56
+ 'README',
57
+ 'test/**/*.{rb,ru,yml}',
58
+ 'views/**/*.erb'
59
+ ]
60
+
61
+
62
+
103
63
  end
@@ -47,7 +47,7 @@ module CloudCrowd
47
47
  autoload :WorkUnit, 'cloud_crowd/models'
48
48
 
49
49
  # Keep this version in sync with the gemspec.
50
- VERSION = '0.7.0'
50
+ VERSION = '0.7.1'
51
51
 
52
52
  # Increment the schema version when there's a backwards incompatible change.
53
53
  SCHEMA_VERSION = 4
@@ -23,7 +23,7 @@ module CloudCrowd
23
23
  before_destroy :cleanup_assets
24
24
 
25
25
  # Jobs that were last updated more than N days ago.
26
- scope :older_than, lambda {|num| {:conditions => ['updated_at < ?', num.days.ago]} }
26
+ scope :older_than, ->(num){ where ['updated_at < ?', num.days.ago] }
27
27
 
28
28
  # Create a Job from an incoming JSON request, and add it to the queue.
29
29
  def self.create_from_request(h)
Binary file
@@ -0,0 +1,7 @@
1
+ class EchoAction < CloudCrowd::Action
2
+
3
+ def process
4
+ save(input_path)
5
+ end
6
+
7
+ end
@@ -0,0 +1,31 @@
1
+ require 'test_helper'
2
+
3
+ class CommandLineTest < Test::Unit::TestCase
4
+
5
+ context "A CloudCrowd::CommandLine" do
6
+
7
+ should "install into the directory that you ask it to" do
8
+ dir = 'tmp/test_install_dir'
9
+ ARGV.replace ['install', dir]
10
+ CloudCrowd::CommandLine.new
11
+ assert File.exists?(dir)
12
+ assert File.directory?(dir)
13
+ CloudCrowd::CommandLine::CONFIG_FILES.each do |file|
14
+ assert File.exists?("#{dir}/#{file}")
15
+ end
16
+ FileUtils.rm_r(dir)
17
+ end
18
+
19
+ should "mix in CloudCrowd to the top level of `crowd console` sessions" do
20
+ require 'irb'
21
+ ARGV.replace ['-c', 'test/config', 'console']
22
+ IRB.expects(:start)
23
+ CloudCrowd::CommandLine.new
24
+ ['Job', 'WorkUnit', 'Server', 'Node', 'SUCCEEDED', 'FAILED'].each do |constant|
25
+ assert Object.constants.include?(constant.to_sym), "CommandLine includes #{constant}"
26
+ end
27
+ end
28
+
29
+ end
30
+
31
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud-crowd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Ashkenas
@@ -9,8 +9,176 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-29 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2014-04-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activerecord
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '3.0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '3.0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: sinatra
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: active_model_serializers
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: json
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 1.1.7
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: 1.1.7
70
+ - !ruby/object:Gem::Dependency
71
+ name: rest-client
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '1.4'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '1.4'
84
+ - !ruby/object:Gem::Dependency
85
+ name: thin
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 1.2.4
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: 1.2.4
98
+ - !ruby/object:Gem::Dependency
99
+ name: rake
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: faker
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: 0.3.1
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: 0.3.1
126
+ - !ruby/object:Gem::Dependency
127
+ name: shoulda
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: machinist
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: 1.0.3
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: 1.0.3
154
+ - !ruby/object:Gem::Dependency
155
+ name: rack-test
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: 0.4.1
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: 0.4.1
168
+ - !ruby/object:Gem::Dependency
169
+ name: mocha
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: 0.9.7
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: 0.9.7
14
182
  description: |2
15
183
  The crowd, suddenly there where there was nothing before, is a mysterious and
16
184
  universal phenomenon. A few people may have been standing together -- five, ten
@@ -60,6 +228,7 @@ files:
60
228
  - lib/cloud_crowd/worker.rb
61
229
  - public/css/admin_console.css
62
230
  - public/css/reset.css
231
+ - public/favicon.ico
63
232
  - public/images/bullet_green.png
64
233
  - public/images/bullet_white.png
65
234
  - public/images/cloud_hand.png
@@ -82,12 +251,14 @@ files:
82
251
  - test/acceptance/test_server.rb
83
252
  - test/acceptance/test_word_count.rb
84
253
  - test/blueprints.rb
254
+ - test/config/actions/custom/echo_action.rb
85
255
  - test/config/actions/failure_testing.rb
86
256
  - test/config/config.ru
87
257
  - test/config/config.yml
88
258
  - test/config/database.yml
89
259
  - test/test_helper.rb
90
260
  - test/unit/test_action.rb
261
+ - test/unit/test_command_line.rb
91
262
  - test/unit/test_configuration.rb
92
263
  - test/unit/test_job.rb
93
264
  - test/unit/test_node.rb