pattern_bibz 1.2.2 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f27df1aa1b5024ff5eadf58880c66c6bd622da57ff330e9303b6af0c9ab85b9
4
- data.tar.gz: ffe72e70df624fe6a7394c4f67fbaa8f9ac7ecc8b4f260b6067938fc3c52ebc6
3
+ metadata.gz: 4c6cfc8859a8197a40c42f3f1161b11589b6992f809059dfea8f1e567ecb9306
4
+ data.tar.gz: 3e4763211f6fb1f60515dd7e283810c91592eaa3a4c0c26cb168e068b6933686
5
5
  SHA512:
6
- metadata.gz: 5e5bb75f0b49e7efa7151560644da03639b05cef240cc77c5f2d1affc32d5a30af4db8c8b33e743664c5992e748351a43b42c6bf8886092ae989c34e949d071e
7
- data.tar.gz: 77206e97d3e4ef2866a934ea58f2e4fca2fce1d41ff2ddb93d3a1f90af215045e9399c8e4187f2260aac10072923271599a8ac1f685c743fc6729aba4c6d9bb8
6
+ metadata.gz: 93fcbe366c8c9e64e556f83869bc5fdf334d9ec3c791b75207e206ee5ff0879785cd1f6cb1811540b9030e3d92d3bf2856295d8484d088cb89cfea7aadb32d0d
7
+ data.tar.gz: 63e2938de292423c38f52485621dc5be84a092dd8b4069108d7cbd342d152b2f92e866d2fd955ed31ae4045344981011019b28ba109255a7190f76886da04336
data/README.md CHANGED
@@ -1,7 +1,11 @@
1
- # PatternBibz
1
+ ![Pattern Bibz logo](https://raw.githubusercontent.com/thooams/pattern_bibz/main/pattern-bibz-logo.gif)
2
+
3
+ # Pattern Bibz
2
4
 
3
5
  Rails Ruby Pattern Generator.
4
- This gem allows to generate your design pattern through the ralis generator.
6
+ This gem allows to generate your design pattern through the rails generator.
7
+
8
+ ![Ruby](https://github.com/thooams/pattern_bibz/workflows/Ruby/badge.svg)
5
9
 
6
10
  ## Usage
7
11
 
@@ -15,7 +19,7 @@ rails generate pattern PATTERN_NAME
15
19
  rails generate pattern MyCustomDecorator
16
20
  ```
17
21
 
18
- Files will be created:
22
+ Files generated:
19
23
 
20
24
  app/decorators/application_decorator.rb
21
25
  app/decorators/my_custom_decorator.rb
@@ -46,18 +50,40 @@ $ gem install pattern_bibz
46
50
  To extend your Rails model generator:
47
51
 
48
52
  ```bash
49
- rails g pattern_bibz:extend_model
53
+ $ rails g pattern_bibz:extend_model
50
54
  ```
51
55
 
52
56
  Then you can generate your model:
53
57
 
54
58
  ```bash
55
- rails g model MyModel title:string ...
59
+ $ rails g model MyModel title:string ...
56
60
  ```
57
61
 
58
- ## Contributing
62
+ Your generated model will look like this:
63
+
64
+ ```ruby
65
+ # frozen_string_literal: true
66
+
67
+ class MyModel < ApplicationRecord
68
+ # Scopes
69
+
70
+ # Constants
71
+
72
+ # Callbacks
59
73
 
60
- Contribution directions go here.
74
+ # Attr_accessors
75
+
76
+ # Associations
77
+
78
+ # Enums
79
+
80
+ # Validations
81
+
82
+ # Delegations
83
+
84
+ # Methods
85
+ end
86
+ ```
61
87
 
62
88
  ## License
63
89
 
@@ -1,4 +1,6 @@
1
1
  <% module_namespacing do -%>
2
+ # frozen_string_literal: true
3
+
2
4
  class <%= class_name %> < <%= parent_class_name.classify %>
3
5
  # Scopes
4
6
 
@@ -1,3 +1,3 @@
1
1
  module PatternBibz
2
- VERSION = '1.2.2'
2
+ VERSION = '1.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pattern_bibz
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas HUMMEL
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-25 00:00:00.000000000 Z
11
+ date: 2021-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -20,7 +20,7 @@ dependencies:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: 6.0.2.2
23
- type: :runtime
23
+ type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
@@ -97,7 +97,7 @@ licenses:
97
97
  - MIT
98
98
  metadata:
99
99
  allowed_push_host: https://rubygems.org
100
- post_install_message:
100
+ post_install_message:
101
101
  rdoc_options: []
102
102
  require_paths:
103
103
  - lib
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubygems_version: 3.1.2
116
- signing_key:
116
+ signing_key:
117
117
  specification_version: 4
118
118
  summary: Rails Pattern generator
119
119
  test_files: []