padrino-gen 0.14.4 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c449949c0295889166784c7a75e8229cfa8e7a11f80ab5193d71e71977b9fd16
4
- data.tar.gz: 10fca63d349d79e817191fe41a1ab6471989b58a68fe12603f918eb2daf69aa7
3
+ metadata.gz: 52d53bb4bdb519cda6e7b532caae6464e273d671bb2e026535b54b86e7f01ebe
4
+ data.tar.gz: 668f36bc2fcb2def4d49a24f1d061f977e7c508d09b7c5cb838fbead55d68d23
5
5
  SHA512:
6
- metadata.gz: a380bfd0aac1774a49a4acc2253d43bc1f2369802a3acefa09ae62987831c858c03696c15f95d55e0245c8c53777ffc194437e25ad4af69bce15c35f22cea2fb
7
- data.tar.gz: 458d7dba850cb8d798654f0ae39dbc4063e5fbca88604e605537c1bfdc12d65050869d637de65757376eb4c3816d3138b111d18a364eaef8b74af00ce7b6843d
6
+ metadata.gz: fccd728a0d2061d38541cac0983ba7d384428a8a5376501c6033d68b48306d2b21bcc6a533bfb468a871c0878aa5f51c53d0100d978746edfaa5addfd8ee7e5b
7
+ data.tar.gz: ba118e0fbf0cbdd5f148edfd2712966ff2039d543ea64afcdee89dfc4f74cd5a383a823ec1635f4d98165f3fe605a89175114c9095d262378e4183de0e6fd8f2
@@ -71,8 +71,8 @@ module Padrino
71
71
  direction, table_name = migration_scan[0].downcase, migration_scan[1].downcase.pluralize if migration_scan.any?
72
72
  tuples = direction ? columns.map { |value| value.split(":") } : []
73
73
  tuples.map! { |field, kind| kind =~ /datetime/i ? [field, 'DateTime'] : [field, kind] }
74
- add_columns = tuples.map(&options[:add]).join("\n ")
75
- remove_columns = tuples.map(&options[:remove]).join("\n ")
74
+ add_columns = tuples.map(&options[:add]).join("\n ")
75
+ remove_columns = tuples.map(&options[:remove]).join("\n ")
76
76
  forward_text = change_format.gsub(/!TABLE!/, table_name).gsub(/!COLUMNS!/, add_columns) if tuples.any?
77
77
  back_text = change_format.gsub(/!TABLE!/, table_name).gsub(/!COLUMNS!/, remove_columns) if tuples.any?
78
78
  contents = options[:base].dup.gsub(/\s{4}!UP!\n/m, (direction == 'add' ? forward_text.to_s : back_text.to_s))
@@ -0,0 +1,112 @@
1
+ TESTUNIT_SETUP = (<<-TEST).gsub(/^ {10}/, '') unless defined?(TESTUNIT_SETUP)
2
+ RACK_ENV = 'test' unless defined?(RACK_ENV)
3
+ require File.expand_path(File.dirname(__FILE__) + "/../config/boot")
4
+ Dir[File.expand_path(File.dirname(__FILE__) + "/../app/helpers/**/*.rb")].each(&method(:require))
5
+
6
+ class Test::Unit::TestCase
7
+ include Rack::Test::Methods
8
+
9
+ # You can use this method to custom specify a Rack app
10
+ # you want rack-test to invoke:
11
+ #
12
+ # app CLASS_NAME
13
+ # app CLASS_NAME.tap { |a| }
14
+ # app(CLASS_NAME) do
15
+ # set :foo, :bar
16
+ # end
17
+ #
18
+ def app(app = nil, &blk)
19
+ @app ||= block_given? ? app.instance_eval(&blk) : app
20
+ @app ||= Padrino.application
21
+ end
22
+ end
23
+ TEST
24
+
25
+ TESTUNIT_RAKE = (<<-TEST).gsub(/^ {10}/, '') unless defined?(TESTUNIT_RAKE)
26
+ require 'rake/testtask'
27
+
28
+ test_tasks = Dir['test/*/'].map { |d| File.basename(d) }
29
+
30
+ test_tasks.each do |folder|
31
+ Rake::TestTask.new("test:\#{folder}") do |test|
32
+ test.pattern = "test/\#{folder}/**/*_test.rb"
33
+ test.verbose = true
34
+ end
35
+ end
36
+
37
+ desc "Run application test suite"
38
+ task 'test' => test_tasks.map { |f| "test:\#{f}" }
39
+
40
+ task :default => :test
41
+ TEST
42
+
43
+ TESTUNIT_CONTROLLER_TEST = (<<-TEST).gsub(/^ {10}/, '') unless defined?(TESTUNIT_CONTROLLER_TEST)
44
+ require File.expand_path(File.dirname(__FILE__) + '/../../test_config.rb')
45
+
46
+ class !NAME!ControllerTest < Test::Unit::TestCase
47
+ def setup
48
+ get "/"
49
+ end
50
+
51
+ def test_returns_hello_world_text
52
+ assert_equal "Hello World", last_response.body
53
+ end
54
+ end
55
+ TEST
56
+
57
+ TESTUNIT_MODEL_TEST = (<<-TEST).gsub(/^ {10}/, '') unless defined?(TESTUNIT_MODEL_TEST)
58
+ require File.expand_path(File.dirname(__FILE__) + '!PATH!/test_config.rb')
59
+
60
+ class !NAME!Test < Test::Unit::TestCase
61
+ def test_constructs_a_new_instance
62
+ @!DNAME! = !NAME!.new
63
+ refute_nil @!DNAME!
64
+ end
65
+ end
66
+ TEST
67
+
68
+ TESTUNIT_HELPER_TEST = (<<-TEST) unless defined?(TESTUNIT_HELPER_TEST)
69
+ require File.expand_path(File.dirname(__FILE__) + '!PATH!/test_config.rb')
70
+
71
+ class !NAME!Test < Test::Unit::TestCase
72
+ def self.setup
73
+ @helpers = Class.new
74
+ @helpers.extend !CONSTANT_NAME!
75
+ end
76
+
77
+ def helpers
78
+ @helpers
79
+ end
80
+
81
+ def test_foo_helper
82
+ assert_equal nil, helpers.foo
83
+ end
84
+ end
85
+ TEST
86
+
87
+ def setup_test
88
+ require_dependencies 'rack-test', :require => 'rack/test', :group => 'test'
89
+ require_dependencies 'test-unit', :require => 'test/unit', :group => 'test'
90
+ insert_test_suite_setup TESTUNIT_SETUP
91
+ create_file destination_root("test/test.rake"), TESTUNIT_RAKE
92
+ end
93
+
94
+ def generate_controller_test(name, path)
95
+ test_unit_contents = TESTUNIT_CONTROLLER_TEST.gsub(/!NAME!/, name.to_s.underscore.camelize)
96
+ controller_test_path = File.join('test',options[:app],'controllers',"#{name.to_s.underscore}_controller_test.rb")
97
+ create_file destination_root(controller_test_path), test_unit_contents, :skip => true
98
+ end
99
+
100
+ def generate_model_test(name)
101
+ test_unit_contents = TESTUNIT_MODEL_TEST.gsub(/!NAME!/, name.to_s.underscore.camelize).gsub(/!DNAME!/, name.to_s.underscore)
102
+ test_unit_contents.gsub!(/!PATH!/, recognize_path)
103
+ model_test_path = File.join('test',options[:app],'models',"#{name.to_s.underscore}_test.rb")
104
+ create_file destination_root(model_test_path), test_unit_contents, :skip => true
105
+ end
106
+
107
+ def generate_helper_test(name, project_name, app_name)
108
+ test_unit_contents = TESTUNIT_HELPER_TEST.gsub(/!NAME!/, name).gsub(/!CONSTANT_NAME!/, "#{project_name}::#{app_name}::#{name}")
109
+ test_unit_contents.gsub!(/!PATH!/, recognize_path)
110
+ helper_spec_path = File.join('test', options[:app], 'helpers', "#{name.underscore}_test.rb")
111
+ create_file destination_root(helper_spec_path), test_unit_contents, :skip => true
112
+ end
@@ -12,7 +12,7 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord))
12
12
  namespace :create do
13
13
  desc "Create all the local databases defined in config/database.yml"
14
14
  task :all => :skeleton do
15
- ActiveRecord::Base.configurations.each_value do |config|
15
+ with_all_databases do |config|
16
16
  # Skip entries that don't have a database key, such as the first entry here:
