sbf-data_mapper 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +37 -0
- data/.rubocop.yml +468 -0
- data/History.txt +61 -0
- data/Manifest.txt +6 -0
- data/README.txt +15 -0
- data/Rakefile +84 -0
- data/data_mapper.gemspec +25 -0
- data/lib/data_mapper.rb +13 -0
- metadata +178 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a74664eba1fe86ce1533d4757c883800374a06c3dd3db11aa98531171244e14c
|
4
|
+
data.tar.gz: 50999c11951039f1c98d88df62e6decdddba8be203d363de64192f514bdfb7c3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 00a3a51bd63b08444d51211537eb2c88c68d6b467405b0f9506ddc1ec7a886b0bfe72a3b77a3eedfa4e5ef41b1362d69b4bb5e51ba8eab7839b8e079c626a4d6
|
7
|
+
data.tar.gz: 550af41c5fc10a65089002ee4238793060019d8634ec5a2c23ccc17debd286771031606e4b2b8c24ede9b9a3d7bd2729ec3e172d458f544d9bb104c7abf82375
|
data/.gitignore
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
## MAC OS
|
2
|
+
.DS_Store
|
3
|
+
|
4
|
+
## TEXTMATE
|
5
|
+
*.tmproj
|
6
|
+
tmtags
|
7
|
+
|
8
|
+
## EMACS
|
9
|
+
*~
|
10
|
+
\#*
|
11
|
+
.\#*
|
12
|
+
|
13
|
+
## VIM
|
14
|
+
*.swp
|
15
|
+
|
16
|
+
## Rubinius
|
17
|
+
*.rbc
|
18
|
+
|
19
|
+
## PROJECT::GENERAL
|
20
|
+
*.gem
|
21
|
+
coverage
|
22
|
+
rdoc
|
23
|
+
pkg
|
24
|
+
tmp
|
25
|
+
doc
|
26
|
+
log
|
27
|
+
.yardoc
|
28
|
+
measurements
|
29
|
+
|
30
|
+
## BUNDLER
|
31
|
+
.bundle
|
32
|
+
Gemfile.local
|
33
|
+
Gemfile.lock
|
34
|
+
Gemfile.local.lock
|
35
|
+
|
36
|
+
## PROJECT::SPECIFIC
|
37
|
+
lib/datamapper.rb
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,468 @@
|
|
1
|
+
#require: rubocop-performance
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
TargetRubyVersion: 2.7
|
5
|
+
|
6
|
+
Gemspec/DeprecatedAttributeAssignment:
|
7
|
+
Enabled: true
|
8
|
+
|
9
|
+
Gemspec/DevelopmentDependencies: # new in 1.44
|
10
|
+
Enabled: true
|
11
|
+
|
12
|
+
Gemspec/RequireMFA:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
Layout/LineContinuationLeadingSpace: # new in 1.31
|
16
|
+
Enabled: true
|
17
|
+
|
18
|
+
Layout/LineContinuationSpacing: # new in 1.31
|
19
|
+
Enabled: true
|
20
|
+
|
21
|
+
Layout/LineEndStringConcatenationIndentation:
|
22
|
+
Enabled: true
|
23
|
+
|
24
|
+
Layout/LineLength:
|
25
|
+
Max: 150
|
26
|
+
|
27
|
+
Layout/MultilineOperationIndentation:
|
28
|
+
EnforcedStyle: aligned
|
29
|
+
|
30
|
+
Layout/SpaceAfterSemicolon:
|
31
|
+
Enabled: true
|
32
|
+
|
33
|
+
Layout/SpaceBeforeBrackets: # new in 1.7
|
34
|
+
Enabled: true
|
35
|
+
|
36
|
+
Layout/SpaceInsideHashLiteralBraces:
|
37
|
+
EnforcedStyle: no_space
|
38
|
+
|
39
|
+
Lint/AmbiguousAssignment: # new in 1.7
|
40
|
+
Enabled: true
|
41
|
+
|
42
|
+
Lint/AmbiguousBlockAssociation:
|
43
|
+
Enabled: true
|
44
|
+
Exclude:
|
45
|
+
- 'spec/**/*'
|
46
|
+
|
47
|
+
Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
48
|
+
Enabled: true
|
49
|
+
|
50
|
+
Lint/AmbiguousRange: # new in 1.19
|
51
|
+
Enabled: true
|
52
|
+
|
53
|
+
Lint/ConstantDefinitionInBlock:
|
54
|
+
Enabled: true
|
55
|
+
|
56
|
+
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
57
|
+
Enabled: true
|
58
|
+
|
59
|
+
Lint/DeprecatedConstants: # new in 1.8
|
60
|
+
Enabled: true
|
61
|
+
|
62
|
+
Lint/DuplicateBranch: # new in 1.3
|
63
|
+
Enabled: true
|
64
|
+
|
65
|
+
Lint/DuplicateMagicComment: # new in 1.37
|
66
|
+
Enabled: true
|
67
|
+
|
68
|
+
Lint/DuplicateMatchPattern: # new in 1.50
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
Lint/DuplicateMethods:
|
72
|
+
Enabled: false
|
73
|
+
|
74
|
+
Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
|
75
|
+
Enabled: true
|
76
|
+
|
77
|
+
Lint/EmptyBlock:
|
78
|
+
Enabled: true
|
79
|
+
|
80
|
+
Lint/EmptyClass: # new in 1.3
|
81
|
+
Enabled: true
|
82
|
+
|
83
|
+
Lint/EmptyFile:
|
84
|
+
Enabled: true
|
85
|
+
|
86
|
+
Lint/EmptyInPattern: # new in 1.16
|
87
|
+
Enabled: true
|
88
|
+
|
89
|
+
Lint/FloatComparison:
|
90
|
+
Enabled: true
|
91
|
+
|
92
|
+
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
93
|
+
Enabled: true
|
94
|
+
|
95
|
+
Lint/ItWithoutArgumentsInBlock: # new in 1.59
|
96
|
+
Enabled: true
|
97
|
+
|
98
|
+
Lint/LambdaWithoutLiteralBlock: # new in 1.8
|
99
|
+
Enabled: true
|
100
|
+
|
101
|
+
Lint/LiteralAssignmentInCondition: # new in 1.58
|
102
|
+
Enabled: true
|
103
|
+
|
104
|
+
Lint/MissingSuper:
|
105
|
+
Enabled: true
|
106
|
+
|
107
|
+
Lint/MixedCaseRange: # new in 1.53
|
108
|
+
Enabled: true
|
109
|
+
|
110
|
+
Lint/NoReturnInBeginEndBlocks: # new in 1.2
|
111
|
+
Enabled: true
|
112
|
+
|
113
|
+
Lint/NonAtomicFileOperation: # new in 1.31
|
114
|
+
Enabled: true
|
115
|
+
|
116
|
+
Lint/NumberedParameterAssignment: # new in 1.9
|
117
|
+
Enabled: true
|
118
|
+
|
119
|
+
Lint/OrAssignmentToConstant: # new in 1.9
|
120
|
+
Enabled: true
|
121
|
+
|
122
|
+
Lint/RaiseException:
|
123
|
+
Enabled: false
|
124
|
+
|
125
|
+
Lint/RedundantDirGlobSort: # new in 1.8
|
126
|
+
Enabled: true
|
127
|
+
|
128
|
+
Lint/RedundantRegexpQuantifiers: # new in 1.53
|
129
|
+
Enabled: true
|
130
|
+
|
131
|
+
Lint/RefinementImportMethods: # new in 1.27
|
132
|
+
Enabled: true
|
133
|
+
|
134
|
+
Lint/RequireRangeParentheses: # new in 1.32
|
135
|
+
Enabled: true
|
136
|
+
|
137
|
+
Lint/RequireRelativeSelfPath: # new in 1.22
|
138
|
+
Enabled: true
|
139
|
+
|
140
|
+
Lint/SafeNavigationChain:
|
141
|
+
Enabled: true
|
142
|
+
AllowedMethods:
|
143
|
+
- present?
|
144
|
+
- blank?
|
145
|
+
- presence
|
146
|
+
- try
|
147
|
+
- try!
|
148
|
+
- empty?
|
149
|
+
- nil?
|
150
|
+
- blank?
|
151
|
+
|
152
|
+
Lint/SymbolConversion:
|
153
|
+
Enabled: false
|
154
|
+
|
155
|
+
Lint/ToEnumArguments: # new in 1.1
|
156
|
+
Enabled: true
|
157
|
+
|
158
|
+
Lint/TripleQuotes: # new in 1.9
|
159
|
+
Enabled: true
|
160
|
+
|
161
|
+
Lint/UnexpectedBlockArity: # new in 1.5
|
162
|
+
Enabled: true
|
163
|
+
|
164
|
+
Lint/UnmodifiedReduceAccumulator: # new in 1.1
|
165
|
+
Enabled: true
|
166
|
+
|
167
|
+
Lint/UnreachableLoop:
|
168
|
+
Enabled: true
|
169
|
+
|
170
|
+
Lint/UselessRescue: # new in 1.43
|
171
|
+
Enabled: true
|
172
|
+
|
173
|
+
Lint/UselessRuby2Keywords: # new in 1.23
|
174
|
+
Enabled: true
|
175
|
+
|
176
|
+
Metrics/AbcSize:
|
177
|
+
Enabled: false
|
178
|
+
|
179
|
+
Metrics/BlockLength:
|
180
|
+
Enabled: false
|
181
|
+
|
182
|
+
Metrics/BlockNesting:
|
183
|
+
Max: 4
|
184
|
+
|
185
|
+
Metrics/ClassLength:
|
186
|
+
Enabled: false
|
187
|
+
|
188
|
+
Metrics/CollectionLiteralLength: # new in 1.47
|
189
|
+
Enabled: true
|
190
|
+
|
191
|
+
Metrics/CyclomaticComplexity:
|
192
|
+
Max: 15
|
193
|
+
|
194
|
+
Metrics/MethodLength:
|
195
|
+
Max: 30
|
196
|
+
|
197
|
+
Metrics/ModuleLength:
|
198
|
+
Enabled: false
|
199
|
+
|
200
|
+
Metrics/ParameterLists:
|
201
|
+
Max: 5
|
202
|
+
CountKeywordArgs: false
|
203
|
+
|
204
|
+
Metrics/PerceivedComplexity:
|
205
|
+
Max: 20
|
206
|
+
|
207
|
+
Naming/BlockForwarding: # new in 1.24
|
208
|
+
Enabled: true
|
209
|
+
|
210
|
+
Naming/HeredocDelimiterNaming:
|
211
|
+
Enabled: false
|
212
|
+
|
213
|
+
Naming/MethodParameterName:
|
214
|
+
AllowedNames: [a, _, id]
|
215
|
+
|
216
|
+
Naming/VariableNumber:
|
217
|
+
Enabled: true
|
218
|
+
# EnforcedStyle: snake_case
|
219
|
+
|
220
|
+
#Performance/CollectionLiteralInLoop:
|
221
|
+
# Enabled: true
|
222
|
+
#
|
223
|
+
#Performance/RangeInclude:
|
224
|
+
# Enabled: false
|
225
|
+
#
|
226
|
+
#Performance/RedundantEqualityComparisonBlock:
|
227
|
+
# Enabled: true
|
228
|
+
|
229
|
+
Security/CompoundHash: # new in 1.28
|
230
|
+
Enabled: true
|
231
|
+
|
232
|
+
Security/IoMethods: # new in 1.22
|
233
|
+
Enabled: true
|
234
|
+
|
235
|
+
Style/AccessModifierDeclarations:
|
236
|
+
EnforcedStyle: inline
|
237
|
+
|
238
|
+
Style/Alias:
|
239
|
+
Enabled: false
|
240
|
+
EnforcedStyle: prefer_alias_method
|
241
|
+
|
242
|
+
Style/ArgumentsForwarding: # new in 1.1
|
243
|
+
Enabled: true
|
244
|
+
|
245
|
+
Style/ArrayIntersect: # new in 1.40
|
246
|
+
Enabled: true
|
247
|
+
|
248
|
+
Style/CaseLikeIf:
|
249
|
+
Enabled: true
|
250
|
+
|
251
|
+
Style/CollectionCompact: # new in 1.2
|
252
|
+
Enabled: true
|
253
|
+
|
254
|
+
Style/CombinableLoops:
|
255
|
+
Enabled: true
|
256
|
+
|
257
|
+
Style/ComparableClamp: # new in 1.44
|
258
|
+
Enabled: true
|
259
|
+
|
260
|
+
Style/ConcatArrayLiterals: # new in 1.41
|
261
|
+
Enabled: true
|
262
|
+
|
263
|
+
Style/DataInheritance: # new in 1.49
|
264
|
+
Enabled: true
|
265
|
+
|
266
|
+
Style/DirEmpty: # new in 1.48
|
267
|
+
Enabled: true
|
268
|
+
|
269
|
+
Style/Documentation:
|
270
|
+
Enabled: false
|
271
|
+
|
272
|
+
Style/DocumentDynamicEvalDefinition: # new in 1.1
|
273
|
+
Enabled: true
|
274
|
+
|
275
|
+
Style/EmptyHeredoc: # new in 1.32
|
276
|
+
Enabled: true
|
277
|
+
|
278
|
+
Style/EndlessMethod: # new in 1.8
|
279
|
+
Enabled: true
|
280
|
+
|
281
|
+
Style/EnvHome: # new in 1.29
|
282
|
+
Enabled: true
|
283
|
+
|
284
|
+
Style/ExactRegexpMatch: # new in 1.51
|
285
|
+
Enabled: true
|
286
|
+
|
287
|
+
Style/FetchEnvVar:
|
288
|
+
Enabled: true
|
289
|
+
|
290
|
+
Style/FileEmpty: # new in 1.48
|
291
|
+
Enabled: true
|
292
|
+
|
293
|
+
Style/FileRead: # new in 1.24
|
294
|
+
Enabled: true
|
295
|
+
|
296
|
+
Style/FileWrite: # new in 1.24
|
297
|
+
Enabled: true
|
298
|
+
|
299
|
+
Style/FormatStringToken:
|
300
|
+
Enabled: false
|
301
|
+
|
302
|
+
Style/FrozenStringLiteralComment:
|
303
|
+
Enabled: false
|
304
|
+
|
305
|
+
Style/HashConversion: # new in 1.10
|
306
|
+
Enabled: true
|
307
|
+
|
308
|
+
Style/HashExcept: # new in 1.7
|
309
|
+
Enabled: true
|
310
|
+
|
311
|
+
Style/HashLikeCase:
|
312
|
+
Enabled: true
|
313
|
+
|
314
|
+
Style/HashSyntax:
|
315
|
+
Enabled: true
|
316
|
+
EnforcedShorthandSyntax: consistent
|
317
|
+
|
318
|
+
Style/IfWithBooleanLiteralBranches: # new in 1.9
|
319
|
+
Enabled: true
|
320
|
+
|
321
|
+
Style/InPatternThen: # new in 1.16
|
322
|
+
Enabled: true
|
323
|
+
|
324
|
+
Style/MagicCommentFormat: # new in 1.35
|
325
|
+
Enabled: true
|
326
|
+
|
327
|
+
Style/MapCompactWithConditionalBlock: # new in 1.30
|
328
|
+
Enabled: true
|
329
|
+
|
330
|
+
Style/MapToHash: # new in 1.24
|
331
|
+
Enabled: true
|
332
|
+
|
333
|
+
Style/MapToSet: # new in 1.42
|
334
|
+
Enabled: true
|
335
|
+
|
336
|
+
Style/MinMaxComparison: # new in 1.42
|
337
|
+
Enabled: true
|
338
|
+
|
339
|
+
Style/MixinGrouping:
|
340
|
+
Enabled: true
|
341
|
+
EnforcedStyle: grouped
|
342
|
+
|
343
|
+
Style/MultilineInPatternThen: # new in 1.16
|
344
|
+
Enabled: true
|
345
|
+
|
346
|
+
Style/NegatedIfElseCondition: # new in 1.2
|
347
|
+
Enabled: true
|
348
|
+
|
349
|
+
Style/NestedFileDirname: # new in 1.26
|
350
|
+
Enabled: true
|
351
|
+
|
352
|
+
Style/NilLambda: # new in 1.3
|
353
|
+
Enabled: true
|
354
|
+
|
355
|
+
Style/NumberedParameters: # new in 1.22
|
356
|
+
Enabled: true
|
357
|
+
|
358
|
+
Style/NumberedParametersLimit: # new in 1.22
|
359
|
+
Enabled: true
|
360
|
+
|
361
|
+
Style/NumericPredicate:
|
362
|
+
Enabled: false
|
363
|
+
|
364
|
+
Style/ObjectThen: # new in 1.28
|
365
|
+
Enabled: true
|
366
|
+
|
367
|
+
Style/OpenStructUse:
|
368
|
+
Enabled: false
|
369
|
+
|
370
|
+
Style/OperatorMethodCall: # new in 1.37
|
371
|
+
Enabled: true
|
372
|
+
|
373
|
+
Style/OptionalBooleanParameter:
|
374
|
+
Enabled: true
|
375
|
+
|
376
|
+
Style/PercentLiteralDelimiters:
|
377
|
+
PreferredDelimiters:
|
378
|
+
default: ()
|
379
|
+
'%i': '()'
|
380
|
+
'%I': '()'
|
381
|
+
'%r': '{}'
|
382
|
+
'%w': '()'
|
383
|
+
'%W': '()'
|
384
|
+
|
385
|
+
Style/QuotedSymbols: # new in 1.16
|
386
|
+
Enabled: true
|
387
|
+
|
388
|
+
Style/RedundantArgument: # new in 1.4
|
389
|
+
Enabled: true
|
390
|
+
|
391
|
+
Style/RedundantArrayConstructor: # new in 1.52
|
392
|
+
Enabled: true
|
393
|
+
|
394
|
+
Style/RedundantConstantBase: # new in 1.40
|
395
|
+
Enabled: true
|
396
|
+
|
397
|
+
Style/RedundantCurrentDirectoryInPath: # new in 1.53
|
398
|
+
Enabled: true
|
399
|
+
|
400
|
+
Style/RedundantDoubleSplatHashBraces: # new in 1.41
|
401
|
+
Enabled: true
|
402
|
+
|
403
|
+
Style/RedundantEach: # new in 1.38
|
404
|
+
Enabled: true
|
405
|
+
|
406
|
+
Style/RedundantFilterChain: # new in 1.52
|
407
|
+
Enabled: true
|
408
|
+
|
409
|
+
Style/RedundantHeredocDelimiterQuotes: # new in 1.45
|
410
|
+
Enabled: true
|
411
|
+
|
412
|
+
Style/RedundantInitialize: # new in 1.27
|
413
|
+
Enabled: true
|
414
|
+
|
415
|
+
Style/RedundantLineContinuation: # new in 1.49
|
416
|
+
Enabled: true
|
417
|
+
|
418
|
+
Style/RedundantParentheses:
|
419
|
+
Enabled: true
|
420
|
+
|
421
|
+
Style/RedundantRegexpArgument: # new in 1.53
|
422
|
+
Enabled: true
|
423
|
+
|
424
|
+
Style/RedundantRegexpConstructor: # new in 1.52
|
425
|
+
Enabled: true
|
426
|
+
|
427
|
+
Style/RedundantSelfAssignmentBranch: # new in 1.19
|
428
|
+
Enabled: true
|
429
|
+
|
430
|
+
Style/RedundantStringEscape: # new in 1.37
|
431
|
+
Enabled: true
|
432
|
+
|
433
|
+
Style/RegexpLiteral:
|
434
|
+
Enabled: true
|
435
|
+
EnforcedStyle: mixed
|
436
|
+
|
437
|
+
Style/RescueStandardError:
|
438
|
+
EnforcedStyle: implicit
|
439
|
+
|
440
|
+
Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
|
441
|
+
Enabled: true
|
442
|
+
|
443
|
+
Style/SelectByRegexp: # new in 1.22
|
444
|
+
Enabled: true
|
445
|
+
|
446
|
+
Style/SingleArgumentDig:
|
447
|
+
Enabled: true
|
448
|
+
|
449
|
+
Style/SignalException:
|
450
|
+
EnforcedStyle: only_raise
|
451
|
+
|
452
|
+
Style/SingleLineDoEndBlock: # new in 1.57
|
453
|
+
Enabled: true
|
454
|
+
|
455
|
+
Style/StringChars: # new in 1.12
|
456
|
+
Enabled: true
|
457
|
+
|
458
|
+
Style/SuperWithArgsParentheses: # new in 1.58
|
459
|
+
Enabled: true
|
460
|
+
|
461
|
+
Style/SwapValues: # new in 1.1
|
462
|
+
Enabled: true
|
463
|
+
|
464
|
+
Style/TernaryParentheses:
|
465
|
+
EnforcedStyle: require_parentheses_when_complex
|
466
|
+
|
467
|
+
Style/YAMLFileRead: # new in 1.53
|
468
|
+
Enabled: true
|
data/History.txt
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
=== 1.1.0 / 2011-03-16
|
2
|
+
|
3
|
+
* 1 minor enhancement:
|
4
|
+
|
5
|
+
* Updated gem dependencies to 1.1.0
|
6
|
+
|
7
|
+
=== 1.0.2 / 2010-09-07
|
8
|
+
|
9
|
+
* 1 minor enhancement:
|
10
|
+
|
11
|
+
* Updated gem dependencies to 1.0.2
|
12
|
+
|
13
|
+
=== 1.0.1 / 2010-09-07
|
14
|
+
|
15
|
+
* 1 minor enhancement:
|
16
|
+
|
17
|
+
* Updated gem dependencies to 1.0.1
|
18
|
+
|
19
|
+
=== 1.0.0 / 2010-06-08
|
20
|
+
|
21
|
+
* 1 minor enhancement:
|
22
|
+
|
23
|
+
* Updated gem dependencies to 1.0.0
|
24
|
+
* Added dependency on dm-transactions since that has been extracted from dm-core
|
25
|
+
|
26
|
+
=== 0.10.1 / 2009-09-30
|
27
|
+
|
28
|
+
* 1 minor enhancement:
|
29
|
+
|
30
|
+
* Updated gem dependencies to 0.10.1
|
31
|
+
|
32
|
+
=== 0.10.0 / 2009-09-15
|
33
|
+
|
34
|
+
* 2 major enhancements:
|
35
|
+
|
36
|
+
* Updated gem dependencies to 0.10.0
|
37
|
+
* Updated gems to include in meta-gem
|
38
|
+
|
39
|
+
=== 0.9.11 / 2009-03-29
|
40
|
+
|
41
|
+
* 1 minor enhancement:
|
42
|
+
|
43
|
+
* Updated gem dependencies to 0.9.11
|
44
|
+
|
45
|
+
=== 0.9.10 / 2009-01-19
|
46
|
+
|
47
|
+
* 1 minor enhancement:
|
48
|
+
|
49
|
+
* Updated gem dependencies to 0.9.10
|
50
|
+
|
51
|
+
=== 0.9.9 / 2009-01-04
|
52
|
+
|
53
|
+
* 1 minor enhancement:
|
54
|
+
|
55
|
+
* Updated gem dependencies to 0.9.9
|
56
|
+
|
57
|
+
=== 0.9.8 / 2008-12-07
|
58
|
+
|
59
|
+
* 1 minor enhancement:
|
60
|
+
|
61
|
+
* Updated gem dependencies to 0.9.8
|
data/Manifest.txt
ADDED
data/README.txt
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
= data_mapper
|
2
|
+
|
3
|
+
data_mapper is a meta gem which includes and requires the most
|
4
|
+
commonly used DataMapper gems.
|
5
|
+
|
6
|
+
Included gems are:
|
7
|
+
* dm-core
|
8
|
+
* dm-aggregates
|
9
|
+
* dm-constraints
|
10
|
+
* dm-migrations
|
11
|
+
* dm-transactions
|
12
|
+
* dm-serializer
|
13
|
+
* dm-timestamps
|
14
|
+
* dm-validations
|
15
|
+
* dm-types
|
data/Rakefile
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'pathname'
|
4
|
+
require 'rubygems'
|
5
|
+
require 'rake'
|
6
|
+
|
7
|
+
gems = %w(
|
8
|
+
sbf-dm-core
|
9
|
+
sbf-dm-aggregates
|
10
|
+
sbf-dm-constraints
|
11
|
+
sbf-dm-migrations
|
12
|
+
sbf-dm-transactions
|
13
|
+
sbf-dm-serializer
|
14
|
+
sbf-dm-timestamps
|
15
|
+
sbf-dm-validations
|
16
|
+
sbf-dm-types
|
17
|
+
)
|
18
|
+
|
19
|
+
AUTHOR = 'opensource_firespring'.freeze
|
20
|
+
EMAIL = 'opensource@firespring.com'.freeze
|
21
|
+
GEM_NAME = 'sbf-data_mapper'.freeze
|
22
|
+
GEM_VERSION = '1.2.0'.freeze
|
23
|
+
GEM_DEPENDENCIES = gems.map { |gem_name| [gem_name, "~> #{GEM_VERSION}"] }
|
24
|
+
GEM_CLEAN = %w(**/*.{gem,DS_Store} *.db doc/rdoc .config **/coverage cache).freeze
|
25
|
+
GEM_EXTRAS = {has_rdoc: 'yard'}.freeze
|
26
|
+
|
27
|
+
PROJECT_NAME = 'sbf-data_mapper'.freeze
|
28
|
+
PROJECT_URL = 'https://datamapper.org'.freeze
|
29
|
+
PROJECT_DESCRIPTION = 'Faster, Better, Simpler.'.freeze
|
30
|
+
PROJECT_SUMMARY = 'An Object/Relational Mapper for Ruby'.freeze
|
31
|
+
|
32
|
+
WINDOWS = begin
|
33
|
+
(RUBY_PLATFORM =~ /win32|mingw|bccwin|cygwin/)
|
34
|
+
rescue
|
35
|
+
nil
|
36
|
+
end
|
37
|
+
SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])
|
38
|
+
|
39
|
+
desc "Install #{GEM_NAME}"
|
40
|
+
task install: :package do
|
41
|
+
sh %(#{SUDO} gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION})
|
42
|
+
end
|
43
|
+
|
44
|
+
task(:spec) {} # this gem does not provide any specs
|
45
|
+
|
46
|
+
## HOE TASKS
|
47
|
+
|
48
|
+
require 'hoe'
|
49
|
+
|
50
|
+
@config_file = '~/.rubyforge/user-config.yml'
|
51
|
+
@config = nil
|
52
|
+
RUBYFORGE_USERNAME = 'unknown'.freeze
|
53
|
+
def rubyforge_username
|
54
|
+
unless @config
|
55
|
+
begin
|
56
|
+
@config = YAML.safe_load_file(File.expand_path(@config_file))
|
57
|
+
rescue
|
58
|
+
puts <<~EOS
|
59
|
+
ERROR: No rubyforge config file found: #{@config_file}
|
60
|
+
Run 'rubyforge setup' to prepare your env for access to Rubyforge
|
61
|
+
- See http://newgem.rubyforge.org/rubyforge.html for more details
|
62
|
+
EOS
|
63
|
+
exit
|
64
|
+
end
|
65
|
+
end
|
66
|
+
RUBYFORGE_USERNAME.replace @config['username']
|
67
|
+
end
|
68
|
+
|
69
|
+
Hoe.spec PROJECT_NAME do |p|
|
70
|
+
p.developer(AUTHOR, EMAIL)
|
71
|
+
|
72
|
+
p.description = PROJECT_DESCRIPTION
|
73
|
+
p.summary = PROJECT_SUMMARY
|
74
|
+
# p.url = PROJECT_URL
|
75
|
+
|
76
|
+
# p.rubyforge_name = PROJECT_NAME if PROJECT_NAME
|
77
|
+
|
78
|
+
p.clean_globs |= GEM_CLEAN
|
79
|
+
p.spec_extras = GEM_EXTRAS if GEM_EXTRAS
|
80
|
+
|
81
|
+
GEM_DEPENDENCIES.each do |dep|
|
82
|
+
p.extra_deps << dep
|
83
|
+
end
|
84
|
+
end
|
data/data_mapper.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
Gem::Specification.new do |gem|
|
2
|
+
gem.authors = ['opensource_firespring']
|
3
|
+
gem.email = ['opensource@firespring.com']
|
4
|
+
gem.summary = 'DataMapper plugin providing support for aggregates on collections'
|
5
|
+
gem.description = 'DataMapper plugin providing support for aggregates, functions on collections and datasets.'
|
6
|
+
gem.license = 'Nonstandard'
|
7
|
+
gem.homepage = 'https://datamapper.org'
|
8
|
+
|
9
|
+
gem.files = `git ls-files`.split("\n")
|
10
|
+
|
11
|
+
gem.name = 'sbf-data_mapper'
|
12
|
+
gem.require_paths = ['lib']
|
13
|
+
gem.version = '1.2.0'
|
14
|
+
gem.required_ruby_version = '>= 2.7.8'
|
15
|
+
|
16
|
+
gem.add_runtime_dependency('sbf-dm-core', '~> 1.3.0.beta')
|
17
|
+
gem.add_runtime_dependency('sbf-dm-aggregates', '~> 1.3.0.beta')
|
18
|
+
gem.add_runtime_dependency('sbf-dm-constraints', '~> 1.3.0.beta')
|
19
|
+
gem.add_runtime_dependency('sbf-dm-migrations', '~> 1.3.0.beta')
|
20
|
+
gem.add_runtime_dependency('sbf-dm-transactions', '~> 1.3.0.beta')
|
21
|
+
gem.add_runtime_dependency('sbf-dm-serializer', '~> 1.3.0.beta')
|
22
|
+
gem.add_runtime_dependency('sbf-dm-timestamps', '~> 1.3.0.beta')
|
23
|
+
gem.add_runtime_dependency('sbf-dm-validations', '~> 1.3.0.beta')
|
24
|
+
gem.add_runtime_dependency('sbf-dm-types', '~> 1.3.0.beta')
|
25
|
+
end
|
data/lib/data_mapper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,178 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sbf-data_mapper
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- opensource_firespring
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-10-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sbf-dm-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.3.0.beta
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.3.0.beta
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sbf-dm-aggregates
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.3.0.beta
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.3.0.beta
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sbf-dm-constraints
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.3.0.beta
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.3.0.beta
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sbf-dm-migrations
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.3.0.beta
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.3.0.beta
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sbf-dm-transactions
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.3.0.beta
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.3.0.beta
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: sbf-dm-serializer
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.3.0.beta
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.3.0.beta
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: sbf-dm-timestamps
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.3.0.beta
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.3.0.beta
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sbf-dm-validations
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.3.0.beta
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 1.3.0.beta
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: sbf-dm-types
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.3.0.beta
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.3.0.beta
|
139
|
+
description: DataMapper plugin providing support for aggregates, functions on collections
|
140
|
+
and datasets.
|
141
|
+
email:
|
142
|
+
- opensource@firespring.com
|
143
|
+
executables: []
|
144
|
+
extensions: []
|
145
|
+
extra_rdoc_files: []
|
146
|
+
files:
|
147
|
+
- ".gitignore"
|
148
|
+
- ".rubocop.yml"
|
149
|
+
- History.txt
|
150
|
+
- Manifest.txt
|
151
|
+
- README.txt
|
152
|
+
- Rakefile
|
153
|
+
- data_mapper.gemspec
|
154
|
+
- lib/data_mapper.rb
|
155
|
+
homepage: https://datamapper.org
|
156
|
+
licenses:
|
157
|
+
- Nonstandard
|
158
|
+
metadata: {}
|
159
|
+
post_install_message:
|
160
|
+
rdoc_options: []
|
161
|
+
require_paths:
|
162
|
+
- lib
|
163
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: 2.7.8
|
168
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
requirements: []
|
174
|
+
rubygems_version: 3.4.10
|
175
|
+
signing_key:
|
176
|
+
specification_version: 4
|
177
|
+
summary: DataMapper plugin providing support for aggregates on collections
|
178
|
+
test_files: []
|