flame_generate_toys 0.6.0 → 0.7.0

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: 9472104fd4de47947a8cdcef1f52e6c2a172e06a0803fc96b17bd9f247bbf135
4
- data.tar.gz: 158b09925e0aebf95db6b4c29eac929f2f239973ce43ab73900529052686eedd
3
+ metadata.gz: 469bf84879ebae119391d8b066c121a41abd50f752002e84d22048bb8acf15c3
4
+ data.tar.gz: fec21d3f80d49191277b4838689150c91c03a5e81e518ca5ed9d3bd2da5179f4
5
5
  SHA512:
6
- metadata.gz: 921586ddecdd1623d2b6a854446ce9a1f7f065f25139635c3718864279a2bcd4ab0ef75bfeec134e1cfab98135170c516e5d25453a7f041f07c8556b45870ff7
7
- data.tar.gz: 81a2ad2a6ad91c8080850233e5bfcb918c1dcf69e0e185c45ef55146872e76e89ab78ce293b59476a75efbe965a120d259d3dd29a28439f52ad1693d0a673f27
6
+ metadata.gz: '08d9616d107cfa434039ee4e908e667e84bcce0727bd4d50d9b59af2ac64e30c9c79389de9b698e54c46493f7aed0076723f2fead5a17350d5e5f1fdad35cb52'
7
+ data.tar.gz: 6b6c946800d6d0a8bd3dd1b724a5566653c74008cb2339744f9a052ce96189a7ebe5e08d3eafe6fcecdfb33537d8b9e527fce1d6664400ebdead0542da5b74d9
data/CHANGELOG.md CHANGED
@@ -2,8 +2,15 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
+ ## 0.7.0 (2021-02-11)
6
+
7
+ * Support Ruby 3.
8
+ * Update development dependencies.
9
+
5
10
  ## 0.6.0 (2020-10-14)
6
11
 
12
+ * Update `formalism-model_forms` to a new version.
13
+
7
14
  ## 0.5.0 (2020-09-25)
8
15
 
9
16
  * Fix forms generation.
@@ -11,20 +11,16 @@ module FlameGenerateToys
11
11
  include CommonGeneratorsCode
12
12
 
13
13
  required_arg :name
14
- flag :indentation, '--indentation=CHARS', default: "\t"
15
14
 
16
15
  to_run do
17
16
  generator = initialize_generator :form, template.namespace
18
17
 
19
18
  *modules, class_name = generator.camelized_name.split('::')
20
19
 
21
- class_definition_indentation = indentation * modules.size
22
-
23
20
  generator.write(
24
21
  modules: modules,
25
22
  class_name: class_name,
26
- class_definition_indentation: class_definition_indentation,
27
- class_body_indentation: class_definition_indentation + indentation,
23
+ class_indentation: "\t" * modules.size,
28
24
  parent_form: parent_form(class_name)
29
25
  )
30
26
  end
@@ -8,11 +8,11 @@ module <%= namespace %>
8
8
  %><%
9
9
  end
10
10
  %>
11
- <%= class_definition_indentation %>## TODO: Write form description
12
- <%= class_definition_indentation %>class <%= class_name %> < Forms::Base
13
- <%= class_body_indentation %>include Forms::Model::<%= parent_form %>
14
11
  <%=
15
- class_definition_indentation
12
+ class_indentation
13
+ %>class <%= class_name %> < Forms::Model::<%= parent_form %>
14
+ <%=
15
+ class_indentation
16
16
  %>end<%
17
17
  modules.map.with_index do |_module_name, index|
18
18
  reverse_index = modules.size - index.next
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FlameGenerateToys
4
- VERSION = '0.6.0'
4
+ VERSION = '0.7.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flame_generate_toys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-14 00:00:00.000000000 Z
11
+ date: 2021-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-inflector
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.7.0
33
+ version: 0.8.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.7.0
40
+ version: 0.8.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: toys-core
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.4.0
89
+ version: 0.6.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.4.0
96
+ version: 0.6.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: toys
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.2.0
117
+ version: 0.4.3
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 0.2.0
124
+ version: 0.4.3
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -142,28 +142,28 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 0.19.0
145
+ version: 0.21.2
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.19.0
152
+ version: 0.21.2
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rubocop
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.91.0
159
+ version: '1.4'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.91.0
166
+ version: '1.4'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rubocop-performance
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '1.0'
187
+ version: '2.0'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '1.0'
194
+ version: '2.0'
195
195
  description: 'Toys template to generate Flame application entities.
196
196
 
197
197
  '
@@ -229,13 +229,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
229
  - - ">="
230
230
  - !ruby/object:Gem::Version
231
231
  version: '2.5'
232
+ - - "<"
233
+ - !ruby/object:Gem::Version
234
+ version: '4'
232
235
  required_rubygems_version: !ruby/object:Gem::Requirement
233
236
  requirements:
234
237
  - - ">="
235
238
  - !ruby/object:Gem::Version
236
239
  version: '0'
237
240
  requirements: []
238
- rubygems_version: 3.1.4
241
+ rubygems_version: 3.2.3
239
242
  signing_key:
240
243
  specification_version: 4
241
244
  summary: Toys template to generate Flame application entities.