factory_bot_instrumentation 1.1.2 → 1.1.3

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
  SHA256:
3
- metadata.gz: b71c4ed3a9ed6cb1053a73c132a5da84f17f39ea9bd3caca361a190e5d00e988
4
- data.tar.gz: f72ca36c607d3f301d7062520d55bed52c47eb33d522a444071f7149701c2ed4
3
+ metadata.gz: b248a577b9cec82d72bbb47413e999e6aeb9d5c8abb2c5ebd859748335acaa43
4
+ data.tar.gz: f0fa32df2602e74ff666c9a8eedb2378d07a469844df0eed7ebb82f5e363bb9b
5
5
  SHA512:
6
- metadata.gz: 1029988890892b3e2dbc67301793ddf227a70987f00bcc043ced996f2bb4c474fd506d588ca52d400750fc328f1ec8a501f0b39c8d3e1ec92be36f92f9cf6fef
7
- data.tar.gz: 9769d814eea416af200fcb29a361d8f20e93a486397014d9e84f224713efdaa961a84cb1767c5f16cfd9bf5f2b34846cc77fa39de295fd1d56e0b6da79248f96
6
+ metadata.gz: 1de14c66d5da657cd5035545341548816b25b76a26f926cbd488f51d5ade26c0d031d5495ea2bcfb07ac1b71c8387050e4a23be2278196a69af5cea7ea406d8f
7
+ data.tar.gz: 9b1cd170bdfda25d8cade7a06fe535f5db3584663de14b4c59c9dec162d3f8452931e55c0115975102ac2fc2ac7d71d98c5d82623a187ed455f3f59b57260724
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  * TODO: Replace this bullet point with an actual description of a change.
4
4
 
5
+ ### 1.1.3
6
+
7
+ * Corrected the fallback view path configuration (#17)
8
+
5
9
  ### 1.1.2
6
10
 
7
11
  * Moved the development dependencies from the gemspec to the Gemfile (#15)
@@ -9,11 +9,6 @@ module FactoryBot
9
9
  include ActionController::HttpAuthentication::Digest::ControllerMethods
10
10
  include ActionController::HttpAuthentication::Token::ControllerMethods
11
11
 
12
- # For some reason the Rails engine may not find its partial templates as
13
- # it looks for wrong paths, so we add a fallback path to the view paths
14
- base_path = Pathname.new(File.expand_path('../../../views', __dir__))
15
- append_view_path base_path.join('factory_bot/instrumentation')
16
-
17
12
  # Allow the users to implement additional instrumentation-wide before
18
13
  # action logic, like authentication
19
14
  before_action do |_controller|
@@ -29,6 +29,14 @@ module FactoryBot
29
29
  end
30
30
  end
31
31
  end
32
+
33
+ # For some reason the Rails engine may not find its partial templates
34
+ # as it looks for wrong paths, so we add a fallback path to the view
35
+ # paths
36
+ app_path = Pathname.new(File.expand_path('../../../app', __dir__))
37
+ paths['app/views'].push(
38
+ app_path.join('views/factory_bot/instrumentation').to_s
39
+ )
32
40
  end
33
41
  end
34
42
  end
@@ -4,7 +4,7 @@ module FactoryBot
4
4
  # The gem version details.
5
5
  module Instrumentation
6
6
  # The version of the +factory_bot_instrumentation+ gem
7
- VERSION = '1.1.2'
7
+ VERSION = '1.1.3'
8
8
 
9
9
  class << self
10
10
  # Returns the version of gem as a string.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factory_bot_instrumentation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer