headquarters 0.3.0 → 0.3.1

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: b918932a9bf5a0d18d6b9a2d5e2e85bb4eab2b0d
4
- data.tar.gz: f68c7ce2029733e9c2b8d3085d564b946433ea9c
3
+ metadata.gz: 383e449ceb64e632142bf10943e49891d2260b4e
4
+ data.tar.gz: ca9283fadc1bacfde9c6530914c17cd3a2ab4e13
5
5
  SHA512:
6
- metadata.gz: fad10448257f1c394466d9ec23e05e3c8ec509d6c943c673b3f427f8e651438bd8365d6e4e63fdc56180f55bc0a1dab32252c07bed295030e5f09ad0a6ffdf6e
7
- data.tar.gz: 66e149d00d1f07e555742decf3fccb247fd94eb6a83123b1854c1fa1af3aac3f1934a3475a72d809094059ef8484c30e181a234a540b792df4c937fd21b8bd74
6
+ metadata.gz: 76bcf93f543f721cb0b9f516d2ba4d0467b185398086c3f5ed3de71e8d5b1241ec9fa995e058c468a750c5dba6cdd82e804c6485f139e3f8f9eb2e1645bef159
7
+ data.tar.gz: b99a92e7ef02f1fc033383a1f7f799809cba8d8165bb1b8afba6aa7f5d00fbb0c8fbea10e10857d469e3385e437f449d6c7a93916ec7dcfc8f5b8e5eb6e3269c
data/README.md CHANGED
@@ -75,10 +75,25 @@ operation:
75
75
  client.members.all
76
76
  ```
77
77
 
78
- Or you can search for a specific email
78
+ Or you can search for a specific query
79
79
 
80
80
  ```ruby
81
81
  client.members.search('mpalhas@groupbuddies.com')
82
+ client.members.search('Miguel')
83
+ ```
84
+
85
+ ### Projects
86
+
87
+ To retrieve a collection of all projects of the team you can use the `all` operation:
88
+
89
+ ```ruby
90
+ client.projects.all
91
+ ```
92
+
93
+ Or you can search for a specific query
94
+
95
+ ```ruby
96
+ client.projects.search('headquarters')
82
97
  ```
83
98
 
84
99
  ### Github
@@ -1,3 +1,4 @@
1
+ require 'headquarters/api/endpoints'
1
2
  require 'headquarters/api/factory'
2
3
  require 'headquarters/api/oauth_authenticator'
3
4
 
@@ -2,6 +2,7 @@ module Headquarters
2
2
  class API
3
3
  module Endpoints
4
4
  MEMBERS = '/members'
5
+ PROJECTS = '/projects'
5
6
  EMAIL = '/emails'
6
7
  OAUTH_TOKEN = '/oauth/token'
7
8
 
@@ -3,11 +3,13 @@ require 'headquarters/api'
3
3
  module Headquarters
4
4
  class Client < API
5
5
  namespace :members
6
+ namespace :projects
6
7
  namespace :email
7
8
  namespace :github
8
9
  end
9
10
  end
10
11
 
11
12
  require 'headquarters/client/members'
13
+ require 'headquarters/client/projects'
12
14
  require 'headquarters/client/email'
13
15
  require 'headquarters/client/github'
@@ -1,5 +1,3 @@
1
- require 'headquarters/api/endpoints'
2
-
3
1
  module Headquarters
4
2
  class Client::Members < API
5
3
  def all
@@ -0,0 +1,7 @@
1
+ module Headquarters
2
+ class Client::Projects < API
3
+ def all
4
+ get Endpoints::PROJECTS
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Headquarters
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: headquarters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Palhas
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-06 00:00:00.000000000 Z
12
+ date: 2015-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -119,6 +119,7 @@ files:
119
119
  - lib/headquarters/client/email.rb
120
120
  - lib/headquarters/client/github.rb
121
121
  - lib/headquarters/client/members.rb
122
+ - lib/headquarters/client/projects.rb
122
123
  - lib/headquarters/rails_delivery_method.rb
123
124
  - lib/headquarters/railtie.rb
124
125
  - lib/headquarters/request.rb
@@ -154,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
155
  version: '0'
155
156
  requirements: []
156
157
  rubyforge_project:
157
- rubygems_version: 2.4.5
158
+ rubygems_version: 2.4.6
158
159
  signing_key:
159
160
  specification_version: 4
160
161
  summary: Ruby wrapper for the headquarters API for Group Buddies
@@ -170,3 +171,4 @@ test_files:
170
171
  - spec/headquarters_spec.rb
171
172
  - spec/shared_examples/an_http_requester.rb
172
173
  - spec/spec_helper.rb
174
+ has_rdoc: