crossfader 0.0.3 → 0.0.4

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: c6f67a54b18691881185ee5dbf6f6e0f8d8ebfc6
4
- data.tar.gz: 5bc26701e42ca926bd747469d8b3d50f4d0f6c11
3
+ metadata.gz: 4119d42816e9b36f2733486c9ea0b9f5ce96d5f9
4
+ data.tar.gz: 3060b897f7c8f325f4c42f1de6c54dcdbf70cc28
5
5
  SHA512:
6
- metadata.gz: f24ca87c81c649c939d75990848f0ded9d80517ef0933bd20b74d4a0fa34600b95423dbcd90c9525b13784212211e9f6aeabd3d1c55a99192194013ae18a14f3
7
- data.tar.gz: 3b6bc9adc9349914070495acaa07ad99d645514ca5d51418de76142aad7a6214c510a392a3e5a2df17abef14b5455dfe41d485ded0322aef003741dc24c73543
6
+ metadata.gz: 768776ee2a8b073d8a62bd7faf5d5c1cc56d3f0bc49692907e4dd6ae3f343f2d37e4451bf5e75653a38dc85961deae61ba6e5f5466ffc05cfadaa3b9c5d9b384
7
+ data.tar.gz: 3d2071e87b3d0155279c144e923e84cf8b01b2cfda69e0a0c0fa65cadbae2cd5ae8451144a241a051505cb7fdad641480c46856b26e9e9a8257941051504be58
@@ -110,7 +110,7 @@ module Crossfader
110
110
  artwork = open(file_path.gsub('.wav', '.jpg'), 'r+b')
111
111
  length, bpm, key, artist, title = file.to_s.gsub('.mp3', '').split(' - ')
112
112
  headers = { 'Authorization' => "Token: #{@rcfile.api_access_token}" }
113
- body = { title: title, type: 'loop', content: { artist_name: artist, bpm: bpm, key: key, bar_count: length, loop_type: "Instrumental Song" }, loop: loop_high, loop_low: loop_low, artwork: artwork, published: 'true' }
113
+ body = { title: title.gsub!('.wav',''), type: 'loop', content: { artist_name: artist, bpm: bpm, key: key, bar_count: length, loop_type: "Instrumental Song" }, loop: loop_high, loop_low: loop_low, artwork: artwork, published: 'true' }
114
114
  options = { headers: headers , body: body }
115
115
  response = self.class.post('/feed_items', options)
116
116
  @loop_ids << response['id']
@@ -1,3 +1,3 @@
1
1
  module Crossfader
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
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.3
4
+ version: 0.0.4
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-02-03 00:00:00.000000000 Z
11
+ date: 2014-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.0.3
143
+ rubygems_version: 2.2.1
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: '["Quickly convert and upload loops for Crossfader.fm"]'