padrino-gen 0.9.11 → 0.9.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,6 @@
8
8
  #
9
9
  # You can also map apps to a specified host:
10
10
  #
11
- # Padrino.mount_core("Blog").host("blog.example.org")
12
11
  # Padrino.mount("Admin").host("admin.example.org")
13
12
  # Padrino.mount("WebSite").host(/.*\.?example.org/)
14
13
  # Padrino.mount("Foo").to("/foo").host("bar.example.org")
@@ -16,11 +15,11 @@
16
15
  # Note 1: Mounted apps (by default) should be placed into the project root at '/app_name'.
17
16
  # Note 2: If you use the host matching remember to respect the order of the rules.
18
17
  #
19
- # By default, this file mounts the core app which was generated with this project.
20
- # However, the mounted core can be modified as needed:
18
+ # By default, this file mounts the parimary app which was generated with this project.
19
+ # However, the mounted app can be modified as needed:
21
20
  #
22
- # Padrino.mount_core(:app_file => "/path/to/file", :app_class => "Blog")
21
+ # Padrino.mount(:app_file => "/path/to/file", :app_class => "Blog").to('/')
23
22
  #
24
23
 
25
24
  # Mounts the core application for this project
26
- Padrino.mount_core("<%= @app_name %>")
25
+ Padrino.mount(<%= @app_name.inspect %>).to('/')
@@ -10,7 +10,7 @@ class TestProjectGenerator < Test::Unit::TestCase
10
10
  assert_nothing_raised { silence_logger { generate(:project, 'sample_project', '--root=/tmp') } }
11
11
  assert_file_exists('/tmp/sample_project')
12
12
  assert_match_in_file(/class SampleProject < Padrino::Application/,'/tmp/sample_project/app/app.rb')
13
- assert_match_in_file(/Padrino.mount_core\("SampleProject"\)/,'/tmp/sample_project/config/apps.rb')
13
+ assert_match_in_file(/Padrino.mount\("SampleProject"\).to\('\/'\)/,'/tmp/sample_project/config/apps.rb')
14
14
  assert_file_exists('/tmp/sample_project/config/boot.rb')
15
15
  assert_file_exists('/tmp/sample_project/public/favicon.ico')
16
16
  end
@@ -19,7 +19,7 @@ class TestProjectGenerator < Test::Unit::TestCase
19
19
  assert_nothing_raised { silence_logger { generate(:project, 'sample_project', '--root=/tmp', '--app=base_app') } }
20
20
  assert_file_exists('/tmp/sample_project')
21
21
  assert_match_in_file(/class BaseApp < Padrino::Application/,'/tmp/sample_project/app/app.rb')
22
- assert_match_in_file(/Padrino.mount_core\("BaseApp"\)/,'/tmp/sample_project/config/apps.rb')
22
+ assert_match_in_file(/Padrino.mount\("BaseApp"\).to\('\/'\)/,'/tmp/sample_project/config/apps.rb')
23
23
  assert_file_exists('/tmp/sample_project/config/boot.rb')
24
24
  assert_file_exists('/tmp/sample_project/public/favicon.ico')
25
25
  end
@@ -50,7 +50,7 @@ class TestProjectGenerator < Test::Unit::TestCase
50
50
  should "place app specific names into correct files" do
51
51
  silence_logger { generate(:project, 'sample_project', '--root=/tmp', '--script=none') }
52
52
  assert_match_in_file(/class SampleProject < Padrino::Application/m, '/tmp/sample_project/app/app.rb')
53
- assert_match_in_file(/Padrino.mount_core\("SampleProject"\)/m, '/tmp/sample_project/config/apps.rb')
53
+ assert_match_in_file(/Padrino.mount\("SampleProject"\).to\('\/'\)/m, '/tmp/sample_project/config/apps.rb')
54
54
  end
55
55
 
56
56
  should "create components file containing options chosen with defaults" do
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-gen
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 35
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 9
8
- - 11
9
- version: 0.9.11
9
+ - 12
10
+ version: 0.9.12
10
11
  platform: ruby
11
12
  authors:
12
13
  - Padrino Team
@@ -17,127 +18,135 @@ autorequire:
17
18
  bindir: bin
18
19
  cert_chain: []
19
20
 
20
- date: 2010-06-17 00:00:00 -07:00
21
+ date: 2010-06-19 00:00:00 +02:00
21
22
  default_executable: padrino-gen
22
23
  dependencies:
23
24
  - !ruby/object:Gem::Dependency
24
- name: padrino-core
25
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
26
  none: false
27
27
  requirements:
28
28
  - - "="
29
29
  - !ruby/object:Gem::Version
