easy_gen 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.md +20 -0
- data/README.md +35 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e2d07dc8b6f85a2b78e8c91b2d89fa4cd6fcf832e3d138dc8ca3e5c9de18b832
|
4
|
+
data.tar.gz: 8c316ff1f599fbaa893e2360c25aab5cd1ef5266cf5668bfcf07075781a5f13e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 49e6f40b59eb2def1cf616009b88926383b53a213f60e17636559e0ca055ef23d7d2d234ce4832c815be0feb02e5cdaf69560d43b2d6c8e096a98e16e297dcfc
|
7
|
+
data.tar.gz: 1b489b8a5d176975a4dfc2ae3737ab82e58a57eb49061f25bdfdd525927618240b3849cba596658bf658e0c74dbbaa9440fd3b858a6796c2ab05fee5ac861428
|
data/LICENSE.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2023 Simon Stearn
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# easy_gen : Simple generator to add service class and minitest to rails projects
|
2
|
+
|
3
|
+
Save typing when generating service objects in a standard pattern.
|
4
|
+
|
5
|
+
Add the following to your Gemfile:
|
6
|
+
|
7
|
+
```ruby
|
8
|
+
gem "easy_gen"
|
9
|
+
```
|
10
|
+
|
11
|
+
Then run
|
12
|
+
|
13
|
+
```
|
14
|
+
bundle install
|
15
|
+
```
|
16
|
+
|
17
|
+
In the usual way.
|
18
|
+
|
19
|
+
## Using generators
|
20
|
+
|
21
|
+
All you need to do is to run:
|
22
|
+
|
23
|
+
```sh
|
24
|
+
bundle exec rails g service ServiceClassName
|
25
|
+
```
|
26
|
+
|
27
|
+
The command above:
|
28
|
+
|
29
|
+
- Creates '/app/services' directory if it doesnt exist.
|
30
|
+
- Installs new application service class in '/app/services' with the name 'ApplicationService.rb' in file '/app/services/application_service.rb.'
|
31
|
+
- Installs new service class in '/app/services' with the class name 'ServiceClassName' in the file /app/services/service_class_name.rb. This will inherit from /app/services/application_services.rb.'
|
32
|
+
- Creates '/test/services' directory if it doesnt exist.
|
33
|
+
- Installs new test class in '/app/services' with the name 'ServiceClassNameTest' in the file '/test/services/service_class_name_test.rb'.
|
34
|
+
|
35
|
+
** Nothing clever - just saves a bit of typing
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: easy_gen
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Simon Stearn
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-03-20 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A simple generator for /app/services classes and matching minitests
|
14
|
+
email: simonstearn@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- LICENSE.md
|
20
|
+
- README.md
|
21
|
+
homepage: https://rubygems.org/gems/easy_gen
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata: {}
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- lib
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
requirements: []
|
40
|
+
rubygems_version: 3.4.8
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: Easy Service Objects!
|
44
|
+
test_files: []
|