s3_media_server_api 0.1.2 → 0.1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -5
- data/lib/s3_media_server_api/media/common_media_api.rb +1 -0
- data/lib/s3_media_server_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5866349acabd1274b5248f931f217ad50d27924
|
4
|
+
data.tar.gz: 5627c1a238b7f0117b9504a52d19b611fab53294
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = {
|
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.
|
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-
|
11
|
+
date: 2016-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|