crossfader 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crossfader/cli.rb +2 -2
- data/lib/crossfader/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: 9d4ae6c3745bd42a89787bc0acfa4d8299f85f57
|
4
|
+
data.tar.gz: 4792df0411ea79976aa6bf44e26fa252f7053eb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ed9b5a941561a678303850837a1aeec9cb7e8d62f781d6f6ccf7dd712caa23354dd214d4b95ca3db5fc833bd379e05d3ad790a33864e8412f95612945e311fb
|
7
|
+
data.tar.gz: 5bf353eef8b5ff29cace939af38bd7fc3ceac7a3fc8be258592b1c44492d7d66a1611de689e08b93e3f9762e82bec1c40bb1a65bf78fb57a07973e1db7fb8e09
|
data/lib/crossfader/cli.rb
CHANGED
@@ -96,7 +96,7 @@ module Crossfader
|
|
96
96
|
file_path = File.join(dir, file)
|
97
97
|
if File.file? file_path and File.extname(file_path) == ".wav"
|
98
98
|
mp3_path = "#{file_path}.mp3".gsub!('.wav', '')
|
99
|
-
system "lame -b
|
99
|
+
system "lame -b 160 -h '#{file_path}' '#{mp3_path}'"
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
@@ -107,7 +107,7 @@ module Crossfader
|
|
107
107
|
artwork = open(file_path.gsub('.mp3', '.jpg'), 'r+b')
|
108
108
|
length, bpm, key, artist, title = file.to_s.gsub('.mp3', '').split(' - ')
|
109
109
|
headers = { 'Authorization' => "Token: #{@rcfile.api_access_token}" }
|
110
|
-
body = { title: title, type: 'loop', content: { artist_name: artist, bpm: bpm, key: key, bar_count: length, loop_type: "Instrumental Song" }, loop: loop_audio, artwork: artwork }
|
110
|
+
body = { title: title, type: 'loop', content: { artist_name: artist, bpm: bpm, key: key, bar_count: length, loop_type: "Instrumental Song" }, loop: loop_audio, artwork: artwork, published: 'true' }
|
111
111
|
options = { headers: headers , body: body }
|
112
112
|
response = self.class.post('/feed_items', options)
|
113
113
|
@loop_ids << response['id']
|
data/lib/crossfader/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crossfader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Barber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|