hyper 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ module Hyper
5
5
  include Term::ANSIColor
6
6
 
7
7
  # Path to template directory
8
- TEMPLATE_PATH = File.expand_path(File.dirname(__FILE__) + '/../../template').freeze
8
+ TEMPLATE_PATH = File.expand_path(File.dirname(__FILE__) + '/../../template')
9
9
 
10
10
  def initialize(name, options = {})
11
11
  @name = name
@@ -2,7 +2,7 @@ module Hyper
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  def self.to_s
8
8
  [MAJOR, MINOR, TINY].join('.')
@@ -0,0 +1 @@
1
+ gem 'hyper'
@@ -0,0 +1,11 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ require 'rack'
4
+ require 'hyper'
5
+
6
+ builder = Rack::Builder.new do
7
+ # Add middleware here
8
+ run Hyper
9
+ end
10
+
11
+ run builder.to_app
@@ -0,0 +1,3 @@
1
+ module Hyper::Helper
2
+ # methods added here will be available in your templates
3
+ end
@@ -0,0 +1,9 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>Hyper Site</title>
5
+ </head>
6
+ <body>
7
+ <%= yield %>
8
+ </body>
9
+ </html>
@@ -0,0 +1 @@
1
+ <p>Find me in <%= __FILE__ -%></p>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 2
10
- version: 0.4.2
9
+ - 3
10
+ version: 0.4.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Wilding
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-09 00:00:00 Z
18
+ date: 2011-11-11 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rack
@@ -92,6 +92,12 @@ files:
92
92
  - lib/hyper/utils.rb
93
93
  - lib/hyper/version.rb
94
94
  - lib/hyper.rb
95
+ - template/config.ru
96
+ - template/Gemfile
97
+ - template/lib/helper.rb
98
+ - template/public/stylesheets/default.css
99
+ - template/templates/layout.html.erb
100
+ - template/templates/views/index.html.erb
95
101
  - README.md
96
102
  - bin/hyper
97
103
  homepage: http://github.com/jameswilding/hyper