ibrain-core 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e306b2238fba539d079c52bbb0c6b6bb2ff1092e9f950c4c6fd85065b2325fa3
4
- data.tar.gz: d9ae60e6b5769f14339bcdba97ed42538523c34aa9d382454496d0ac49f1d320
3
+ metadata.gz: 9f025cda0967d5fb69166c0c8414008674498f34ee663f835686fa72e928dcc8
4
+ data.tar.gz: 4a70645118e2df91125b8baead82bfd1688cc7ea11dfe24c471a6cbc875761f0
5
5
  SHA512:
6
- metadata.gz: 3ae2d1c79c5931769a432d6532f104c88245afb7df5dc3d0af557b3496b215548cbae686203f229c7d5bac7226000e39caad0ffe42fae0361fe19b1ca64f38df
7
- data.tar.gz: 6b34268ff18f1eb0daafcd47d2b7a32f48360370ddc7367c18d5399048b69ca391758b4e0fdaa137a3a6f9d73d7cf02c84d828fe000a0ba7911d99d934dabe7e
6
+ metadata.gz: e4c427744bc5d9c0e7535b81827f805509173f6966bf1a1f9f227dec8acfee5baf0b284d1e4581bc6a2446671c7808e1a51e4e19ed29d8ea1a263187e9484152
7
+ data.tar.gz: 3c652fd06e5202f33b7fc7c32c3d173ac608aec4c9010dc2163c7a6e41bf876f9a3035b9b5c2d56acfe068004e78652e471fa87ac7e6728f0078ab3d03fc32e0
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  This is core plugin for rails api project
3
3
 
4
4
  ## Usage
5
- How to use my plugin.
5
+ Please remove puma gem from your project before add this gem
6
6
 
7
7
  ## Installation
8
8
  Add this line to your application's Gemfile:
@@ -137,7 +137,7 @@ module Ibrain
137
137
  template 'config/initializers/cors.tt', 'config/initializers/cors.rb', { skip: true }
138
138
  template 'config/puma.tt', 'config/puma.rb', { skip: true }
139
139
  yml_template 'config/database.tt', 'config/database.yml', { skip: true }
140
- template '.rubocop.yml.tt', '.rubocop.yml', { skip: true } if options[:with_rubocop]
140
+ template 'rubocop.yml.tt', '.rubocop.yml', { skip: true } if options[:with_rubocop]
141
141
 
142
142
  if options[:with_graphql]
143
143
  template 'graphql/app_schema.rb.tt', 'app/graphql/app_schema.rb', { skip: true }
