sinatra-chassis 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sinatra/chassis/helpers.rb +1 -1
- data/lib/sinatra/chassis.rb +7 -0
- data/lib/sinatra/templates/chassis/app.rb +1 -0
- data/sinatra-chassis.gemspec +1 -1
- 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: 1e8adbe9c10890d2ddfa21b0b7dd54230406f675
|
4
|
+
data.tar.gz: 6a8ff260d5e3f6d2e04ca5ce5edcd88abe836010
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/sinatra/chassis.rb
CHANGED
@@ -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
|
|
data/sinatra-chassis.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
11
|
+
date: 2013-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-script
|