the_garage 2.4.3 → 2.4.4

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
- SHA1:
3
- metadata.gz: e1211670f82aab40b6acd9b1480b397483752a74
4
- data.tar.gz: 48e3edd8a887e081a6ea9862e8d9a62e546a904a
2
+ SHA256:
3
+ metadata.gz: 7c4e3dd92f5413a3042cd8e54590a5028ba27b6ec01ec2776bbe0d950693ccca
4
+ data.tar.gz: f03ef645cf85bcfd54a416fb06f9d985d7515e8dfda1e2e445da5c4cf5d9239b
5
5
  SHA512:
6
- metadata.gz: 92c00a308d538ab61f4234b6a48653a4e6ab013272d698825fa5f31e77efed5cc68c8aa53276fa99185d5e4407837543c2bf09dddad64523b330caa1b8ea1388
7
- data.tar.gz: 70065a82d6c445b6b7630a10d8dac6ec4be5e011e34675f9846f4ff3b1889551ee03a68277b6be1587ce9c21741c99d22980ecaddbd6d5c1d01ed0f72955ab0f
6
+ metadata.gz: 834480a2f01fdbe73e607483b6faddae9cafecc29b6a18d617b7ad221c783b12e5c92471a52188bb54cdf056d8abbdf3f98f20c73dd34fbb6fc3cd3a511ca549
7
+ data.tar.gz: d31177fc305961dd0dab978a71e0db3f51eef09460d18dfab0580ed07fd4704cd75888bfec0e2d86f215aa845ad3fd6acd8ac97a65e2023e89c1fb60bff06180
@@ -6,7 +6,7 @@
6
6
  = csrf_meta_tags
7
7
  = stylesheet_link_tag "garage/application", :media => "all"
8
8
  = javascript_include_tag "garage/application"
9
- = favicon_link_tag "favicon.ico"
9
+ = favicon_link_tag "favicon.ico", skip_pipeline: true
10
10
 
11
11
  %body{ class: action_classes }
12
12
  .navbar.navbar-default.navbar-static-top
@@ -24,7 +24,9 @@ module Garage
24
24
  # `#resource_identifier` or `#id`.
25
25
  def encode_to_hash(resource, *args)
26
26
  if id = get_resource_identifier(resource)
27
- cache_key = "#{resource.class.name}:#{id}"
27
+ options = args[0] || {}
28
+ selector = options[:selector] || controller.field_selector
29
+ cache_key = "#{resource.class.name}:#{id}:#{selector.canonical}"
28
30
  cache[cache_key] ||= _encode_to_hash(resource, *args)
29
31
  else
30
32
  _encode_to_hash(resource, *args)
data/lib/garage/tracer.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'forwardable'
2
+
1
3
  module Garage
2
4
  module Tracer
3
5
  extend self
@@ -1,3 +1,3 @@
1
1
  module Garage
2
- VERSION = '2.4.3'
2
+ VERSION = '2.4.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_garage
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.3
4
+ version: 2.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tatsuhiko Miyagawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-22 00:00:00.000000000 Z
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -270,8 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  - !ruby/object:Gem::Version
271
271
  version: '0'
272
272
  requirements: []
273
- rubyforge_project:
274
- rubygems_version: 2.6.13
273
+ rubygems_version: 3.0.3
275
274
  signing_key:
276
275
  specification_version: 4
277
276
  summary: Garage Platform Engine