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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a7f35b59df6f38f61f7ed1edb2235dc65568831
4
- data.tar.gz: ed6cd2a75e7399ff9f040e40a3430bf53dfa5830
3
+ metadata.gz: 05808d3390e0b02a29aff8a0301994aa46016f3c
4
+ data.tar.gz: 524dd9d224b0d92e2552d5ad4b0375b13fe8a5c3
5
5
  SHA512:
6
- metadata.gz: 48d41ae7754dff6d7b7e29f78a3ac6d6875d865625f4efcdb1b4b87daa12411a6f11bc3396b62db5179ff4de9a2145216d11e7635566aff33c5aecd6b892d187
7
- data.tar.gz: 054638b0ca0219ce43eb8898b49b61bd55d1a0b2c5477980ea11b994515c02e462d49ed43d0b60b33de65f572893fbc521c116063ea16c480c1ce87a5ff3b2d2
6
+ metadata.gz: d6dd8fcc915e919463ba78fc15faf5e61102f7495bb9b1fbc3f5394962d2a2caa44ec96fdf6bee1e22e1416ad1db58b8e83c857825edd7b5f820487b44e0ac6d
7
+ data.tar.gz: 9b3f8ea91c4a023f4d0447db590bdb09e4e1d394fff742ba0365e70faca8bb219ed18a5cc8dda3cb262e18551b62094c44e662a4d1ce7576206b0adee3c0720d
@@ -59,7 +59,7 @@ class Roda
59
59
  path = ::Wedge.config.path.gsub(/\/wedge.rb$/, '')
60
60
  File.read("#{path}/#{component}.rb")
61
61
  else
62
- File.read("#{ROOT_PATH}/#{component}.rb")
62
+ File.read("#{component}.rb")
63
63
  end
64
64
  when 'call'
65
65
  body = scope.request.body.read
@@ -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! unless title[/[[:lower:]]/] # assume all-caps need fixing
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
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.1.15'
2
+ VERSION = '0.1.16'
3
3
  end
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.15
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-01 00:00:00.000000000 Z
11
+ date: 2015-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal