]> git.pld-linux.org Git - packages/ruby-RMagick.git/blame - no-git.patch
- updated no-git patch
[packages/ruby-RMagick.git] / no-git.patch
CommitLineData
f2de94bf
JR
1--- RMagick-2.15.4/Rakefile~ 2016-03-13 10:19:00.000000000 +0100
2+++ RMagick-2.15.4/Rakefile 2016-03-13 10:20:10.123489864 +0100
3@@ -21,14 +21,6 @@
4 end
5 end
6
7-desc 'abort when repo is not clean or has uncommited code'
8-task :assert_clean_repo do
9- sh('git diff --exit-code')
10- abort 'Git repo not clean' unless $CHILD_STATUS.success?
11- sh('git diff-index --quiet --cached HEAD')
12- abort 'Git repo not commited' unless $CHILD_STATUS.success?
13-end
14-
15 desc 'build gem'
16 task :build => [:config] do
17 sh 'gem build -V rmagick.gemspec'
18@@ -41,24 +33,6 @@
19 end
20 end
21
2b0c9c66 22-task push_and_tag: [:build] do
f2de94bf
JR
23- sh "gem push #{File.join(base, 'pkg', gem_name)}"
24- if $CHILD_STATUS.success?
25- sh "git tag -a -m \"Version #{version}\" #{version_tag}"
26- STDOUT.puts "Tagged #{version_tag}."
27- sh 'git push'
28- sh 'git push --tags'
29- else
30- abort 'tagging aborted pushing gem failed'
31- end
32-end
33-
34-desc 'Release'
2b0c9c66 35-task release: %i[assert_clean_repo push_and_tag]
f2de94bf
JR
36-
37-desc 'Release and build the legacy way'
2b0c9c66 38-task legacy_release: ['legacy:README.html', 'legacy:extconf', 'legacy:doc', 'legacy:manifest', 'release']
f2de94bf
JR
39-
40 namespace :legacy do
41 require 'find'
42
52c88df5
JR
43--- RMagick-2.15.4/rmagick.gemspec~ 2016-03-13 10:39:36.000000000 +0100
44+++ RMagick-2.15.4/rmagick.gemspec 2016-03-13 10:42:46.932844991 +0100
45@@ -13,7 +13,7 @@
46 s.homepage = 'https://github.com/rmagick/rmagick'
47 s.license = 'MIT'
48
49- tracked_files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
50+ tracked_files = `find ./ -printf "%P\n"`.split($OUTPUT_RECORD_SEPARATOR)
2b0c9c66
JR
51 file_exclusion_regex = %r{\A(doc|benchmarks|examples|spec|lib/rvg/to_c.rb)}
52 files = tracked_files.reject { |file| file[file_exclusion_regex] }
52c88df5 53 test_files = files.grep(%r{^(test|spec|features)/})
This page took 0.059914 seconds and 4 git commands to generate.