mtime_cache 1.0.0 → 1.0.2
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/bin/mtime_cache +7 -5
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9732ab812caad63e1dc58286ef4c623fc7175670
|
4
|
+
data.tar.gz: 9ecb58b54760daff14fcb6893b43f27a0c6af9d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a8369dfb6e59c0dc321906948f6c57e025c6c0c8b6b7bea841b064fc0bfb361de6b627fafe54bac3ec184ce08ded7d601880d8b32dc2a52b8842748b9d9da14
|
7
|
+
data.tar.gz: 720aef8b54f3ec6446f2044067abdf25b594eb745f447f5a08b8e67e411a501b86e34a4fbce74d387682038eca08573d9dab36918800ca8aad5defaa3b587ac5
|
data/bin/mtime_cache
CHANGED
@@ -27,7 +27,7 @@ require 'digest/md5'
|
|
27
27
|
require 'json'
|
28
28
|
require 'fileutils'
|
29
29
|
|
30
|
-
VERSION = "1.0.
|
30
|
+
VERSION = "1.0.2"
|
31
31
|
|
32
32
|
VERSION_TEXT = "mtime_cache v#{VERSION}"
|
33
33
|
|
@@ -124,10 +124,12 @@ end
|
|
124
124
|
globs = ARGS[:globs].map { |g| g % EXTENSION_PATTERNS }
|
125
125
|
|
126
126
|
globfile = ARGS[:globfile]
|
127
|
-
|
128
|
-
line
|
129
|
-
|
130
|
-
|
127
|
+
if globfile
|
128
|
+
File.open(globfile, 'r').each_line do |line|
|
129
|
+
line.strip!
|
130
|
+
next if line.empty?
|
131
|
+
globs << line % EXTENSION_PATTERNS
|
132
|
+
end
|
131
133
|
end
|
132
134
|
|
133
135
|
if globs.empty?
|
metadata
CHANGED
@@ -1,23 +1,25 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mtime_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Borislav Stanimirov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
mtime_cache creates a cache of file modification times, based on a glob pattern.
|
15
15
|
If a cache exists it updates unchanged files (unchanged based on MD5 hash) with
|
16
16
|
the time from the cache.
|
17
|
+
|
17
18
|
This is useful if you cache your build artifacts for a build process which
|
18
19
|
detects changes based on source modification time (such as most C or C++ build
|
19
20
|
systems) on a continuous integration service (such as Travis CI), which clones
|
20
21
|
the repo for every build.
|
22
|
+
|
21
23
|
When the repo is cloned, all source files have a modification time equal to the
|
22
24
|
current time, making the cached build artifacts (for example .o files) obsolete.
|
23
25
|
mtime_cache allows you to cache the modification times of the files, enabling a
|