origen_doc_helpers 0.8.2 → 0.8.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: 183ce3d4c6b7a9acfddd0d772a99714914ad1a05415f9914d68a2c8ba34d54f6
4
- data.tar.gz: bb0e2323376a9eaac095020ead1218b6df0a3c4f464fa7044fa7ac0fdfda385e
3
+ metadata.gz: 86607573815de7e69eb55f1fb1afc8798ff50ba92a4b3a230b1b6cb3627f1365
4
+ data.tar.gz: a230731ac9a2d6049c2432d496260174ff93cc448f3a9b3ed2ec4cc1abc866e0
5
5
  SHA512:
6
- metadata.gz: 66fe26cf4469a3eb6675f33dfa79e2538b78de11464d68902b825d993f7deeace11a644e61584c1e127076840948b90d4781649338910a4a755e4d9d51f32656
7
- data.tar.gz: 84b6bcf4eef638401d47b85dfff51825b0e42b677865041119181e1f7bdf4b777af3d0822c97c304c23915f48e31551081dba759b5507e71be144426e25fe9d8
6
+ metadata.gz: 3c06e83e7c9aab01cb997d2845ebb6d14822ad69ffffd3c22cd7b36c5aa9cb83ecd42241b51dad2c6e3d8b2c94de931c270a94b4bb1094169abdd19aa374d8a3
7
+ data.tar.gz: ddcdb9f112688745f8503094fe83defdcf3c5fb2ca855cc48c7138cc0175e286291a8d2f936a173bba28e5a9a19b97daeaf95412e94fe47533deab2c7740c133
@@ -1,7 +1,7 @@
1
1
  module OrigenDocHelpers
2
2
  MAJOR = 0
3
3
  MINOR = 8
4
- BUGFIX = 2
4
+ BUGFIX = 3
5
5
  DEV = nil
6
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
7
7
  end
@@ -272,7 +272,11 @@ END
272
272
  if options[:tab]
273
273
  options[:tab]
274
274
  else
275
- rel = options[:top_level_file].relative_path_from(_doc_root_dir(options)).sub_ext('').sub_ext('').to_s
275
+ rel = begin
276
+ options[:top_level_file].relative_path_from(_doc_root_dir(options)).sub_ext('').sub_ext('').to_s
277
+ rescue
278
+ '..'
279
+ end
276
280
  # If the file lives outside of the current app (e.g. it comes from a plugin), then the above approach
277
281
  # doesn't work, so let's just take the last dirname and the filename
278
282
  if rel =~ /\.\./
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen_doc_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-02 00:00:00.000000000 Z
11
+ date: 2021-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen
@@ -95,8 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  - !ruby/object:Gem::Version
96
96
  version: 1.8.11
97
97
  requirements: []
98
- rubyforge_project:
99
- rubygems_version: 2.7.7
98
+ rubygems_version: 3.1.4
100
99
  signing_key:
101
100
  specification_version: 4
102
101
  summary: Snippets and helpers for creating Origen web documents