darkhelmet-darkext 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :major: 0
3
2
  :minor: 11
4
- :patch: 1
3
+ :patch: 2
4
+ :major: 0
@@ -25,14 +25,19 @@ class SinatraAppGenerator < RubiGen::Base
25
25
  record do |m|
26
26
  # Root directory and all subdirectories.
27
27
  m.directory('')
28
- %w(lib public views).each { |path| m.directory(path) }
28
+ %w(lib public views tmp).each { |path| m.directory(path) }
29
29
  %w(get put post delete).each do |path|
30
- m.template('http_method.rb', "lib/#{path}.rb", :assigns => { :method => path })
30
+ m.template('http_method.rb',
31
+ "lib/#{path}.rb",
32
+ :assigns => { :method => path })
31
33
  end
32
34
  m.template('helpers.rb', 'lib/helpers.rb')
33
35
  m.template('options.rb', 'lib/options.rb')
34
36
  m.template('error.rb', 'lib/error.rb')
35
37
  m.template('app.rb', "#{app_name}.rb", script_options)
38
+ m.template('gitignore', '.gitignore')
39
+ m.template('gitignore', 'tmp/.gitignore')
40
+ m.template('config.ru', 'config.ru')
36
41
  #m.dependency "install_rubigen_scripts", [destination_root, "rubygems"], :shebang => options[:shebang]
37
42
  end
38
43
  end
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- %w(rubygems sinatra/base darkext darkext/sinatra).each { |lib| require lib }
3
+ %w(rubygems haml sinatra/base darkext darkext/sinatra).each { |lib| require lib }
4
4
  Dir['lib/*.rb'].each { |file| load file }
5
5
 
6
6
  load 'local_options.rb' if File.exists?('local_options.rb')
@@ -0,0 +1,2 @@
1
+ require <%= "'#{app_name}'" %>
2
+ run <%= app_name_fixed %>Site
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: darkhelmet-darkext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Huckstep
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-06 00:00:00 -07:00
12
+ date: 2009-04-28 00:00:00 -07:00
13
13
  default_executable: sinatra-app
14
14
  dependencies: []
15
15
 
@@ -22,49 +22,35 @@ extensions: []
22
22
  extra_rdoc_files:
23
23
  - README.rdoc
24
24
  files:
25
- - VERSION.yml
26
- - README.rdoc
27
25
  - History.txt
28
- - bin/sinatra-app
26
+ - README.rdoc
27
+ - VERSION.yml
29
28
  - app_generators/sinatra_app_generator.rb
30
- - app_generators/templates
31
- - app_generators/templates/http_method.rb
32
29
  - app_generators/templates/app.rb
30
+ - app_generators/templates/config.ru
31
+ - app_generators/templates/error.rb
32
+ - app_generators/templates/gitignore
33
33
  - app_generators/templates/helpers.rb
34
+ - app_generators/templates/http_method.rb
34
35
  - app_generators/templates/options.rb
35
- - app_generators/templates/error.rb
36
- - lib/darkext
37
- - lib/darkext/numeric.rb
38
- - lib/darkext/string.rb
39
- - lib/darkext/io.rb
40
- - lib/darkext/fiber.rb
41
- - lib/darkext/symbol.rb
42
- - lib/darkext/statistics.rb
43
- - lib/darkext/sinatra.rb
36
+ - bin/sinatra-app
37
+ - lib/darkext.rb
38
+ - lib/darkext/array.rb
39
+ - lib/darkext/beagle.rb
44
40
  - lib/darkext/boolean.rb
41
+ - lib/darkext/fiber.rb
42
+ - lib/darkext/float.rb
45
43
  - lib/darkext/hash.rb
44
+ - lib/darkext/integer.rb
45
+ - lib/darkext/io.rb
46
46
  - lib/darkext/net.rb
47
+ - lib/darkext/numeric.rb
47
48
  - lib/darkext/object.rb
48
- - lib/darkext/array.rb
49
+ - lib/darkext/sinatra.rb
49
50
  - lib/darkext/sitemap_generator.rb
50
- - lib/darkext/beagle.rb
51
- - lib/darkext/float.rb
52
- - lib/darkext/integer.rb
53
- - lib/darkext.rb
54
- - test/helper.rb
55
- - test/array_test.rb
56
- - test/boolean_test.rb
57
- - test/fiber_test.rb
58
- - test/float_test.rb
59
- - test/hash_test.rb
60
- - test/integer_test.rb
61
- - test/io_test.rb
62
- - test/numeric_test.rb
63
- - test/object_test.rb
64
- - test/statistics_test.rb
65
- - test/string_test.rb
66
- - test/symbol_test.rb
67
- - spec/spec.opts
51
+ - lib/darkext/statistics.rb
52
+ - lib/darkext/string.rb
53
+ - lib/darkext/symbol.rb
68
54
  - spec/array_spec.rb
69
55
  - spec/beagle_spec.rb
70
56
  - spec/boolean_spec.rb
@@ -76,15 +62,28 @@ files:
76
62
  - spec/net_spec.rb
77
63
  - spec/numeric_spec.rb
78
64
  - spec/object_spec.rb
65
+ - spec/spec.opts
66
+ - spec/spec_helper.rb
79
67
  - spec/statistics_spec.rb
80
68
  - spec/string_spec.rb
81
69
  - spec/symbol_spec.rb
82
- - spec/spec_helper.rb
70
+ - test/array_test.rb
71
+ - test/boolean_test.rb
72
+ - test/fiber_test.rb
73
+ - test/float_test.rb
74
+ - test/hash_test.rb
75
+ - test/helper.rb
76
+ - test/integer_test.rb
77
+ - test/io_test.rb
78
+ - test/numeric_test.rb
79
+ - test/object_test.rb
80
+ - test/statistics_test.rb
81
+ - test/string_test.rb
82
+ - test/symbol_test.rb
83
83
  has_rdoc: true
84
84
  homepage: http://github.com/darkhelmet/darkext
85
85
  post_install_message:
86
86
  rdoc_options:
87
- - --inline-source
88
87
  - --charset=UTF-8
89
88
  require_paths:
90
89
  - lib
@@ -107,5 +106,32 @@ rubygems_version: 1.2.0
107
106
  signing_key:
108
107
  specification_version: 3
109
108
  summary: Just some useful Ruby functionality
110
- test_files: []
111
-
109
+ test_files:
110
+ - spec/array_spec.rb
111
+ - spec/beagle_spec.rb
112
+ - spec/boolean_spec.rb
113
+ - spec/fiber_spec.rb
114
+ - spec/float_spec.rb
115
+ - spec/hash_spec.rb
116
+ - spec/integer_spec.rb
117
+ - spec/io_spec.rb
118
+ - spec/net_spec.rb
119
+ - spec/numeric_spec.rb
120
+ - spec/object_spec.rb
121
+ - spec/statistics_spec.rb
122
+ - spec/string_spec.rb
123
+ - spec/symbol_spec.rb
124
+ - spec/spec_helper.rb
125
+ - test/helper.rb
126
+ - test/array_test.rb
127
+ - test/boolean_test.rb
128
+ - test/fiber_test.rb
129
+ - test/float_test.rb
130
+ - test/hash_test.rb
131
+ - test/integer_test.rb
132
+ - test/io_test.rb
133
+ - test/numeric_test.rb
134
+ - test/object_test.rb
135
+ - test/statistics_test.rb
136
+ - test/string_test.rb
137
+ - test/symbol_test.rb