modelscope 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: bce912a368e26f345cb884efa8e2a812c8ca58dae75d856cf6aba131bc3c6d9b
4
+ data.tar.gz: 0fc51f66a85f939a811e851b061d95b9bc64bee134b9eb5c39dde04dca4a14a1
5
+ SHA512:
6
+ metadata.gz: d1fbf5acaa0f20d6e47f44712f3d72a0f22b6ab297156fa7fce87bfe16b157166cacf3befaaa3e098c0e5005bd9e5f475ee45d15003b742523839dfa16e5985d
7
+ data.tar.gz: fcbda96d45601414867abfe42d86e12b4e7441f3fd07d6a401ca4004dd7fa30b460fcf7a64af46a6be3529ba9a90fbdbb676391dd563acdf341c7a582053f9f1
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Change log
2
+
3
+ ## master
4
+
5
+ [@palkan]: https://github.com/palkan
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2023 Evil Martians
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ [![Gem Version](https://badge.fury.io/rb/modelscope.svg)](https://rubygems.org/gems/modelscope) [![Build](https://github.com/evilmartians/modelscope/workflows/Build/badge.svg)](https://github.com/evilmartians/modelscope/actions)
2
+ [![JRuby Build](https://github.com/evilmartians/modelscope/workflows/JRuby%20Build/badge.svg)](https://github.com/evilmartians/modelscope/actions)
3
+
4
+ # Model Scope
5
+
6
+ Model scope analyzes your Rails application models and provides some useful insights on callbacks and validations defined. This information can be used to idenfity classes which would benefit from refactoring (extracting callbacks/validations from models to other abstraction layers).
7
+
8
+ ## Installation
9
+
10
+ Add to your project's Gemfile:
11
+
12
+ ```ruby
13
+ gem "modelscope", group: :development
14
+ ```
15
+
16
+ ### Supported Ruby versions
17
+
18
+ - Ruby (MRI) >= 2.7.0
19
+ - Rails >= 6.0
20
+
21
+ ## Usage
22
+
23
+ TBD
24
+
25
+ ## Contributing
26
+
27
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/evilmartians/modelscope](https://github.com/evilmartians/modelscope).
28
+
29
+ ## Credits
30
+
31
+ This gem is generated via [new-gem-generator](https://github.com/palkan/new-gem-generator).
32
+
33
+ ## License
34
+
35
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Modelscope # :nodoc:
4
+ class Railtie < ::Rails::Railtie # :nodoc:
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Modelscope # :nodoc:
4
+ VERSION = "0.0.1"
5
+ end
data/lib/modelscope.rb ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "modelscope/version"
4
+ require "modelscope/railtie" if defined?(Rails::Railtie)
metadata ADDED
@@ -0,0 +1,111 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: modelscope
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Vladimir Dementyev
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-02-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: combustion
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '1.1'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '13.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '13.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '6.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '6.0'
69
+ description: Model scope analyzes your Rails application models and provides some
70
+ useful insights on callbacks and validations defined
71
+ email:
72
+ - dementiev.vm@gmail.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - CHANGELOG.md
78
+ - LICENSE.txt
79
+ - README.md
80
+ - lib/modelscope.rb
81
+ - lib/modelscope/railtie.rb
82
+ - lib/modelscope/version.rb
83
+ homepage: http://github.com/evilmartians/modelscope
84
+ licenses:
85
+ - MIT
86
+ metadata:
87
+ bug_tracker_uri: http://github.com/evilmartians/modelscope/issues
88
+ changelog_uri: https://github.com/palkan/modelscope/blob/master/CHANGELOG.md
89
+ documentation_uri: http://github.com/evilmartians/modelscope
90
+ homepage_uri: http://github.com/evilmartians/modelscope
91
+ source_code_uri: http://github.com/evilmartians/modelscope
92
+ post_install_message:
93
+ rdoc_options: []
94
+ require_paths:
95
+ - lib
96
+ required_ruby_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '2.7'
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ requirements: []
107
+ rubygems_version: 3.4.6
108
+ signing_key:
109
+ specification_version: 4
110
+ summary: Rails models analyzers
111
+ test_files: []