packager-dsl 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 858af8b908494438e9fca696b3c2fcb6ed537bb1
4
- data.tar.gz: 3bead42fccf5cb4b3c3d2b886a6582e4a49fdc90
3
+ metadata.gz: f37ca22d5284e5a2e98f3313fb0c2d8dc226f727
4
+ data.tar.gz: 36801466d13b1b374f951f653237f23cb09c5eb5
5
5
  SHA512:
6
- metadata.gz: e567683893133ea032c47a24eafbe4965aeb5b05816be09eb35a64736fffe51da6d160ea142385c4dcaa56ed7f0cc1d9c364dea34acbb10d855d0e2d7f41bd76
7
- data.tar.gz: a6f8a4664fd0e7ccad28a6cb3c71efa263aa6f15e3272a1072561598a6dbd919b5219586d41d55f2cb689587a5969f8bfbda0237eab325bc154fc09c109318a9
6
+ metadata.gz: 54a724e39a81ec9cd4812ed4b465ed06b4a89834e8f48f7cebc8f2bd0f211ee0d869d559c681285982c5259b1e6abe83c8ccd061ea6abd1584445f21e30af566
7
+ data.tar.gz: 83d248d079008365917650356dcdc943fc2d685136b45490f19b734fb901f956f73a490d6ef52f0314ff56128a240d53a55aa835fafdda2670d4d6a9a167a24e
data/.rspec CHANGED
File without changes
data/Changes CHANGED
@@ -1,5 +1,9 @@
1
1
  Revision history for Packager (ordered by revision number).
2
2
 
3
+ 0.1.4 Jan 14 2019
4
+ - [FIX] Fix symlink creation
5
+ - [FIX] Improve detection of fpm errors
6
+
3
7
  0.1.3 Dec 01 2018
4
8
  - [FEATURE] Add support for symbolic links.
5
9
 
data/Gemfile CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
data/bin/packager CHANGED
File without changes
data/lib/packager.rb CHANGED
File without changes
data/lib/packager/cli.rb CHANGED
File without changes
data/lib/packager/dsl.rb CHANGED
File without changes
@@ -37,7 +37,7 @@ class Packager
37
37
  dest = (file.dest || '').gsub /^\//, ''
38
38
  FileUtils.mkdir_p File.dirname(dest)
39
39
  if file.link
40
- FileUtils.ln_s(file.source, dest)
40
+ FileUtils.ln_s(file.source, dest, force: true)
41
41
  else
42
42
  FileUtils.cp_r(file.source, dest)
43
43
  end
@@ -75,6 +75,7 @@ class Packager
75
75
  x = `#{cmd.to_system.join(' ')}`
76
76
  rv = eval(x)
77
77
  raise rv[:error] if rv[:error]
78
+ raise rv[:message] if rv[:level] == :error
78
79
  return rv[:path]
79
80
  end
80
81
  end
File without changes
@@ -1,3 +1,3 @@
1
1
  class Packager
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
data/on_what.rb CHANGED
File without changes
data/packager.gemspec CHANGED
File without changes
data/spec/cli/context.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/spec/dsl/context.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -6,7 +6,7 @@ describe Packager::Executor do
6
6
  end
7
7
 
8
8
  context "#execute_command" do
9
- it "handles errors" do
9
+ it "handles errors indicated by the presence of :error key" do
10
10
  cmd = Packager::Struct::TestCommand.new(
11
11
  :command => ["echo '{:error=>\"foo\"}'"]
12
12
  )
@@ -15,6 +15,15 @@ describe Packager::Executor do
15
15
  }.to raise_error('foo')
16
16
  end
17
17
 
18
+ it "handles errors indicated by the presence of :level=>:error" do
19
+ cmd = Packager::Struct::TestCommand.new(
20
+ :command => ["echo '{:message=>\"foo\", :level=>:error}'"]
21
+ )
22
+ expect {
23
+ subject.execute_command(cmd)
24
+ }.to raise_error('foo')
25
+ end
26
+
18
27
  it "handles success" do
19
28
  cmd = Packager::Struct::TestCommand.new(
20
29
  :command => ["echo '{:path=>\"foo\"}'"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/spec/spec_helper.rb CHANGED
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packager-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Kinyon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-02 00:00:00.000000000 Z
11
+ date: 2019-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dsl_maker