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 +4 -4
- data/CHANGELOG.md +6 -1
- data/Gemfile +4 -3
- data/doc/02-install.md +3 -3
- data/lib/ayadn/nowplaying.rb +2 -1
- data/lib/ayadn/version.rb +1 -1
- data/lib/ayadn.rb +2 -0
- data/spec/mock/ayadn.sqlite +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da174c8622fa8afe9b087258eb607a6b318571f9
|
4
|
+
data.tar.gz: 1e26899d023d1648e2ba8fb580fae9773ea19664
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8b3fd22ed3953be2c391488c601bc0e0b533412792275e1a03923226065496f285754e91be70e6df4c75f01f5da041ce566379b6552f8d083557d00b0838165
|
7
|
+
data.tar.gz: df991f79f2b95dabfabe6df5ed7f89ba175c8df831e32e8cc66218bfa87f8c88493f10eec12c547ea726c3bcadd8adcf812284ba9bd732817cc1fe1f2be2bbcb
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
## 2.0 - 2014-11-
|
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
|
-
|
12
|
-
|
13
|
-
|
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
|
-
|
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
|
-
|
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
|
|
data/lib/ayadn/nowplaying.rb
CHANGED
@@ -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
data/lib/ayadn.rb
CHANGED
data/spec/mock/ayadn.sqlite
CHANGED
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:
|
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-
|
11
|
+
date: 2014-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|