wedge 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roda/plugins/wedge.rb +1 -1
- data/lib/wedge/utilis/titleize.rb +2 -1
- data/lib/wedge/version.rb +1 -1
- data/lib/wedge.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05808d3390e0b02a29aff8a0301994aa46016f3c
|
4
|
+
data.tar.gz: 524dd9d224b0d92e2552d5ad4b0375b13fe8a5c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6dd8fcc915e919463ba78fc15faf5e61102f7495bb9b1fbc3f5394962d2a2caa44ec96fdf6bee1e22e1416ad1db58b8e83c857825edd7b5f820487b44e0ac6d
|
7
|
+
data.tar.gz: 9b3f8ea91c4a023f4d0447db590bdb09e4e1d394fff742ba0365e70faca8bb219ed18a5cc8dda3cb262e18551b62094c44e662a4d1ce7576206b0adee3c0720d
|
data/lib/roda/plugins/wedge.rb
CHANGED
@@ -19,7 +19,7 @@ module Titleize
|
|
19
19
|
# "the good german" # => "The Good German"
|
20
20
|
def titleize(title)
|
21
21
|
title = title.dup
|
22
|
-
title.downcase
|
22
|
+
title = title.downcase unless title[/[[:lower:]]/] # assume all-caps need fixing
|
23
23
|
|
24
24
|
phrases(title).map do |phrase|
|
25
25
|
words = phrase.split
|
@@ -62,6 +62,7 @@ module Titleize
|
|
62
62
|
if phrases.size > 1
|
63
63
|
phrases[0..-2].each_with_index do |phrase, index|
|
64
64
|
if SMALL_WORDS.include?(phrase.split.last.downcase)
|
65
|
+
# phrases[index] = "#{phrases[index]} #{phrases.slice!(index + 1)}"
|
65
66
|
phrases[index] << " " + phrases.slice!(index + 1)
|
66
67
|
end
|
67
68
|
end
|
data/lib/wedge/version.rb
CHANGED
data/lib/wedge.rb
CHANGED
@@ -180,6 +180,7 @@ class Wedge
|
|
180
180
|
args = { component_class: IndifferentHash.new }
|
181
181
|
|
182
182
|
unless RUBY_ENGINE == 'opal'
|
183
|
+
args[:path] = method(:assets_url).source_location.first.sub('/wedge.rb', '')
|
183
184
|
args[:assets_key] = begin
|
184
185
|
if defined?(PlatformAPI) && ENV['HEROKU_TOKEN'] && ENV['HEROKU_APP']
|
185
186
|
heroku = PlatformAPI.connect_oauth(ENV['HEROKU_TOKEN'], default_headers: {'Range' => 'version ..; order=desc'})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wedge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|