lastfmiefy 0.1.0 → 0.2.0

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: 157e03305975a53af93d647bb02d632285c81def
4
- data.tar.gz: 26c6ab5e14e90a3c4748d08405d35f668e0ccdc4
3
+ metadata.gz: 0e1e59613731694569ff75bdf06c12c0cf66ea9b
4
+ data.tar.gz: a92ad9904215367a9d362586763d73c00463c229
5
5
  SHA512:
6
- metadata.gz: 1e824d2c6bc12b4e4f7cac939fac69b638c395b5391fea99534ca56698502a63a6b206b116078fa69b7a236fe74c02210176e29c03df59e347229312be9ad8f3
7
- data.tar.gz: 52fabd5a260a5e688bef7a10d234ef34aaae6c08344d0cb495ae2b57d1f18d8bf538c018d03f844e2ebf47e9c1490267f4b26ed93439df0673f356d49ca122d1
6
+ metadata.gz: fbc22af390d4f50ed041e341b57f72f52289e110e1451a7513131501c7194b4e6cdfa71038a87835d46371249713915a51d70b9a5f9482121ec25ad1e6d3a799
7
+ data.tar.gz: 3478b497fb3e0b1ec3fa6dc20de01e6ac53e330bcfc7347a2d4c7a7982b2cfb3e105b5b3b4ab0a91354cd784cbae9328fbf47c51b9bd4cd76ac2fb40922aad60
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lastfmiefy (0.1.0)
4
+ lastfmiefy (0.2.0)
5
5
  rest-client (~> 2.0.2)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Lastfmiefy
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/lastfmiefy`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Write usage instructions here
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).
@@ -1,3 +1,3 @@
1
1
  module Lastfmiefy
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lastfmiefy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pranava Swaroop