API42 1.0.0 → 1.0.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: 3af748747ec3563cb02d3f3ce438792a449090d0
4
- data.tar.gz: c6da6126e4b2cffdde8f752e55385e78700b33af
3
+ metadata.gz: c1da408f0676643e4aea43bcdf894f3e217b2531
4
+ data.tar.gz: aa3ca180b7b7de1bb1e8f58e074ecbdd3cc7aa98
5
5
  SHA512:
6
- metadata.gz: 88d1a7c108371e34bb6d848d6a1294f1704cb8887c4396bed99b1a7169fc12a26cc617bbc185444043f86c896229f23fc9aa8076ace14f5d2d03d3430a38baab
7
- data.tar.gz: e6d35a899c44105826b813f2ecc388eba126bd4de6a4ade31fb84c63454f5a47973340b323f68b995b13385222d0cf9f6eb0a3d26fd8a2d11640469245f42c19
6
+ metadata.gz: f20054681efe26be8107f9fad5d7a79e9bbad91bd6f1d702212ba844e0a983b711a3ddb2ae3f530e34a54d3f231f7d5812dbe273b811594a6fd96d46c391af6b
7
+ data.tar.gz: c43e327eca17ce2e09c42fd7131033ee74d920b983eecc49542202ab54a7fd7aaefd3cc10edce90e17e559d85e4e4b413f308b59e89833d85c5030d6de1d5533
@@ -5,9 +5,9 @@ module API42
5
5
  class Client
6
6
  attr_accessor :token
7
7
 
8
- def initialize token
8
+ def initialize token=nil
9
9
  @host = RestClient::Resource.new('https://api.intrav2.42.fr')
10
- @token = token
10
+ @token = token || ENV.fetch('API_42_KEY')
11
11
  end
12
12
 
13
13
  def cursus(options = {})
@@ -1,3 +1,3 @@
1
1
  module API42
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: API42
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - spuyet