chairman 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. data/lib/chairman.rb +5 -5
  2. data/lib/version.rb +1 -1
  3. metadata +2 -2
data/lib/chairman.rb CHANGED
@@ -15,7 +15,7 @@ module Chairman
15
15
  memcache_host = ENV['MEMCACHIER_SERVERS'] || 'localhost:11211'
16
16
 
17
17
  stack = Faraday::Builder.new do |builder|
18
- builder.use Faraday::HttpCache, logger: Logger.new(STDOUT), store: :mem_cache_store, store_options: [memcache_host], serializer: Oj
18
+ builder.use Faraday::HttpCache, logger: Logger.new(STDOUT), store: :mem_cache_store, store_options: [memcache_host], serializer: Oj
19
19
  builder.adapter Faraday.default_adapter
20
20
  end
21
21
  Octokit.middleware = stack
@@ -25,14 +25,14 @@ module Chairman
25
25
  @scope = scope
26
26
  end
27
27
 
28
- def session(auth_token = '')
29
- @session = Octokit::Client.new :access_token => auth_token,
30
- :client_id => @client_id,
31
- :client_secret => @client_secret
28
+ def session(auth_token = nil)
29
+ @session = Octokit::Client.new :access_token => auth_token, :client_id => @client_id, :client_secret => @client_secret
32
30
  end
33
31
  end
34
32
 
35
33
  class Routes < Sinatra::Base
34
+ set :protection, :except => :frame_options
35
+
36
36
  get '/authorize' do
37
37
  redirect to Chairman.session.authorize_url(Chairman.client_id, '', :scope => Chairman.scope.join(','))
38
38
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Chairman
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chairman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-11 00:00:00.000000000 Z
12
+ date: 2014-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra