typetalk 0.0.2 → 0.0.3
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.
- data/README.md +2 -1
- data/lib/typetalk.rb +1 -0
- data/lib/typetalk/connection.rb +1 -1
- data/lib/typetalk/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Typetalk [](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
data/lib/typetalk/connection.rb
CHANGED
|
@@ -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' =>
|
|
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
|
data/lib/typetalk/version.rb
CHANGED
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.
|
|
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-
|
|
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:
|
|
280
|
+
hash: 4502195151905663745
|
|
281
281
|
requirements: []
|
|
282
282
|
rubyforge_project:
|
|
283
283
|
rubygems_version: 1.8.23
|