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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1f84c243982b9f47f3054b67d948f663e1816e2
4
- data.tar.gz: e84374f139cddd98f46b830efc2b1f7d46e2032a
3
+ metadata.gz: 7c42798408f39ab8602171f178f39d0b1f5ffd8e
4
+ data.tar.gz: bd199e50b2f4dedd4c1ff6350878ec5eade1a98d
5
5
  SHA512:
6
- metadata.gz: 7e5b603762c0de20164343a5426857241b855796855378eee6b12c772610d19966b210f1990e6aac51582f08f2f12066ff1a9c4cf33677c42405122d70195671
7
- data.tar.gz: b7ccb729068923831a8a93e3c8f83612573242511c13ebcbef2c47a64d47638c34f231e50199848e73144aa6375f54a39d3bad1bb019711bfe63d512afe28f33
6
+ metadata.gz: 3c4d70e70a1174c73e690952ffd3fe6290dfa591b825eab67deebb365eeb04e24298a6776e61a240284285166ef168bf218e7ef4306631771e6b0eb11fbae908
7
+ data.tar.gz: 0d94a4b9902169acd493cdd9e78f0fa2daf26264b6928bcdab349df6e47f352f004cd7e5a1707ed7be3320c571645d0a09da5f4ea71dc2fe075a49405f24ae53
@@ -1,3 +1,3 @@
1
1
  class ApplicationDigester
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -1,6 +1,4 @@
1
- require "application_digester/version"
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
- Rails.root.join("#{dir_name}/**/*")
45
- end]
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
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-16 00:00:00.000000000 Z
11
+ date: 2017-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler