poro-rails 0.2.0 → 0.2.1
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 +4 -4
- data/README.md +10 -4
- data/poro-rails.gemspec +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f06d512280efbe6d18348edd21daba8338da03dd37778cb97ff4322ad3268b4
|
4
|
+
data.tar.gz: 4beb5e621dc81dad656038bbdaa2b9f889ad607458cecf1a4b6c4cd2d466dbf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 545178a43d43c2fde35babccb75e7975a9a63846ec2c6240059d914cb2421826c4b4b03f60373c261190ad65795007061c322da0749dacf2899aa868e3b79be9
|
7
|
+
data.tar.gz: 246afd9540e3a1c123d3542c614d66c2e766f29f85dd178d2124df567b3db1997279a78fbe671488a92d127081bf780901a3504783bd432c5aa9e3545448b2fb
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# poro-rails
|
2
2
|
|
3
|
-
This gem provides generators of **Plain Old Ruby
|
3
|
+
This gem provides generators of **Plain Old Ruby Objects**, **Form Objects** and **Service Objects** for Ruby on Rails.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,7 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
### Plain Old Ruby
|
21
|
+
### Plain Old Ruby Objects
|
22
22
|
|
23
23
|
Generate a plain old ruby object via command line:
|
24
24
|
|
@@ -34,7 +34,9 @@ These files are created (if it use RSpec in your project, it creates a spec file
|
|
34
34
|
class Person
|
35
35
|
# include ActiveModel::Model
|
36
36
|
end
|
37
|
+
```
|
37
38
|
|
39
|
+
```ruby
|
38
40
|
# test/models/person_test.rb
|
39
41
|
require 'test_helper'
|
40
42
|
|
@@ -45,7 +47,7 @@ class PersonTest < ActiveSupport::TestCase
|
|
45
47
|
end
|
46
48
|
```
|
47
49
|
|
48
|
-
### Form
|
50
|
+
### Form Objects
|
49
51
|
|
50
52
|
Generate a form object via command line:
|
51
53
|
|
@@ -61,7 +63,9 @@ These files are created (if it use RSpec in your project, it creates a spec file
|
|
61
63
|
class CreateUserForm
|
62
64
|
# include ActiveModel::Model
|
63
65
|
end
|
66
|
+
```
|
64
67
|
|
68
|
+
```ruby
|
65
69
|
# test/forms/create_user_form_test.rb
|
66
70
|
require 'test_helper'
|
67
71
|
|
@@ -72,7 +76,7 @@ class CreateUserFormTest < ActiveSupport::TestCase
|
|
72
76
|
end
|
73
77
|
```
|
74
78
|
|
75
|
-
### Service
|
79
|
+
### Service Objects
|
76
80
|
|
77
81
|
Generate a service object via command line:
|
78
82
|
|
@@ -88,7 +92,9 @@ These files are created (if it use RSpec in your project, it creates a spec file
|
|
88
92
|
class CreatePaymentService
|
89
93
|
# include ActiveModel::Model
|
90
94
|
end
|
95
|
+
```
|
91
96
|
|
97
|
+
```ruby
|
92
98
|
# test/services/create_payment_service_test.rb
|
93
99
|
require 'test_helper'
|
94
100
|
|
data/poro-rails.gemspec
CHANGED
@@ -5,12 +5,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = 'poro-rails'
|
8
|
-
s.version = '0.2.
|
8
|
+
s.version = '0.2.1'
|
9
9
|
s.authors = ['Yoshiyuki Hirano']
|
10
10
|
s.email = ['yhirano@me.com']
|
11
11
|
s.homepage = 'https://github.com/yhirano55/poro-rails'
|
12
|
-
s.summary = %(Simple Rails Generators for Plain Old Ruby
|
13
|
-
s.description = %(This gem provides generators of Plain Old Ruby
|
12
|
+
s.summary = %(Simple Rails Generators for Plain Old Ruby Objects, Form Objects, and Service Objects)
|
13
|
+
s.description = %(This gem provides generators of Plain Old Ruby Objects, Form Objects, and Service Objects for Ruby on Rails.)
|
14
14
|
s.license = 'MIT'
|
15
15
|
s.files = Dir.chdir(File.expand_path('.', __dir__)) do
|
16
16
|
`git ls-files -z`.split("\x0")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poro-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshiyuki Hirano
|
@@ -38,8 +38,8 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
description: This gem provides generators of Plain Old Ruby
|
42
|
-
Service
|
41
|
+
description: This gem provides generators of Plain Old Ruby Objects, Form Objects,
|
42
|
+
and Service Objects for Ruby on Rails.
|
43
43
|
email:
|
44
44
|
- yhirano@me.com
|
45
45
|
executables: []
|
@@ -95,6 +95,6 @@ requirements: []
|
|
95
95
|
rubygems_version: 3.0.3
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
|
-
summary: Simple Rails Generators for Plain Old Ruby
|
99
|
-
|
98
|
+
summary: Simple Rails Generators for Plain Old Ruby Objects, Form Objects, and Service
|
99
|
+
Objects
|
100
100
|
test_files: []
|