17
17
  #
18
18
  # defaults: &defaults
@@ -33,7 +33,9 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord))
33
33
 
34
34
  desc "Creates the database defined in config/database.yml for the current Padrino.env"
35
35
  task :create => :skeleton do
36
- create_database(ActiveRecord::Base.configurations.with_indifferent_access[Padrino.env])
36
+ with_database(Padrino.env) do |config|
37
+ create_database(config)
38
+ end
37
39
  end
38
40
 
39
41
  def create_database(config)
@@ -90,7 +92,7 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord))
90
92
  namespace :drop do
91
93
  desc "Drops all the local databases defined in config/database.yml"
92
94
  task :all => :skeleton do
93
- ActiveRecord::Base.configurations.each_value do |config|
95
+ with_all_databases do |config|
94
96
  # Skip entries that don't have a database key
95
97
  next unless config[:database]
96
98
  begin
@@ -105,11 +107,12 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord))
105
107
 
106
108
  desc "Drops the database for the current Padrino.env"
107
109
  task :drop => :skeleton do
108
- config = ActiveRecord::Base.configurations.with_indifferent_access[Padrino.env || :development]
109
- begin
110
- drop_database(config)
111
- rescue StandardError => e
112
- catch_error(:drop, e, config)
110
+ with_database(Padrino.env || :development) do |config|
111
+ begin
112
+ drop_database(config)
113
+ rescue StandardError => e
114
+ catch_error(:drop, e, config)
115
+ end
113
116
  end
114
117
  end
115
118
 
@@ -127,8 +130,10 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord))
127
130
 
128
131
  if less_than_active_record_5_2?
129
132
  ActiveRecord::Migrator.migrate("db/migrate/", env_migration_version)
130
- else
133
+ elsif less_than_active_record_6_0?
131
134
  ActiveRecord::MigrationContext.new("db/migrate/").migrate(env_migration_version)
135
+ else
136
+ ActiveRecord::MigrationContext.new("db/migrate/", ActiveRecord::SchemaMigration).migrate(env_migration_version)
132
137
  end
133
138
 
134
139
  Rake::Task["ar:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby
@@ -167,28 +172,30 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord))
167
172
 
168
173
  desc "Retrieves the charset for the current environment's database"
169
174
  task :charset => :skeleton do
170
- config = ActiveRecord::Base.configurations.with_indifferent_access[Padrino.env || :development]
171
- case config[:adapter]
172
- when 'mysql', 'mysql2', 'em_mysql2', 'jdbcmysql'
173
- ActiveRecord::Base.establish_connection(config)
174
- puts ActiveRecord::Base.connection.charset
175
- when 'postgresql'
176
- ActiveRecord::Base.establish_connection(config)
177
- puts ActiveRecord::Base.connection.encoding
178
- else
179
- puts 'Sorry, your database adapter is not supported yet, feel free to submit a patch.'
175
+ with_database(Padrino.env || :development) do |config|
176
+ case config[:adapter]
177
+ when 'mysql', 'mysql2', 'em_mysql2', 'jdbcmysql'
178
+ ActiveRecord::Base.establish_connection(config)
179
+ puts ActiveRecord::Base.connection.charset
180
+ when 'postgresql'
181
+ ActiveRecord::Base.establish_connection(config)
182
+ puts ActiveRecord::Base.connection.encoding
183
+ else
184
+ puts 'Sorry, your database adapter is not supported yet, feel free to submit a patch.'
185
+ end
180
186
  end
181
187
  end
182
188
 
183
189
  desc "Retrieves the collation for the current environment's database."
184
190
  task :collation => :skeleton do
185
- config = ActiveRecord::Base.configurations.with_indifferent_access[Padrino.env || :development]
186
- case config[:adapter]
187
- when 'mysql', 'mysql2', 'em_mysql2', 'jdbcmysql'
188
- ActiveRecord::Base.establish_connection(config)
189
- puts ActiveRecord::Base.connection.collation
190
- else
191
- puts 'sorry, your database adapter is not supported yet, feel free to submit a patch'
191
+ with_database(Padrino.env || :development) do |config|
192
+ case config[:adapter]
193
+ when 'mysql', 'mysql2', 'em_mysql2', 'jdbcmysql'
194
+ ActiveRecord::Base.establish_connection(config)
195
+ puts ActiveRecord::Base.connection.collation
196
+ else
197
+ puts 'sorry, your database adapter is not supported yet, feel free to submit a patch'
198
+ end
192
199
  end
193
200
  end
194
201
 
@@ -203,8 +210,10 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord))
203
210
  pending_migrations =
204
211
  if less_than_active_record_5_2?
205
212
  ActiveRecord::Migrator.open(ActiveRecord::Migrator.migrations_paths).pending_migrations
206
- else
213
+ elsif less_than_active_record_6_0?
207
214
  ActiveRecord::MigrationContext.new(ActiveRecord::Migrator.migrations_paths).open.pending_migrations
215
+ else
216
+ ActiveRecord::MigrationContext.new(ActiveRecord::Migrator.migrations_paths, ActiveRecord::SchemaMigration).open.pending_migrations
208
217
  end
209
218
 
210
219
  if pending_migrations.any?
@@ -244,36 +253,37 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord))
244
253
  namespace :structure do
245
254
  desc "Dump the database structure to a SQL file."
246
255
  task :dump => :skeleton do
247
- config = ActiveRecord::Base.configurations.with_indifferent_access[Padrino.env]
248
- case config[:adapter]
249
- when "mysql", "mysql2", 'em_mysql2', "oci", "oracle", 'jdbcmysql'
250
- config = config.inject({}){|result, (key, value)| result[key.to_s] = value; result }
251
- ActiveRecord::Tasks::DatabaseTasks.structure_dump(config, resolve_structure_sql)
252
- when "postgresql"
253
- ENV['PGHOST'] = config[:host] if config[:host]
254
- ENV['PGPORT'] = config[:port].to_s if config[:port]
255
- ENV['PGPASSWORD'] = config[:password].to_s if config[:password]
256
- search_path = config[:schema_search_path]
257
- if search_path
258
- search_path = search_path.split(",").map{|search_path| "--schema=#{search_path.strip}" }.join(" ")
256
+ with_database(Padrino.env) do |config|
257
+ case config[:adapter]
258
+ when "mysql", "mysql2", 'em_mysql2', "oci", "oracle", 'jdbcmysql'
259
+ config = config.inject({}){|result, (key, value)| result[key.to_s] = value; result }
260
+ ActiveRecord::Tasks::DatabaseTasks.structure_dump(config, resolve_structure_sql)
261
+ when "postgresql"
262
+ ENV['PGHOST'] = config[:host] if config[:host]
263
+ ENV['PGPORT'] = config[:port].to_s if config[:port]
264
+ ENV['PGPASSWORD'] = config[:password].to_s if config[:password]
265
+ search_path = config[:schema_search_path]
266
+ if search_path
267
+ search_path = search_path.split(",").map{|search_path| "--schema=#{search_path.strip}" }.join(" ")
268
+ end
269
+ `pg_dump -U "#{config[:username]}" -s -x -O -f db/#{Padrino.env}_structure.sql #{search_path} #{config[:database]}`
270
+ raise "Error dumping database" if $?.exitstatus == 1
271
+ when "sqlite", "sqlite3"
272
+ dbfile = config[:database] || config[:dbfile]
273
+ `#{config[:adapter]} #{dbfile} .schema > db/#{Padrino.env}_structure.sql`
274
+ when "sqlserver"
275
+ `scptxfr /s #{config[:host]} /d #{config[:database]} /I /f db\\#{Padrino.env}_structure.sql /q /A /r`
276
+ `scptxfr /s #{config[:host]} /d #{config[:database]} /I /F db\ /q /A /r`
277
+ when "firebird"
278
+ set_firebird_env(config)
279
+ db_string = firebird_db_string(config)
280
+ sh "isql -a #{db_string} > #{Padrino.root}/db/#{Padrino.env}_structure.sql"
281
+ else
282
+ raise "Task not supported by '#{config[:adapter]}'."
259
283
  end
