bullet_train 1.0.48 → 1.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f97118eaaa7253406852b09625acb890ba8d2653e0266628795bde576044eec5
4
- data.tar.gz: 47688fa0493151a13a4b5060efd32703c9bc9bfa5a4f13052519c6afb6a864a6
3
+ metadata.gz: 19e5c8305a3e7ce83247284b23e76be08322536689153e4a1cf7befef4acde70
4
+ data.tar.gz: 89eb7c47e0373d460be3112c7b908297f59e68e9987a8465940403d64aa6a841
5
5
  SHA512:
6
- metadata.gz: 5c750045603680f1d1ffcff0bbc7ffb1e3d334ca6e280f2d4332c2d5270ae94228d0f230876f63223d5aeeca146b5678a8b6fb9ed6b0656b3fecb7b5a751f54e
7
- data.tar.gz: 15a90ab25fa884ae6004423c6469d2dd974f08da0c88eae230cbd4e60bfb3c64af1011ff02c2bf6bfe1a732518324c8c55cb0898a10f88ca25e0c9e2059a21a8
6
+ metadata.gz: 256d4903dc195d2bbd353f8b5baa9c0d5bfad13a45f3e7a6414ee098e2cc8864d18dcd7f37ad6804709e41daa226c1d4632f64d0275e1a2d780e953c3e1d3cac
7
+ data.tar.gz: 81e6a40fc87106333eb12dfc97de853ed1ec342d8f5e2889791cc2a9043a1ff641f1bf5055f6633121ec0043a31ab3ebfb10999322072d277a410354b134ed31
@@ -1,2 +1,3 @@
1
+ <!-- This line is intentionally left blank. -->
1
2
  <%= render @needle do |p| %>
2
3
  <% end %>
@@ -92,7 +92,7 @@ module BulletTrain
92
92
  result[:absolute_path] = class_path || partial_path || locale_path || file_path
93
93
 
94
94
  if result[:absolute_path]
95
- base_path = "bullet_train" + result[:absolute_path].split("/bullet_train").last
95
+ base_path = "bullet_train" + result[:absolute_path].partition("/bullet_train").last
96
96
 
97
97
  # Try to calculate which package the file is from, and what it's path is within that project.
98
98
  ["app", "config", "lib"].each do |directory|
@@ -138,7 +138,9 @@ module BulletTrain
138
138
 
139
139
  def file_path
140
140
  # We don't have to do anything here... the absolute path is what we're passed, and we just pass it back.
141
- @needle
141
+ if @needle[0] == "/"
142
+ @needle
143
+ end
142
144
  end
143
145
 
144
146
  def locale_path
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.0.48"
2
+ VERSION = "1.0.49"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.48
4
+ version: 1.0.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-07 00:00:00.000000000 Z
11
+ date: 2022-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard