mimoco 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +2 -3
- data/.gitignore +1 -0
- data/.ruby-gemset +1 -1
- data/.ruby-version +1 -1
- data/Gemfile +2 -1
- data/MIT-LICENSE +1 -3
- data/README.md +6 -2
- data/lib/mimoco/version.rb +3 -1
- data/lib/mimoco_base.rb +3 -2
- data/mimoco.gemspec +0 -1
- data/test/test_helper.rb +1 -1
- metadata +20 -34
- /data/test/{internal → dummy}/app/controllers/application_controller.rb +0 -0
- /data/test/{internal → dummy}/app/controllers/orders_controller.rb +0 -0
- /data/test/{internal → dummy}/app/models/application_record.rb +0 -0
- /data/test/{internal → dummy}/app/models/order.rb +0 -0
- /data/test/{internal → dummy}/app/views/orders/_form.html.erb +0 -0
- /data/test/{internal → dummy}/app/views/orders/_order.html.erb +0 -0
- /data/test/{internal → dummy}/app/views/orders/edit.html.erb +0 -0
- /data/test/{internal → dummy}/app/views/orders/index.html.erb +0 -0
- /data/test/{internal → dummy}/app/views/orders/new.html.erb +0 -0
- /data/test/{internal → dummy}/app/views/orders/show.html.erb +0 -0
- /data/test/{internal → dummy}/config/database.yml +0 -0
- /data/test/{internal → dummy}/config/routes.rb +0 -0
- /data/test/{internal → dummy}/db/migrate/20141016161801_create_orders.rb +0 -0
- /data/test/{internal → dummy}/db/schema.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1613f09fef3f8110dfa32da257c5a24b0a087d9286469eaba8f29803f473dbaa
|
4
|
+
data.tar.gz: fea092ba59796f697acf4372fa2c92b32b7ccff78790dae5a7e9718d6da6de7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59f2ff22f833d1d601c7adaac6cab731e136b0fc0d315fa2aaca834fa5594e5106478a9a4b19953f91fb8c4765a9bddb9dc7a46035bfb383056d21c26fa174a4
|
7
|
+
data.tar.gz: 9b1d647e55a2cf572826d0b947032d57adf8d6be8fbbc76e26680ced2313bd6c8481db1ee18c440f3233dc7a4e9ab7cb370ab1ac68b33386106baba10c1b9c27
|
data/.github/workflows/rake.yml
CHANGED
@@ -8,14 +8,13 @@ jobs:
|
|
8
8
|
strategy:
|
9
9
|
fail-fast: false
|
10
10
|
matrix:
|
11
|
-
ruby: ["3.
|
11
|
+
ruby: ["3.2", "3.3"]
|
12
12
|
gemfile:
|
13
13
|
- Gemfile
|
14
|
-
# - gemfiles/Gemfile.rails-7.1
|
15
14
|
runs-on: ubuntu-latest
|
16
15
|
|
17
16
|
steps:
|
18
|
-
- uses: actions/checkout@
|
17
|
+
- uses: actions/checkout@v4
|
19
18
|
- name: Set up Ruby
|
20
19
|
uses: ruby/setup-ruby@v1
|
21
20
|
with:
|
data/.gitignore
CHANGED
data/.ruby-gemset
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rails-
|
1
|
+
rails-8.0
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.3.
|
1
|
+
ruby-3.3.6
|
data/Gemfile
CHANGED
data/MIT-LICENSE
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Copyright (c) 2021-2023 Dittmar Krall (www.matiq.com)
|
1
|
+
Copyright (c) 2021-2024 Dittmar Krall (www.matiq.com)
|
4
2
|
|
5
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
6
4
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# MiMoCo
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/mimoco.
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/mimoco.svg)](http://badge.fury.io/rb/mimoco)
|
4
|
+
[![GEM Downloads](https://img.shields.io/gem/dt/mimoco?color=168AFE&logo=ruby&logoColor=FE1616)](https://rubygems.org/gems/mimoco)
|
5
|
+
[![rake](https://github.com/matique/mimoco/actions/workflows/rake.yml/badge.svg)](https://github.com/matique/mimoco/actions/workflows/rake.yml)
|
6
|
+
[![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/standardrb/standard)
|
7
|
+
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://choosealicense.com/licenses/mit/)
|
4
8
|
|
5
9
|
Mimoco (MInitest MOdels COntrollers) DRY
|
6
10
|
your tests by specifying some (trivial) of them via a table.
|
@@ -89,5 +93,5 @@ check_controllers controllers, ignore_methods: %i[magic2 magic3]
|
|
89
93
|
|
90
94
|
## Miscellaneous
|
91
95
|
|
92
|
-
Copyright (c) 2022-
|
96
|
+
Copyright (c) 2022-2024 Dittmar Krall (www.matiq.com),
|
93
97
|
released under the [MIT license](https://opensource.org/licenses/MIT).
|
data/lib/mimoco/version.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Mimoco
|
4
|
-
VERSION = "1.0.
|
4
|
+
VERSION = "1.0.3" # 2024-11-11
|
5
|
+
# VERSION = "1.0.2" # 2024-08-22
|
6
|
+
# VERSION = "1.0.1" # 2024-02-16
|
5
7
|
# VERSION = "1.0.0" # 2023-12-06
|
6
8
|
# VERSION = "0.3.2" # 2023-04-25
|
7
9
|
# VERSION = "0.3.1" # 2022-12-25
|
data/lib/mimoco_base.rb
CHANGED
@@ -31,15 +31,16 @@ module Minitest
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def self.delete_methods(which)
|
34
|
-
ignore2 = %i[attribute_aliases
|
34
|
+
ignore2 = %i[attribute_aliases attribute_aliases=
|
35
35
|
attributes_to_define_after_schema_loads column_headers
|
36
|
-
default_scope_override]
|
36
|
+
default_scope_override default_scope_override=]
|
37
37
|
# cls -= %i[__callbacks helpers_path middleware_stack]
|
38
38
|
# cls -= %i[attribute_type_decorations defined_enums]
|
39
39
|
methods = @klass.send(which, false).sort
|
40
40
|
methods.delete_if { |x| /^_/ =~ x }
|
41
41
|
methods.delete_if { |x| /^(after|before|find_by)_/ =~ x }
|
42
42
|
methods.delete_if { |x| /.*_associated_records_.*/ =~ x }
|
43
|
+
methods.delete_if { |x| /.*_association_names/ =~ x }
|
43
44
|
methods2 = @klass.superclass.send(which, false).sort
|
44
45
|
methods - methods2 - @ignore - ignore2
|
45
46
|
end
|
data/mimoco.gemspec
CHANGED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mimoco
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: combustion
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: sqlite3
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
description: Some testing for models and controllers
|
56
42
|
email:
|
57
43
|
- dittmar.krall@matiq.com
|
@@ -76,20 +62,20 @@ files:
|
|
76
62
|
- mimoco.gemspec
|
77
63
|
- test/controllers/controllers_test.rb
|
78
64
|
- test/controllers/orders_controller_test.rb
|
79
|
-
- test/
|
80
|
-
- test/
|
81
|
-
- test/
|
82
|
-
- test/
|
83
|
-
- test/
|
84
|
-
- test/
|
85
|
-
- test/
|
86
|
-
- test/
|
87
|
-
- test/
|
88
|
-
- test/
|
89
|
-
- test/
|
90
|
-
- test/
|
91
|
-
- test/
|
92
|
-
- test/
|
65
|
+
- test/dummy/app/controllers/application_controller.rb
|
66
|
+
- test/dummy/app/controllers/orders_controller.rb
|
67
|
+
- test/dummy/app/models/application_record.rb
|
68
|
+
- test/dummy/app/models/order.rb
|
69
|
+
- test/dummy/app/views/orders/_form.html.erb
|
70
|
+
- test/dummy/app/views/orders/_order.html.erb
|
71
|
+
- test/dummy/app/views/orders/edit.html.erb
|
72
|
+
- test/dummy/app/views/orders/index.html.erb
|
73
|
+
- test/dummy/app/views/orders/new.html.erb
|
74
|
+
- test/dummy/app/views/orders/show.html.erb
|
75
|
+
- test/dummy/config/database.yml
|
76
|
+
- test/dummy/config/routes.rb
|
77
|
+
- test/dummy/db/migrate/20141016161801_create_orders.rb
|
78
|
+
- test/dummy/db/schema.rb
|
93
79
|
- test/models/models_ignore_test.rb
|
94
80
|
- test/models/models_test.rb
|
95
81
|
- test/models/models_valid_test.rb
|
@@ -99,7 +85,7 @@ licenses:
|
|
99
85
|
- MIT
|
100
86
|
metadata:
|
101
87
|
source_code_uri: https://github.com/matique/mimoco
|
102
|
-
post_install_message:
|
88
|
+
post_install_message:
|
103
89
|
rdoc_options: []
|
104
90
|
require_paths:
|
105
91
|
- lib
|
@@ -114,8 +100,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
100
|
- !ruby/object:Gem::Version
|
115
101
|
version: '0'
|
116
102
|
requirements: []
|
117
|
-
rubygems_version: 3.5.
|
118
|
-
signing_key:
|
103
|
+
rubygems_version: 3.5.23
|
104
|
+
signing_key:
|
119
105
|
specification_version: 4
|
120
106
|
summary: 'Mimoco: some minitests for models and controllers'
|
121
107
|
test_files: []
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|