foyer 0.4.0 → 0.5.0
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 +5 -5
 - data/.github/workflows/gem-push.yml +45 -0
 - data/.travis.yml +3 -5
 - data/foyer.gemspec +4 -5
 - data/lib/foyer/version.rb +1 -1
 - data/spec/integration/authenticate_via_route_constraint_spec.rb +1 -1
 - metadata +11 -26
 - data/.rubocop.yml +0 -67
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 2 
     | 
    
         
            +
            SHA256:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 611c07b4424312054255f57667501cca1b792d8871c09f4d6c5e0b831a735363
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 470b62296afee925b9b3dab99e3422e3599318ae804473cc72c710f99dfcd62b
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 5489def9421e8093a9ac0daf8edfbb5d8cb1b2ef0000b9dcc5987803afd0dd0220d7c24ef5da60217d560c608acf547631cedb0c207f87d0449e34a50af07c2f
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: cae570ba21c2e9eac2b0fffdc22e8639de4004334b6dd5750c6fe8eebb02f773b373649041c1d2289d8b99fde2bbe65c343166b14a112d7d8e30d965e0ba2fb2
         
     | 
| 
         @@ -0,0 +1,45 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            name: Ruby Gem
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            on:
         
     | 
| 
      
 4 
     | 
    
         
            +
              push:
         
     | 
| 
      
 5 
     | 
    
         
            +
                branches: [ master ]
         
     | 
| 
      
 6 
     | 
    
         
            +
              pull_request:
         
     | 
| 
      
 7 
     | 
    
         
            +
                branches: [ master ]
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            jobs:
         
     | 
| 
      
 10 
     | 
    
         
            +
              build:
         
     | 
| 
      
 11 
     | 
    
         
            +
                name: Build + Publish
         
     | 
| 
      
 12 
     | 
    
         
            +
                runs-on: ubuntu-latest
         
     | 
| 
      
 13 
     | 
    
         
            +
                permissions:
         
     | 
| 
      
 14 
     | 
    
         
            +
                  contents: read
         
     | 
| 
      
 15 
     | 
    
         
            +
                  packages: write
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
                steps:
         
     | 
| 
      
 18 
     | 
    
         
            +
                - uses: actions/checkout@v3
         
     | 
| 
      
 19 
     | 
    
         
            +
                - name: Set up Ruby 2.6
         
     | 
| 
      
 20 
     | 
    
         
            +
                  uses: actions/setup-ruby@v1
         
     | 
| 
      
 21 
     | 
    
         
            +
                  with:
         
     | 
| 
      
 22 
     | 
    
         
            +
                    ruby-version: 2.6.x
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
                - name: Publish to GPR
         
     | 
| 
      
 25 
     | 
    
         
            +
                  run: |
         
     | 
| 
      
 26 
     | 
    
         
            +
                    mkdir -p $HOME/.gem
         
     | 
| 
      
 27 
     | 
    
         
            +
                    touch $HOME/.gem/credentials
         
     | 
| 
      
 28 
     | 
    
         
            +
                    chmod 0600 $HOME/.gem/credentials
         
     | 
| 
      
 29 
     | 
    
         
            +
                    printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
         
     | 
| 
      
 30 
     | 
    
         
            +
                    gem build *.gemspec
         
     | 
| 
      
 31 
     | 
    
         
            +
                    gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
         
     | 
| 
      
 32 
     | 
    
         
            +
                  env:
         
     | 
| 
      
 33 
     | 
    
         
            +
                    GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
         
     | 
| 
      
 34 
     | 
    
         
            +
                    OWNER: ${{ github.repository_owner }}
         
     | 
| 
      
 35 
     | 
    
         
            +
             
     | 
| 
      
 36 
     | 
    
         
            +
                - name: Publish to RubyGems
         
     | 
| 
      
 37 
     | 
    
         
            +
                  run: |
         
     | 
| 
      
 38 
     | 
    
         
            +
                    mkdir -p $HOME/.gem
         
     | 
| 
      
 39 
     | 
    
         
            +
                    touch $HOME/.gem/credentials
         
     | 
| 
      
 40 
     | 
    
         
            +
                    chmod 0600 $HOME/.gem/credentials
         
     | 
| 
      
 41 
     | 
    
         
            +
                    printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
         
     | 
| 
      
 42 
     | 
    
         
            +
                    gem build *.gemspec
         
     | 
| 
      
 43 
     | 
    
         
            +
                    gem push *.gem
         
     | 
| 
      
 44 
     | 
    
         
            +
                  env:
         
     | 
| 
      
 45 
     | 
    
         
            +
                    GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
         
     | 
    
        data/.travis.yml
    CHANGED
    
    
    
        data/foyer.gemspec
    CHANGED
    
    | 
         @@ -6,11 +6,11 @@ require 'foyer/version' 
     | 
|
| 
       6 
6 
     | 
    
         
             
            Gem::Specification.new do |spec|
         
     | 
| 
       7 
7 
     | 
    
         
             
              spec.name          = 'foyer'
         
     | 
| 
       8 
8 
     | 
    
         
             
              spec.version       = Foyer::VERSION
         
     | 
| 
       9 
     | 
    
         
            -
              spec.authors       = [' 
     | 
| 
       10 
     | 
    
         
            -
              spec.email         = [' 
     | 
| 
      
 9 
     | 
    
         
            +
              spec.authors       = ['GaggleAMP']
         
     | 
| 
      
 10 
     | 
    
         
            +
              spec.email         = ['info@gaggleamp.com']
         
     | 
| 
       11 
11 
     | 
    
         
             
              spec.summary       = 'Authentication layer for OmniAuth'
         
     | 
| 
       12 
12 
     | 
    
         
             
              spec.description   = 'Authentication layer for OmniAuth'
         
     | 
| 
       13 
     | 
    
         
            -
              spec.homepage      = ''
         
     | 
| 
      
 13 
     | 
    
         
            +
              spec.homepage      = 'https://github.com/GaggleAMP/foyer'
         
     | 
| 
       14 
14 
     | 
    
         
             
              spec.license       = 'MIT'
         
     | 
| 
       15 
15 
     | 
    
         | 
| 
       16 
16 
     | 
    
         
             
              spec.files         = `git ls-files -z`.split("\x0")
         
     | 
| 
         @@ -20,8 +20,7 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       20 
20 
     | 
    
         | 
| 
       21 
21 
     | 
    
         
             
              spec.add_dependency 'rails', '>= 4.0'
         
     | 
| 
       22 
22 
     | 
    
         | 
| 
       23 
     | 
    
         
            -
              spec.add_development_dependency 'bundler' 
     | 
| 
      
 23 
     | 
    
         
            +
              spec.add_development_dependency 'bundler'
         
     | 
| 
       24 
24 
     | 
    
         
             
              spec.add_development_dependency 'rake'
         
     | 
| 
       25 
25 
     | 
    
         
             
              spec.add_development_dependency 'rspec-rails', '~> 3.5'
         
     | 
| 
       26 
     | 
    
         
            -
              spec.add_development_dependency 'rubocop'
         
     | 
| 
       27 
26 
     | 
    
         
             
            end
         
     | 
    
        data/lib/foyer/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: foyer
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.5.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
     | 
    
         
            -
            -  
     | 
| 
      
 7 
     | 
    
         
            +
            - GaggleAMP
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2022-03-30 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rails
         
     | 
| 
         @@ -28,16 +28,16 @@ dependencies: 
     | 
|
| 
       28 
28 
     | 
    
         
             
              name: bundler
         
     | 
| 
       29 
29 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       30 
30 
     | 
    
         
             
                requirements:
         
     | 
| 
       31 
     | 
    
         
            -
                - - " 
     | 
| 
      
 31 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       32 
32 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       33 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 33 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       34 
34 
     | 
    
         
             
              type: :development
         
     | 
| 
       35 
35 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       36 
36 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       37 
37 
     | 
    
         
             
                requirements:
         
     | 
| 
       38 
     | 
    
         
            -
                - - " 
     | 
| 
      
 38 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       39 
39 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       40 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 40 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       41 
41 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       42 
42 
     | 
    
         
             
              name: rake
         
     | 
| 
       43 
43 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -66,30 +66,16 @@ dependencies: 
     | 
|
| 
       66 
66 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       67 
67 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       68 
68 
     | 
    
         
             
                    version: '3.5'
         
     | 
| 
       69 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency
         
     | 
| 
       70 
     | 
    
         
            -
              name: rubocop
         
     | 
| 
       71 
     | 
    
         
            -
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       72 
     | 
    
         
            -
                requirements:
         
     | 
| 
       73 
     | 
    
         
            -
                - - ">="
         
     | 
| 
       74 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       75 
     | 
    
         
            -
                    version: '0'
         
     | 
| 
       76 
     | 
    
         
            -
              type: :development
         
     | 
| 
       77 
     | 
    
         
            -
              prerelease: false
         
     | 
| 
       78 
     | 
    
         
            -
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       79 
     | 
    
         
            -
                requirements:
         
     | 
| 
       80 
     | 
    
         
            -
                - - ">="
         
     | 
| 
       81 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       82 
     | 
    
         
            -
                    version: '0'
         
     | 
| 
       83 
69 
     | 
    
         
             
            description: Authentication layer for OmniAuth
         
     | 
| 
       84 
70 
     | 
    
         
             
            email:
         
     | 
| 
       85 
     | 
    
         
            -
            -  
     | 
| 
      
 71 
     | 
    
         
            +
            - info@gaggleamp.com
         
     | 
| 
       86 
72 
     | 
    
         
             
            executables: []
         
     | 
| 
       87 
73 
     | 
    
         
             
            extensions: []
         
     | 
| 
       88 
74 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       89 
75 
     | 
    
         
             
            files:
         
     | 
| 
      
 76 
     | 
    
         
            +
            - ".github/workflows/gem-push.yml"
         
     | 
| 
       90 
77 
     | 
    
         
             
            - ".gitignore"
         
     | 
| 
       91 
78 
     | 
    
         
             
            - ".rspec"
         
     | 
| 
       92 
     | 
    
         
            -
            - ".rubocop.yml"
         
     | 
| 
       93 
79 
     | 
    
         
             
            - ".travis.yml"
         
     | 
| 
       94 
80 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       95 
81 
     | 
    
         
             
            - LICENSE.txt
         
     | 
| 
         @@ -123,7 +109,7 @@ files: 
     | 
|
| 
       123 
109 
     | 
    
         
             
            - spec/foyer/omniauth_callbacks_controller_spec.rb
         
     | 
| 
       124 
110 
     | 
    
         
             
            - spec/integration/authenticate_via_route_constraint_spec.rb
         
     | 
| 
       125 
111 
     | 
    
         
             
            - spec/spec_helper.rb
         
     | 
| 
       126 
     | 
    
         
            -
            homepage:  
     | 
| 
      
 112 
     | 
    
         
            +
            homepage: https://github.com/GaggleAMP/foyer
         
     | 
| 
       127 
113 
     | 
    
         
             
            licenses:
         
     | 
| 
       128 
114 
     | 
    
         
             
            - MIT
         
     | 
| 
       129 
115 
     | 
    
         
             
            metadata: {}
         
     | 
| 
         @@ -142,8 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       142 
128 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       143 
129 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       144 
130 
     | 
    
         
             
            requirements: []
         
     | 
| 
       145 
     | 
    
         
            -
             
     | 
| 
       146 
     | 
    
         
            -
            rubygems_version: 2.5.1
         
     | 
| 
      
 131 
     | 
    
         
            +
            rubygems_version: 3.0.3.1
         
     | 
| 
       147 
132 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       148 
133 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       149 
134 
     | 
    
         
             
            summary: Authentication layer for OmniAuth
         
     | 
    
        data/.rubocop.yml
    DELETED
    
    | 
         @@ -1,67 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            AllCops:
         
     | 
| 
       2 
     | 
    
         
            -
              Exclude:
         
     | 
| 
       3 
     | 
    
         
            -
                # Rubocop's default
         
     | 
| 
       4 
     | 
    
         
            -
                - 'vendor/**/*'
         
     | 
| 
       5 
     | 
    
         
            -
                # To ensure smooth `rake rails:update`, we exclude some of the Rails' generated files
         
     | 
| 
       6 
     | 
    
         
            -
                # please add new Rails' generated files to this list after running `rake rails:update` (if any)
         
     | 
| 
       7 
     | 
    
         
            -
                # please add your exclude specific for this project after this section
         
     | 
| 
       8 
     | 
    
         
            -
                - 'bin/**/*'
         
     | 
| 
       9 
     | 
    
         
            -
                - 'config/boot.rb'
         
     | 
| 
       10 
     | 
    
         
            -
                - 'config/application.rb'
         
     | 
| 
       11 
     | 
    
         
            -
                - 'config/environment.rb'
         
     | 
| 
       12 
     | 
    
         
            -
                - 'config/environments/development.rb'
         
     | 
| 
       13 
     | 
    
         
            -
                - 'config/environments/production.rb'
         
     | 
| 
       14 
     | 
    
         
            -
                - 'config/environments/test.rb'
         
     | 
| 
       15 
     | 
    
         
            -
                - 'config/initializers/assets.rb'
         
     | 
| 
       16 
     | 
    
         
            -
                - 'config/initializers/backtrace_silencers.rb'
         
     | 
| 
       17 
     | 
    
         
            -
                - 'config/initializers/cookies_serializer.rb'
         
     | 
| 
       18 
     | 
    
         
            -
                - 'config/initializers/filter_parameter_logging.rb'
         
     | 
| 
       19 
     | 
    
         
            -
                - 'config/initializers/inflections.rb'
         
     | 
| 
       20 
     | 
    
         
            -
                - 'config/initializers/mime_types.rb'
         
     | 
| 
       21 
     | 
    
         
            -
                - 'config/initializers/session_store.rb'
         
     | 
| 
       22 
     | 
    
         
            -
                - 'config/initializers/wrap_parameters.rb'
         
     | 
| 
       23 
     | 
    
         
            -
                - 'db/schema.rb'
         
     | 
| 
       24 
     | 
    
         
            -
                - 'script/**/*'
         
     | 
| 
       25 
     | 
    
         
            -
                # Common generated files (projects independent)
         
     | 
| 
       26 
     | 
    
         
            -
                - 'config/unicorn.rb'
         
     | 
| 
       27 
     | 
    
         
            -
                - 'config/initializers/devise.rb'
         
     | 
| 
       28 
     | 
    
         
            -
                # Add your exclude files specific to this project here
         
     | 
| 
       29 
     | 
    
         
            -
                - 'spec/dummy/config/initializers/secret_token.rb'
         
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
            Rails:
         
     | 
| 
       32 
     | 
    
         
            -
              Enabled: true
         
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
            Style/AlignParameters:
         
     | 
| 
       35 
     | 
    
         
            -
              Enabled: true
         
     | 
| 
       36 
     | 
    
         
            -
              EnforcedStyle: with_fixed_indentation
         
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
            Style/Documentation:
         
     | 
| 
       39 
     | 
    
         
            -
              Enabled: false
         
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
            Style/FrozenStringLiteralComment:
         
     | 
| 
       42 
     | 
    
         
            -
              Enabled: false
         
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
            # If the project still supporting ruby 1.8, uncomment the following lines to force Rubocop
         
     | 
| 
       45 
     | 
    
         
            -
            # to use old hash_rockets syntax, if left commented, Rubocop will force the newer ruby19 syntax
         
     | 
| 
       46 
     | 
    
         
            -
            # Style/HashSyntax:
         
     | 
| 
       47 
     | 
    
         
            -
            #   EnforcedStyle: hash_rockets
         
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
            Style/SpaceBeforeFirstArg:
         
     | 
| 
       50 
     | 
    
         
            -
              Enabled: false
         
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
       52 
     | 
    
         
            -
            Style/SignalException:
         
     | 
| 
       53 
     | 
    
         
            -
              EnforcedStyle: semantic
         
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
            ##################### Metrics ##################################
         
     | 
| 
       56 
     | 
    
         
            -
             
     | 
| 
       57 
     | 
    
         
            -
            Metrics/BlockLength:
         
     | 
| 
       58 
     | 
    
         
            -
              Enabled: false
         
     | 
| 
       59 
     | 
    
         
            -
             
     | 
| 
       60 
     | 
    
         
            -
            Metrics/LineLength:
         
     | 
| 
       61 
     | 
    
         
            -
              Max: 120
         
     | 
| 
       62 
     | 
    
         
            -
              AllowURI: true
         
     | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
       64 
     | 
    
         
            -
            Metrics/MethodLength:
         
     | 
| 
       65 
     | 
    
         
            -
              CountComments: false
         
     | 
| 
       66 
     | 
    
         
            -
              Exclude:
         
     | 
| 
       67 
     | 
    
         
            -
                - 'db/migrate/*'
         
     |