kelredd-sinatra-helpers 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sinatra_helpers/generator/app.rb +2 -1
- data/lib/sinatra_helpers/version.rb +1 -1
- metadata +52 -25
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'ftools'
|
1
2
|
require 'erb'
|
2
3
|
require 'useful/ruby_extensions/string'
|
3
4
|
|
@@ -26,7 +27,7 @@ module SinatraHelpers::Generator
|
|
26
27
|
private
|
27
28
|
|
28
29
|
def build_template(root_path, dir_hash)
|
29
|
-
FileUtils.mkdir_p(root_path)
|
30
|
+
::FileUtils.mkdir_p(root_path)
|
30
31
|
dir_hash.each do |k, v|
|
31
32
|
if v.kind_of?(::Hash)
|
32
33
|
build_template(File.join(root_path,k.to_s), v)
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kelredd-sinatra-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 10
|
9
|
+
version: 0.1.10
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Kelly Redding
|
@@ -9,59 +14,79 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-02-
|
17
|
+
date: 2010-02-25 00:00:00 -06:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: kelredd-useful
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 2
|
30
|
+
- 6
|
23
31
|
version: 0.2.6
|
24
|
-
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
25
34
|
- !ruby/object:Gem::Dependency
|
26
35
|
name: shoulda
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
38
|
requirements:
|
31
39
|
- - ">="
|
32
40
|
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 2
|
43
|
+
- 10
|
44
|
+
- 2
|
33
45
|
version: 2.10.2
|
34
|
-
|
46
|
+
type: :development
|
47
|
+
version_requirements: *id002
|
35
48
|
- !ruby/object:Gem::Dependency
|
36
49
|
name: sinatra
|
37
|
-
|
38
|
-
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
52
|
requirements:
|
41
53
|
- - ">="
|
42
54
|
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 0
|
57
|
+
- 9
|
58
|
+
- 4
|
43
59
|
version: 0.9.4
|
44
|
-
|
60
|
+
type: :development
|
61
|
+
version_requirements: *id003
|
45
62
|
- !ruby/object:Gem::Dependency
|
46
63
|
name: rack-test
|
47
|
-
|
48
|
-
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
prerelease: false
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
66
|
requirements:
|
51
67
|
- - ">="
|
52
68
|
- !ruby/object:Gem::Version
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
- 5
|
72
|
+
- 3
|
53
73
|
version: 0.5.3
|
54
|
-
|
74
|
+
type: :development
|
75
|
+
version_requirements: *id004
|
55
76
|
- !ruby/object:Gem::Dependency
|
56
77
|
name: webrat
|
57
|
-
|
58
|
-
|
59
|
-
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
prerelease: false
|
79
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
60
80
|
requirements:
|
61
81
|
- - ">="
|
62
82
|
- !ruby/object:Gem::Version
|
83
|
+
segments:
|
84
|
+
- 0
|
85
|
+
- 6
|
86
|
+
- 0
|
63
87
|
version: 0.6.0
|
64
|
-
|
88
|
+
type: :development
|
89
|
+
version_requirements: *id005
|
65
90
|
description:
|
66
91
|
email: kelly@kelredd.com
|
67
92
|
executables:
|
@@ -120,18 +145,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
145
|
requirements:
|
121
146
|
- - ">="
|
122
147
|
- !ruby/object:Gem::Version
|
148
|
+
segments:
|
149
|
+
- 0
|
123
150
|
version: "0"
|
124
|
-
version:
|
125
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
152
|
requirements:
|
127
153
|
- - ">="
|
128
154
|
- !ruby/object:Gem::Version
|
155
|
+
segments:
|
156
|
+
- 0
|
129
157
|
version: "0"
|
130
|
-
version:
|
131
158
|
requirements: []
|
132
159
|
|
133
160
|
rubyforge_project:
|
134
|
-
rubygems_version: 1.3.
|
161
|
+
rubygems_version: 1.3.6
|
135
162
|
signing_key:
|
136
163
|
specification_version: 3
|
137
164
|
summary: a ruby gem with a bunch of helpers to make Sinatra more useful
|