padrino-gen 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.3
1
+ 0.9.4
@@ -2,13 +2,12 @@ module Padrino
2
2
  module Generators
3
3
  module Components
4
4
  module Renderers
5
-
6
- module ErbGen
5
+
6
+ module ErbGen
7
7
  def setup_renderer
8
8
  require_dependencies 'erubis'
9
9
  end
10
10
  end
11
-
12
11
  end
13
12
  end
14
13
  end
@@ -45,8 +45,8 @@ module Padrino
45
45
  require 'spec/rake/spectask'
46
46
 
47
47
  Spec::Rake::SpecTask.new(:spec) do |t|
48
- t.spec_opts = ['--options', "spec/spec.opts"]
49
48
  t.spec_files = Dir['**/*_spec.rb']
49
+ t.spec_opts = %w(-fs --color)
50
50
  end
51
51
  TEST
52
52
  end
@@ -68,7 +68,6 @@ module Padrino
68
68
  require_dependencies 'rspec', :require => 'spec', :group => 'test'
69
69
  insert_test_suite_setup RSPEC_SETUP, :path => "spec/spec_helper.rb"
70
70
  create_file destination_root("spec/spec.rake"), RSPEC_RAKE
71
- create_file destination_root("spec/spec.opts"), "--color"
72
71
  end
73
72
 
74
73
  # Generates a controller test given the controllers name
@@ -8,9 +8,8 @@ begin
8
8
  rescue LoadError
9
9
  # Fallback on doing the resolve at runtime.
10
10
  require 'rubygems'
11
- gem 'bundler', '0.9.7'
12
11
  require 'bundler'
13
- Bundler.setup(:default, PADRINO_ENV)
12
+ Bundler.setup
14
13
  end
15
14
 
16
15
  Bundler.require(:default, PADRINO_ENV)
data/padrino-gen.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{padrino-gen}
8
- s.version = "0.9.3"
8
+ s.version = "0.9.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
12
- s.date = %q{2010-03-01}
12
+ s.date = %q{2010-03-03}
13
13
  s.default_executable = %q{padrino-gen}
14
14
  s.description = %q{Generators for easily creating and building padrino applications from the console}
15
15
  s.email = %q{padrinorb@gmail.com}
@@ -101,7 +101,7 @@ Gem::Specification.new do |s|
101
101
  s.rdoc_options = ["--charset=UTF-8"]
102
102
  s.require_paths = ["lib"]
103
103
  s.rubyforge_project = %q{padrino-gen}
104
- s.rubygems_version = %q{1.3.5}
104
+ s.rubygems_version = %q{1.3.6}
105
105
  s.summary = %q{Generators for easily creating and building padrino applications}
106
106
 
107
107
  if s.respond_to? :specification_version then
@@ -109,7 +109,7 @@ Gem::Specification.new do |s|
109
109
  s.specification_version = 3
110
110
 
111
111
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
112
- s.add_runtime_dependency(%q<padrino-core>, ["= 0.9.3"])
112
+ s.add_runtime_dependency(%q<padrino-core>, ["= 0.9.4"])
113
113
  s.add_development_dependency(%q<haml>, [">= 2.2.1"])
114
114
  s.add_development_dependency(%q<shoulda>, [">= 2.10.3"])
115
115
  s.add_development_dependency(%q<mocha>, [">= 0.9.7"])
@@ -117,7 +117,7 @@ Gem::Specification.new do |s|
117
117
  s.add_development_dependency(%q<webrat>, [">= 0.5.1"])
118
118
  s.add_development_dependency(%q<fakeweb>, [">= 1.2.3"])
119
119
  else
120
- s.add_dependency(%q<padrino-core>, ["= 0.9.3"])
120
+ s.add_dependency(%q<padrino-core>, ["= 0.9.4"])
121
121
  s.add_dependency(%q<haml>, [">= 2.2.1"])
122
122
  s.add_dependency(%q<shoulda>, [">= 2.10.3"])
123
123
  s.add_dependency(%q<mocha>, [">= 0.9.7"])
@@ -126,7 +126,7 @@ Gem::Specification.new do |s|
126
126
  s.add_dependency(%q<fakeweb>, [">= 1.2.3"])
127
127
  end
128
128
  else
129
- s.add_dependency(%q<padrino-core>, ["= 0.9.3"])
129
+ s.add_dependency(%q<padrino-core>, ["= 0.9.4"])
130
130
  s.add_dependency(%q<haml>, [">= 2.2.1"])
131
131
  s.add_dependency(%q<shoulda>, [">= 2.10.3"])
132
132
  s.add_dependency(%q<mocha>, [">= 0.9.7"])
@@ -221,7 +221,6 @@ class TestProjectGenerator < Test::Unit::TestCase
221
221
  assert_match_in_file(/PADRINO_ENV = 'test' unless defined\?\(PADRINO_ENV\)/, '/tmp/sample_project/spec/spec_helper.rb')
222
222
  assert_match_in_file(/Spec::Runner/, '/tmp/sample_project/spec/spec_helper.rb')
223
223
  assert_file_exists('/tmp/sample_project/spec/spec.rake')
224
- assert_file_exists('/tmp/sample_project/spec/spec.opts')
225
224
  end
226
225
 
227
226
  should "properly generate for shoulda" do
@@ -253,11 +252,9 @@ class TestProjectGenerator < Test::Unit::TestCase
253
252
  assert_match_in_file(/Spec::Runner/, '/tmp/sample_project/spec/spec_helper.rb')
254
253
  assert_match_in_file(/Capybara.app = /, '/tmp/sample_project/features/support/env.rb')
