cartage 1.1.1 → 1.2

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: 99332cf5cb65d7eb8d988bc108291b5288baada2
4
- data.tar.gz: 57d806536f14221e8f14bff191e29e0488afd424
3
+ metadata.gz: 93cd6f86971a0f549be3d3926c0af79468217630
4
+ data.tar.gz: acff341e0fccbdf7d6a96aab9faffbefcedb19a1
5
5
  SHA512:
6
- metadata.gz: 5f3443bcedfba9b6701b05e58bd1d10a91dae15b13bca04da0d2317e3f75a75955b5550cd24ff52025111c4ba9a07592e8b6a6c76d70b76aabe80fdbdc769a1b
7
- data.tar.gz: 43e8e01befc62e066107f2371369724df69cfd44418d84b014ee69768b784090aa78d72f558876fd6e8958151ee68f41d770cacbe2872433e21719cdc7db59ce
6
+ metadata.gz: b49e371c9d7c42af2a8030f3356aeaa2063e5d4cc2835dbc43886bc076988d8cb09f6139568bfdcc57784bb06655d59ee17dde75bdda4a240d09130456cab4c9
7
+ data.tar.gz: ecf1af90ef466bd692e0b671b270fa0b5cec37988bb7a5caf445126ebcb88896b339cd80cbbc4d8610fd75036fc521a1f81bd24c747d7a8a50b16a8cecd2e209
@@ -1,3 +1,17 @@
1
+ === 1.2 / 2015-05-27
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Added the chosen timestamp as the second line of the release hashref
6
+ files.
7
+
8
+ * 2 minor bugfixes:
9
+
10
+ * Fixed {#3}[https://github.com/KineticCafe/issues/3] so that spec and
11
+ feature directories are excluded by default. Provided by @jsutlovic.
12
+ * Fixed {#5}[https://github.com/KineticCafe/pulls/5] so that the manifest
13
+ * is deduplicated prior to write. Provided by @jsutlovic.
14
+
1
15
  === 1.1.1 / 2015-03-26
2
16
 
3
17
  * 1 minor bugfix
@@ -22,3 +22,4 @@ lib/cartage/plugin.rb
22
22
  test/minitest_config.rb
23
23
  test/test_cartage.rb
24
24
  test/test_cartage_config.rb
25
+ test/test_cartage_manifest.rb
data/Rakefile CHANGED
@@ -27,7 +27,6 @@ spec = Hoe.spec 'cartage' do
27
27
  self.extra_dev_deps << ['hoe-doofus', '~> 1.0']
28
28
  self.extra_dev_deps << ['hoe-gemspec2', '~> 1.1']
29
29
  self.extra_dev_deps << ['hoe-git', '~> 1.5']
30
- self.extra_dev_deps << ['hoe-geminabox', '~> 0.3']
31
30
  self.extra_dev_deps << ['hoe-travis', '~> 1.2']
32
31
  self.extra_dev_deps << ['minitest', '~> 5.4']
33
32
  self.extra_dev_deps << ['minitest-autotest', '~> 1.0']
@@ -50,9 +49,9 @@ end
50
49
  namespace :test do
51
50
  task :coverage do
52
51
  prelude = <<-EOS
53
- require "simplecov"
54
- SimpleCov.start("test_frameworks") { command_name "Minitest" }
55
- gem "minitest"
52
+ require 'simplecov'
53
+ SimpleCov.start('test_frameworks') { command_name 'Minitest' }
54
+ gem 'minitest'
56
55
  EOS
57
56
  spec.test_prelude = prelude.split($/).join('; ')
58
57
  Rake::Task['test'].execute
@@ -2,7 +2,7 @@ require 'pathname'
2
2
 
3
3
  # Cartage, a package builder.
4
4
  class Cartage
5
- VERSION = '1.1.1' #:nodoc:
5
+ VERSION = '1.2' #:nodoc:
6
6
 
7
7
  # Plug-in commands that want to return a specific exit code should use
8
8
  # Cartage::StatusError to wrap the error.
@@ -352,7 +352,10 @@ class Cartage
352
352
  ]
353
353
 
354
354
  IO.popen(command) do |show|
355
- work_path.join(filename).open('w') { |f| f.write show.read }
355
+ work_path.join(filename).open('w') { |f|
356
+ f.puts show.read
357
+ f.puts timestamp
358
+ }
356
359
  end
357
360
  end
358
361
 
@@ -111,7 +111,7 @@ or update the Manifest.txt file with the following command:
111
111
  def create_file_list(filename)
112
112
  Pathname(filename).tap { |file|
113
113
  file.open('w') { |f|
114
- f.puts prune(%x(git ls-files).split.map(&:chomp)).sort.join("\n")
114
+ f.puts prune(%x(git ls-files).split.map(&:chomp)).sort.uniq.join("\n")
115
115
  }
116
116
  }
117
117
  end
@@ -210,6 +210,12 @@ db/seeds/test/
210
210
  # db/seeds/staging/
211
211
  log/
212
212
  test/
213
+ tests/
214
+ rspec/
215
+ spec/
216
+ specs/
217
+ feature/
218
+ features/
213
219
  tmp/
214
220
  vendor/bundle/
215
221
  EOM
@@ -57,11 +57,12 @@ module Minitest::ENVStub
57
57
 
58
58
  mfile.send(:define_method, :open, &fopen)
59
59
  yield
60
- assert_equal expected, string_io.string
60
+ actual = String.new(string_io.string)
61
61
  ensure
62
62
  mfile.send(:undef_method, :open)
63
63
  mfile.send(:alias_method, :open, :__stub_open__)
64
64
  mfile.send(:undef_method, :__stub_open__)
65
+ assert_equal expected, actual
65
66
  end
66
67
 
67
68
  def stub_pathname_expand_path value, &block
@@ -0,0 +1,24 @@
1
+ require 'minitest_config'
2
+ require 'cartage/plugin'
3
+ require 'cartage/command'
4
+ require 'cartage/manifest'
5
+
6
+ describe Cartage::Manifest do
7
+ before do
8
+ @cartage = Cartage.new
9
+ @manifest = Cartage::Manifest.new(@cartage)
10
+ end
11
+
12
+ describe '#create_file_list' do
13
+ it 'only sets unique files' do
14
+ files = %w(a a a b c).join("\n")
15
+ expected = %w(a b c).join("\n") + "\n"
16
+
17
+ stub_file_open_for_write expected do
18
+ stub_backticks files do
19
+ @manifest.send :create_file_list, 'x'
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Ziegler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-26 00:00:00.000000000 Z
11
+ date: 2015-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cmdparse
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.5'
33
+ version: '5.6'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.5'
40
+ version: '5.6'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rdoc
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -108,20 +108,6 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '1.5'
111
- - !ruby/object:Gem::Dependency
112
- name: hoe-geminabox
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '0.3'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '0.3'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: hoe-travis
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -317,6 +303,7 @@ files:
317
303
  - test/minitest_config.rb
318
304
  - test/test_cartage.rb
319
305
  - test/test_cartage_config.rb
306
+ - test/test_cartage_manifest.rb
320
307
  homepage: https://github.com/KineticCafe/cartage/
321
308
  licenses:
322
309
  - MIT
@@ -339,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
326
  version: '0'
340
327
  requirements: []
341
328
  rubyforge_project:
342
- rubygems_version: 2.2.2
329
+ rubygems_version: 2.4.5
343
330
  signing_key:
344
331
  specification_version: 4
345
332
  summary: Cartage provides a plug-in based tool to reliably create a package for a