Xregistry

Check-in [3dc3aaf940]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Delete dist target from Rakefile.
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1:3dc3aaf9400f592d4e368b0c6b1d50f973fe5806
User & Date: wbp 2017-04-28 23:21:55
Context
2017-04-28
23:21
Delete dist target from Rakefile. Leaf check-in: 3dc3aaf940 user: wbp tags: trunk
2016-08-03
21:16
Add each_key and find methods. check-in: 633de1ab62 user: wbp tags: trunk, version-1.6.0
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Rakefile.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Rakefile for xregistry gem.
# Last modified:  01-Aug-2016  Wm. Parsons

require 'rake/testtask'
require 'zlib'

name    = 'xregistry'
version = IO.read('VERSION').chomp
package = "#{name}-#{version}"

distfiles = %w[
  LICENSE
  Rakefile
  VERSION
  lib/xregistry.rb
  test/test_xregistry.rb
  xregistry.gemspec
]

task :default => [:build]

desc "Build #{name} gem"
task :build do
  system "gem build #{name}.gemspec"
end

desc "Clean up generated files"
task :clean do
  Dir.glob('*.gem').each { |x| FileUtils.rm_f x }
end

desc "Make a distribution tarball"
task :dist do
  begin
    # use minitar to create tar file if possible
    require 'archive/tar/minitar'

    File.open("#{package}.tar.gz", 'wb') do |tgz|
      Zlib::GzipWriter.wrap(tgz) do |gz|
        Archive::Tar::Minitar::Writer.open(gz) do |tar|
          distfiles.each do |file|
            contents = File.read(file)
            mode     = File.stat(file).mode
            mtime    = File.stat(file).mtime
            name     = "#{package}/#{file}"
            tar.add_file_simple(name, :mode => mode, :mtime => mtime,
                                :size => contents.size) do |io|
              io.write contents
            end
          end
        end
      end
    end

  rescue LoadError
    # fall back on tar capabilities built into rubygems package if no minitar
    require 'rubygems/package'

    File.open("#{package}.tar.gz", 'wb') do |tgz|
      Zlib::GzipWriter.wrap(tgz) do |gz|
        Gem::Package::TarWriter.new(gz) do |tar|
          distfiles.each do |file|
            contents = File.read(file)
            mode     = File.stat(file).mode
            name     = "#{package}/#{file}"
            tar.add_file_simple(name, mode, contents.size) do |io|
              io.write contents
            end
          end
        end
      end
    end
  end
end

desc "Install #{name} gem"
task :install do
  system "gem install #{package}.gem --document rdoc,ri"
end

desc "Install #{name} gem as user"
task :userinstall do

|


<





<
<
<
<
<
<
<
<
<












<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<







1
2
3
4

5
6
7
8
9









10
11
12
13
14
15
16
17
18
19
20
21












































22
23
24
25
26
27
28
# Rakefile for xregistry gem.
# Last modified:  28-Apr-2017  Wm. Parsons

require 'rake/testtask'


name    = 'xregistry'
version = IO.read('VERSION').chomp
package = "#{name}-#{version}"










task :default => [:build]

desc "Build #{name} gem"
task :build do
  system "gem build #{name}.gemspec"
end

desc "Clean up generated files"
task :clean do
  Dir.glob('*.gem').each { |x| FileUtils.rm_f x }
end













































desc "Install #{name} gem"
task :install do
  system "gem install #{package}.gem --document rdoc,ri"
end

desc "Install #{name} gem as user"
task :userinstall do