akabei 0.3.0 → 0.3.1

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: 714ce0c1f0f26800d43745ab916973a83d66f13b
4
- data.tar.gz: 663049f39fedbb24acc729035a6809c615a66fce
3
+ metadata.gz: b52715966949f94250368a16c4bd3c52e315ebbb
4
+ data.tar.gz: b82857ce42354c89e40c88e81573f333ce934d60
5
5
  SHA512:
6
- metadata.gz: 68684dbf90c74d3582fc1277a5a046350e98f9c27ab2c9a7caf7f8542fae553d953965996a58f0a5f68078b6d6d4cb5a6f281983536ece9c48555790d628870d
7
- data.tar.gz: d4e2bf3a2d56cb0410942aaa10324c24e27e3aec3dc27e83632ad819bc36da35e674cb1e417dc0ed972f36dd14d94dc61acdbc9a78d8a8b037f2c7e473967f6b
6
+ metadata.gz: 215640dc7cc202890f94f5f5ed31c595e7d6c73820ad9bd98ec4e5ff060cfd6914b1481db8590c39b66c3ce9f6c82530b9559a0bb4a75928c7194845d24ad365
7
+ data.tar.gz: 3d30af33b9d62e4b73a39e210ec279d6233df0b1dc9edb24d0036a71349511133f02d534131773dc89e212a057df305d2fd466aa34513de752c57c268ba913e9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.3.1 (2014-01-24)
2
+ - Fix typo in Akabei::Signer::KeyNotFound
3
+ - Create destination directories if missing
4
+
1
5
  # 0.3.0 (2014-01-23)
2
6
  - Add `akabei omakase remove` command
3
7
  - Add `akabei version` command
@@ -36,6 +36,7 @@ module Akabei
36
36
  end
37
37
 
38
38
  def gather_packages(tmp_pkgdest)
39
+ pkgdest.mkpath
39
40
  tmp_pkgdest.each_child.map do |package_path|
40
41
  dest = pkgdest.join(package_path.basename)
41
42
  copy_and_sign_package(package_path, dest)
@@ -67,6 +68,7 @@ module Akabei
67
68
  block.call
68
69
  end
69
70
  else
71
+ old_dir.mkpath
70
72
  block.call
71
73
  end
72
74
  ensure
data/lib/akabei/signer.rb CHANGED
@@ -5,7 +5,7 @@ module Akabei
5
5
  class Signer
6
6
  class KeyNotFound < Error
7
7
  attr_reader :key_name
8
- def initialize(key)_name
8
+ def initialize(key_name)
9
9
  @key_name = key_name
10
10
  super("No such GPG key: #{key_name}")
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Akabei
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -4,7 +4,7 @@ require 'akabei/signer'
4
4
 
5
5
  describe Akabei::Builder do
6
6
  let(:builder) { described_class.new(pkgdest: pkgdest) }
7
- let(:pkgdest) { test_dest('packages').tap(&:mkpath) }
7
+ let(:pkgdest) { test_dest('packages') }
8
8
  let(:package_dir) { test_dest('nkf').tap(&:mkpath) }
9
9
  let(:pkgname) { 'nkf-2.1.3-1' }
10
10
  let(:arch) { 'x86_64' }
@@ -65,7 +65,7 @@ describe Akabei::Builder do
65
65
  end
66
66
 
67
67
  context 'with srcdest' do
68
- let(:dest) { test_dest('sources').tap(&:mkpath) }
68
+ let(:dest) { test_dest('sources') }
69
69
 
70
70
  before do
71
71
  builder.srcdest = dest
@@ -78,7 +78,7 @@ describe Akabei::Builder do
78
78
  end
79
79
 
80
80
  context 'with logdest' do
81
- let(:dest) { test_dest('logs').tap(&:mkpath) }
81
+ let(:dest) { test_dest('logs') }
82
82
 
83
83
  before do
84
84
  builder.logdest = dest
@@ -45,7 +45,7 @@ describe 'build subcommand', :archlinux do
45
45
  end
46
46
 
47
47
  context 'with --srcdest' do
48
- let(:srcdest) { test_dest('sources').tap(&:mkpath) }
48
+ let(:srcdest) { test_dest('sources') }
49
49
  let(:build_command) { base_command + ['--srcdest', srcdest.to_s] }
50
50
 
51
51
  it 'stores sources' do
@@ -55,7 +55,7 @@ describe 'build subcommand', :archlinux do
55
55
  end
56
56
 
57
57
  context 'with --logdest' do
58
- let(:logdest) { test_dest('logs').tap(&:mkpath) }
58
+ let(:logdest) { test_dest('logs') }
59
59
  let(:build_command) { base_command + ['--logdest', logdest.to_s] }
60
60
 
61
61
  it 'stores logs' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akabei
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei Suzuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-22 00:00:00.000000000 Z
11
+ date: 2014-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gpgme