bullet_train 1.2.6 → 1.2.7
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 +4 -4
- data/app/controllers/concerns/documentation_support.rb +8 -2
- data/lib/bullet_train/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a8af0861111947e0fad526fe89c7d1b6180f65b9122610eeaf26f8503ba50fed
|
|
4
|
+
data.tar.gz: 307372ed882d3e0e07f4a32810926cbeaf9497561d4db4faa1927765657ec961
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 993b1e6a8b6e73bad6f04c4e3c2caa1c3d5476ee0bea64972ee7ed9b2bfcefa69ebffc4af3fb3a33fdbbbd1fc8c49d0bd23c5f50894f2a7544132d3b6304ec5b
|
|
7
|
+
data.tar.gz: d76a30a93bab13b98f8e0ac8dbedab25c6eb74f7158211e200e74e4e636ede62eae4fa0be688601c3bf817a2ad73e218dad96a05db2cb77ef9b942fc95d6113a
|
|
@@ -3,8 +3,14 @@ module DocumentationSupport
|
|
|
3
3
|
|
|
4
4
|
def docs
|
|
5
5
|
target = params[:page].presence || "index"
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
|
|
7
|
+
# TODO For some reason this didn't work on Heroku.
|
|
8
|
+
# all_paths = ([Rails.root.to_s] + `bundle show --paths`.lines.map(&:chomp))
|
|
9
|
+
# @path = all_paths.map { |path| path + "/docs/#{target}.md" }.detect { |path| File.exist?(path) }
|
|
10
|
+
|
|
11
|
+
# TODO Trying to just brute force this for now.
|
|
12
|
+
@path = `bundle show bullet_train`.chomp + "/docs/#{target}.md"
|
|
13
|
+
|
|
8
14
|
render :docs, layout: "docs"
|
|
9
15
|
end
|
|
10
16
|
end
|
data/lib/bullet_train/version.rb
CHANGED