groovehq 1.0.3 → 1.0.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: f1d33c98f5eeed19a68361f560b4144aa2d62b5e
4
- data.tar.gz: 8f7114a49e403d5400483235fbe06f8813cb5b9d
3
+ metadata.gz: 5caa9a0d2a902caf7958fa35caecf3daf7e04981
4
+ data.tar.gz: ce1ebc9948fb37355fc6c66eb853495b97add9f1
5
5
  SHA512:
6
- metadata.gz: 17d1e534f9be1813e1a14d2ec9af872e9d795db2253fcd16f4e702a74d742fa1c4461abb20634a3a8b0f0704836500e8c40bc5bbb3a4759d5d4c7fd323de7cee
7
- data.tar.gz: caf3432e838bfc7dea918292024db05dc050e59e54e0e17d2c723ae0e635aa8ee28023b3bc3d92d99f80469bd1ddc4c107d08ffa97f565bd9668078a0fc420c7
6
+ metadata.gz: 2ed65e73f939c6f5df34ef9771ef2e38594edb0a788f3c1f911b7d5287f301db4e04b2eab0fe1e5e31edce9d2be47e39c57395b0724d5694e62eeb8dc7318455
7
+ data.tar.gz: 7af00f027964dd04d543e7c25b7efd435415a5ddce342895588e7b04898f02dfcc0e9c6fe35d65489790e214e9f9bba4d1b9a5401e193f02741701898cce56f6
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ .idea
10
11
  *.bundle
11
12
  *.so
12
13
  *.o
@@ -5,6 +5,7 @@ require "groovehq/client/customers"
5
5
  require "groovehq/client/folders"
6
6
  require "groovehq/client/groups"
7
7
  require "groovehq/client/mailboxes"
8
+ require "groovehq/client/attachments"
8
9
  require "groovehq/client/messages"
9
10
  require "groovehq/client/tickets"
10
11
  require "groovehq/client/webhooks"
@@ -18,6 +19,7 @@ module GrooveHQ
18
19
  include GrooveHQ::Client::Folders
19
20
  include GrooveHQ::Client::Groups
20
21
  include GrooveHQ::Client::Mailboxes
22
+ include GrooveHQ::Client::Attachments
21
23
  include GrooveHQ::Client::Messages
22
24
  include GrooveHQ::Client::Tickets
23
25
  include GrooveHQ::Client::Webhooks
@@ -0,0 +1,13 @@
1
+ module GrooveHQ
2
+ class Client
3
+
4
+ module Attachments
5
+
6
+ def attachments(message_id)
7
+ get("/attachments", message: message_id)
8
+ end
9
+
10
+ end
11
+
12
+ end
13
+ end
@@ -3,8 +3,8 @@ module GrooveHQ
3
3
 
4
4
  module Customers
5
5
 
6
- def update_customer(options)
7
- post("/tickets/#{ticket_number}/messages", options)
6
+ def update_customer(email, options)
7
+ put("/customers/#{email}", options)
8
8
  end
9
9
 
10
10
  def customer(email)
@@ -1,3 +1,3 @@
1
1
  module GrooveHQ
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groovehq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill Shirinkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-24 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -83,6 +83,7 @@ files:
83
83
  - lib/groovehq.rb
84
84
  - lib/groovehq/client.rb
85
85
  - lib/groovehq/client/agents.rb
86
+ - lib/groovehq/client/attachments.rb
86
87
  - lib/groovehq/client/connection.rb
87
88
  - lib/groovehq/client/customers.rb
88
89
  - lib/groovehq/client/folders.rb