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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1796b354edbe98b20ea8aadfdf251b0c9729741df6960747cd68e678996d7451
4
- data.tar.gz: d21b500b222ec94c01425d329bac0bbf2182492baaceffdd4d20a52d685576f7
3
+ metadata.gz: 1613f09fef3f8110dfa32da257c5a24b0a087d9286469eaba8f29803f473dbaa
4
+ data.tar.gz: fea092ba59796f697acf4372fa2c92b32b7ccff78790dae5a7e9718d6da6de7c
5
5
  SHA512:
6
- metadata.gz: 37dd105bd461a6538047de9c27f046e46881474abebf878094b5e6c8567a52e1210d8f5ad0a8ca4f7530f80d40c291f831ddb80e8c01b8fbfa9728a62099a2d6
7
- data.tar.gz: 134215525e99400306ae22f85f28a021fa47a91a37f7dc74ee712080635f19a9396edfa01766be4f2d087be1273f1c36eaf3e7c39339587efac14c5fd3fb035a
6
+ metadata.gz: 59f2ff22f833d1d601c7adaac6cab731e136b0fc0d315fa2aaca834fa5594e5106478a9a4b19953f91fb8c4765a9bddb9dc7a46035bfb383056d21c26fa174a4
7
+ data.tar.gz: 9b1d647e55a2cf572826d0b947032d57adf8d6be8fbbc76e26680ced2313bd6c8481db1ee18c440f3233dc7a4e9ab7cb370ab1ac68b33386106baba10c1b9c27
@@ -8,14 +8,13 @@ jobs:
8
8
  strategy:
9
9
  fail-fast: false
10
10
  matrix:
11
- ruby: ["3.0", "3.2", 3.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@v3
17
+ - uses: actions/checkout@v4
19
18
  - name: Set up Ruby
20
19
  uses: ruby/setup-ruby@v1
21
20
  with:
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  .bundle/
2
2
  coverage/
3
+ .watchr
3
4
 
4
5
  *.gem
5
6
  *.log
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails-7.1
1
+ rails-8.0
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.3.0
1
+ ruby-3.3.6
data/Gemfile CHANGED
@@ -4,8 +4,9 @@ gemspec
4
4
  gem "rails"
5
5
 
6
6
  group :test do
7
- gem "observr"
7
+ gem "cuco"
8
8
  gem "ricecream"
9
9
  gem "simplecov", require: false
10
+ gem "sqlite3"
10
11
  gem "standard", require: false
11
12
  end
data/MIT-LICENSE CHANGED
@@ -1,6 +1,4 @@
1
- The MIT License (MIT)
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.png)](http://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-2023 Dittmar Krall (www.matiq.com),
96
+ Copyright (c) 2022-2024 Dittmar Krall (www.matiq.com),
93
97
  released under the [MIT license](https://opensource.org/licenses/MIT).
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mimoco
4
- VERSION = "1.0.1" # 2024-02-16
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
@@ -20,5 +20,4 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_development_dependency "combustion"
22
22
  s.add_development_dependency "minitest"
23
- s.add_development_dependency "sqlite3"
24
23
  end
data/test/test_helper.rb CHANGED
@@ -6,7 +6,7 @@ if ENV["COVERAGE"]
6
6
  end
7
7
 
8
8
  require "combustion"
9
- Combustion.path = "test/internal"
9
+ Combustion.path = "test/dummy"
10
10
  Combustion.initialize! :active_record
11
11
 
12
12
  require "rails/test_help"
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.1
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-02-18 00:00:00.000000000 Z
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/internal/app/controllers/application_controller.rb
80
- - test/internal/app/controllers/orders_controller.rb
81
- - test/internal/app/models/application_record.rb
82
- - test/internal/app/models/order.rb
83
- - test/internal/app/views/orders/_form.html.erb
84
- - test/internal/app/views/orders/_order.html.erb
85
- - test/internal/app/views/orders/edit.html.erb
86
- - test/internal/app/views/orders/index.html.erb
87
- - test/internal/app/views/orders/new.html.erb
88
- - test/internal/app/views/orders/show.html.erb
89
- - test/internal/config/database.yml
90
- - test/internal/config/routes.rb
91
- - test/internal/db/migrate/20141016161801_create_orders.rb
92
- - test/internal/db/schema.rb
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.6
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