bullet_train 1.2.6 → 1.2.7

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: 7f272526d56b142f946f7a0b4ebdbb8537120199a0f78be7cad85ba7265003b6
4
- data.tar.gz: 1e50a2ae1848bd7613f8ce2ece37de6bb2fb85c485207226cad6b39e5d7ed908
3
+ metadata.gz: a8af0861111947e0fad526fe89c7d1b6180f65b9122610eeaf26f8503ba50fed
4
+ data.tar.gz: 307372ed882d3e0e07f4a32810926cbeaf9497561d4db4faa1927765657ec961
5
5
  SHA512:
6
- metadata.gz: 34c1d594e23e6ba2e11dc06b69f012cb118d8901bc47d08e697f26ecd5081228e02bfeb923746906730ee2f4e5ec8a8338da11234b828feca22c5d2cf1090e87
7
- data.tar.gz: 538ac4bb1e3723f929059c382c642b00e9e30ddaee8f2d68880ac75a83e197fa9d7d0463e951f21d41123cce765622b16a6ff52696d75ee8944b5e08b91e231e
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
- all_paths = ([Rails.root.to_s] + `bundle show --paths`.lines.map(&:chomp))
7
- @path = all_paths.map { |path| path + "/docs/#{target}.md" }.detect { |path| File.exist?(path) }
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
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.2.6"
2
+ VERSION = "1.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver