openfire_rest_api 0.2.0 → 0.2.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: 9f06cd01af92ab289c6029351aa6a77f7d652cbc
4
- data.tar.gz: 09809d851444139737e60e944bb09a0bc1f1eb4a
3
+ metadata.gz: 6ff493c42b1fa2f69c09d564ac703702fa22c86f
4
+ data.tar.gz: d945019c048d502b8bba6e40ceeb1db2c445855b
5
5
  SHA512:
6
- metadata.gz: f0ac8ea9ca55ec17fd9b9d2b16261e359aea520366d27946e5c67bbdcdde8476b692dc6c5ad4e72e6ae8d570e5190f1a9e7eeb8e6be3bd490f9b3a7e4b43768c
7
- data.tar.gz: 850ae354b0a42e9237ff60bddd1c309bbbdebf7c69077df5108fbb5cea815d1508bfc7882c89a587943892d64f969dfcd07d9eb8bf9ea385d01bce32a299e141
6
+ metadata.gz: 15b1abc9b605b932818d2d89ac6ce648a2ef1a0af184e506482f45d34157cba35e4d9d6bbc61068795f8b0b04111ddc17a9fc81c81ef57bc32094527ceb57fb2
7
+ data.tar.gz: eae63c86a6f3b5f0a3a60a28dba79df33541709c18493d054ac4e84eed00d069d451f735730cd820f6da1da5ef2b0c07322b021763256cbc2deff9042fe0d964
data/CHANGELOG.md CHANGED
@@ -5,3 +5,7 @@
5
5
  ## v0.2.0
6
6
 
7
7
  * Added methods to get sessions, system properties, send broadcast messages
8
+
9
+ ## v0.2.1
10
+
11
+ * Added optional filters to get users method
data/lib/openfire/api.rb CHANGED
@@ -5,8 +5,8 @@ module Openfire
5
5
  @access_token = access_token
6
6
  end
7
7
 
8
- def get_users
9
- request = web_request('GET', '/users', { }, default_headers)
8
+ def get_users(filters={})
9
+ request = web_request('GET', '/users', filters, default_headers)
10
10
  request[:body]['user'].map { |x| Openfire::User.new(x) }
11
11
  end
12
12
 
@@ -1,3 +1,3 @@
1
1
  module OpenfireRestApi
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openfire_rest_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-26 00:00:00.000000000 Z
11
+ date: 2017-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.2.5
94
+ rubygems_version: 2.4.5.2
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Connect with openfire through rest api plugin