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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f914e1c1b75f182956233bc85f1332d5de50a32
4
- data.tar.gz: 829ed0553d651246d172f75cb80cacf200bc2d71
3
+ metadata.gz: 3595893cd5170484e996fbddac79fed64e4eb715
4
+ data.tar.gz: b1a21bd789038a477207838a4048ff7210245eba
5
5
  SHA512:
6
- metadata.gz: 2b6499b7aa60e9959df0ade8d7fbffd893f3d3fac6323301b60a420eda1f2ae5e4035e3581068f15c018d50c14a4d56a6ebb08f39ab63ed5e9705920e497f248
7
- data.tar.gz: 47f41270d38b3209d5a0a97a0ca1fe840669145967565a8b20fadd2318fb654d190bd777787ae182b608d6e01b32eb079e84ddefadbdce36c4adfdbb62e9fb0e
6
+ metadata.gz: 7b25b28c3a4b9c798a73d39aaf00563f73142689c2c1117fc51c90314d243606217282fd5bfe7c81c2ae0fac5f0d20eb5123e9442a83c05817c671e033a86b49
7
+ data.tar.gz: d1319df588934aa9c5bd7471c0d39689a3655f65d9717bbc57b03cb78256d552c2fd3038cf40bcc98aba78b6f7e031367f86c0a53422246c04cedcf68ffd568d
@@ -5,7 +5,13 @@ module Trello
5
5
  class Base
6
6
  class << self
7
7
  def make_call(method, url, body, headers)
8
- result = HTTParty.public_send(method, url, body: body, headers: headers)
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.3'
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-trello-cl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Pletcher