buildbox 0.6.beta3 → 0.6

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: 6d0de360c32f22ab29259e472e4ecba54dc326aa
4
- data.tar.gz: 12631903e7780f9d7fea9ea16964fb09402e30de
3
+ metadata.gz: dd9c2db4c7732cfcc285c9a21901dee7037d0115
4
+ data.tar.gz: 4edf97f67173d6a9a313d0d00a4d431418881e17
5
5
  SHA512:
6
- metadata.gz: 211edbd383cb6b699ceef9187c18d12374ada689dbf13210b87117efdccad1bf261a8f4b7e3dcfe3bb2ea8d83c9b936dfc75a4a19a548e996cbceb49cef05f85
7
- data.tar.gz: 77e43c81f73e764bdcf432b815df5dde9d5acb92ac3c7edea20bb195cd90cb07d3f7900790ae5c03231d0456417cb8e320e06fc8a2b7ad3ddfe93b2ce3e24e38
6
+ metadata.gz: 8b7a96700bb42e1860654cb0933c95a94de251a246e363625a62883895b2132e13c5e76482b2f2d13ef7fae45a8dd149fa6c71dbc22062b226502a3d84d90f69
7
+ data.tar.gz: 0e2e3a5c12973da37657b5f3deb67ffec2a71645a750de2f33504064efae4081c469ec7b6fc291fbef3da7969e98459c8dc67a1c31887edb3822c8fead405f8d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- buildbox (0.6.beta3)
4
+ buildbox (0.6)
5
5
  celluloid (~> 0.14)
6
6
  childprocess (~> 0.3)
7
7
  faraday (~> 0.8)
@@ -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 = id
18
- @name = name
19
- @path = path
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 => @id, :name => @name, :path => @path, :file_size => File.size(@path) }
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)
@@ -1,3 +1,3 @@
1
1
  module Buildbox
2
- VERSION = "0.6.beta3"
2
+ VERSION = "0.6"
3
3
  end
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.beta3
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-13 00:00:00.000000000 Z
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: 1.3.1
292
+ version: '0'
293
293
  requirements: []
294
294
  rubyforge_project:
295
295
  rubygems_version: 2.0.3