blossom 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/blossom.rb +7 -4
  2. data/lib/blossom/version.rb +1 -1
  3. metadata +86 -88
@@ -179,9 +179,12 @@ class Blossom::Application < Rack::Builder
179
179
 
180
180
  def file_exists? suffix
181
181
  condition do
182
- basename = File.basename(request.path_info)
183
- barename = basename.sub(/\.[^.]*$/, '')
184
- File.exist? File.join(settings.root, "#{barename}.#{suffix}")
182
+ suffix.respond_to? :any? or suffix = [suffix]
183
+ suffix.any? {
184
+ basename = File.basename(request.path_info)
185
+ barename = basename.sub(/\.[^.]*$/, '')
186
+ File.exist? File.join(settings.root, "#{barename}.#{suffix}")
187
+ }
185
188
  end
186
189
  end
187
190
  end
@@ -192,7 +195,7 @@ class Blossom::Application < Rack::Builder
192
195
  end
193
196
  end
194
197
 
195
- app.get "/:name.css", :file_exists? => :sass do
198
+ app.get "/:name.css", :file_exists? => [:scss, :sass] do
196
199
  content_type :css
197
200
  sass params[:name].to_sym
198
201
  end
@@ -1,3 +1,3 @@
1
1
  module Blossom
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,131 +1,129 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: blossom
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 0
9
- version: 0.1.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Daniel Brockman
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2012-01-10 00:00:00 +01:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-11-08 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: sinatra
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
25
19
  - - ~>
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 0
30
- version: "1.0"
20
+ - !ruby/object:Gem::Version
21
+ version: '1.0'
31
22
  type: :runtime
32
- version_requirements: *id001
33
- - !ruby/object:Gem::Dependency
34
- name: sass
35
23
  prerelease: false
36
- requirement: &id002 !ruby/object:Gem::Requirement
37
- requirements:
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: sass
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
38
35
  - - ~>
39
- - !ruby/object:Gem::Version
40
- segments:
41
- - 3
42
- - 1
43
- - 1
36
+ - !ruby/object:Gem::Version
44
37
  version: 3.1.1
45
38
  type: :runtime
46
- version_requirements: *id002
47
- - !ruby/object:Gem::Dependency
48
- name: haml
49
39
  prerelease: false
50
- requirement: &id003 !ruby/object:Gem::Requirement
51
- requirements:
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
52
43
  - - ~>
53
- - !ruby/object:Gem::Version
54
- segments:
55
- - 3
56
- - 1
57
- - 1
44
+ - !ruby/object:Gem::Version
45
+ version: 3.1.1
46
+ - !ruby/object:Gem::Dependency
47
+ name: haml
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
58
53
  version: 3.1.1
59
54
  type: :runtime
60
- version_requirements: *id003
61
- - !ruby/object:Gem::Dependency
62
- name: compass
63
55
  prerelease: false
64
- requirement: &id004 !ruby/object:Gem::Requirement
65
- requirements:
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
66
59
  - - ~>
67
- - !ruby/object:Gem::Version
68
- segments:
69
- - 0
70
- - 10
71
- version: "0.10"
60
+ - !ruby/object:Gem::Version
61
+ version: 3.1.1
62
+ - !ruby/object:Gem::Dependency
63
+ name: compass
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: '0.10'
72
70
  type: :runtime
73
- version_requirements: *id004
74
- - !ruby/object:Gem::Dependency
75
- name: rack-normalize-domain
76
71
  prerelease: false
77
- requirement: &id005 !ruby/object:Gem::Requirement
78
- requirements:
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
79
75
  - - ~>
80
- - !ruby/object:Gem::Version
81
- segments:
82
- - 0
83
- - 0
84
- - 1
76
+ - !ruby/object:Gem::Version
77
+ version: '0.10'
78
+ - !ruby/object:Gem::Dependency
79
+ name: rack-normalize-domain
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
85
  version: 0.0.1
86
86
  type: :runtime
87
- version_requirements: *id005
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 0.0.1
88
94
  description:
89
95
  email: daniel@gointeractive.se
90
- executables:
96
+ executables:
91
97
  - blossom
92
98
  extensions: []
93
-
94
99
  extra_rdoc_files: []
95
-
96
- files:
100
+ files:
97
101
  - bin/blossom
98
102
  - lib/blossom.rb
99
103
  - lib/blossom/version.rb
100
- has_rdoc: true
101
104
  homepage: http://github.com/dbrock/blossom
102
105
  licenses: []
103
-
104
106
  post_install_message:
105
107
  rdoc_options: []
106
-
107
- require_paths:
108
+ require_paths:
108
109
  - lib
109
- required_ruby_version: !ruby/object:Gem::Requirement
110
- requirements:
111
- - - ">="
112
- - !ruby/object:Gem::Version
113
- segments:
114
- - 0
115
- version: "0"
116
- required_rubygems_version: !ruby/object:Gem::Requirement
117
- requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- segments:
121
- - 0
122
- version: "0"
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
123
122
  requirements: []
124
-
125
123
  rubyforge_project:
126
- rubygems_version: 1.3.6
124
+ rubygems_version: 1.8.23
127
125
  signing_key:
128
126
  specification_version: 3
129
127
  summary: Quick-start web development with Haml, Sass and Compass.
130
128
  test_files: []
131
-
129
+ has_rdoc: