scharfie-bones 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bones/initializer.rb +6 -13
- data/lib/bones/template.rb +3 -0
- data/lib/boot.rb +3 -2
- data/lib/tasks/bones.rb +1 -1
- data/pushables/Rakefile +3 -0
- data/pushables/boot.rb +11 -0
- data/{lib → pushables}/config.ru +0 -1
- data/{bones.gemspec → scharfie-bones.gemspec} +9 -7
- metadata +11 -25
- data/lib/Rakefile +0 -14
data/lib/bones/initializer.rb
CHANGED
@@ -47,23 +47,16 @@ class Bones
|
|
47
47
|
end
|
48
48
|
|
49
49
|
ensure_file(Bones.root / 'Rakefile') do |f|
|
50
|
-
|
51
|
-
|
50
|
+
f.write File.read(Bones.system_path / '../pushables/Rakefile')
|
51
|
+
end
|
52
|
+
|
53
|
+
ensure_file(Bones.root / 'boot.rb') do |f|
|
54
|
+
f.write File.read(Bones.system_path / '../pushables/boot.rb')
|
52
55
|
end
|
53
56
|
|
54
57
|
ensure_file(Bones.root / 'config.ru') do |f|
|
55
|
-
|
56
|
-
f.write File.read(Bones.system_path / 'config.ru')
|
58
|
+
f.write File.read(Bones.system_path / '../pushables/config.ru')
|
57
59
|
end
|
58
|
-
|
59
|
-
puts <<-HELP if __FILE__ == $0
|
60
|
-
|
61
|
-
All set! Now just run:
|
62
|
-
rake server
|
63
|
-
|
64
|
-
The app will run on port 3000
|
65
|
-
|
66
|
-
HELP
|
67
60
|
end
|
68
61
|
end
|
69
62
|
end
|
data/lib/bones/template.rb
CHANGED
@@ -76,6 +76,9 @@ class Bones
|
|
76
76
|
# Compiles the template (along with the layout
|
77
77
|
# if necessary)
|
78
78
|
def compile
|
79
|
+
# go away, favicon requests
|
80
|
+
return String.new if File.basename(filename) =~ /^favicon.ico/
|
81
|
+
|
79
82
|
unless File.exist?(filename)
|
80
83
|
raise "Template missing\n#{filename}"
|
81
84
|
end
|
data/lib/boot.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'activesupport'
|
3
|
-
|
3
|
+
require 'rack'
|
4
4
|
require File.join(File.dirname(__FILE__), 'bones.rb')
|
5
5
|
require File.join(File.dirname(__FILE__), 'extensions.rb')
|
6
6
|
|
7
|
-
ActiveSupport::Dependencies.load_paths.push
|
7
|
+
ActiveSupport::Dependencies.load_paths.push Bones.system_path
|
8
|
+
$:.push Bones.system_path
|
8
9
|
|
9
10
|
require 'yaml'
|
10
11
|
require 'fileutils'
|
data/lib/tasks/bones.rb
CHANGED
data/pushables/Rakefile
ADDED
data/pushables/boot.rb
ADDED
data/{lib → pushables}/config.ru
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
|
-
s.name = "bones"
|
3
|
-
s.version = "0.2.
|
4
|
-
s.date = "2009-04-
|
2
|
+
s.name = "scharfie-bones"
|
3
|
+
s.version = "0.2.3"
|
4
|
+
s.date = "2009-04-20"
|
5
5
|
s.authors = ["Chris Scharf", "Ryan Heath"]
|
6
6
|
s.email = "scharfie@gmail.com"
|
7
7
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.files = [
|
19
19
|
'bin',
|
20
20
|
'bin/bones',
|
21
|
-
'bones.gemspec',
|
21
|
+
'scharfie-bones.gemspec',
|
22
22
|
'lib/bones',
|
23
23
|
'lib/bones/cache.rb',
|
24
24
|
'lib/bones/initializer.rb',
|
@@ -30,7 +30,6 @@ Gem::Specification.new do |s|
|
|
30
30
|
'lib/bones/versioned_release.rb',
|
31
31
|
'lib/bones.rb',
|
32
32
|
'lib/boot.rb',
|
33
|
-
'lib/config.ru',
|
34
33
|
'lib/extensions.rb',
|
35
34
|
'lib/helpers',
|
36
35
|
'lib/helpers/application_helper.rb',
|
@@ -39,7 +38,6 @@ Gem::Specification.new do |s|
|
|
39
38
|
'lib/layouts/application.html.erb',
|
40
39
|
'lib/pages/directory.html.erb',
|
41
40
|
'lib/pages/intro.html.erb',
|
42
|
-
'lib/Rakefile',
|
43
41
|
'lib/tasks',
|
44
42
|
'lib/tasks/bones.rb',
|
45
43
|
'Rakefile',
|
@@ -70,7 +68,11 @@ Gem::Specification.new do |s|
|
|
70
68
|
'test/test_cache.rb',
|
71
69
|
'test/test_template.rb',
|
72
70
|
'test/test_example_site.rb',
|
73
|
-
'test/test_helper.rb'
|
71
|
+
'test/test_helper.rb',
|
72
|
+
'pushables',
|
73
|
+
'pushables/boot.rb',
|
74
|
+
'pushables/config.ru',
|
75
|
+
'pushables/Rakefile'
|
74
76
|
]
|
75
77
|
|
76
78
|
# Dependencies
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scharfie-bones
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Scharf
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-04-
|
13
|
+
date: 2009-04-20 00:00:00 -04:00
|
14
14
|
default_executable: bones
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -42,10 +42,8 @@ extensions: []
|
|
42
42
|
extra_rdoc_files: []
|
43
43
|
|
44
44
|
files:
|
45
|
-
- bin
|
46
45
|
- bin/bones
|
47
|
-
- bones.gemspec
|
48
|
-
- lib/bones
|
46
|
+
- scharfie-bones.gemspec
|
49
47
|
- lib/bones/cache.rb
|
50
48
|
- lib/bones/initializer.rb
|
51
49
|
- lib/bones/proxy.rb
|
@@ -56,49 +54,37 @@ files:
|
|
56
54
|
- lib/bones/versioned_release.rb
|
57
55
|
- lib/bones.rb
|
58
56
|
- lib/boot.rb
|
59
|
-
- lib/config.ru
|
60
57
|
- lib/extensions.rb
|
61
|
-
- lib/helpers
|
62
58
|
- lib/helpers/application_helper.rb
|
63
59
|
- lib/helpers/core_helper.rb
|
64
|
-
- lib/layouts
|
65
60
|
- lib/layouts/application.html.erb
|
66
61
|
- lib/pages/directory.html.erb
|
67
62
|
- lib/pages/intro.html.erb
|
68
|
-
- lib/Rakefile
|
69
|
-
- lib/tasks
|
70
63
|
- lib/tasks/bones.rb
|
71
64
|
- Rakefile
|
72
65
|
- README
|
73
|
-
- test
|
74
|
-
- test/example_site
|
75
|
-
- test/example_site/helpers
|
76
66
|
- test/example_site/helpers/custom_helper.rb
|
77
|
-
- test/example_site/layouts
|
78
67
|
- test/example_site/layouts/example_layout.html.erb
|
79
|
-
- test/example_site/pages
|
80
68
|
- test/example_site/pages/about.html.erb
|
81
69
|
- test/example_site/pages/index.html.erb
|
82
|
-
- test/example_site/pages/partials
|
83
70
|
- test/example_site/pages/partials/_footer.html.erb
|
84
|
-
- test/example_site/pages/things
|
85
71
|
- test/example_site/pages/things/a.html.erb
|
86
|
-
- test/example_site/public
|
87
|
-
- test/example_site/public/images
|
88
72
|
- test/example_site/public/images/.gitignore
|
89
|
-
- test/example_site/public/javascripts
|
90
73
|
- test/example_site/public/javascripts/.gitignore
|
91
|
-
- test/example_site/public/stylesheets
|
92
74
|
- test/example_site/public/stylesheets/.gitignore
|
93
|
-
- test/example_site/public/videos
|
94
75
|
- test/example_site/public/videos/.gitignore
|
95
76
|
- test/test_bones.rb
|
96
77
|
- test/test_cache.rb
|
97
78
|
- test/test_template.rb
|
98
79
|
- test/test_example_site.rb
|
99
80
|
- test/test_helper.rb
|
100
|
-
|
81
|
+
- pushables/boot.rb
|
82
|
+
- pushables/config.ru
|
83
|
+
- pushables/Rakefile
|
84
|
+
has_rdoc: true
|
101
85
|
homepage: http://github.com/scharfie/bones
|
86
|
+
licenses: []
|
87
|
+
|
102
88
|
post_install_message:
|
103
89
|
rdoc_options: []
|
104
90
|
|
@@ -119,9 +105,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
105
|
requirements: []
|
120
106
|
|
121
107
|
rubyforge_project:
|
122
|
-
rubygems_version: 1.
|
108
|
+
rubygems_version: 1.3.5
|
123
109
|
signing_key:
|
124
|
-
specification_version:
|
110
|
+
specification_version: 3
|
125
111
|
summary: Simple HTML mockup framework for designers using ERB
|
126
112
|
test_files: []
|
127
113
|
|
data/lib/Rakefile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# Bones
|
2
|
-
bones_boot = File.join(File.dirname(__FILE__), 'bones', 'boot.rb')
|
3
|
-
|
4
|
-
if File.file?(bones_boot)
|
5
|
-
require bones_boot
|
6
|
-
else
|
7
|
-
require 'rubygems'
|
8
|
-
require 'bones'
|
9
|
-
end
|
10
|
-
|
11
|
-
Bones.root = File.expand_path('.')
|
12
|
-
|
13
|
-
require 'rake'
|
14
|
-
require 'tasks/bones'
|