Commit graph

104 commits

Author SHA1 Message Date
Justin Cooper
0aae08d534 bump bundler to 2.2.10 2021-05-26 10:53:57 -05:00
Justin Cooper
b002b84fda bump json to 2.3.1 2020-07-30 10:23:57 -05:00
Justin Cooper
88c80bcd56 update to latest rake 2020-03-02 11:31:43 -06:00
Adam Bachman
a4c53b6a3f
Update README.md 2018-07-11 12:11:52 -04:00
Adam Bachman
8784552bdc actually finish the last paragraph of the readme 2018-05-08 11:50:32 -04:00
Adam Bachman
1562fa9342 add to readme 2018-05-08 11:48:37 -04:00
Adam Bachman
3f3f678e71 touch up data example 2018-05-08 11:48:14 -04:00
Adam Bachman
5f8822f772
Api V2 (#16)
* Start major refactoring of API library covering Version 2 of the API.

- simplify everywhere possible
- return plain hashes, don't bother with custom objects
- feeds first, then data, then everything else
- make it simpler

* update v2 examples

* split argument handling methods into a separate module

* add feed update method

* update test suite to API v2

* add Groups handlers

* groups example code

* add helper for methods that need to send ID rather than key

* don't raise on DELETE when status is 404, just return nil

* update text files pre-beta gem release, drop unused dependencies

* turns out ActiveSupport is a dependency for Faraday instrumentation :P

* bump version, sigh

* drop File.join, implement path joining by hand

* add simple MQTT client to library

* bump version to 2.0.0.beta.3, update CHANGELOG and README

* update CHANGELOG for 2.0.0.beta.3

* add tokens and user API calls

* handle numbers in safe_path_join

* more V2 API endpoints, more specs, more fixtures

* add dashboard API methods

* pending block and group specs

* spellcheck

* drop unused examples

* bump version, update README

* clean up README

* add activities and permissions

* bump version to 2.0.0.beta.5

* add dev files to .gitignore

* filter valid feed create/update parameters

* update README

* add trigger API + examples

* update examples

* bump to 2.0.0.beta.6

* complete block client API tests, fix some bugs in block client API

* update gitignore

* wrap block attribute preparation

* add testing checklist

* bump to version 2.0.0.beta.7

* update testing list

* add dashboard update_layouts, finish dashboard spec

* add json test fixtures

* update triggers API and spec

* update permissions API and spec

* update activities spec

* add fixture file helpers

* extract method in mqtt API internals

* request handler should return a RequestError when response status is not 200

* fill out group specs

* handle non 200 API responses as raise ResponseError

* update / normalize example sketches

* fix bug in mqtt lib, add last value retrieving /get option on subscription

* update README and CHANGELOG

* bump to version 2.0.0 release
2018-05-07 17:48:58 -04:00
Adam Bachman
6b24321848 bump version to 1.0.4 2016-08-16 12:55:14 -04:00
Adam Bachman
d26beb2b7e update data/read example 2016-08-16 12:53:28 -04:00
Adam Bachman
4b19d9f8d4 add @CiTroNaK to CONTRIBUTORS 2016-08-16 12:53:19 -04:00
Adam Bachman
787e17aa1a add test covering feed data retrieval 2016-08-16 12:06:43 -04:00
Petr Havelka
202a470aae Get Options (Params) (#13) 2016-08-16 16:02:51 +00:00
Adam Bachman
e16973d7bf update tests to use ENV var for API URL 2016-08-16 11:32:20 -04:00
Adam Bachman
0bddb2d5f4 ignore profile 2016-08-16 11:31:46 -04:00
Ric Kamicar
f58a90ad72 Provide an example script using the MQTT interface. (#12) 2016-06-21 14:27:34 -04:00
Adam Bachman
9ac9f040ee pass platform in user agent 2016-06-16 16:13:44 -04:00
Adam Bachman
642d06675b update CHANGELOG for pending 1.1.0 release 2016-06-16 14:16:29 -04:00
Adam Bachman
c0e46ae895 put Group#groups shim back in to prevent completely breaking existing code 2016-06-16 14:04:46 -04:00
Adam Bachman
b6c10d2283 remove unused API method
fixes #7
2016-06-16 13:56:03 -04:00
Ric Kamicar
5a532cc6c8 Bug fixes (#10)
* Remove unnecessary/unused assignment.

* Data#previous had a bogus parameter ; Data#create needs feed id itself

* Group had several broken methods

It looks like maybe a change was started and not finished.
Made them similar to all other methods.
2016-06-16 11:17:48 -04:00
Adam Bachman
76ef70abbc add CONTRIBUTORS file 2016-06-15 16:06:32 -04:00
Adam Bachman
a41913e30a drop .env requirement from normal test suite 2016-06-15 15:37:30 -04:00
Adam Bachman
638016b338 update specs to prevent real API calls 2016-06-15 15:31:19 -04:00
Adam Bachman
51985278dc update examples/data/read so that it doesn't blow up if feed doesn't have data 2016-06-15 10:39:16 -04:00
Adam Bachman
75c4b3cdbf add .env to .gitignore 2016-06-15 10:31:32 -04:00
Ric Kamicar
fc293604b5 Expose values hash instead of creating attr_list (#8)
* Move common properties to common base class ; create accessors for others, not just feed

* Expose values hash on IOObject and hence all objects.

Allows for iterating through the list of properties for a Feed/Data/etc.

* Add unit tests for feed (more coming)

Caveats:
  - does 'live' tests, so need to provide an API key (see spec/README.md)
  - no throttling code in place yet - not a problem yet, though.
  - tests are limited by my live account having 9 feeds already

* Rewrite spec/README to fix typos, be more clear and have standardizename.

The python library uses ADAFRUIT_IO_KEY, so changed the code to also use that.

* Add dotenv to Gemfile

* Move rspec up to 3.4

* Add check for valid key and exit if none.
2016-06-15 10:30:46 -04:00
Adam Bachman
589dc44484 Merge branch 'master' of github.com:adafruit/io-client-ruby 2016-06-13 11:53:37 -04:00
Adam Bachman
3cbf9354fe add Travis badge to README 2016-06-13 11:53:29 -04:00
Adam Bachman
4793eddb08 add travis config 2016-06-13 11:51:49 -04:00
Adam Bachman
0eef1aa976 update PATCH version again 2016-06-13 11:50:42 -04:00
Adam Bachman
6c9db059f7 update PATCH version again 2016-06-09 15:10:00 -04:00
Adam Bachman
7f52c61352 Merge branch 'master' of github.com:adafruit/io-client-ruby 2016-06-09 15:09:09 -04:00
Adam Bachman
a6dcf7ac7b fix bug in data#retrieve, update examples/data/read 2016-06-09 14:58:35 -04:00
Adam Bachman
ce188b5fb9 bump patch version to 1.0.2 2016-06-09 14:51:16 -04:00
Adam Bachman
6cf535d0ae whitespace 2016-06-09 14:50:27 -04:00
Adam Bachman
bcacc323c8 update examples/feeds/read 2016-06-09 14:50:12 -04:00
Adam Bachman
96b4eaaa0f give feed a nicer to_s 2016-06-09 14:48:16 -04:00
Adam Bachman
ed67e47831 add custom client UserAgent 2016-06-09 14:47:29 -04:00
Adam Bachman
45cfd90a7b allow custom Adafruit IO URL 2016-06-09 14:47:14 -04:00
Justin Cooper
8431915e9c Merge branch 'master' of github.com:adafruit/io-client-ruby 2016-06-02 09:18:14 -05:00
Justin Cooper
c1cc142d51 bump version to 1.0.1 2016-06-02 09:18:06 -05:00
Adam Bachman
b0b8e6ae96 update README and data/create example to clarify IO::Client API
fixes #4
2016-06-02 10:15:45 -04:00
Adam Bachman
69694650c1 Merge pull request #5 from rkam/master
Remove extraneous puts in IOObject
2016-06-02 09:41:13 -04:00
rkam
65f94f0ba8 Remove extraneous puts in IOObject 2016-06-01 15:12:32 -07:00
Justin Cooper
9f2226f8fc Merge pull request #3 from NikitaAvvakumov/master
Add activemodel dependency to gemspec
2016-01-08 15:40:56 -06:00
Nikita Avvakumov
fec65ae59c Add activemodel dependency to gemspec
- activemodel has dependency on activesupport, therefore remove explicit
  dependency on the latter
2016-01-08 23:33:39 +02:00
Justin Cooper
c296069c21 bump version 2015-12-14 11:18:46 -06:00
Justin Cooper
918d4ae1cf Remove hashie require 2015-12-14 11:14:56 -06:00
Justin Cooper
537e454fdd Update client to use io.adafruit.com 2015-12-14 11:13:50 -06:00