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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1a3d2e6cd60019b441bb74ea0a77416530c7db75ecf2ec8abfb0c7628b39bde
4
- data.tar.gz: 5220e60f717e00ec7fa04fe76be021b3432578d83cf5381f94b79d779ad888c1
3
+ metadata.gz: 2ad40e0aa413a62e81133fb379bea4c75f21c2ed05c623675e6dcb64d7560fd8
4
+ data.tar.gz: ab6da0f51fed17d500e0aad44efe3db305c44416656fb702d653aba3503f0fff
5
5
  SHA512:
6
- metadata.gz: 92967da0c264a577a5ec3c8a894042fd56df180d9657a79aa64aee964ad2007fdfb82f677f40d7780af9a231842f71d2515fef791a3e5c49d3e2353157c2c994
7
- data.tar.gz: f232a0fb21d4e152450abddfe081daf801525332c6da3a274b8b63f8cac09658a9618880c9e31785abf1c7e43195e7995375b3923b8d672bd50d23b726442b1d
6
+ metadata.gz: dc3481e56415c90ac97a1489369258a0a0ed3333a454e2df42826008fd98d1eb99fd6057a870f396f9178ed648efd3f1e5503da9396603370643edfa1209410d
7
+ data.tar.gz: 9b0f2d55efac94ace1c72c9ae36951de5084f178c60c94d60a40d0702a730a0262582dca0c0c446eaea746a77a8d2bdcf360c5573922c8a02d818b8b98b779a9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- osuny_api (0.2.0)
4
+ osuny_api (0.2.1)
5
5
  httparty
6
6
 
7
7
  GEM
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 instance: 'https://instance.osuny.org',
16
+ osuny = OsunyApi.new host: 'https://instance.osuny.org',
17
17
  token: 'real_token'
18
18
 
19
19
  migration_identifier = "identifiant-unique"
@@ -1,13 +1,13 @@
1
1
  require 'httparty'
2
2
 
3
3
  class OsunyApi::Client
4
- attr_reader :instance, :token
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
- @instance = options[:instance]
10
+ @host = options[:host]
11
11
  @token = options[:token]
12
12
  end
13
13
 
@@ -8,7 +8,7 @@ class OsunyApi::Resource
8
8
  end
9
9
 
10
10
  def path
11
- "#{client.instance}/api/osuny/"
11
+ "#{client.host}/api/osuny/"
12
12
  end
13
13
 
14
14
  def full_path
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OsunyApi
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osuny_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Levy