-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
198 additions
and
727 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,8 @@ gem "motion-cocoapods", "~> 1.4.0" | |
gem "motion-sparkle", "~> 0.0.3" | ||
gem "bubble-wrap", "~> 1.4.0" | ||
gem "motion-stump", "~> 0.3.0" | ||
gem "kyan_jukebox", :path => "/Users/duncan/_dev/kyan/gems/kyan_jukebox" | ||
gem 'sugarcube', "~> 1.3.7", :require => [ | ||
'sugarcube-attributedstring', | ||
] | ||
#gem "kyan_jukebox", :path => "/Users/duncan/_dev/kyan/gems/kyan_jukebox" | ||
gem "kyan_jukebox", :git => '[email protected]:kyan/kyan_jukebox.git' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
PATH | ||
remote: /Users/duncan/_dev/kyan/gems/kyan_jukebox | ||
GIT | ||
remote: [email protected]:kyan/kyan_jukebox.git | ||
revision: 2785b19d4b662a73a7fd20a91fbb6352a973d7dd | ||
specs: | ||
kyan_jukebox (0.0.1) | ||
kyan_jukebox (0.1.2) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
activesupport (3.2.15) | ||
activesupport (3.2.16) | ||
i18n (~> 0.6, >= 0.6.4) | ||
multi_json (~> 1.0) | ||
bubble-wrap (1.4.0) | ||
|
@@ -30,17 +31,18 @@ GEM | |
colored (1.2) | ||
escape (0.0.4) | ||
fuzzy_match (2.0.4) | ||
i18n (0.6.5) | ||
i18n (0.6.9) | ||
json (1.8.1) | ||
json_pure (1.8.1) | ||
motion-cocoapods (1.4.0) | ||
cocoapods (>= 0.26.2) | ||
motion-sparkle (0.0.3) | ||
motion-stump (0.3.0) | ||
multi_json (1.8.2) | ||
nap (0.5.1) | ||
nap (0.6.0) | ||
open4 (1.3.0) | ||
rake (10.1.0) | ||
sugarcube (1.3.7) | ||
xcodeproj (0.14.1) | ||
activesupport (~> 3.0) | ||
colored (~> 1.2) | ||
|
@@ -56,3 +58,4 @@ DEPENDENCIES | |
motion-sparkle (~> 0.0.3) | ||
motion-stump (~> 0.3.0) | ||
rake | ||
sugarcube (~> 1.3.7) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
WEBSOCKET_URL = 'ws://jukebox.local:8080' | ||
WEBSOCKET_URL = 'ws://jukebox.local:8080' | ||
|
||
TRACK_TITLE=1 | ||
TRACK_ARTIST=2 | ||
TRACK_ARTWORK_URL=3 | ||
TRACK_ALBUM=4 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
class JukeBoxView < NSView | ||
|
||
attr_accessor :jukebox | ||
|
||
def viewWillDraw | ||
update_title | ||
update_artist | ||
update_album | ||
update_image | ||
|
||
super | ||
end | ||
|
||
def track | ||
jukebox.track unless jukebox.nil? | ||
end | ||
|
||
private | ||
|
||
def update_title | ||
txt = track.title.nil? ? '-' : track.title | ||
viewWithTag(TRACK_TITLE).setStringValue(txt) | ||
end | ||
|
||
def update_artist | ||
txt = track.artist.nil? ? '-' : track.artist | ||
viewWithTag(TRACK_ARTIST).setStringValue(txt) | ||
end | ||
|
||
def update_album | ||
txt = track.album.nil? ? '-' : track.album | ||
viewWithTag(TRACK_ALBUM).setStringValue(txt) | ||
end | ||
|
||
def update_image | ||
image_url = if jukebox.track.artwork_url.nil? | ||
"http://www.appledystopia.com/wp-content/uploads/2013/03/missing-itunes-album-art-icon.png" | ||
else | ||
jukebox.track.artwork_url | ||
end | ||
|
||
Dispatch::Queue.concurrent.async do | ||
url = NSURL.URLWithString(image_url) | ||
image = NSImage.alloc.initWithContentsOfURL(url) | ||
viewWithTag(TRACK_ARTWORK_URL).setImage(image) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
KyanBar - version 1.0.4 | ||
KyanBar - version 1.0.5 | ||
----------------------- | ||
|
||
Updates: | ||
|
||
* Preferences have their own Window | ||
* You can choose whether to recieve updates, and when | ||
* Current Playing Track in dropdown | ||
* Move Settings in dropdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.