padrino-gen 0.15.0 → 0.15.1

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: 52d53bb4bdb519cda6e7b532caae6464e273d671bb2e026535b54b86e7f01ebe
4
- data.tar.gz: 668f36bc2fcb2def4d49a24f1d061f977e7c508d09b7c5cb838fbead55d68d23
3
+ metadata.gz: 9897984eee6550c278a48190ada56e7d88d38cec9b6a912ce8136b911a8578f7
4
+ data.tar.gz: cc0de388292f104d491401feffbf673000b439728696ac4cd012a1fbba668bfd
5
5
  SHA512:
6
- metadata.gz: fccd728a0d2061d38541cac0983ba7d384428a8a5376501c6033d68b48306d2b21bcc6a533bfb468a871c0878aa5f51c53d0100d978746edfaa5addfd8ee7e5b
7
- data.tar.gz: ba118e0fbf0cbdd5f148edfd2712966ff2039d543ea64afcdee89dfc4f74cd5a383a823ec1635f4d98165f3fe605a89175114c9095d262378e4183de0e6fd8f2
6
+ metadata.gz: 1c5f835446e50a8009cf55c37439fb0134faa3b1f2ea5fd14e342fbfe6688b4300a45f49a7efd7281a7af4aebfa471ba5eeac0061c8c2ac3c7d3aba861b664ba
7
+ data.tar.gz: e3cc0d72979f835fdaf9b04672eb7b0775cff146a65816b8b336bb340763d7f97dd292e46160ac403dc8a07ac294a91b5e5d4fe80a7cd675d2c9bdd0205725b6
@@ -8,7 +8,7 @@
8
8
  **/
9
9
 
10
10
  $(function(){
11
- $('form').on('submit', function(e) {
11
+ $(document).on('submit', 'form', function(e) {
12
12
  var element = $(this), message = element.data('confirm');
13
13
  if (message && !confirm(message)) { return false; }
14
14
  if (element.data('remote') == true) {
@@ -1,4 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/helper')
2
+ require "rb-readline"
2
3
 
3
4
  describe "ComponentGenerator" do
4
5
  def setup
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
8
8
  - Nathan Esquenazi
9
9
  - Davide D'Agostino
10
10
  - Arthur Chiu
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-05-14 00:00:00.000000000 Z
14
+ date: 2021-04-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: padrino-core
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.15.0
22
+ version: 0.15.1
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.15.0
29
+ version: 0.15.1
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: bundler
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -53,28 +53,28 @@ dependencies:
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.15.0
56
+ version: 0.15.1
57
57
  type: :development
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.15.0
63
+ version: 0.15.1
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: padrino-mailer
66
66
  requirement: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.15.0
70
+ version: 0.15.1
71
71
  type: :development
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.15.0
77
+ version: 0.15.1
78
78
  description: Generators for easily creating and building padrino applications from
79
79
  the console
80
80
  email: padrinorb@gmail.com
@@ -133,7 +133,6 @@ files:
133
133
  - lib/padrino-gen/generators/components/tests/minitest.rb
134
134
  - lib/padrino-gen/generators/components/tests/rspec.rb
135
135
  - lib/padrino-gen/generators/components/tests/shoulda.rb
136
- - lib/padrino-gen/generators/components/tests/testunit 2.rb
137
136
  - lib/padrino-gen/generators/components/tests/testunit.rb
138
137
  - lib/padrino-gen/generators/controller.rb
139
138
  - lib/padrino-gen/generators/helper.rb
@@ -207,7 +206,7 @@ homepage: http://www.padrinorb.com
207
206
  licenses:
208
207
  - MIT
209
208
  metadata: {}
210
- post_install_message:
209
+ post_install_message:
211
210
  rdoc_options:
212
211
  - "--charset=UTF-8"
213
212
  require_paths:
@@ -223,8 +222,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
222
  - !ruby/object:Gem::Version
224
223
  version: 1.3.6
225
224
  requirements: []
226
- rubygems_version: 3.0.6
227
- signing_key:
225
+ rubygems_version: 3.0.8
226
+ signing_key:
228
227
  specification_version: 4
229
228
  summary: Generators for easily creating and building padrino applications
230
229
  test_files:
@@ -1,112 +0,0 @@
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