base-api-io 0.1.1 → 1.0.0

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: 75e165c9fc644d01b252aa64ec930a1ed9ee8afd01508e63f4d05cedaf9fc799
4
- data.tar.gz: e1584e9cff357d08dc13f6c70de359872e34a1fc31b5106555cd493b438261ec
3
+ metadata.gz: a02da5f699199bf93cd13504ad4bde5a881560f371882d99252c6fc35d1db5f1
4
+ data.tar.gz: 4e000f8d5d22569f148e91501d75c5dffedf0703b8c62a4c71653dd219cb6ff5
5
5
  SHA512:
6
- metadata.gz: 191576a47dc3ea7f754986c06cbaba796a32d1960b114d4353b11067721b8cc756b9b812d53d76b8fcb0b23b13399b8eec54d6192d389198aabb2d087d8665e0
7
- data.tar.gz: 8f38281bf3b0971c75d25a15185455639dfb633e705e5a2fa611bcb23119a59cfa17d7aa008eede4a14008fecc5955b153faecde084b9f95b67bb479d5b2c636
6
+ metadata.gz: fd672ebc77dea2de4467a9842fc576ea9acd9a72d7bd1c485862f91c3622f372c0111d74c452b0eb51ce5db815279289e96a569f0254c4cff4ff7e649cebd459
7
+ data.tar.gz: e039551f3bc6f7f6c808c0021b45ef1b1cb9ec3a0fa26b9c9de76fb8f2d128cad5577c9f460cb676af827e60ee2a273ac42c3301bdecdb043fa0263af5c6c1fd
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- base-api-io (0.1.1)
4
+ base-api-io (1.0.0)
5
5
  faraday (~> 0.15.4)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -112,7 +112,10 @@ download files:
112
112
  ```ruby
113
113
  # Create a file
114
114
  file =
115
- client.files.create(file: File.open("/path/to/file"))
115
+ client.files.create(
116
+ path: '/path/to/file',
117
+ filename: 'text.txt',
118
+ type: 'text/plain')
116
119
 
117
120
  # Get a file by id
118
121
  file =
@@ -139,7 +142,10 @@ process images:
139
142
  ```ruby
140
143
  # Create an image
141
144
  image =
142
- client.images.create(image: File.open("/path/to/image"))
145
+ client.images.create(
146
+ path: '/path/to/image',
147
+ filename: 'image.png',
148
+ type: 'image/png')
143
149
 
144
150
  # Get a image by id
145
151
  image =
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Base
4
- VERSION = '0.1.1'
4
+ VERSION = '1.0.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: base-api-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusztáv Szikszai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-19 00:00:00.000000000 Z
11
+ date: 2019-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday