scout-essentials 1.6.12 → 1.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/scout/misc/filesystem.rb +32 -1
- data/scout-essentials.gemspec +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b0d08853e8b5dc5179a61969c0778068d5aa613df3ea03b63ec8c0501ebbbce
|
4
|
+
data.tar.gz: 48a325008838d43f3007184fe278cc68f10a3e7d694f09b97146797f4a69b150
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db7058cfb59b79eb0cc0b0b1524190562e08e0588ae2a00ff8ef5a5442c75799158de0279141da16815b3c1e5e417583137756be3eb63c6fd4d562d8aee4510f
|
7
|
+
data.tar.gz: def4814942f6325cb8ea0d059bc5b935a32989ca6b373aea8b8345747a7b9c500f89df58b524e40e440883f0b2946a3d40a10dd204de2042a08c9d15b76d1f59
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.13
|
@@ -23,7 +23,7 @@ module Misc
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
def self.
|
26
|
+
def self.tarize_cmd(path, dest = nil)
|
27
27
|
Misc.in_dir(path) do
|
28
28
|
if dest
|
29
29
|
CMD.cmd("tar cvfz '#{dest}' '.'")
|
@@ -33,6 +33,37 @@ module Misc
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
+
def self.tarize(source_dir, archive_path)
|
37
|
+
require 'rubygems/package'
|
38
|
+
require 'zlib'
|
39
|
+
require 'stringio'
|
40
|
+
require 'fileutils'
|
41
|
+
|
42
|
+
tar_io = StringIO.new("")
|
43
|
+
|
44
|
+
Gem::Package::TarWriter.new(tar_io) do |tar|
|
45
|
+
Dir[File.join(source_dir, '**', '*')].each do |file|
|
46
|
+
relative_path = file.sub(/^#{Regexp.escape(source_dir)}\/?/, '')
|
47
|
+
|
48
|
+
if File.directory?(file)
|
49
|
+
tar.mkdir(relative_path, File.stat(file).mode)
|
50
|
+
else
|
51
|
+
tar.add_file(relative_path, File.stat(file).mode) do |tf|
|
52
|
+
File.open(file, 'rb') { |f| tf.write(f.read) }
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
tar_io.rewind
|
59
|
+
|
60
|
+
File.open(archive_path, 'wb') do |f|
|
61
|
+
gz = Zlib::GzipWriter.new(f)
|
62
|
+
gz.write(tar_io.string)
|
63
|
+
gz.close
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
36
67
|
def self.untar(file, target = '.')
|
37
68
|
target = target.find if Path === target
|
38
69
|
file = file.find if Path === file
|
data/scout-essentials.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: scout-essentials 1.6.
|
5
|
+
# stub: scout-essentials 1.6.13 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "scout-essentials".freeze
|
9
|
-
s.version = "1.6.
|
9
|
+
s.version = "1.6.13".freeze
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Miguel Vazquez".freeze]
|
14
|
-
s.date = "
|
14
|
+
s.date = "1980-01-02"
|
15
15
|
s.description = "Things a scout can use anywhere".freeze
|
16
16
|
s.email = "mikisvaz@gmail.com".freeze
|
17
17
|
s.extra_rdoc_files = [
|
@@ -146,7 +146,7 @@ Gem::Specification.new do |s|
|
|
146
146
|
]
|
147
147
|
s.homepage = "http://github.com/mikisvaz/scout-essentials".freeze
|
148
148
|
s.licenses = ["MIT".freeze]
|
149
|
-
s.rubygems_version = "3.6.
|
149
|
+
s.rubygems_version = "3.6.7".freeze
|
150
150
|
s.summary = "Scout essential tools".freeze
|
151
151
|
|
152
152
|
s.specification_version = 4
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout-essentials
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: shoulda
|
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
271
|
- !ruby/object:Gem::Version
|
272
272
|
version: '0'
|
273
273
|
requirements: []
|
274
|
-
rubygems_version: 3.6.
|
274
|
+
rubygems_version: 3.6.7
|
275
275
|
specification_version: 4
|
276
276
|
summary: Scout essential tools
|
277
277
|
test_files: []
|