kelredd-sinatra-helpers 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -20,6 +20,7 @@ spec = Gem::Specification.new do |s|
20
20
  s.add_dependency('kelredd-useful', ['>= 0.3.3'])
21
21
 
22
22
  s.add_development_dependency("shoulda", [">= 2.10.2"])
23
+ s.add_development_dependency("leftright", [">= 0.0.6"])
23
24
  s.add_development_dependency("sinatra", [">= 0.9.4"])
24
25
  s.add_development_dependency("rack-test", [">= 0.5.3"])
25
26
  s.add_development_dependency("webrat", [">= 0.6.0"])
@@ -36,7 +36,14 @@ Rack::Less.configure do |config|
36
36
  config.combinations = {
37
37
  'web' => ['reset', 'app']
38
38
  }
39
- config.cache = production?
39
+ config.combination_timestamp = if !development?
40
+ File.mtime(Sinatra::Application.root).to_i
41
+ else
42
+ true
43
+ end
44
+ if config.cache = !development?
45
+ config.compress = :whitespace
46
+ end
40
47
  end
41
48
 
42
49
  use Rack::Sprockets
@@ -11,7 +11,7 @@
11
11
  <meta name="robots" content="noindex,nofollow" />
12
12
  <% end %>
13
13
  <link rel="icon" type="image/png" href="/favicon.png"></link>
14
- <%= stylesheet_link_tag Rack::Less.combinations('web'), :media => "all" %>
14
+ <%= stylesheet_link_tag Rack::Less.stylesheet('web'), :media => "all" %>
15
15
  <% unless @noscript %>
16
16
  <%= javascript_include_tag 'app.js' %>
17
17
  <% end %>
@@ -3,7 +3,7 @@ module SinatraHelpers
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 2
6
- TINY = 7
6
+ TINY = 8
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelredd-sinatra-helpers
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 7
10
- version: 0.2.7
9
+ - 8
10
+ version: 0.2.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Redding
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-24 00:00:00 -05:00
18
+ date: 2010-08-20 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -51,9 +51,25 @@ dependencies:
51
51
  type: :development
52
52
  version_requirements: *id002
53
53
  - !ruby/object:Gem::Dependency
54
- name: sinatra
54
+ name: leftright
55
55
  prerelease: false
56
56
  requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ hash: 19
62
+ segments:
63
+ - 0
64
+ - 0
65
+ - 6
66
+ version: 0.0.6
67
+ type: :development
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ name: sinatra
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
57
73
  none: false
58
74
  requirements:
59
75
  - - ">="
@@ -65,11 +81,11 @@ dependencies:
65
81
  - 4
66
82
  version: 0.9.4
67
83
  type: :development
68
- version_requirements: *id003
84
+ version_requirements: *id004
69
85
  - !ruby/object:Gem::Dependency
70
86
  name: rack-test
71
87
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
88
+ requirement: &id005 !ruby/object:Gem::Requirement
73
89
  none: false
74
90
  requirements:
75
91
  - - ">="
@@ -81,11 +97,11 @@ dependencies:
81
97
  - 3
82
98
  version: 0.5.3
83
99
  type: :development
84
- version_requirements: *id004
100
+ version_requirements: *id005
85
101
  - !ruby/object:Gem::Dependency
86
102
  name: webrat
87
103
  prerelease: false
88
- requirement: &id005 !ruby/object:Gem::Requirement
104
+ requirement: &id006 !ruby/object:Gem::Requirement
89
105
  none: false
90
106
  requirements:
91
107
  - - ">="
@@ -97,7 +113,7 @@ dependencies:
97
113
  - 0
98
114
  version: 0.6.0
99
115
  type: :development
100
- version_requirements: *id005
116
+ version_requirements: *id006
101
117
  description:
102
118
  email: kelly@kelredd.com
103
119
  executables: