omniauth-vkontakte 1.6.1 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13aa87f9404267d06342ee9a10b702870eb028dc6f6723752ac89ffb9f4bff85
4
- data.tar.gz: 3f305a40036e95cc43011325fcd0411c0687131109ccd4789d6d2a6146d3c97d
3
+ metadata.gz: 92403216b269c32da3e8e997065faf32ccbea1102a3b60a97923843fcd543b91
4
+ data.tar.gz: f70ef0e0371a7b2e2d844f1f91d0102aa21fee926c8bf9c68200cd3504e9c1e0
5
5
  SHA512:
6
- metadata.gz: 7fea2f768f4503eedb8d0f6675df790a5130f745434ef7de0093ee0a107a746d72e6e0f774e44be791e0f2f8590cc47ca66b35bfcfd6450750ffb85fe676dc40
7
- data.tar.gz: d48097f8caf9163047a7bd6d0d93fdb8dbeebb58f3242d92079b73088ca95561d0314af9ca8d25d2162005bee6112e59e38d41c086694e10be5490bcec13da45
6
+ metadata.gz: 95d1e20de1aab608419650fc2d8904929e1b28672ab9958c59ecfce816f9cacad87ce4a476620660fda0037ac7951894ee3885f205060e8125b282c72c401f8d
7
+ data.tar.gz: a6354e77ec49124e3bdbc32079a0c997bd8b3df6a6e70ea9cf62e10093e7b2db3b1c4878b8641d3429353dbf2644f62384deda4243bd75812e9964616b5924a3
@@ -0,0 +1,11 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "bundler" # See documentation for possible values
9
+ directory: "/" # Location of package manifests
10
+ schedule:
11
+ interval: "daily"
@@ -1,23 +1,22 @@
1
1
  name: Ruby
2
2
 
3
- on:
4
- push:
5
- branches: [ master ]
6
- pull_request:
7
- branches: [ master ]
3
+ on: [push, pull_request]
8
4
 
9
5
  jobs:
10
- test:
11
-
12
- runs-on: ubuntu-latest
13
-
6
+ build:
7
+ name: build (${{ matrix.ruby }} / ${{ matrix.os }})
8
+ strategy:
9
+ matrix:
10
+ ruby: [2.6, 2.7, 3.0, 3.1, head, jruby, jruby-head]
11
+ os: [ubuntu-latest, macos-latest]
12
+ runs-on: ${{ matrix.os }}
14
13
  steps:
15
- - uses: actions/checkout@v2
14
+ - uses: actions/checkout@master
16
15
  - name: Set up Ruby
17
16
  uses: ruby/setup-ruby@v1
18
17
  with:
19
- ruby-version: 2.6
18
+ ruby-version: ${{ matrix.ruby }}
20
19
  - name: Install dependencies
21
20
  run: bundle install
22
- - name: Run tests
21
+ - name: Run test
23
22
  run: rspec
data/.rubocop.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  AllCops:
2
2
  NewCops: enable
3
3
  TargetRubyVersion: 2.6
4
- Metrics/LineLength:
4
+ Layout/LineLength:
5
5
  Max: 120
6
6
  Metrics/MethodLength:
7
7
  Enabled: false
@@ -9,6 +9,8 @@ Metrics/BlockLength:
9
9
  Enabled: false
10
10
  Metrics/ClassLength:
11
11
  Max: 101
12
+ Lint/DuplicateBranch:
13
+ Enabled: false
12
14
  Naming/FileName:
13
15
  Exclude:
14
16
  - 'lib/omniauth-vkontakte.rb'
data/Gemfile CHANGED
@@ -4,15 +4,11 @@ source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
- gem 'rack', RUBY_VERSION < '2.2.2' ? '~> 1.6' : '>= 2.0'
8
- gem 'rake'
9
-
10
7
  group :development do
11
8
  gem 'rubocop', require: false
12
9
  end
13
10
 
14
11
  group :test do
15
- gem 'rack-test'
16
12
  gem 'rspec'
17
13
  gem 'simplecov'
18
14
  gem 'webmock'
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2011-2020 Anton Maminov
3
+ Copyright (c) 2011-2022 Anton Maminov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # OmniAuth VKontakte
2
2
 
3
+ ![Ruby](https://github.com/mamantoha/omniauth-vkontakte/workflows/Ruby/badge.svg)
3
4
  [![Codacy Badge](https://api.codacy.com/project/badge/Grade/149c0614deef469faa49e1e8ae384bd3)](https://app.codacy.com/app/mamantoha/omniauth-vkontakte?utm_source=github.com&utm_medium=referral&utm_content=mamantoha/omniauth-vkontakte&utm_campaign=Badge_Grade_Dashboard)
4
- [![Build Status](https://travis-ci.org/mamantoha/omniauth-vkontakte.svg?branch=master)](https://travis-ci.org/mamantoha/omniauth-vkontakte)
5
5
  [![Gem Version][rubygems_badge]][rubygems]
6
6
  [![Maintainability](https://api.codeclimate.com/v1/badges/1ea61cb860f9f6aafb4f/maintainability)](https://codeclimate.com/github/mamantoha/omniauth-vkontakte/maintainability)
7
7
 
@@ -9,6 +9,8 @@ This is the unofficial [OmniAuth](https://github.com/intridea/omniauth) strategy
9
9
  To use it, you'll need to sign up for an OAuth2 Application ID and Secret
10
10
  on the [Vkontakte Developers Page](http://vk.com/dev).
11
11
 
12
+ ![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2.svg)
13
+
12
14
  ## Installing
13
15
 
14
16
  Add to your `Gemfile`:
@@ -103,8 +105,8 @@ The precise information available may depend on the permissions which you reques
103
105
 
104
106
  Tested with the following Ruby versions:
105
107
 
106
- - Ruby MRI (2.3.0+)
107
- - JRuby
108
+ - Ruby MRI (2.5.0+)
109
+ - JRuby (9.2.0+)
108
110
 
109
111
  ## Contributing to omniauth-vkontakte
110
112
 
@@ -112,7 +114,7 @@ Tested with the following Ruby versions:
112
114
 
113
115
  ## License
114
116
 
115
- Copyright: 2011-2020 Anton Maminov (anton.maminov@gmail.com)
117
+ Copyright: 2011-2022 Anton Maminov (anton.maminov@gmail.com)
116
118
 
117
119
  This library is distributed under the MIT license. Please see the LICENSE file.
118
120
 
data/examples/main.rb CHANGED
@@ -12,7 +12,7 @@ SCOPE = 'friends,audio'
12
12
  use Rack::Session::Cookie
13
13
 
14
14
  use OmniAuth::Builder do
15
- provider :vkontakte, ENV['VKONTAKTE_KEY'], ENV['VKONTAKTE_SECRET'],
15
+ provider :vkontakte, ENV.fetch('VKONTAKTE_KEY', nil), ENV.fetch('VKONTAKTE_SECRET', nil),
16
16
  scope: SCOPE,
17
17
  display: 'popup',
18
18
  lang: 'en',
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Vkontakte
5
- VERSION = '1.6.1'
5
+ VERSION = '1.8.0'
6
6
  end
7
7
  end
@@ -11,11 +11,10 @@ Gem::Specification.new do |gem|
11
11
 
12
12
  gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
13
13
  gem.files = `git ls-files`.split("\n")
14
- gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
15
14
  gem.name = 'omniauth-vkontakte'
16
15
  gem.require_paths = ['lib']
17
16
  gem.version = OmniAuth::Vkontakte::VERSION
18
-
19
17
  gem.required_ruby_version = '>= 2.6.0'
20
- gem.add_runtime_dependency 'omniauth-oauth2', ['>= 1.5', '<= 1.7.0']
18
+ gem.add_runtime_dependency 'omniauth-oauth2', '>= 1.5', '<= 1.8.0'
19
+ gem.metadata['rubygems_mfa_required'] = 'true'
21
20
  end
File without changes
data/spec/spec_helper.rb CHANGED
@@ -5,14 +5,12 @@ $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
5
5
  require 'simplecov'
6
6
  SimpleCov.start
7
7
  require 'rspec'
8
- require 'rack/test'
9
8
  require 'webmock/rspec'
10
9
  require 'omniauth'
11
10
  require 'omniauth-vkontakte'
12
11
 
13
12
  RSpec.configure do |config|
14
13
  config.include WebMock::API
15
- config.include Rack::Test::Methods
16
14
  config.extend OmniAuth::Test::StrategyMacros, type: :strategy
17
15
  config.expect_with :rspec do |c|
18
16
  c.syntax = :expect
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-vkontakte
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Maminov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-18 00:00:00.000000000 Z
11
+ date: 2022-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '1.5'
20
20
  - - "<="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.7.0
22
+ version: 1.8.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,23 +29,22 @@ dependencies:
29
29
  version: '1.5'
30
30
  - - "<="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.7.0
33
- description:
32
+ version: 1.8.0
33
+ description:
34
34
  email:
35
35
  - anton.maminov@gmail.com
36
36
  executables: []
37
37
  extensions: []
38
38
  extra_rdoc_files: []
39
39
  files:
40
+ - ".github/dependabot.yml"
40
41
  - ".github/workflows/ruby.yml"
41
42
  - ".gitignore"
42
43
  - ".rspec"
43
44
  - ".rubocop.yml"
44
- - ".travis.yml"
45
45
  - Gemfile
46
46
  - LICENSE
47
47
  - README.md
48
- - Rakefile
49
48
  - examples/.env.example
50
49
  - examples/Gemfile
51
50
  - examples/README.md
@@ -60,8 +59,9 @@ files:
60
59
  homepage: https://github.com/mamantoha/omniauth-vkontakte
61
60
  licenses:
62
61
  - MIT
63
- metadata: {}
64
- post_install_message:
62
+ metadata:
63
+ rubygems_mfa_required: 'true'
64
+ post_install_message:
65
65
  rdoc_options: []
66
66
  require_paths:
67
67
  - lib
@@ -76,8 +76,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.0.3
80
- signing_key:
79
+ rubygems_version: 3.3.7
80
+ signing_key:
81
81
  specification_version: 4
82
82
  summary: Vkontakte OAuth2 Strategy for OmniAuth
83
83
  test_files: []
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- language: ruby
2
- before_install:
3
- - gem update bundler
4
- - bundle --version
5
- - gem update --system
6
- - gem --version
7
- rvm:
8
- - 2.7.1
9
- - 2.6.6
10
- - jruby-head
11
- script:
12
- - bundle exec rspec
13
- - bundle exec rubocop
data/Rakefile DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env rake
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/gem_tasks'
5
- require 'rspec/core/rake_task'
6
-
7
- desc 'Run specs'
8
- RSpec::Core::RakeTask.new
9
-
10
- desc 'Default: run specs.'
11
- task default: :spec