middleman-navtree 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDQyNWI2MjdhYTkxYzFhODMxYzNlOGEyZGY2N2E3MjM3MjNkNTBjMg==
4
+ MWM5NjY1MDQwZWYzYWVjOGUwZTg0MjFiY2EwNTIzNDg1MTRiY2M1NQ==
5
5
  data.tar.gz: !binary |-
6
- NjhlNTU4NDgzYTE0MzU4YThmOTRmNzAxNjk4ZmVlMzU5ZjVkMjk5NQ==
6
+ ZTFlZWUzNWZjMGNlNGNjYWQwZmE0MzdhNWQ0MWYzZjA0ZTJiOTFhNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDc2NTJjNmIyYjVhMTU0NWFiZmVlODUwNmE3YzU0MjNmNDlkYWQ5ZGRmY2Uw
10
- ZjM2YThjNjM2ZmVhNDAxNjNlZWY3Zjk2MWUyZDk0OGJlMGE2NzIwM2Q3OWVj
11
- ZjZjMTdlNzYwMTVmMWJhZTU2YzAzODYwZTNhYzE3MGY4NGFhMWE=
9
+ YzdiOGYyODFiZmFkNTY1OTZiY2RhOTY1NDkxYmM1ZGQzM2QwY2Y3YjY4Yjc3
10
+ M2M3OTJlMzA1ZTU5Njg5MWZiYjMzOWY3ODk2YjY3ZTc5Yjc3ZTZkNDdmZGEz
11
+ MGEwZjQxNDZiY2RlMTFlNjUzYzMzNmJkMmZjOTAxMDNhMzIzYTU=
12
12
  data.tar.gz: !binary |-
13
- NDI1M2JhNzk0YmI4YjcwMDk3MDE1YzFiOTU2Yjg4YWEzYWE5ZDAwYTZlM2I0
14
- M2VjYjM3ZWRjMTRiMTEwMGJiNGMyZDE2MjVkODkwYjY1YjY0NWE5ZDYxZDc2
15
- YmFjOTgwYjIxNTgzOThjNTllNjBiYWRhMjgyNzY2NjQ0ZjE2Y2Y=
13
+ ZmNlNTE0NjBjZjAwYzk4YWVlYzJlOGY3M2MyYTg2YTZkZDc3MmZmNzZkZTVm
14
+ MmE1OTZkYTY2NGU2YzZhYjQ5YmRlYTM3NjlmMmQwNTkxMDhkYzg3NjQxNDk4
15
+ OWIzNmZjZjM2YmMwNzBjYmE4MjdkNWNjNzY4ZjJmNTRiNDNhZGU=
@@ -115,11 +115,11 @@ module Middleman
115
115
  # Format Directory name for display in navtree.
116
116
  # Example Name: 1%20-%20sink-or_swim
117
117
  def format_directory_name(dir_name)
118
- dir_name.gsub!('%20', ' ') #=> 1 - sink-or_swim
119
- dir_name.gsub!(/(?!\s)-(?!\s)/, ' ') #=> 1 - sink or_swim
120
- dir_name.gsub!(/_/, ' ') #=> 1 - sink or swim
118
+ formatted_name = dir_name.gsub('%20', ' ') #=> 1 - sink-or_swim
119
+ formatted_name.gsub!(/(?!\s)-(?!\s)/, ' ') #=> 1 - sink or_swim
120
+ formatted_name.gsub!(/_/, ' ') #=> 1 - sink or swim
121
121
  # @todo: Find a way for titleize to not blow away ' - ' formatting.
122
- dir_name.titleize! #=> 1 Sink or Swim
122
+ formatted_name.titleize! #=> 1 Sink or Swim
123
123
  end
124
124
 
125
125
  # Utility helper for getting the page title for display in the navtree.
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module NavTree
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "middleman-navtree"
6
- s.version = "0.1.6"
6
+ s.version = "0.1.7"
7
7
  s.licenses = ['MIT']
8
8
  s.date = Date.today.to_s
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-navtree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Braun