@@ -0,0 +1,330 @@
1
+ # Relaxed.Ruby.Style
2
+
3
+ require:
4
+ - rubocop-performance
5
+ - rubocop-rails
6
+
7
+ AllCops:
8
+ TargetRubyVersion: 2.5
9
+
10
+ # Sometimes I believe this reads better
11
+ # This also causes spacing issues on multi-line fixes
12
+ Style/BracesAroundHashParameters:
13
+ Enabled: false
14
+
15
+ # We use class vars and will have to continue doing so for compatability
16
+ Style/ClassVars:
17
+ Enabled: false
18
+
19
+ # We need these names for backwards compatability
20
+ Naming/PredicateName:
21
+ Enabled: false
22
+
23
+ # We want to name rescued errors as error not simply e.
24
+ Naming/RescuedExceptionsVariableName:
25
+ Enabled: false
26
+
27
+ Naming/AccessorMethodName:
28
+ Enabled: false
29
+
30
+ # This has been used for customization
31
+ Style/MutableConstant:
32
+ Enabled: false
33
+
34
+ Style/ClassAndModuleChildren:
35
+ Enabled: false
36
+
37
+ Style/EmptyElse:
38
+ Enabled: false
39
+
40
+ Style/GuardClause:
41
+ Enabled: false
42
+
43
+ Style/Next:
44
+ Enabled: false
45
+
46
+ Style/NumericPredicate:
47
+ Enabled: false
48
+
49
+ Style/WordArray:
50
+ Enabled: false
51
+
52
+ Style/ConditionalAssignment:
53
+ Enabled: false
54
+
55
+ Performance/Count:
56
+ Enabled: false
57
+
58
+ Style/RaiseArgs:
59
+ Enabled: false
60
+
61
+ Naming/BinaryOperatorParameterName:
62
+ Enabled: false
63
+
64
+ # We can use good judgement here
65
+ Style/RegexpLiteral:
66
+ Enabled: false
67
+
68
+ # Unicode comments are useful
69
+ Style/AsciiComments:
70
+ Enabled: false
71
+
72
+ Layout/EndAlignment:
73
+ Enabled: false
74
+
75
+ Layout/ElseAlignment:
76
+ Enabled: false
77
+
78
+ Layout/IndentationWidth:
79
+ Enabled: false
80
+
81
+ Layout/AlignParameters:
82
+ Enabled: false
83
+
84
+ Layout/ClosingParenthesisIndentation:
85
+ Enabled: false
86
+
87
+ Layout/MultilineMethodCallIndentation:
88
+ Enabled: false
89
+
90
+ Layout/IndentFirstArrayElement:
91
+ Enabled: false
92
+
93
+ Layout/IndentFirstHashElement:
94
+ Enabled: false
95
+
96
+ Layout/AlignHash:
97
+ Enabled: false
98
+
99
+ Style/TrailingCommaInArguments:
100
+ Enabled: false
101
+
102
+ Style/TrailingCommaInArrayLiteral:
103
+ Enabled: false
104
+
105
+ Style/TrailingCommaInHashLiteral:
106
+ Enabled: false
107
+
108
+ # Symbol Arrays are ok and the %i syntax widely unknown
109
+ Style/SymbolArray:
110
+ Enabled: false
111
+
112
+ Rails/DynamicFindBy:
113
+ Whitelist:
114
+ - find_by_param
115
+ - find_by_param!
116
+
117
+ # It's okay to skip model validations to setup a spec.
118
+ Rails/SkipsModelValidations:
119
+ Exclude:
120
+ - '*/spec/**/*'
121
+
122
+ # We use a lot of
123
+ #
124
+ # expect {
125
+ # something
126
+ # }.to { happen }
127
+ #
128
+ # syntax in the specs files.
129
+ Lint/AmbiguousBlockAssociation:
130
+ Exclude:
131
+ - '*/spec/**/*'
132
+ - 'spec/**/*' # For the benefit of apps that inherit from this config
133
+
134
+ Security/Eval:
135
+ Exclude:
136
+ - 'Gemfile'
137
+ - '*/Gemfile'
138
+
139
+ Naming/VariableNumber:
140
+ Enabled: false
141
+
142
+ # Write empty methods as you wish.
143
+ Style/EmptyMethod:
144
+ Enabled: false
145
+
146
+ # From http://relaxed.ruby.style/
147
+
148
+ Style/Alias:
149
+ Enabled: false
150
+ StyleGuide: http://relaxed.ruby.style/#stylealias
151
+
152
+ Style/BeginBlock:
153
+ Enabled: false
154
+ StyleGuide: http://relaxed.ruby.style/#stylebeginblock
155
+
156
+ Style/BlockDelimiters:
157
+ Enabled: false
158
+ StyleGuide: http://relaxed.ruby.style/#styleblockdelimiters
159
+
160
+ Style/Documentation:
161
+ Enabled: false
162
+ StyleGuide: http://relaxed.ruby.style/#styledocumentation
163
+
164
+ Layout/DotPosition:
165
+ Enabled: false
166
+ StyleGuide: http://relaxed.ruby.style/#styledotposition
167
+
168
+ Style/DoubleNegation:
169
+ Enabled: false
170
+ StyleGuide: http://relaxed.ruby.style/#styledoublenegation
171
+
172
+ Style/EndBlock:
173
+ Enabled: false
174
+ StyleGuide: http://relaxed.ruby.style/#styleendblock
175
+
176
+ Style/FormatString:
177
+ Enabled: false
178
+ StyleGuide: http://relaxed.ruby.style/#styleformatstring
179
+
180
+ Style/IfUnlessModifier:
181
+ Enabled: false
182
+ StyleGuide: http://relaxed.ruby.style/#styleifunlessmodifier
183
+
184
+ Style/Lambda:
185
+ Enabled: false
186
+ StyleGuide: http://relaxed.ruby.style/#stylelambda
187
+
188
+ Style/ModuleFunction:
189
+ Enabled: false
190
+ StyleGuide: http://relaxed.ruby.style/#stylemodulefunction
191
+
192
+ Style/MultilineBlockChain:
193
+ Enabled: false
194
+ StyleGuide: http://relaxed.ruby.style/#stylemultilineblockchain
195
+
196
+ Style/NegatedIf:
197
+ Enabled: false
198
+ StyleGuide: http://relaxed.ruby.style/#stylenegatedif
199
+
200
+ Style/NegatedWhile:
201
+ Enabled: false
202
+ StyleGuide: http://relaxed.ruby.style/#stylenegatedwhile
203
+
204
+ Style/ParallelAssignment:
205
+ Enabled: false
206
+ StyleGuide: http://relaxed.ruby.style/#styleparallelassignment
207
+
208
+ Style/PercentLiteralDelimiters:
209
+ Enabled: false
210
+ StyleGuide: http://relaxed.ruby.style/#stylepercentliteraldelimiters
211
+
212
+ Style/PerlBackrefs:
213
+ Enabled: false
214
+ StyleGuide: http://relaxed.ruby.style/#styleperlbackrefs
215
+
216
+ Style/Semicolon:
217
+ Enabled: false
218
+ StyleGuide: http://relaxed.ruby.style/#stylesemicolon
219
+
220
+ Style/SignalException:
221
+ Enabled: false
222
+ StyleGuide: http://relaxed.ruby.style/#stylesignalexception
223
+
224
+ Style/SingleLineBlockParams:
225
+ Enabled: false
226
+ StyleGuide: http://relaxed.ruby.style/#stylesinglelineblockparams
227
+
228
+ Style/SingleLineMethods:
229
+ Enabled: false
230
+ StyleGuide: http://relaxed.ruby.style/#stylesinglelinemethods
231
+
232
+ Layout/SpaceBeforeBlockBraces:
233
+ Enabled: false
234
+ StyleGuide: http://relaxed.ruby.style/#stylespacebeforeblockbraces
235
+
236
+ Layout/SpaceInsideParens:
237
+ Enabled: false
238
+ StyleGuide: http://relaxed.ruby.style/#stylespaceinsideparens
239
+
240
+ Style/SpecialGlobalVars:
241
+ Enabled: false
242
+ StyleGuide: http://relaxed.ruby.style/#stylespecialglobalvars
243
+
244
+ Style/StringLiterals:
245
+ Enabled: false
246
+ StyleGuide: http://relaxed.ruby.style/#stylestringliterals
247
+
248
+ Style/SymbolProc:
249
+ Enabled: false
250
+
251
+ Style/TernaryParentheses:
252
+ Enabled: false
253
+
254
+ Style/WhileUntilModifier:
255
+ Enabled: false
256
+ StyleGuide: http://relaxed.ruby.style/#stylewhileuntilmodifier
257
+
258
+ Lint/AmbiguousRegexpLiteral:
259
+ Enabled: false
260
+ StyleGuide: http://relaxed.ruby.style/#lintambiguousregexpliteral
261
+
262
+ Lint/AssignmentInCondition:
263
+ Enabled: false
264
+ StyleGuide: http://relaxed.ruby.style/#lintassignmentincondition
265
+
266
+ Metrics/AbcSize:
267
+ Enabled: false
268
+
269
+ Metrics/BlockNesting:
270
+ Enabled: false
271
+
272
+ Metrics/ClassLength:
273
+ Enabled: false
274
+
275
+ Metrics/ModuleLength:
276
+ Enabled: false
277
+
278
+ Metrics/BlockLength:
279
+ Enabled: false
280
+
281
+ Metrics/CyclomaticComplexity:
282
+ Enabled: false
283
+
284
+ Metrics/LineLength:
285
+ Enabled: false
286
+
287
+ Metrics/MethodLength:
288
+ Enabled: false
289
+
290
+ Metrics/ParameterLists:
291
+ Enabled: false
292
+
293
+ Metrics/PerceivedComplexity:
294
+ Enabled: false
295
+
296
+ Bundler/OrderedGems:
297
+ Enabled: false
298
+
299
+ Style/NumericLiterals:
300
+ Enabled: false
301
+
302
+ Style/FrozenStringLiteralComment:
303
+ Enabled: true
304
+ EnforcedStyle: always
305
+
306
+ # json.() is idiomatic in jbuilder files
307
+ Style/LambdaCall:
308
+ Enabled: false
309
+
310
+ Naming/UncommunicativeMethodParamName:
311
+ AllowedNames:
312
+ - id
313
+ - to
314
+ - _
315
+
316
+ # Rubocop doesn't understand side-effects
317
+ Style/IdenticalConditionalBranches:
318
+ Enabled: false
319
+
320
+ Naming/MemoizedInstanceVariableName:
321
+ Enabled: false
322
+
323
+ Lint/UselessComparison:
324
+ Enabled: false
325
+
326
+ Lint/HandleExceptions:
327
+ Enabled: false
328
+
329
+ Rails/ReflectionClassName:
330
+ Enabled: true
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ibrain
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
 
6
6
  def self.ibrain_version
7
7
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibrain-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tai Nguyen Van
@@ -234,6 +234,7 @@ files:
234
234
  - lib/generators/ibrain/install/templates/graphql/app_schema.rb.tt
235
235
  - lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
236
236
  - lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
237
+ - lib/generators/ibrain/install/templates/rubocop.yml.tt
237
238
  - lib/ibrain/app_configuration.rb
238
239
  - lib/ibrain/config.rb
239
240
  - lib/ibrain/core.rb