30
+ hash: 35
30
31
  segments:
31
32
  - 0
32
33
  - 9
33
- - 11
34
- version: 0.9.11
34
+ - 12
35
+ version: 0.9.12
35
36
  type: :runtime
37
+ name: padrino-core
36
38
  prerelease: false
37
39
  version_requirements: *id001
38
40
  - !ruby/object:Gem::Dependency
39
- name: bundler
40
41
  requirement: &id002 !ruby/object:Gem::Requirement
41
42
  none: false
42
43
  requirements:
43
44
  - - ">="
44
45
  - !ruby/object:Gem::Version
46
+ hash: 53
45
47
  segments:
46
48
  - 0
47
49
  - 9
48
50
  - 7
49
51
  version: 0.9.7
50
52
  type: :runtime
53
+ name: bundler
51
54
  prerelease: false
52
55
  version_requirements: *id002
53
56
  - !ruby/object:Gem::Dependency
54
- name: rake
55
57
  requirement: &id003 !ruby/object:Gem::Requirement
56
58
  none: false
57
59
  requirements:
58
60
  - - ">="
59
61
  - !ruby/object:Gem::Version
62
+ hash: 49
60
63
  segments:
61
64
  - 0
62
65
  - 8
63
66
  - 7
64
67
  version: 0.8.7
65
68
  type: :development
69
+ name: rake
66
70
  prerelease: false
67
71
  version_requirements: *id003
68
72
  - !ruby/object:Gem::Dependency
69
- name: mocha
70
73
  requirement: &id004 !ruby/object:Gem::Requirement
71
74
  none: false
72
75
  requirements:
73
76
  - - ">="
74
77
  - !ruby/object:Gem::Version
78
+ hash: 43
75
79
  segments:
76
80
  - 0
77
81
  - 9
78
82
  - 8
79
83
  version: 0.9.8
80
84
  type: :development
85
+ name: mocha
81
86
  prerelease: false
82
87
  version_requirements: *id004
83
88
  - !ruby/object:Gem::Dependency
84
- name: rack-test
85
89
  requirement: &id005 !ruby/object:Gem::Requirement
86
90
  none: false
87
91
  requirements:
88
92
  - - ">="
89
93
  - !ruby/object:Gem::Version
94
+ hash: 11
90
95
  segments:
91
96
  - 0
92
97
  - 5
93
98
  - 0
94
99
  version: 0.5.0
95
100
  type: :development
101
+ name: rack-test
96
102
  prerelease: false
97
103
  version_requirements: *id005
98
104
  - !ruby/object:Gem::Dependency
99
- name: webrat
100
105
  requirement: &id006 !ruby/object:Gem::Requirement
101
106
  none: false
102
107
  requirements:
103
108
  - - ">="
104
109
  - !ruby/object:Gem::Version
110
+ hash: 9
105
111
  segments:
106
112
  - 0
107
113
  - 5
108
114
  - 1
109
115
  version: 0.5.1
110
116
  type: :development
117
+ name: webrat
111
118
  prerelease: false
112
119
  version_requirements: *id006
113
120
  - !ruby/object:Gem::Dependency
114
- name: haml
115
121
  requirement: &id007 !ruby/object:Gem::Requirement
116
122
  none: false
117
123
  requirements:
118
124
  - - ">="
119
125
  - !ruby/object:Gem::Version
126
+ hash: 43
120
127
  segments:
121
128
  - 2
122
129
  - 2
123
130
  - 22
124
131
  version: 2.2.22
125
132
  type: :development
133
+ name: haml
126
134
  prerelease: false
127
135
  version_requirements: *id007
128
136
  - !ruby/object:Gem::Dependency
129
- name: shoulda
130
137
  requirement: &id008 !ruby/object:Gem::Requirement
131
138
  none: false
132
139
  requirements:
133
140
  - - ">="
134
141
  - !ruby/object:Gem::Version
142
+ hash: 33
135
143
  segments:
136
144
  - 2
137
145
  - 10
138
146
  - 3
139
147
  version: 2.10.3
140
148
  type: :development
149
+ name: shoulda
141
150
  prerelease: false
142
151
  version_requirements: *id008
143
152
  description: Generators for easily creating and building padrino applications from the console
@@ -238,6 +247,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
238
247
  requirements:
239
248
  - - ">="
240
249
  - !ruby/object:Gem::Version
250
+ hash: 3
241
251
  segments:
242
252
  - 0
243
253
  version: "0"
@@ -246,6 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
246
256
  requirements:
247
257
  - - ">="
248
258
  - !ruby/object:Gem::Version
259
+ hash: 23
249
260
  segments:
250
261
  - 1
251
262
  - 3