ayadn 1.0.8 → 1.0.9

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: 06f225381b151b3aff0052e1a18a51ca69c7d56c
4
- data.tar.gz: 95679ba480b2a43a510ea02d1e0c4782aaa899b9
3
+ metadata.gz: 9d6f1195525df083ba3349006e7eae88c3baeb6a
4
+ data.tar.gz: 4475a5194d1f98f9b237c7ac932df116f7b6cd06
5
5
  SHA512:
6
- metadata.gz: 6bbf0b6b7a279928cd39de44514475919335a1467428bbbc96035de702e54c3b2f3285a5c823936c69c370498168d2858cc27bd298a49271fad6ab677270dddf
7
- data.tar.gz: 751f7ea8bb9e6c0b3f02f1768b3a3908b5c3cb44b51f5c92fdceec2621cfc3a52bb81347f23879820344294b6198c6327d733543428b40a26bfe4758db605f2f
6
+ metadata.gz: a20433b793d2076d1d09c77aadb3ab7b52b67a537a5eb41a06de7a0af3abdd184e658fecbec23b3d7dd153502f5a35f730eef8a22dce60de799ed196bf6034d0
7
+ data.tar.gz: 3b0e038387a48c936805c66a362ff9d1c792faed55c5069db963b98b02b0b1d154bb66130a0b410f6c158bc5852d2ce19219a90f108180f1ede6ef1b38c0f58e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.0.9
2
+
3
+ - Fixes the stubborn 'nowplaying' database bug
4
+
1
5
  # 1.0.8
2
6
 
3
7
  - Better error messages/logs (specifically when HTTP errors)
data/lib/ayadn/action.rb CHANGED
@@ -791,6 +791,7 @@ module Ayadn
791
791
 
792
792
  def nowplaying
793
793
  begin
794
+ Databases.close_all
794
795
  abort(Status.error_only_osx) unless Settings.config[:platform] =~ /darwin/
795
796
  itunes = get_track_infos
796
797
  itunes.each do |el|
@@ -799,14 +800,19 @@ module Ayadn
799
800
  @view.clear_screen
800
801
  text_to_post = "#nowplaying '#{itunes.track}' from '#{itunes.album}' by #{itunes.artist}"
801
802
  show_nowplaying(text_to_post)
802
- abort("\nCanceled.\n\n".color(:red)) unless STDIN.getch == ("y" || "Y")
803
+ unless STDIN.getch == ("y" || "Y")
804
+ puts "\nCanceled.\n\n".color(:red)
805
+ exit
806
+ end
803
807
  puts "\n"
804
- post([text_to_post])
808
+ resp = Post.new.post([text_to_post])
809
+ puts Status.yourpost
810
+ @view.show_posted(resp)
805
811
  rescue => e
806
812
  puts Status.wtf
807
813
  Errors.global_error("action/nowplaying", itunes, e)
808
- ensure
809
- Databases.close_all
814
+ # ensure
815
+ # Databases.close_all
810
816
  end
811
817
  end
812
818
 
data/lib/ayadn/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Ayadn
3
- VERSION = "1.0.8"
3
+ VERSION = "1.0.9"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ayadn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dejonckheere