255
254
  assert_file_exists('/tmp/sample_project/spec/spec.rake')
256
- assert_file_exists('/tmp/sample_project/spec/spec.opts')
257
255
  assert_file_exists('/tmp/sample_project/features/support/env.rb')
258
256
  assert_file_exists('/tmp/sample_project/features/add.feature')
259
257
  assert_file_exists('/tmp/sample_project/features/step_definitions/add_steps.rb')
260
258
  end
261
-
262
259
  end
263
260
  end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 9
8
+ - 4
9
+ version: 0.9.4
5
10
  platform: ruby
6
11
  authors:
7
12
  - Padrino Team
@@ -12,79 +17,107 @@ autorequire:
12
17
  bindir: bin
13
18
  cert_chain: []
14
19
 
15
- date: 2010-03-01 00:00:00 +01:00
20
+ date: 2010-03-03 00:00:00 +01:00
16
21
  default_executable: padrino-gen
17
22
  dependencies:
18
23
  - !ruby/object:Gem::Dependency
19
24
  name: padrino-core
20
- type: :runtime
21
- version_requirement:
22
- version_requirements: !ruby/object:Gem::Requirement
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
23
27
  requirements:
24
28
  - - "="
25
29
  - !ruby/object:Gem::Version
26
- version: 0.9.3
27
- version:
30
+ segments:
31
+ - 0
32
+ - 9
33
+ - 4
34
+ version: 0.9.4
35
+ type: :runtime
36
+ version_requirements: *id001
28
37
  - !ruby/object:Gem::Dependency
29
38
  name: haml
30
- type: :development
31
- version_requirement:
32
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
33
41
  requirements:
34
42
  - - ">="
35
43
  - !ruby/object:Gem::Version
44
+ segments:
45
+ - 2
46
+ - 2
47
+ - 1
36
48
  version: 2.2.1
37
- version:
49
+ type: :development
50
+ version_requirements: *id002
38
51
  - !ruby/object:Gem::Dependency
39
52
  name: shoulda
40
- type: :development
41
- version_requirement:
42
- version_requirements: !ruby/object:Gem::Requirement
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
43
55
  requirements:
44
56
  - - ">="
45
57
  - !ruby/object:Gem::Version
58
+ segments:
59
+ - 2
60
+ - 10
61
+ - 3
46
62
  version: 2.10.3
47
- version:
63
+ type: :development
64
+ version_requirements: *id003
48
65
  - !ruby/object:Gem::Dependency
49
66
  name: mocha
50
- type: :development
51
- version_requirement:
52
- version_requirements: !ruby/object:Gem::Requirement
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
53
69
  requirements:
54
70
  - - ">="
55
71
  - !ruby/object:Gem::Version
72
+ segments:
73
+ - 0
74
+ - 9
75
+ - 7
56
76
  version: 0.9.7
57
- version:
77
+ type: :development
78
+ version_requirements: *id004
58
79
  - !ruby/object:Gem::Dependency
59
80
  name: rack-test
60
- type: :development
61
- version_requirement:
62
- version_requirements: !ruby/object:Gem::Requirement
81
+ prerelease: false
82
+ requirement: &id005 !ruby/object:Gem::Requirement
63
83
  requirements:
64
84
  - - ">="
65
85
  - !ruby/object:Gem::Version
86
+ segments:
87
+ - 0
88
+ - 5
89
+ - 0
66
90
  version: 0.5.0
67
- version:
91
+ type: :development
92
+ version_requirements: *id005
68
93
  - !ruby/object:Gem::Dependency
69
94
  name: webrat
70
- type: :development
71
- version_requirement:
72
- version_requirements: !ruby/object:Gem::Requirement
95
+ prerelease: false
96
+ requirement: &id006 !ruby/object:Gem::Requirement
73
97
  requirements:
74
98
  - - ">="
75
99
  - !ruby/object:Gem::Version
100
+ segments:
101
+ - 0
102
+ - 5
103
+ - 1
76
104
  version: 0.5.1
77
- version:
105
+ type: :development
106
+ version_requirements: *id006
78
107
  - !ruby/object:Gem::Dependency
79
108
  name: fakeweb
80
- type: :development
81
- version_requirement:
82
- version_requirements: !ruby/object:Gem::Requirement
109
+ prerelease: false
110
+ requirement: &id007 !ruby/object:Gem::Requirement
83
111
  requirements:
84
112
  - - ">="
85
113
  - !ruby/object:Gem::Version
114
+ segments:
115
+ - 1
116
+ - 2
117
+ - 3
86
118
  version: 1.2.3
87
- version:
119
+ type: :development
120
+ version_requirements: *id007
88
121
  description: Generators for easily creating and building padrino applications from the console
89
122
  email: padrinorb@gmail.com
90
123
  executables:
@@ -185,18 +218,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
218
  requirements:
186
219
  - - ">="
187
220
  - !ruby/object:Gem::Version
221
+ segments:
222
+ - 0
188
223
  version: "0"
189
- version:
190
224
  required_rubygems_version: !ruby/object:Gem::Requirement
191
225
  requirements:
192
226
  - - ">="
193
227
  - !ruby/object:Gem::Version
228
+ segments:
229
+ - 0
194
230
  version: "0"
195
- version:
196
231
  requirements: []
197
232
 
198
233
  rubyforge_project: padrino-gen
199
- rubygems_version: 1.3.5
234
+ rubygems_version: 1.3.6
200
235
  signing_key:
201
236
  specification_version: 3
202
237
  summary: Generators for easily creating and building padrino applications