particlerb 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/lib/particle/version.rb +1 -1
- data/particlerb.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e47a80d3ac0cf078c7ab6dbed9d51d43b358b86
|
4
|
+
data.tar.gz: 0fc684e9ceab97b19963e6c37355118de83c3f8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f42701237bd5892ad1dad5c7db4f49c08b8c674d853012ef66badb63772871a6a997cb5addd0b99ac59547c680167d5fbf17e563a36209c9af53421bb54741b
|
7
|
+
data.tar.gz: 3db3e108fa95fb4907a5ba36882163d085f957ad8da4aba8f6de2105f03d6f85f1ff228dd91e7cadb6634747fad9d5eda57b7baa42856d1f87d95336e4fcf94c
|
data/README.md
CHANGED
@@ -486,6 +486,14 @@ Main product endpoints (list, get, invite team member, remove team member)
|
|
486
486
|
|
487
487
|
All API endpoints are availble directly on the client object as method calls like `Particle.claim_device(id)` but the preferred usage is to call methods on domain objects like `Particle.device(id).claim`. See the various `Particle::Client` subclasses for more details.
|
488
488
|
|
489
|
+
### Environment variables with .env
|
490
|
+
|
491
|
+
If you are loading environment variables with the `dotenv` gem and use the `PARTICLE_ACCESS_TOKEN` environment variable, add this as the first gem in your `Gemfile` to ensure that the environment variables are loaded before the `particlerb` gem is required.
|
492
|
+
|
493
|
+
```
|
494
|
+
gem 'dotenv-rails', :require => 'dotenv/rails-now'
|
495
|
+
```
|
496
|
+
|
489
497
|
### Accessing HTTP responses
|
490
498
|
|
491
499
|
While most methods return a domain object like `Device`, sometimes you may
|
data/lib/particle/version.rb
CHANGED
data/particlerb.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.required_ruby_version = '>= 1.9.3'
|
18
18
|
spec.required_rubygems_version = '>= 1.3.5'
|
19
19
|
spec.version = Particle::VERSION.dup
|
20
|
-
spec.add_dependency 'faraday', '
|
20
|
+
spec.add_dependency 'faraday', '>= 0.9.0'
|
21
21
|
spec.add_dependency 'faraday_middleware', '>= 0.9.0'
|
22
22
|
spec.add_development_dependency 'bundler', '~> 1.0'
|
23
23
|
spec.add_development_dependency 'rake', '~> 10.0'
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: particlerb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Vanier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.9.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.9.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -268,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
268
268
|
version: 1.3.5
|
269
269
|
requirements: []
|
270
270
|
rubyforge_project:
|
271
|
-
rubygems_version: 2.
|
271
|
+
rubygems_version: 2.5.1
|
272
272
|
signing_key:
|
273
273
|
specification_version: 4
|
274
274
|
summary: Ruby client for the Particle.io Cloud API
|