crossfader 0.0.1 → 0.0.2

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: 1a9a3ed5d6109efeacb865d5d5263e06f393c443
4
- data.tar.gz: c9f9dcc22c7e8c88e3d314e20d0ad0b79ce106aa
3
+ metadata.gz: 9d4ae6c3745bd42a89787bc0acfa4d8299f85f57
4
+ data.tar.gz: 4792df0411ea79976aa6bf44e26fa252f7053eb1
5
5
  SHA512:
6
- metadata.gz: 2b335a4927904f71c0581ac054c84218ed4ab47b583a406bb8d837dfbe88822d451b3348a69193d0a02b8aa1a62cf8315c150de5818ca0b6e0657353137e7b4e
7
- data.tar.gz: 3d4d864e0da662a413ac3d2f72eaa4c447b35544201708c91885973aeb35ec70fba8a583df98103759bb78d9355892a466980bcdc03f3da55e79ef80abb1fafd
6
+ metadata.gz: 6ed9b5a941561a678303850837a1aeec9cb7e8d62f781d6f6ccf7dd712caa23354dd214d4b95ca3db5fc833bd379e05d3ad790a33864e8412f95612945e311fb
7
+ data.tar.gz: 5bf353eef8b5ff29cace939af38bd7fc3ceac7a3fc8be258592b1c44492d7d66a1611de689e08b93e3f9762e82bec1c40bb1a65bf78fb57a07973e1db7fb8e09
@@ -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 192 -h '#{file_path}' '#{mp3_path}'"
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']
@@ -1,3 +1,3 @@
1
1
  module Crossfader
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-04 00:00:00.000000000 Z
11
+ date: 2014-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler