buildbox 0.6.beta3 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/buildbox/artifact.rb +14 -7
- data/lib/buildbox/artifact/collector.rb +1 -1
- data/lib/buildbox/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd9c2db4c7732cfcc285c9a21901dee7037d0115
|
4
|
+
data.tar.gz: 4edf97f67173d6a9a313d0d00a4d431418881e17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b7a96700bb42e1860654cb0933c95a94de251a246e363625a62883895b2132e13c5e76482b2f2d13ef7fae45a8dd149fa6c71dbc22062b226502a3d84d90f69
|
7
|
+
data.tar.gz: 0e2e3a5c12973da37657b5f3deb67ffec2a71645a750de2f33504064efae4081c469ec7b6fc291fbef3da7969e98459c8dc67a1c31887edb3822c8fead405f8d
|
data/Gemfile.lock
CHANGED
data/lib/buildbox/artifact.rb
CHANGED
@@ -9,14 +9,16 @@ module Buildbox
|
|
9
9
|
attr_reader :id, :name, :path
|
10
10
|
attr_accessor :remote_id, :upload_instructions
|
11
11
|
|
12
|
-
def self.create(name, path)
|
13
|
-
new(SecureRandom.uuid, name, path)
|
12
|
+
def self.create(glob_path, name, path, original_path)
|
13
|
+
new(SecureRandom.uuid, glob_path, name, path, original_path)
|
14
14
|
end
|
15
15
|
|
16
|
-
def initialize(id, name, path)
|
17
|
-
@id
|
18
|
-
@
|
19
|
-
@
|
16
|
+
def initialize(id, glob_path, name, path, original_path)
|
17
|
+
@id = id
|
18
|
+
@glob_path = glob_path
|
19
|
+
@name = name
|
20
|
+
@path = path
|
21
|
+
@original_path = original_path
|
20
22
|
end
|
21
23
|
|
22
24
|
def basename
|
@@ -24,7 +26,12 @@ module Buildbox
|
|
24
26
|
end
|
25
27
|
|
26
28
|
def as_json
|
27
|
-
{ :id
|
29
|
+
{ :id => @id,
|
30
|
+
:glob_path => @glob_path,
|
31
|
+
:name => @name,
|
32
|
+
:path => @path,
|
33
|
+
:original_path => @original_path,
|
34
|
+
:file_size => File.size(@path) }
|
28
35
|
end
|
29
36
|
end
|
30
37
|
end
|
@@ -30,7 +30,7 @@ module Buildbox
|
|
30
30
|
copy_to_path = File.join(tmpdir, file)
|
31
31
|
|
32
32
|
if File.file?(absolute_path)
|
33
|
-
artifacts << Artifact.create(file, copy_to_path)
|
33
|
+
artifacts << Artifact.create(@glob, file, copy_to_path, absolute_path)
|
34
34
|
|
35
35
|
FileUtils.mkdir_p(File.dirname(copy_to_path))
|
36
36
|
FileUtils.cp(absolute_path, copy_to_path)
|
data/lib/buildbox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6
|
4
|
+
version: '0.6'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keith Pitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -287,9 +287,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
287
287
|
version: '0'
|
288
288
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
289
289
|
requirements:
|
290
|
-
- - '
|
290
|
+
- - '>='
|
291
291
|
- !ruby/object:Gem::Version
|
292
|
-
version:
|
292
|
+
version: '0'
|
293
293
|
requirements: []
|
294
294
|
rubyforge_project:
|
295
295
|
rubygems_version: 2.0.3
|