supa 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +8 -11
- data/.reek +128 -0
- data/.rspec +2 -0
- data/.rubocop.yml +1197 -1011
- data/.travis.yml +12 -4
- data/Gemfile +0 -1
- data/README.md +54 -10
- data/Rakefile +3 -11
- data/bin/console +4 -4
- data/lib/supa/builder.rb +13 -18
- data/lib/supa/command.rb +38 -8
- data/lib/supa/commands/attribute.rb +1 -3
- data/lib/supa/commands/collection.rb +6 -6
- data/lib/supa/commands/namespace.rb +2 -6
- data/lib/supa/commands/object.rb +2 -4
- data/lib/supa/commands/traits/collectionable.rb +12 -0
- data/lib/supa/representable.rb +1 -4
- data/lib/supa/version.rb +1 -1
- data/lib/supa.rb +7 -1
- data/supa.gemspec +22 -15
- metadata +71 -9
- data/lib/supa/commands/polymorphic.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d6a5a38a7de951369b540fcbb39e54a50cba0ed
|
4
|
+
data.tar.gz: 49899892cd5f32fe41f650146790dcaabda04318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07bc54612b98b178c79217479ceaccd141e5f34dea1dd85fadb14385e9f40c6f5deaba4c28d41575e125494ce1440e6dc4bf7b173b9db14f6593c060bbf4f473
|
7
|
+
data.tar.gz: a94ccdbf212c62e09c4adcabdb70b3627edbc606d0d769998d7fee75315e64722d5437a32ef06a70baf332fdd81af567321f3bfb21b28f3d1939421879fb0c13
|
data/.codeclimate.yml
CHANGED
@@ -2,22 +2,19 @@
|
|
2
2
|
engines:
|
3
3
|
duplication:
|
4
4
|
enabled: true
|
5
|
-
|
6
|
-
|
7
|
-
- ae15dfea2e23ace8e7ac8f970d624a67
|
8
|
-
- 47ba1ed25f6c2341a41c4be35a5575c5
|
9
|
-
- 3bde68650c7c2b328cb49485ce794235
|
10
|
-
- 190256b661c5354e34dc7a770e65da42
|
11
|
-
- 190256b661c5354e34dc7a770e65da42
|
5
|
+
exclude_paths:
|
6
|
+
- spec/
|
12
7
|
config:
|
13
8
|
languages:
|
14
|
-
|
15
|
-
|
16
|
-
enabled: true
|
9
|
+
ruby:
|
10
|
+
mass_threshold: 30
|
17
11
|
rubocop:
|
18
12
|
enabled: true
|
13
|
+
reek:
|
14
|
+
enabled: true
|
19
15
|
ratings:
|
20
16
|
paths:
|
21
17
|
- "**.rb"
|
22
18
|
exclude_paths:
|
23
|
-
-
|
19
|
+
- tmp/
|
20
|
+
- spec/fixtures/
|
data/.reek
ADDED
@@ -0,0 +1,128 @@
|
|
1
|
+
---
|
2
|
+
Attribute:
|
3
|
+
enabled: false
|
4
|
+
exclude: []
|
5
|
+
BooleanParameter:
|
6
|
+
enabled: true
|
7
|
+
exclude: []
|
8
|
+
ClassVariable:
|
9
|
+
enabled: true
|
10
|
+
exclude: []
|
11
|
+
ControlParameter:
|
12
|
+
enabled: true
|
13
|
+
exclude: []
|
14
|
+
DataClump:
|
15
|
+
enabled: true
|
16
|
+
exclude: []
|
17
|
+
max_copies: 2
|
18
|
+
min_clump_size: 2
|
19
|
+
DuplicateMethodCall:
|
20
|
+
enabled: false
|
21
|
+
exclude: []
|
22
|
+
max_calls: 1
|
23
|
+
allow_calls: []
|
24
|
+
FeatureEnvy:
|
25
|
+
enabled: true
|
26
|
+
exclude: []
|
27
|
+
InstanceVariableAssumption:
|
28
|
+
enabled: false
|
29
|
+
exclude: []
|
30
|
+
IrresponsibleModule:
|
31
|
+
enabled: false
|
32
|
+
exclude: []
|
33
|
+
LongParameterList:
|
34
|
+
enabled: true
|
35
|
+
exclude: []
|
36
|
+
max_params: 3
|
37
|
+
overrides:
|
38
|
+
initialize:
|
39
|
+
max_params: 5
|
40
|
+
LongYieldList:
|
41
|
+
enabled: true
|
42
|
+
exclude: []
|
43
|
+
max_params: 3
|
44
|
+
ManualDispatch:
|
45
|
+
enabled: true
|
46
|
+
exclude: []
|
47
|
+
ModuleInitialize:
|
48
|
+
enabled: true
|
49
|
+
exclude: []
|
50
|
+
NestedIterators:
|
51
|
+
enabled: true
|
52
|
+
exclude: []
|
53
|
+
max_allowed_nesting: 2
|
54
|
+
ignore_iterators:
|
55
|
+
- tap
|
56
|
+
NilCheck:
|
57
|
+
enabled: true
|
58
|
+
exclude: []
|
59
|
+
PrimaDonnaMethod:
|
60
|
+
enabled: true
|
61
|
+
exclude: []
|
62
|
+
RepeatedConditional:
|
63
|
+
enabled: true
|
64
|
+
exclude: []
|
65
|
+
max_ifs: 2
|
66
|
+
SubclassedFromCoreClass:
|
67
|
+
enabled: true
|
68
|
+
exclude: []
|
69
|
+
TooManyConstants:
|
70
|
+
enabled: true
|
71
|
+
exclude: []
|
72
|
+
max_constants: 10
|
73
|
+
TooManyInstanceVariables:
|
74
|
+
enabled: true
|
75
|
+
exclude: []
|
76
|
+
max_instance_variables: 4
|
77
|
+
TooManyMethods:
|
78
|
+
enabled: true
|
79
|
+
exclude: []
|
80
|
+
max_methods: 15
|
81
|
+
TooManyStatements:
|
82
|
+
enabled: true
|
83
|
+
exclude:
|
84
|
+
- initialize
|
85
|
+
max_statements: 10
|
86
|
+
UncommunicativeMethodName:
|
87
|
+
enabled: true
|
88
|
+
exclude: []
|
89
|
+
reject:
|
90
|
+
- !ruby/regexp /^[a-z]$/
|
91
|
+
- !ruby/regexp /[0-9]$/
|
92
|
+
- !ruby/regexp /[A-Z]/
|
93
|
+
accept: []
|
94
|
+
UncommunicativeModuleName:
|
95
|
+
enabled: true
|
96
|
+
exclude: []
|
97
|
+
reject:
|
98
|
+
- !ruby/regexp /^.$/
|
99
|
+
- !ruby/regexp /[0-9]$/
|
100
|
+
accept: []
|
101
|
+
UncommunicativeParameterName:
|
102
|
+
enabled: true
|
103
|
+
exclude: []
|
104
|
+
reject:
|
105
|
+
- !ruby/regexp /^.$/
|
106
|
+
- !ruby/regexp /[0-9]$/
|
107
|
+
- !ruby/regexp /[A-Z]/
|
108
|
+
- !ruby/regexp /^_/
|
109
|
+
accept: []
|
110
|
+
UncommunicativeVariableName:
|
111
|
+
enabled: true
|
112
|
+
exclude: []
|
113
|
+
reject:
|
114
|
+
- !ruby/regexp /^.$/
|
115
|
+
- !ruby/regexp /[0-9]$/
|
116
|
+
- !ruby/regexp /[A-Z]/
|
117
|
+
accept:
|
118
|
+
- !ruby/regexp /^_$/
|
119
|
+
UnusedParameters:
|
120
|
+
enabled: true
|
121
|
+
exclude: []
|
122
|
+
UnusedPrivateMethod:
|
123
|
+
enabled: false
|
124
|
+
exclude: []
|
125
|
+
UtilityFunction:
|
126
|
+
enabled: true
|
127
|
+
exclude: []
|
128
|
+
public_methods_only: true
|
data/.rspec
ADDED