unifi-api 0.1.1 → 0.1.2

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: 81c4016ca156bd5b890898dc7b56d84d59bfaf8b
4
- data.tar.gz: b29a1151d8e214e685d6ba4bea7c5d11284218cf
3
+ metadata.gz: aa811e024197d3dbea2bf98ff58bc1baaae25c56
4
+ data.tar.gz: d4db373f77d442c4efdabd558dbcc855d241b9e0
5
5
  SHA512:
6
- metadata.gz: 1fc95e96741e09f0fd539a094670f24073884651b3d67842ee4192817eb5546094174afdd21895fe79c7f6d63973fdfcc81c0d714e087c7d662b2e78d2f4578f
7
- data.tar.gz: f83316ff96e779bedffe5e720d97cef44386669b7ea3eafd57321d208fe47a452753f08008b43d4e0b2d1877e9d6670b704eb656ace180ee35836360a78cb2ea
6
+ metadata.gz: 52125fdc81ffd13c5325d228cdac64ada4034dbe3d5ed1f58d30daec568eac467fb6a24c07c339a44bc68f3df90aa105ee72ebb68748f6fe8a8793ebd9557e0e
7
+ data.tar.gz: ae02ade9327580179f7a0ae01e5f5c76db0da5a05f4ebb6c8161b54597dffcc5234dd9edf3e0167ba749f51bbbbfde69d1cb9168881a8e22419154c6c51cf3b6
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
- # Unifi::Api
1
+ # unifi-api
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/unifi/api`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ unifi-api is a ruby client for the Ubiquiti Unifi wireless controller API. Based on the python implementation at https://github.com/calmh/unifi-api.
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,7 +20,13 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ ```ruby
24
+ require 'unifi-api'
25
+
26
+ unifi = Unifi::Api::Controller.new('unifi', 'admin', 'password', 8443, 'v4')
27
+
28
+ aps = unifi.get_aps
29
+ ```
26
30
 
27
31
  ## Development
28
32
 
@@ -32,5 +36,5 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
36
 
33
37
  ## Contributing
34
38
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/unifi-api.
39
+ Bug reports and pull requests are welcome on GitHub at https://github.com/hculap/unifi-api.
36
40
 
@@ -0,0 +1 @@
1
+ require 'unifi/api'
@@ -1,5 +1,5 @@
1
1
  module Unifi
2
2
  module Api
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unifi-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - hculap
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-02 00:00:00.000000000 Z
11
+ date: 2017-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -65,6 +65,7 @@ files:
65
65
  - Rakefile
66
66
  - bin/console
67
67
  - bin/setup
68
+ - lib/unifi-api.rb
68
69
  - lib/unifi/api.rb
69
70
  - lib/unifi/api/version.rb
70
71
  - unifi-api.gemspec