typetalk 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Typetalk [![Build Status](https://secure.travis-ci.org/umakoz/typetalk.png)](http://travis-ci.org/umakoz/typetalk)
1
+ # Typetalk [![Build Status](https://travis-ci.org/umakoz/typetalk-rb.svg?branch=master)](https://travis-ci.org/umakoz/typetalk-rb)
2
2
 
3
3
  A Ruby wrapper for [Typetalk API](http://developers.typetalk.in/api.html). The Typetalk gem provides an easy-to-use wrapper for Typetalk's REST APIs.
4
4
 
@@ -42,6 +42,7 @@ You need to provide your Client ID and Client Secret.
42
42
  config.grant_type = 'client_credentials' # or 'authorization_code'
43
43
  config.redirect_uri = '...' # for authorization code
44
44
  config.proxy = '...'
45
+ config.user_agent = '...'
45
46
  end
46
47
 
47
48
  You can also specify these values via ENV:
data/lib/typetalk.rb CHANGED
@@ -15,6 +15,7 @@ module Typetalk
15
15
  scope: 'topic.read,topic.post,my',
16
16
  endpoint: 'https://typetalk.in/api/v1',
17
17
  proxy: nil,
18
+ user_agent: "Typetalk Rubygem #{Typetalk::VERSION}",
18
19
  }
19
20
 
20
21
  class << self
@@ -11,7 +11,7 @@ module Typetalk
11
11
 
12
12
  def connection_options
13
13
  {
14
- :headers => {'Accept' => 'application/json; charset=utf-8', 'User-Agent' => "Typetalk Rubygem #{Typetalk::VERSION}"},
14
+ :headers => {'Accept' => 'application/json; charset=utf-8', 'User-Agent' => Typetalk.config.user_agent},
15
15
  :proxy => Typetalk.config.proxy,
16
16
  }
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module Typetalk
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typetalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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: 2014-05-29 00:00:00.000000000 Z
12
+ date: 2014-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hashie
@@ -277,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
277
277
  version: '0'
278
278
  segments:
279
279
  - 0
280
- hash: 930648927955685077
280
+ hash: 4502195151905663745
281
281
  requirements: []
282
282
  rubyforge_project:
283
283
  rubygems_version: 1.8.23