Sha256: 6d1ee2724d83e1baf5f42e18a6c43d2714596388ff848f11b5084c7e85134591

Contents?: true

Size: 258 Bytes

Versions: 17

Compression:

Stored size: 258 Bytes

Contents

module PushbulletRuby
  class Authorization < Faraday::Request::Authorization
    def call(env)
      if env.url.to_s.match(PushbulletRuby::Client::URL)
        env.request_headers[KEY] = @header_value
      end
      @app.call env
    end
  end
end

Version data entries

17 entries across 16 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/authorization.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/authorization.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/authorization.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/authorization.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/authorization.rb
pushbullet_ruby-1.1.4 lib/pushbullet_ruby/authorization.rb
tdiary-5.0.8 vendor/bundle/gems/pushbullet_ruby-1.1.3/lib/pushbullet_ruby/authorization.rb
pushbullet_ruby-1.1.3 lib/pushbullet_ruby/authorization.rb
pushbullet_ruby-1.1.2 lib/pushbullet_ruby/authorization.rb
pushbullet_ruby-1.1.1 lib/pushbullet_ruby/authorization.rb
pushbullet_ruby-1.1.0 lib/pushbullet_ruby/authorization.rb
pushbullet_ruby-1.0.4.1 lib/pushbullet_ruby/authorization.rb
pushbullet_ruby-1.0.4 lib/pushbullet_ruby/authorization.rb
pushbullet_ruby-1.0.3 lib/pushbullet_ruby/authorization.rb
pushbullet_ruby-1.0.2.1 lib/pushbullet_ruby/authorization.rb
pushbullet_ruby-1.0.2 lib/pushbullet_ruby/authorization.rb
pushbullet_ruby-1.0.1 lib/pushbullet_ruby/authorization.rb