lastfmiefy 0.1.0 → 0.2.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +19 -4
- data/lib/lastfmiefy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e1e59613731694569ff75bdf06c12c0cf66ea9b
|
|
4
|
+
data.tar.gz: a92ad9904215367a9d362586763d73c00463c229
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fbc22af390d4f50ed041e341b57f72f52289e110e1451a7513131501c7194b4e6cdfa71038a87835d46371249713915a51d70b9a5f9482121ec25ad1e6d3a799
|
|
7
|
+
data.tar.gz: 3478b497fb3e0b1ec3fa6dc20de01e6ac53e330bcfc7347a2d4c7a7982b2cfb3e105b5b3b4ab0a91354cd784cbae9328fbf47c51b9bd4cd76ac2fb40922aad60
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Lastfmiefy
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
3
|
+
A Ruby gem for Last.fm Web Services(v2.0)
|
|
6
4
|
|
|
7
5
|
## Installation
|
|
8
6
|
|
|
@@ -22,7 +20,10 @@ Or install it yourself as:
|
|
|
22
20
|
|
|
23
21
|
## Usage
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
To fetch artists
|
|
24
|
+
Lastfmiefy::Client::Core.artists('YOUR_API_KEY',{ country: 'spain' })
|
|
25
|
+
To fetch albums
|
|
26
|
+
Lastfmiefy::Client::Core.albums('YOUR_API_KEY',{ country: 'rj' ] })
|
|
26
27
|
|
|
27
28
|
## Development
|
|
28
29
|
|
|
@@ -30,14 +31,28 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
|
30
31
|
|
|
31
32
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
32
33
|
|
|
34
|
+
## Test
|
|
35
|
+
bundle exec rspec spec/
|
|
36
|
+
|
|
33
37
|
## compromises/shortcuts
|
|
38
|
+
|
|
34
39
|
Authentication is not implemented as the two API's in challenge don't require one as per the last.fm documentation
|
|
35
40
|
Assumes and handles only one format (JSON in this case)
|
|
41
|
+
Gem implements only two webservice methods buts extendable to all the methods exposed by last.fm webservice.
|
|
36
42
|
|
|
37
43
|
## Contributing
|
|
38
44
|
|
|
39
45
|
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lastfmiefy.
|
|
40
46
|
|
|
47
|
+
## Pre-requisites
|
|
48
|
+
Ruby (2.1.0, 2.2.1, 2.4.1)
|
|
49
|
+
|
|
50
|
+
## Local setup
|
|
51
|
+
a) git clone https://github.com/elitenomad/lastfmiefy.git
|
|
52
|
+
b) cd lastfmiefy
|
|
53
|
+
c) bundle install
|
|
54
|
+
d) To runs specs, bundle exec rspec spec/
|
|
55
|
+
|
|
41
56
|
## License
|
|
42
57
|
|
|
43
58
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/lastfmiefy/version.rb
CHANGED