jsonapionify 0.12.7 → 0.12.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjlkODUyNGRkMjM2ZWE0ZDY1OGJjZTQ3ZjY5M2JhZDhjZGM5ZjQ1NQ==
4
+ ODg1ZmQxYmM1MzlhOGYwZWU5MmRkZDY5MjM5MzYxZjMyNzk1N2UzOQ==
5
5
  data.tar.gz: !binary |-
6
- NTE4Y2U4NzhhZDQ0NmNmZjBlYzY1NDk0OWU0MmIwMDczMzAzNjI3NA==
6
+ NzRiODY0OWUyZDJkNTAxMGYzYWJhNzI5NjZlNTc3M2JjYTRkYzEwZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmNjOWFlNTdmYzg0OWJiYTY3MWRjNWJiMjQyOWUyYmY0OTUzZmRhNDEzMjBh
10
- NzdkNjMyYjE5ZTk1MjhlZGYzZGVmYmRlMWE0MDU0M2Y2MTRmZTQ2ZDVhMDEz
11
- OGIzODUyZjA2YWEwZDMyMDRhMmZkN2JiNzVjYjUwZGRjYThmNWI=
9
+ MjI3NzFhZTcxZDM5MDVjZTZlZDhjY2VmZDgyZTVhNTgwYTU3OWRlMWFiOTVk
10
+ MDI2ZjgwYTQ4ODI5ODM4MDJlM2UxZWFhMzNiZGIxNDBhOTgxZjNmMGY1Mjdm
11
+ ZjM0ODMzN2M2NTI0YjhmN2RkNzJjZjJkYmQ3NTI0ODU2NTQxZDk=
12
12
  data.tar.gz: !binary |-
13
- N2UxMDM5NTBjNzE2N2FkYTBhOTE2MjhlNzY3M2ZiOTcwZjM0YjUwYzMxNWM1
14
- YTAyZWNiZjMzZTAzMTM0NDU4Yjg0YzIxMTc5Nzc1MzlmZmI0NzZhYzNhZjdj
15
- NzUxOGI0ZjQwYzZiMTQ5NTFiMzkyZWE4ZmY1YzlhMzQwZGM2OGQ=
13
+ MTMyNmE0N2RkM2RlMzMzZDA4ZGY5NjUwNmQxYmMzOTE1OGMzMGZhMTNlZDMz
14
+ ZTU4NGNhY2M1YjA0ZjYzNDI3NzQ2YTY3YmJkNDk4Y2VjZWFiZTkxNTgxMGEz
15
+ MjJhZmY2MDhmN2M2YzdhNjc2YjE0OTY0MGUxYjM5NmQ4MzMwNjk=
data/lib/jsonapionify.rb CHANGED
@@ -36,10 +36,17 @@ module JSONAPIonify
36
36
  self.cache_store = ActiveSupport::Cache.lookup_store(store, *args)
37
37
  end
38
38
 
39
+ def self.files
40
+ Dir.glob(File.join __dir__, './**/*.rb').map { |f| File.expand_path f }.sort
41
+ end
42
+
39
43
  def self.digest
40
- @digest ||= Digest::SHA2.hexdigest(
41
- Dir.glob(File.join __dir__, '**/*.rb').map { |f| File.read f }.join
42
- )
44
+ @digest ||=
45
+ files.map do |f|
46
+ File.read f
47
+ end.reduce(
48
+ Digest::SHA2.new, :update
49
+ ).to_s
43
50
  end
44
51
 
45
52
  def self.verbose_errors=(value)
@@ -1,3 +1,3 @@
1
1
  module JSONAPIonify
2
- VERSION = "0.12.7"
2
+ VERSION = "0.12.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapionify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.7
4
+ version: 0.12.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Waldrip
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-23 00:00:00.000000000 Z
11
+ date: 2016-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport