github-trello-cl 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trello/api/base.rb +7 -1
- data/trello.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3595893cd5170484e996fbddac79fed64e4eb715
|
4
|
+
data.tar.gz: b1a21bd789038a477207838a4048ff7210245eba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b25b28c3a4b9c798a73d39aaf00563f73142689c2c1117fc51c90314d243606217282fd5bfe7c81c2ae0fac5f0d20eb5123e9442a83c05817c671e033a86b49
|
7
|
+
data.tar.gz: d1319df588934aa9c5bd7471c0d39689a3655f65d9717bbc57b03cb78256d552c2fd3038cf40bcc98aba78b6f7e031367f86c0a53422246c04cedcf68ffd568d
|
data/lib/trello/api/base.rb
CHANGED
@@ -5,7 +5,13 @@ module Trello
|
|
5
5
|
class Base
|
6
6
|
class << self
|
7
7
|
def make_call(method, url, body, headers)
|
8
|
-
|
8
|
+
headers = headers.merge('User-Agent' => 'Ruby')
|
9
|
+
|
10
|
+
if method.to_s == 'get'
|
11
|
+
result = HTTParty.public_send(method, url, query: body, headers: headers)
|
12
|
+
else
|
13
|
+
result = HTTParty.public_send(method, url, body: body, headers: headers)
|
14
|
+
end
|
9
15
|
|
10
16
|
unless result.success?
|
11
17
|
abort "#{result.code} error: #{result.body}"
|
data/trello.gemspec
CHANGED
@@ -2,7 +2,7 @@ $LOAD_PATH << File.expand_path('../lib', __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'github-trello-cl'
|
5
|
-
s.version = '0.1.
|
5
|
+
s.version = '0.1.4'
|
6
6
|
s.date = '2015-02-23'
|
7
7
|
s.summary = "Interface with trello"
|
8
8
|
s.description = "A tool to allow people using Trello as a workflow to interface with it via command line access to an API"
|