ayadn 2.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1b09b74834052e1267aa323844891a09876e715
4
- data.tar.gz: 2bdb03f76102438274b874cabb81c5af148dcd8f
3
+ metadata.gz: da174c8622fa8afe9b087258eb607a6b318571f9
4
+ data.tar.gz: 1e26899d023d1648e2ba8fb580fae9773ea19664
5
5
  SHA512:
6
- metadata.gz: f4849d039e5cdb5ee8c10e7ff5e5085324a0b4992c9bd40b7051c007fc477a21280ab866dea6d68d0d6f50bd9d92af25280e414b954ef65dfe00f1be80986266
7
- data.tar.gz: faae501b8bfc0e2a676d986d344c471d3a1c983d65730baf4b5148f4491a906155abe43b994d18f6c3e858550e0c85ac3a9190b355c6f8dd398ce556db942fc6
6
+ metadata.gz: d8b3fd22ed3953be2c391488c601bc0e0b533412792275e1a03923226065496f285754e91be70e6df4c75f01f5da041ce566379b6552f8d083557d00b0838165
7
+ data.tar.gz: df991f79f2b95dabfabe6df5ed7f89ba175c8df831e32e8cc66218bfa87f8c88493f10eec12c547ea726c3bcadd8adcf812284ba9bd732817cc1fe1f2be2bbcb
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
- ## 2.0 - 2014-11-15 - 'The Piper At The Gates Of Dawn'
1
+ ## 2.0.1 - 2014-11-17 - 'Nessie'
2
+
3
+ - Windows compatible (under conditions)
4
+ - NowPlaying posts affiliate links
5
+
6
+ ## 2.0.0 - 2014-11-15 - 'The Piper At The Gates Of Dawn'
2
7
 
3
8
  - SQLite database. Means FAST!
4
9
  - Unified style for statuses, questions and alerts
data/Gemfile CHANGED
@@ -8,9 +8,10 @@ group :test do
8
8
  gem 'coveralls', require: false
9
9
  end
10
10
 
11
- # platforms :mswin, :mingw do
12
- # gem "win32console", ">= 1.3.2"
13
- # end
11
+ platforms :mswin, :mingw do
12
+ gem "win32console", ">= 1.3.2"
13
+ gem "windows-pr", ">= 1.2.4"
14
+ end
14
15
 
15
16
  # Specify your gem's dependencies in ayadn.gemspec
16
17
  gemspec
data/doc/02-install.md CHANGED
@@ -14,13 +14,13 @@ Uninstall:
14
14
 
15
15
  ## OS X, LINUX, BSD
16
16
 
17
- If you need to install Ruby it's better to use something like RVM or RBENV.
17
+ Install the Gem, authorize your account: done.
18
18
 
19
- You can of course use the Ruby shipped with your system but it will require root privileges and is not recommended.
19
+ If you need to install Ruby it's better to use something like RVM or RBENV. You can of course use the Ruby shipped with your system but it will require root privileges and is not recommended.
20
20
 
21
21
  ## WINDOWS
22
22
 
23
- Ayadn 1.x isn't compatible with Windows: there's too many issues due to POSIX-dependent tools.
23
+ Requirements: fully ANSI compatible console (example: ConEmu) + Ruby 2.0.0 32bits via RubyInstaller (you may also need the DevKit). Windows support is not 100% stable.
24
24
 
25
25
  ## MIGRATE
26
26
 
@@ -20,6 +20,7 @@ module Ayadn
20
20
  else
21
21
  @custom_text = "\n \n#{options[:text].join(' ')}"
22
22
  end
23
+ @affiliate_suffix = "&at=1l3vtb8&ct=ayadn"
23
24
  end
24
25
 
25
26
  def lastfm options
@@ -227,7 +228,7 @@ module Ayadn
227
228
  'artist' => candidate['artistName'],
228
229
  'track' => candidate['trackName'],
229
230
  'preview' => candidate['previewUrl'],
230
- 'link' => candidate['collectionViewUrl'],
231
+ 'link' => "#{candidate['collectionViewUrl']}#{@affiliate_suffix}",
231
232
  'artwork' => candidate['artworkUrl100'].gsub('100x100', '1200x1200'),
232
233
  'artwork_thumb' => candidate['artworkUrl100'].gsub('100x100', '600x600'),
233
234
  'request' => url,
data/lib/ayadn/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Ayadn
3
- VERSION = "2.0"
3
+ VERSION = "2.0.1"
4
4
  end
data/lib/ayadn.rb CHANGED
@@ -9,4 +9,6 @@ rescue LoadError => e
9
9
  exit
10
10
  end
11
11
 
12
+ Rainbow.enabled = true
13
+
12
14
  require_relative 'ayadn/app'
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ayadn
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.0'
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dejonckheere
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-15 00:00:00.000000000 Z
11
+ date: 2014-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor