blossom 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/blossom.rb +4 -1
  2. metadata +5 -7
data/lib/blossom.rb CHANGED
@@ -7,7 +7,7 @@ require "rack/strip-www"
7
7
  require "hassle"
8
8
 
9
9
  module Blossom
10
- VERSION = "0.0.11"
10
+ VERSION = "0.0.12"
11
11
  end
12
12
 
13
13
  def Blossom.get_seconds(value, unit)
@@ -97,6 +97,9 @@ def Blossom.Base(root_file, index = :index, blossom_options = {})
97
97
  end
98
98
  end
99
99
  end
100
+
101
+ code = File.read("#{root}/#{index}.rb") rescue nil
102
+ app.class_eval(code) if code
100
103
  end
101
104
  end
102
105
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blossom
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 11
10
- version: 0.0.11
9
+ - 12
10
+ version: 0.0.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Brockman
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-04 00:00:00 +02:00
19
- default_executable:
18
+ date: 2011-05-08 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: sinatra
@@ -110,7 +109,6 @@ extra_rdoc_files: []
110
109
  files:
111
110
  - lib/blossom.rb
112
111
  - bin/blossom
113
- has_rdoc: true
114
112
  homepage: http://github.com/dbrock/blossom
115
113
  licenses: []
116
114
 
@@ -140,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
138
  requirements: []
141
139
 
142
140
  rubyforge_project:
143
- rubygems_version: 1.6.2
141
+ rubygems_version: 1.8.1
144
142
  signing_key:
145
143
  specification_version: 3
146
144
  summary: Quick-start web development with Haml, Sass and Compass.