260
- `pg_dump -U "#{config[:username]}" -s -x -O -f db/#{Padrino.env}_structure.sql #{search_path} #{config[:database]}`
261
- raise "Error dumping database" if $?.exitstatus == 1
262
- when "sqlite", "sqlite3"
263
- dbfile = config[:database] || config[:dbfile]
264
- `#{config[:adapter]} #{dbfile} .schema > db/#{Padrino.env}_structure.sql`
265
- when "sqlserver"
266
- `scptxfr /s #{config[:host]} /d #{config[:database]} /I /f db\\#{Padrino.env}_structure.sql /q /A /r`
267
- `scptxfr /s #{config[:host]} /d #{config[:database]} /I /F db\ /q /A /r`
268
- when "firebird"
269
- set_firebird_env(config)
270
- db_string = firebird_db_string(config)
271
- sh "isql -a #{db_string} > #{Padrino.root}/db/#{Padrino.env}_structure.sql"
272
- else
273
- raise "Task not supported by '#{config[:adapter]}'."
274
284
  end
275
285
 
276
- if ActiveRecord::Base.connection.supports_migrations?
286
+ if !ActiveRecord::Base.connection.respond_to?(:supports_migrations?) || ActiveRecord::Base.connection.supports_migrations?
277
287
  File.open(resolve_structure_sql, "a"){|f| f << ActiveRecord::Base.connection.dump_schema_information }
278
288
  end
279
289
  end
@@ -371,8 +381,10 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord))
371
381
 
372
382
  if less_than_active_record_5_2?
373
383
  ActiveRecord::Migrator.run(type, "db/migrate/", version)
374
- else
384
+ elsif less_than_active_record_6_0?
375
385
  ActiveRecord::MigrationContext.new('db/migrate/').run(type, version)
386
+ else
387
+ ActiveRecord::MigrationContext.new('db/migrate/', ActiveRecord::SchemaMigration).run(type, version)
376
388
  end
377
389
 
378
390
  dump_schema
@@ -383,8 +395,10 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord))
383
395
 
384
396
  if less_than_active_record_5_2?
385
397
  ActiveRecord::Migrator.send(type, 'db/migrate/', step)
386
- else
398
+ elsif less_than_active_record_6_0?
387
399
  ActiveRecord::MigrationContext.new('db/migrate/').send(type, step)
400
+ else
401
+ ActiveRecord::MigrationContext.new('db/migrate/', ActiveRecord::SchemaMigration).send(type, step)
388
402
  end
389
403
 
390
404
  dump_schema
@@ -402,6 +416,36 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord))
402
416
  ActiveRecord.version < Gem::Version.create("5.2.0")
403
417
  end
404
418
 
419
+ def less_than_active_record_6_0?
420
+ ActiveRecord.version < Gem::Version.create("6.0.0")
421
+ end
422
+
423
+ def with_database(env_name)
424
+ if less_than_active_record_6_0?
425
+ config = ActiveRecord::Base.configurations.with_indifferent_access[env_name]
426
+
427
+ yield config
428
+ else
429
+ db_configs = ActiveRecord::Base.configurations.configs_for(env_name: env_name.to_s)
430
+
431
+ db_configs.each do |db_config|
432
+ yield db_config.config.with_indifferent_access
433
+ end
434
+ end
435
+ end
436
+
437
+ def with_all_databases
438
+ if less_than_active_record_6_0?
439
+ ActiveRecord::Base.configurations.each_value do |config|
440
+ yield config
441
+ end
442
+ else
443
+ ActiveRecord::Base.configurations.configs_for.each do |db_config|
444
+ yield db_config.config.with_indifferent_access
445
+ end
446
+ end
447
+ end
448
+
405
449
  task 'db:migrate' => 'ar:migrate'
406
450
  task 'db:create' => 'ar:create'
407
451
  task 'db:drop' => 'ar:drop'
