fera-api 0.1.0 → 0.1.3
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 +4 -4
- data/.rubocop.yml +10 -56
- data/.ruby-version +1 -0
- data/.spellr.yml +9 -0
- data/.spellr_wordlists/english.txt +774 -0
- data/.spellr_wordlists/html.txt +1 -0
- data/.spellr_wordlists/javascript.txt +3 -0
- data/.spellr_wordlists/ruby.txt +22 -0
- data/Gemfile +7 -4
- data/Gemfile.lock +69 -21
- data/README.md +5 -2
- data/lib/fera/api/version.rb +1 -1
- data/lib/fera/api.rb +8 -3
- data/lib/fera/app.rb +3 -0
- data/lib/fera/models/base.rb +44 -32
- data/lib/fera/models/collection.rb +1 -1
- data/lib/fera/models/concerns/belongs_to_customer.rb +2 -7
- data/lib/fera/models/concerns/belongs_to_order.rb +16 -20
- data/lib/fera/models/concerns/belongs_to_product.rb +14 -18
- data/lib/fera/models/concerns/belongs_to_review.rb +9 -13
- data/lib/fera/models/concerns/belongs_to_submission.rb +0 -3
- data/lib/fera/models/concerns/has_subject.rb +3 -5
- data/lib/fera/models/media.rb +8 -8
- metadata +91 -18
- data/.idea/fera-api.iml +0 -86
- data/.idea/modules.xml +0 -8
- data/.idea/vcs.xml +0 -6
- data/.idea/workspace.xml +0 -91
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f5fcef6bfad094e9853066b852f6992540e9321015531350e7bc6b02b94d71e
|
4
|
+
data.tar.gz: eff0b267a65ad12bbb8bb42c24c42409224774e1e45a53005e1fecf0b0be5fa2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0e8f790bdcced7f48af3b8d0f2e59773e3a69ec429b584068ad5d769cdb39835b87c4301f012ed3da06af8b9ffecb1e21e5ce69e94265472473be543996bb46
|
7
|
+
data.tar.gz: 49380fcbb2c591cb0c7c7c730e38bde23a17f3ce1ab59af08c3b6e340700932bc5219af9c11a0bc55e92201ccba8dcd9ada8ee053edae6f3a0faf656967434fe
|
data/.rubocop.yml
CHANGED
@@ -1,56 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
Layout/LineLength:
|
12
|
-
Max: 200
|
13
|
-
# If AbcSize > 50, really really really really really really really complex
|
14
|
-
Metrics/AbcSize:
|
15
|
-
Max: 50
|
16
|
-
# Use the default setting
|
17
|
-
Metrics/BlockNesting:
|
18
|
-
Enabled: true
|
19
|
-
Metrics/BlockLength:
|
20
|
-
Max: 200
|
21
|
-
Exclude:
|
22
|
-
# RuboCop's default
|
23
|
-
- 'Rakefile'
|
24
|
-
- '**/*.rake'
|
25
|
-
- 'spec/**/*.rb'
|
26
|
-
# In many cases, config/routes.rb has very long blocks
|
27
|
-
- 'config/routes.rb'
|
28
|
-
Metrics/ClassLength:
|
29
|
-
Enabled: false
|
30
|
-
Metrics/CyclomaticComplexity:
|
31
|
-
Max: 30
|
32
|
-
Metrics/MethodLength:
|
33
|
-
Enabled: false
|
34
|
-
Metrics/ModuleLength:
|
35
|
-
Enabled: false
|
36
|
-
Metrics/ParameterLists:
|
37
|
-
Enabled: true
|
38
|
-
Max: 4
|
39
|
-
Metrics/PerceivedComplexity:
|
40
|
-
Enabled: false
|
41
|
-
Layout/TrailingEmptyLines:
|
42
|
-
Enabled: false
|
43
|
-
Layout/TrailingWhitespace:
|
44
|
-
Enabled: false
|
45
|
-
Layout/BlockAlignment:
|
46
|
-
Enabled: false
|
47
|
-
Layout/DefEndAlignment:
|
48
|
-
Enabled: false
|
49
|
-
Layout/EndAlignment:
|
50
|
-
Enabled: false
|
51
|
-
Layout/ClosingHeredocIndentation:
|
52
|
-
Enabled: false
|
53
|
-
Layout/LeadingEmptyLines:
|
54
|
-
Enabled: false
|
55
|
-
Layout/SpaceInsideStringInterpolation:
|
56
|
-
EnforcedStyle: space
|
1
|
+
inherit_from:
|
2
|
+
- 'https://raw.githubusercontent.com/feracommerce/code-standards/master/.rubocop.yml'
|
3
|
+
- 'https://raw.githubusercontent.com/feracommerce/code-standards/master/.rubocop-rspec.yml'
|
4
|
+
inherit_mode:
|
5
|
+
merge:
|
6
|
+
- Exclude
|
7
|
+
AllCops:
|
8
|
+
TargetRubyVersion: 2.3
|
9
|
+
require:
|
10
|
+
- rubocop-rspec
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.6
|
data/.spellr.yml
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
includes:
|
2
|
+
- lib/**/*
|
3
|
+
excludes:
|
4
|
+
- node_modules/**/*
|
5
|
+
- app/**/*.min*
|
6
|
+
- "**/*.map"
|
7
|
+
word_minimum_length: 4 # any words shorter than this will be ignored
|
8
|
+
key_minimum_length: 6 # any strings shorter than this won't be considered non-word strings
|
9
|
+
key_heuristic_weight: 5 # higher values mean strings are more likely to be considered words or non-words by the classifier.
|