s3_media_server_api 0.1.2 → 0.1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d44077ccfa57782dedd3b0118ccc85df39bae0f3
4
- data.tar.gz: ecc31290aa5609881007706e961067cc68dfeda2
3
+ metadata.gz: f5866349acabd1274b5248f931f217ad50d27924
4
+ data.tar.gz: 5627c1a238b7f0117b9504a52d19b611fab53294
5
5
  SHA512:
6
- metadata.gz: 10960b6d0abcefef5e28bbb3c7d0b63a8fdd9b18b09cf91eeb01f281e7261249ca6713b24bf1f6dcaa661e6acbeb6ac83b4ae50900478977e630ebde77cae90f
7
- data.tar.gz: 41c43c2370650dbc439c8214e74f098b501d57326658fc9747cda7ca97e7398cbc66abcf55a41b259813a204ffc829494fcc2c8de2c579b711898f3ad1bf0221
6
+ metadata.gz: 56a6610f10678294c15563cdf03b0a65d3444fb8efa8b43878927e1d2611fb2b5c0341ff70f4b1927ca9cc1332b047bab5e16fd3bd3ebc959b1dc711d86de798
7
+ data.tar.gz: 702af8ed0ad1be3cc12ab4c8404e6ab1c04347bbbe35069c4dcb2347107e18595c1a8a9e169ab5a206d86dcffc5a8821a7eb9bedb31e6e35c17c3efe45b2cd6f
data/README.md CHANGED
@@ -106,8 +106,7 @@ resolved_audio.size
106
106
  # duration - duration of cutted file
107
107
  # start_position - position where cut wil be made
108
108
  # this method is asynchronous
109
- cut_params = { audio_url: created_audio.url,
110
- duration: 20,
109
+ cut_params = { duration: 20,
111
110
  start_position: 40}
112
111
  S3MediaServerApi::Media::Audio.cut(created_audio.uuid, cut_params)
113
112
 
@@ -221,6 +220,8 @@ You can configure the following values by overriding these values using S3MediaS
221
220
  upload_thread_count
222
221
  # class that will cache queries to S3 Media Server
223
222
  cache_class
223
+ # to mock all request set mock to true
224
+ mock
224
225
  ```
225
226
 
226
227
  Example
@@ -228,6 +229,7 @@ Example
228
229
 
229
230
  S3MediaServerApi::Config.configure do |config|
230
231
  config.upload_thread_count = 10
232
+ config.mock = true
231
233
  end
232
234
  ```
233
235
 
@@ -258,9 +260,6 @@ end
258
260
 
259
261
 
260
262
 
261
-
262
-
263
-
264
263
  ## Development
265
264
 
266
265
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -66,6 +66,7 @@ module S3MediaServerApi
66
66
  # parameters: uuid - uuid of file
67
67
  #
68
68
  def destroy(uuid)
69
+ return unless uuid
69
70
  AsynkRequest.async_request(base_path, :destroy, uuid: uuid)
70
71
  end
71
72
  #
@@ -1,3 +1,3 @@
1
1
  module S3MediaServerApi
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_media_server_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ayrat Badykov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-26 00:00:00.000000000 Z
11
+ date: 2016-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler