iknow 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,8 @@ Iknow::Config.init do |conf|
7
7
  conf.api_key = '' # 'SET_YOUR_API_KEY'
8
8
  conf.oauth_consumer_key = '' # 'SET_YOUR_OAUTH_CONSUMER_KEY'
9
9
  conf.oauth_consumer_secret = '' # 'SET_YOUR_OAUTH_CONSUMER_SECRET'
10
+ conf.oauth_http_method = :post
11
+ conf.oauth_scheme = :header
10
12
  conf.timeout = 15
11
13
  end
12
14
 
@@ -28,8 +28,8 @@ class Iknow::Auth
28
28
  @@consumer ||= OAuth::Consumer.new(
29
29
  Iknow::Config.oauth_consumer_key,
30
30
  Iknow::Config.oauth_consumer_secret,
31
- :http_method => :get,
32
- :schema => :query_string,
31
+ :http_method => Iknow::Config.oauth_http_method,
32
+ :scheme => Iknow::Config.oauth_scheme,
33
33
  :site => Iknow::Config.iknow_api_base_url,
34
34
  :authorize_url => "#{Iknow::Config.iknow_base_url}/oauth/authorize"
35
35
  )
@@ -3,7 +3,7 @@ require 'singleton'
3
3
  class Iknow::Config
4
4
  include Singleton
5
5
  attr_accessor :protocol, :host, :port, :api_protocol, :api_host, :api_port, :timeout,
6
- :api_key, :oauth_consumer_key, :oauth_consumer_secret,
6
+ :api_key, :oauth_consumer_key, :oauth_consumer_secret, :oauth_http_method, :oauth_scheme,
7
7
  :user_agent, :application_name, :application_version, :application_url, :source
8
8
 
9
9
  def self.init(&block)
@@ -18,6 +18,8 @@ class Iknow::Config
18
18
  :api_key => '',
19
19
  :oauth_consumer_key => '',
20
20
  :oauth_consumer_secret => '',
21
+ :oauth_http_method => :post,
22
+ :oauth_scheme => :header,
21
23
  :user_agent => 'default',
22
24
  :application_name => 'iKnow! Gem',
23
25
  :application_version => Iknow::Version.to_version,
@@ -1,7 +1,7 @@
1
1
  module Iknow::Version
2
2
  MAJOR = 0
3
3
  MINOR = 2
4
- REVISION = 0
4
+ REVISION = 1
5
5
  class << self
6
6
  def to_version
7
7
  "#{MAJOR}.#{MINOR}.#{REVISION}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iknow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-21 00:00:00 +09:00
12
+ date: 2008-12-22 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency