osuny_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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/osuny_api/client.rb +2 -2
- data/lib/osuny_api/resource.rb +1 -1
- data/lib/osuny_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ad40e0aa413a62e81133fb379bea4c75f21c2ed05c623675e6dcb64d7560fd8
|
4
|
+
data.tar.gz: ab6da0f51fed17d500e0aad44efe3db305c44416656fb702d653aba3503f0fff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc3481e56415c90ac97a1489369258a0a0ed3333a454e2df42826008fd98d1eb99fd6057a870f396f9178ed648efd3f1e5503da9396603370643edfa1209410d
|
7
|
+
data.tar.gz: 9b0f2d55efac94ace1c72c9ae36951de5084f178c60c94d60a40d0702a730a0262582dca0c0c446eaea746a77a8d2bdcf360c5573922c8a02d818b8b98b779a9
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -13,7 +13,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
13
13
|
## Usage
|
14
14
|
|
15
15
|
```
|
16
|
-
osuny = OsunyApi.new
|
16
|
+
osuny = OsunyApi.new host: 'https://instance.osuny.org',
|
17
17
|
token: 'real_token'
|
18
18
|
|
19
19
|
migration_identifier = "identifiant-unique"
|
data/lib/osuny_api/client.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
require 'httparty'
|
2
2
|
|
3
3
|
class OsunyApi::Client
|
4
|
-
attr_reader :
|
4
|
+
attr_reader :host, :token
|
5
5
|
|
6
6
|
LOG_GREEN = 32
|
7
7
|
LOG_RED = 31
|
8
8
|
|
9
9
|
def initialize(options = {})
|
10
|
-
@
|
10
|
+
@host = options[:host]
|
11
11
|
@token = options[:token]
|
12
12
|
end
|
13
13
|
|
data/lib/osuny_api/resource.rb
CHANGED
data/lib/osuny_api/version.rb
CHANGED