@@ -5,7 +5,6 @@ require File.expand_path("../../padrino-core/lib/padrino-core/version.rb", __FIL
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "padrino-gen"
8
- s.rubyforge_project = "padrino-gen"
9
8
  s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
10
9
  s.email = "padrinorb@gmail.com"
11
10
  s.summary = "Generators for easily creating and building padrino applications"
@@ -24,7 +23,7 @@ Gem::Specification.new do |s|
24
23
  s.rdoc_options = ["--charset=UTF-8"]
25
24
 
26
25
  s.add_dependency("padrino-core", Padrino.version)
27
- s.add_dependency("bundler", "~> 1.0")
26
+ s.add_dependency("bundler", ">= 1.0", "< 3")
28
27
  s.add_development_dependency("padrino-helpers", Padrino.version)
29
28
  s.add_development_dependency("padrino-mailer", Padrino.version)
30
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.4
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-11-05 00:00:00.000000000 Z
14
+ date: 2020-05-14 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: padrino-core
@@ -19,56 +19,62 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.14.4
22
+ version: 0.15.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.4
29
+ version: 0.15.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: bundler
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - "~>"
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: '1.0'
37
+ - - "<"
38
+ - !ruby/object:Gem::Version
39
+ version: '3'
37
40
  type: :runtime
38
41
  prerelease: false
39
42
  version_requirements: !ruby/object:Gem::Requirement
40
43
  requirements:
41
- - - "~>"
44
+ - - ">="
42
45
  - !ruby/object:Gem::Version
43
46
  version: '1.0'
47
+ - - "<"
48
+ - !ruby/object:Gem::Version
49
+ version: '3'
44
50
  - !ruby/object:Gem::Dependency
45
51
  name: padrino-helpers
46
52
  requirement: !ruby/object:Gem::Requirement
47
53
  requirements:
48
54
  - - '='
49
55
  - !ruby/object:Gem::Version
50
- version: 0.14.4
56
+ version: 0.15.0
51
57
  type: :development
52
58
  prerelease: false
53
59
  version_requirements: !ruby/object:Gem::Requirement
54
60
  requirements:
55
61
  - - '='
56
62
  - !ruby/object:Gem::Version
57
- version: 0.14.4
63
+ version: 0.15.0
58
64
  - !ruby/object:Gem::Dependency
59
65
  name: padrino-mailer
60
66
  requirement: !ruby/object:Gem::Requirement
61
67
  requirements:
62
68
  - - '='
63
69
  - !ruby/object:Gem::Version
64
- version: 0.14.4
70
+ version: 0.15.0
65
71
  type: :development
66
72
  prerelease: false
67
73
  version_requirements: !ruby/object:Gem::Requirement
68
74
  requirements:
69
75
  - - '='
70
76
  - !ruby/object:Gem::Version
71
- version: 0.14.4
77
+ version: 0.15.0
72
78
  description: Generators for easily creating and building padrino applications from
73
79
  the console
74
80
  email: padrinorb@gmail.com
@@ -127,6 +133,7 @@ files:
127
133
  - lib/padrino-gen/generators/components/tests/minitest.rb
128
134
  - lib/padrino-gen/generators/components/tests/rspec.rb
129
135
  - lib/padrino-gen/generators/components/tests/shoulda.rb
136
+ - lib/padrino-gen/generators/components/tests/testunit 2.rb
130
137
  - lib/padrino-gen/generators/components/tests/testunit.rb
131
138
  - lib/padrino-gen/generators/controller.rb
132
139
  - lib/padrino-gen/generators/helper.rb
@@ -216,9 +223,27 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
223
  - !ruby/object:Gem::Version
217
224
  version: 1.3.6
218
225
  requirements: []
219
- rubyforge_project: padrino-gen
220
- rubygems_version: 2.7.8
226
+ rubygems_version: 3.0.6
221
227
  signing_key:
222
228
  specification_version: 4
223
229
  summary: Generators for easily creating and building padrino applications
224
- test_files: []
230
+ test_files:
231
+ - test/fixtures/admin_template.rb
232
+ - test/fixtures/example_template.rb
233
+ - test/fixtures/git_template.rb
234
+ - test/fixtures/plugin_template.rb
235
+ - test/fixtures/rake_template.rb
236
+ - test/helper.rb
237
+ - test/test_app_generator.rb
238
+ - test/test_cli.rb
239
+ - test/test_component_generator.rb
240
+ - test/test_controller_generator.rb
241
+ - test/test_generator.rb
242
+ - test/test_helper_generator.rb
243
+ - test/test_mailer_generator.rb
244
+ - test/test_migration_generator.rb
245
+ - test/test_model_generator.rb
246
+ - test/test_plugin_generator.rb
247
+ - test/test_project_generator.rb
248
+ - test/test_sql_helpers.rb
249
+ - test/test_task_generator.rb