application_digester 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/application_digester/version.rb +1 -1
- data/lib/application_digester.rb +6 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c42798408f39ab8602171f178f39d0b1f5ffd8e
|
4
|
+
data.tar.gz: bd199e50b2f4dedd4c1ff6350878ec5eade1a98d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c4d70e70a1174c73e690952ffd3fe6290dfa591b825eab67deebb365eeb04e24298a6776e61a240284285166ef168bf218e7ef4306631771e6b0eb11fbae908
|
7
|
+
data.tar.gz: 0d94a4b9902169acd493cdd9e78f0fa2daf26264b6928bcdab349df6e47f352f004cd7e5a1707ed7be3320c571645d0a09da5f4ea71dc2fe075a49405f24ae53
|
data/lib/application_digester.rb
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
class ApplicationDigester
|
1
|
+
class LocalApplicationDigester
|
4
2
|
# Taking into account the location of every file helps capture changes such as
|
5
3
|
# a file moving location, but the contents remain unchanged.
|
6
4
|
def digest
|
@@ -41,8 +39,11 @@ class ApplicationDigester
|
|
41
39
|
|
42
40
|
def exclude_paths
|
43
41
|
Dir[*EXCLUDE_DIRS.map do |dir_name|
|
44
|
-
|
45
|
-
|
42
|
+
[
|
43
|
+
Rails.root.join("#{dir_name}/**/*"),
|
44
|
+
Rails.root.join(dir_name), # This removes the excluded dir itself
|
45
|
+
]
|
46
|
+
end.flatten]
|
46
47
|
end
|
47
48
|
|
48
49
|
EXCLUDE_DIRS = %w(log tmp public/assets vendor/bundle).freeze
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: application_digester
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Schneider
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|