vulcan 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -16,12 +16,13 @@ A build server in the cloud.
16
16
  vulcan build
17
17
 
18
18
  Options:
19
- -c, [--command=COMMAND] # the command to run for compilation
20
- -n, [--name=NAME] # the name of the library (defaults ot the directory name)
21
- -o, [--output=OUTPUT] # output build artifacts to this file
22
- -p, [--prefix=PREFIX] # the build/install --prefix of the software
23
- -s, [--source=SOURCE] # the source directory to build from
24
- -v, [--verbose] # show the full build output
19
+ -c, [--command=COMMAND] # the command to run for compilation
20
+ -n, [--name=NAME] # the name of the library (defaults to the directory name)
21
+ -o, [--output=OUTPUT] # output build artifacts to this file
22
+ -p, [--prefix=PREFIX] # the build/install --prefix of the software
23
+ -s, [--source=SOURCE] # the source directory to build from
24
+ -d, [--deps=one two three] # urls of vulcan compiled libraries to build with
25
+ -v, [--verbose] # show the full build output
25
26
 
26
27
  build a piece of software for the heroku cloud using COMMAND as a build command
27
28
  if no COMMAND is specified, a sensible default will be chosen for you
data/lib/vulcan/cli.rb CHANGED
@@ -21,11 +21,11 @@ if no COMMAND is specified, a sensible default will be chosen for you
21
21
  DESC
22
22
 
23
23
  method_option :command, :aliases => "-c", :desc => "the command to run for compilation"
24
- method_option :name, :aliases => "-n", :desc => "the name of the library (defaults ot the directory name)"
24
+ method_option :name, :aliases => "-n", :desc => "the name of the library (defaults to the directory name)"
25
25
  method_option :output, :aliases => "-o", :desc => "output build artifacts to this file"
26
26
  method_option :prefix, :aliases => "-p", :desc => "the build/install --prefix of the software"
27
27
  method_option :source, :aliases => "-s", :desc => "the source directory to build from"
28
- method_option :deps, :aliases => "-d", :desc => "other vulcan compiled libraries to build with"
28
+ method_option :deps, :aliases => "-d", :desc => "urls of vulcan compiled libraries to build with", :type=>:array
29
29
  method_option :verbose, :aliases => "-v", :desc => "show the full build output", :type => :boolean
30
30
 
31
31
  def build
@@ -36,7 +36,7 @@ if no COMMAND is specified, a sensible default will be chosen for you
36
36
  output = options[:output] || "/tmp/#{name}.tgz"
37
37
  prefix = options[:prefix] || "/app/vendor/#{name}"
38
38
  command = options[:command] || "./configure --prefix #{prefix} && make install"
39
- deps = options[:deps] || ""
39
+ deps = options[:deps] || []
40
40
  server = URI.parse(ENV["MAKE_SERVER"] || "http://#{app}.herokuapp.com")
41
41
 
42
42
  Dir.mktmpdir do |dir|
@@ -123,7 +123,6 @@ update the build server
123
123
  FileUtils.cp_r "#{server_path}/.", "."
124
124
  File.open(".gitignore", "w") do |file|
125
125
  file.puts ".env"
126
- file.puts "node_modules"
127
126
  end
128
127
 
129
128
  %x{ env BUNDLE_GEMFILE= heroku config:remove BUILDPACK_URL 2>&1 }
@@ -169,7 +168,7 @@ private
169
168
  def server_path
170
169
  File.expand_path("../../../server", __FILE__)
171
170
  end
172
-
171
+
173
172
  #
174
173
  # heroku_git_domain checks to see if the heroku-accounts plugin is present,
175
174
  # and if so, it will set the domain to the one that matches the credentials
@@ -1,5 +1,5 @@
1
1
  module Vulcan
2
2
 
3
- VERSION = "0.5.0"
3
+ VERSION = "0.6.0"
4
4
 
5
5
  end
data/server/bin/make CHANGED
@@ -20,13 +20,13 @@ Dir.mktmpdir do |dir|
20
20
 
21
21
  command = doc["command"]
22
22
  prefix = doc["prefix"]
23
- deps = doc["deps"] || ""
23
+ deps = doc["deps"] || []
24
24
 
25
25
  File.open("input.tgz", "wb") do |file|
26
26
  file.print doc.fetch_attachment("input")
27
27
  end
28
28
 
