sinatra-chassis 1.0.2 → 1.0.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
  SHA1:
3
- metadata.gz: 3dee18d111fd9c81d315b44e6fc176c6410bb65f
4
- data.tar.gz: 4ef2b7f3b4bd25c912278b997946224481815c99
3
+ metadata.gz: 1e8adbe9c10890d2ddfa21b0b7dd54230406f675
4
+ data.tar.gz: 6a8ff260d5e3f6d2e04ca5ce5edcd88abe836010
5
5
  SHA512:
6
- metadata.gz: 05fd9b565adfa76bd0a9286313c6602b30b8063cc0634fec5882fc839477392d0b62449932c0cfc225d310bf578c081167f29a64609b46ee919cc50077ff8c8e
7
- data.tar.gz: 9f8e6cecca2519a2f4e5af8b6258c6d2e8cd122600cc534876f7e36743c59c132816802fe5e70e0fbbe49a7fa2e52dd0166c9c649cc3756db3e9dedaec764832
6
+ metadata.gz: 8d6d3fbea50867a2453c4ac7ec742b2812ae7fe0bd8d5532ca0a96b24052384df9050104326809b08b02726793fa0b1a2e79ad93fae00f41bf3b9351b9adc15a
7
+ data.tar.gz: d9b1dac706ee2b3f2046b17cff09878354528203387d9a5877d638fdd1c6e4e884633b1af60cd23104c25552973272493e852027fe17a43f5c627178ab359102
@@ -55,7 +55,7 @@ module Sinatra
55
55
  return if x == nil
56
56
  words = x.split()
57
57
  return words[0..(options[:word_count]-1)].join(' ') + (words.length > options[:word_count] ? options[:end_string] : '')
58
- elsif is_numeric? x
58
+ elsif numeric? x
59
59
  number = "%.#{options[:decimal]}f" % x.to_f
60
60
  number = number.to_f unless options[:trailing_zeros]
61
61
  return number
@@ -76,6 +76,13 @@ module Sinatra
76
76
  # Public: Additions to the Sinatra app.
77
77
  def self.registered(app)
78
78
 
79
+ # Deprecated: Defines the default load path to be used with require_directory.
80
+ #
81
+ # Example
82
+ #
83
+ # require_directory(settings.load_path)
84
+ app.set :load_path, ['config', 'settings', 'modules', 'helpers', 'libraries', 'models', 'controllers', 'routes']
85
+
79
86
  # Public: Defines the default mobile user agents.
80
87
  app.set :mobile_user_agents, [/iPhone/, /Android.*AppleWebKit/]
81
88
 
@@ -11,6 +11,7 @@ set :session_secret, 'secret123'
11
11
  require_directory([
12
12
  'config',
13
13
  'settings',
14
+ 'modules',
14
15
  'helpers',
15
16
  'libraries',
16
17
  'models',
@@ -4,7 +4,7 @@ $:.push File.expand_path('../lib', __FILE__)
4
4
  Gem::Specification.new do |s|
5
5
 
6
6
  s.name = 'sinatra-chassis'
7
- s.version = '1.0.2'
7
+ s.version = '1.0.3'
8
8
  s.author = 'Jarrod Taylor'
9
9
  s.email = 'jarrodtaylor@icloud.com'
10
10
  s.homepage = 'http://jarrodtaylor.github.com/sinatra-chassis'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-chassis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarrod Taylor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-06 00:00:00.000000000 Z
11
+ date: 2013-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-script