discorb-voice 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 +4 -4
- data/.github/workflows/lint-push.yml +20 -0
- data/.github/workflows/lint.yml +16 -0
- data/.rubocop.yml +77 -0
- data/discorb-voice.gemspec +1 -1
- data/lib/discorb/voice/core.rb +326 -314
- data/lib/discorb/voice/error.rb +10 -7
- data/lib/discorb/voice/extend.rb +79 -64
- data/lib/discorb/voice/ogg.rb +121 -120
- data/lib/discorb/voice/source.rb +113 -110
- data/lib/discorb/voice/version.rb +1 -1
- data/lib/discorb/voice.rb +13 -13
- data/lib/discorb-voice.rb +2 -1
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9b67b0efc928db3f77f4ef85c73072c55f251ec55da812dd817acd6ec38e96b
|
4
|
+
data.tar.gz: 886310cf90ce37a881f4b9c59fa2e45e59227e66ffb4b1f71d548db4bc70a666
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 958385e97929622d10409ca09f4aa6c77b2e875b1d92718609a4cca22c4740092ad0af56424209c691b406d764089333d045a9fa8134acdd4f34521db98baf58
|
7
|
+
data.tar.gz: d8619a1edd06c162fd4bf8d69d4037d637622e374ca7cb8f7d98ef7e89260c38c709e53f8e61002486145da551762137afe93736e2d206de520017a22e96fcd8
|
@@ -0,0 +1,20 @@
|
|
1
|
+
name: Lint with RuboCop
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches:
|
5
|
+
- main
|
6
|
+
jobs:
|
7
|
+
rubocop:
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
steps:
|
10
|
+
- name: Checkout repository
|
11
|
+
uses: actions/checkout@v2
|
12
|
+
- uses: ruby/setup-ruby@v1
|
13
|
+
with:
|
14
|
+
ruby-version: 3.0.0
|
15
|
+
- name: Install gems
|
16
|
+
run: |
|
17
|
+
gem install rubocop
|
18
|
+
- name: Run rubocop
|
19
|
+
run: |
|
20
|
+
rubocop lib
|
@@ -0,0 +1,16 @@
|
|
1
|
+
name: Lint with RuboCop
|
2
|
+
on:
|
3
|
+
- pull_request
|
4
|
+
jobs:
|
5
|
+
rubocop:
|
6
|
+
runs-on: ubuntu-latest
|
7
|
+
steps:
|
8
|
+
- name: Checkout repository
|
9
|
+
uses: actions/checkout@v2
|
10
|
+
- uses: ruby/setup-ruby@v1
|
11
|
+
with:
|
12
|
+
ruby-version: 3.0.0
|
13
|
+
- name: rubocop
|
14
|
+
uses: reviewdog/action-rubocop@v2
|
15
|
+
with:
|
16
|
+
rubocop_version: 1.25
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
AllCops:
|
2
|
+
NewCops: enable
|
3
|
+
TargetRubyVersion: 3.0
|
4
|
+
Exclude:
|
5
|
+
- examples/**/*.rb
|
6
|
+
- lib/discorb/emoji_table.rb # Auto-generated
|
7
|
+
|
8
|
+
Layout:
|
9
|
+
Enabled: false
|
10
|
+
Metrics:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Style/TrailingCommaInHashLiteral: # Disabled for rufo
|
14
|
+
EnforcedStyleForMultiline: consistent_comma
|
15
|
+
|
16
|
+
Style/TrailingCommaInArrayLiteral: # Disabled for rufo
|
17
|
+
EnforcedStyleForMultiline: consistent_comma
|
18
|
+
|
19
|
+
Style/StringLiterals: # Disabled for rufo
|
20
|
+
EnforcedStyle: double_quotes
|
21
|
+
|
22
|
+
Style/TrailingCommaInArguments: # Disabled for rufo
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
Style/StringLiteralsInInterpolation: # Disabled for rufo
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Style/StringConcatenation: # + looks better
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
Lint/MissingSuper: # For abstract classes
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Lint/AssignmentInCondition: # Looks bad
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Style/PerlBackrefs: # It will be longer
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
Style/RedundantSelf: # Looks local variable
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
Naming/VariableNumber: # Discord API docs naming
|
44
|
+
Enabled: false
|
45
|
+
|
46
|
+
Style/ParallelAssignment: # It will be longer
|
47
|
+
Enabled: false
|
48
|
+
|
49
|
+
Style/RedundantInterpolation: # For make it extendable
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
Style/Next: # For make it extendable
|
53
|
+
Enabled: false
|
54
|
+
|
55
|
+
Lint/ShadowedException: # False positive
|
56
|
+
Enabled: false
|
57
|
+
|
58
|
+
Lint/AmbiguousOperatorPrecedence: # Not needed
|
59
|
+
Enabled: false
|
60
|
+
|
61
|
+
Style/GlobalVars: # For /exe
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
Lint/Debugger: # For /exe
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
Style/GuardClause: # For make it extendable
|
68
|
+
Enabled: false
|
69
|
+
|
70
|
+
Layout/EndOfLine: # For git
|
71
|
+
EnforcedStyle: lf
|
72
|
+
|
73
|
+
Lint/ScriptPermission: # For GitHub Actions
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
Naming/FileName: # For able to use `require "discorb-voice"`
|
77
|
+
Enabled: false
|
data/discorb-voice.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
|
31
31
|
# Uncomment to register a new dependency of your gem
|
32
32
|
# spec.add_dependency "example-gem", "~> 1.0"
|
33
|
-
spec.add_dependency "discorb", ">= 0.
|
33
|
+
spec.add_dependency "discorb", ">= 0.16.0"
|
34
34
|
spec.add_dependency "ffi", ">= 1.15.3"
|
35
35
|
spec.add_dependency "rbnacl"
|
36
36
|
|