29
- deps.split(",").each_with_index do |dep, index|
29
+ deps.each_with_index do |dep, index|
30
30
  puts "downloading #{dep}"
31
31
  File.open("dep_#{index}.tgz", "wb") do |file|
32
32
  begin
@@ -40,7 +40,7 @@ Dir.mktmpdir do |dir|
40
40
  FileUtils.mkdir_p "deps"
41
41
 
42
42
  Dir.chdir("deps") do
43
- deps.split(",").each_with_index do |dep, index|
43
+ deps.each_with_index do |dep, index|
44
44
  %x{ tar xzf ../dep_#{index}.tgz 2>&1 }
45
45
  end
46
46
  end
File without changes
data/server/package.json CHANGED
@@ -10,6 +10,7 @@
10
10
  "restler": "2.x.x"
11
11
  },
12
12
  "engines": {
13
- "node": "0.6.x"
13
+ "node": "0.6.12",
14
+ "npm": "1.1.4"
14
15
  }
15
16
  }
data/server/web.js CHANGED
@@ -53,7 +53,7 @@ app.post('/make', function(request, response, next) {
53
53
  var id = uuid();
54
54
  var command = fields.command;
55
55
  var prefix = fields.prefix;
56
- var deps = fields.deps;
56
+ var deps = JSON.parse(fields.deps);
57
57
 
58
58
  // create a couchdb documents for this build
59
59
  log_action(id, 'saving to couchdb');
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vulcan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
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: 2012-03-22 00:00:00.000000000 Z
12
+ date: 2012-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: heroku
16
- requirement: &70318115078740 !ruby/object:Gem::Requirement
16
+ requirement: &70249862502880 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.20.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70318115078740
24
+ version_requirements: *70249862502880
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: multipart-post
27
- requirement: &70318115075980 !ruby/object:Gem::Requirement
27
+ requirement: &70249862501960 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.1.3
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70318115075980
35
+ version_requirements: *70249862501960
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rest-client
38
- requirement: &70318115073940 !ruby/object:Gem::Requirement
38
+ requirement: &70249862501440 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.6.7
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70318115073940
46
+ version_requirements: *70249862501440
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: thor
49
- requirement: &70318115072520 !ruby/object:Gem::Requirement
49
+ requirement: &70249862500920 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 0.14.6
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70318115072520
57
+ version_requirements: *70249862500920
58
58
  description: Build software in the cloud
59
59
  email: ddollar@gmail.com
60
60
  executables:
@@ -68,8 +68,6 @@ files:
68
68
  - lib/vulcan.rb
69
69
  - README.md
70
70
  - server/bin/make
71
- - server/lib/on.js
72
- - server/lib/spawner.js
73
71
  - server/node_modules/connect-form/History.md
74
72
  - server/node_modules/connect-form/index.html
75
73
  - server/node_modules/connect-form/index.js
@@ -91,8 +89,6 @@ files:
91
89
  - server/node_modules/connect-form/node_modules/formidable/Readme.md
92
90
  - server/node_modules/connect-form/node_modules/formidable/test/common.js
93
91
  - server/node_modules/connect-form/node_modules/formidable/test/fast/test-incoming-form.js
94
- - ! 'server/node_modules/connect-form/node_modules/formidable/test/fixture/file/:
95
- \ ? % * | " < > . ☃ ; '' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt'
96
92
  - server/node_modules/connect-form/node_modules/formidable/test/fixture/file/plain.txt
97
93
  - server/node_modules/connect-form/node_modules/formidable/test/fixture/http/no-filename/generic.http
98
94
  - server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/info.md
@@ -563,6 +559,7 @@ files:
563
559
  - server/node_modules/node-uuid/test/test.html
564
560
  - server/node_modules/node-uuid/test/test.js
565
561
  - server/node_modules/node-uuid/uuid.js
562
+ - server/node_modules/on/index.js
566
563
  - server/node_modules/restler/bin/restler
567
564
  - server/node_modules/restler/index.js
568
565
  - server/node_modules/restler/lib/multipartform.js
@@ -573,6 +570,7 @@ files:
573
570
  - server/node_modules/restler/test/all.js
574
571
  - server/node_modules/restler/test/restler.js
575
572
  - server/node_modules/restler/test/test_helper.js
573
+ - server/node_modules/spawner/index.js
576
574
  - server/package.json
577
575
  - server/Procfile
578
576
  - server/vendor/gems/bin/restclient