This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip: v4 * wip: v4 * feat: add byebug * feat: spec_data * feat: update rules * refactor: secret_\d -> secret\d * feat: move audio data parsing into utility callable * wip: spec files * refactor: fix rubocop warnings * wip: full rework * feat: move legacy code into ignored directory * fix: move utility callables into utility namespace * feat: audio class * fix: requires * feat: JSON dep * fix: wrong method call * feat: .env * feat: console * fix: requiring utility classes * feat: logger * feat: update rules * feat: request helper * feat: update rules * wip: logging in * feat: spec helpers * feat: login requests * feat: cache response * feat: login * feat: update rules * feat: log redirect path on login failure * feat: link decoder * feat: docs * wip: all main methods * feat: playlist * feat: before_call and after_call hooks * feat: remove empty spec files * feat: update rules * feat: web parsers * feat: playlist URL parser * feat: web parsers * refactor: use class in callables * wip: search request * feat: playlist node parser * fix: require new utilities * fix: require web parsers * feat: use web parsers * feat: search parser * feat: more tests * feat: method forwarding * feat: cookies storing * feat: allow disabling rubocop * fix: no results case * feat: find method * feat: audio items parser * feat: playlist web parser * feat: do not throw exceptions from URL parser * feat: allow storing client id in parsers * fix: my page parsing * feat: update rules * feat: section parser * feat: section request * wip: playlist parsing * feat: login_helper * feat: section requesting * feat: debug log all requests * feat: playlists loading * fix: storing mechanize cookies * fix: large playlist loading * test: large playlist test * feat: use vcr and webmock to improve requests testing * feat: raise error when captcha met * fix: user ID parsing * feat: profile ID resolver * fix: tests * refactor: satisfy rubocop * feat: move sections loading into separate loader * fix: full url case * fix: playlist gibberish and tests for #audios * feat: #audios * refactor: rename Section utilities into PlaylistSection * fix: remove doubled test * feat: return self in Request#call * feat: last post id from profile * fix: correctly handle nil case * feat: auto-load files * fix: base request tests * feat: wall * feat: url_*? methods * fix: parser * feat: Audio#like?(audio) * feat: Playlist#audios and delegations * feat: audio methods * feat: Client#post * test: also check 404 and feed * feat: simplecov * feat: additional tests * fix: require base class first * fix: audio full id * feat: id matcher * fix: IDs parsing * feat: improved data handling for WebParser::Base * fix: audio loading exceeds limits * feat: Client#get_urls * feat: Client#update_urls * test: use large data for URL updating test * feat: loading audio URL * feat: get rid of responses and move spec data * feat: update texts * refactor: namings and doubled code * feat: data type guesser * feat: expose encoded URL
- Loading branch information
Showing
90 changed files
with
3,060 additions
and
2,112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# VkMusic spcification loads ENV variables from .env files | ||
VK_LOGIN=+79991234567 | ||
VK_PASSWORD=password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
/.env | ||
/.byebug_history | ||
/.bundle/ | ||
/.legacy/ | ||
/.yardoc | ||
/_yardoc/ | ||
/coverage/ | ||
/doc/ | ||
/pkg/ | ||
/spec/reports/ | ||
/spec/.cookies | ||
/spec/cassetes/* | ||
!/spec/cassetes/README.md | ||
/tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--require spec_helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# The behavior of RuboCop can be controlled via the .rubocop.yml | ||
# configuration file. It makes it possible to enable/disable | ||
# certain cops (checks) and to alter their behavior if they accept | ||
# any parameters. The file can be placed either in your home | ||
# directory or in some project directory. | ||
# | ||
# RuboCop will start looking for the configuration file in the directory | ||
# where the inspected file is and continue its way up to the root directory. | ||
# | ||
# See https://docs.rubocop.org/rubocop/configuration | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.7 | ||
EnabledByDefault: true | ||
|
||
Layout/FirstMethodParameterLineBreak: | ||
Enabled: false | ||
Layout/FirstMethodArgumentLineBreak: | ||
Enabled: false | ||
Layout/MultilineMethodArgumentLineBreaks: | ||
Enabled: false | ||
Layout/EndOfLine: | ||
Enabled: false | ||
Layout/EndAlignment: | ||
EnforcedStyleAlignWith: variable | ||
Layout/FirstHashElementIndentation: | ||
Enabled: false | ||
Layout/MultilineAssignmentLayout: | ||
EnforcedStyle: same_line | ||
Layout/CaseIndentation: | ||
EnforcedStyle: end | ||
Lint/ConstantResolution: | ||
Enabled: false | ||
Metrics/ParameterLists: | ||
Enabled: false | ||
Metrics/BlockLength: | ||
Exclude: | ||
- 'spec/**/*_spec.rb' | ||
Style/MethodCallWithArgsParentheses: | ||
Enabled: false | ||
Style/Copyright: | ||
Enabled: false | ||
Style/ClassVars: | ||
Enabled: false | ||
Style/MissingElse: | ||
Enabled: false | ||
Style/StringHashKeys: | ||
Enabled: false | ||
Style/ImplicitRuntimeError: | ||
Enabled: false | ||
Style/NumericLiterals: | ||
Enabled: false | ||
Style/DisableCopsWithinSourceCodeDirective: | ||
Enabled: false | ||
Layout/MultilineHashKeyLineBreaks: | ||
Enabled: false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,38 @@ | ||
source "https://rubygems.org" | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in vk_music.gemspec | ||
gemspec | ||
|
||
gem "logger", "~> 1.4" | ||
group :test, :development do | ||
# Debugging console | ||
gem 'pry' | ||
|
||
# Another debugging console | ||
gem 'byebug' | ||
|
||
# The thing, forcing you to write good code | ||
gem 'rubocop', require: false | ||
|
||
# Rake tasks | ||
gem 'rake', require: false | ||
|
||
# Testing | ||
gem 'rspec', require: false | ||
|
||
# Docs | ||
gem 'yard', require: false | ||
|
||
# .env support | ||
gem 'dotenv' | ||
|
||
# Save web requests for fast and reliable testing | ||
gem 'vcr' | ||
|
||
gem "mechanize", "~> 2.7" | ||
# Stub web requests | ||
gem 'webmock' | ||
|
||
gem "pry", "~> 0.12.2" | ||
# Test coverage | ||
gem 'simplecov', require: false, group: :test | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.