freesound_ruby 0.1.1 → 0.1.2

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: 7e48a9bb294fc73104a0fd5187168e0a0b200c6e
4
- data.tar.gz: 8be2c865036aae3e5c89f3ff48a379558910da58
3
+ metadata.gz: 6bdf10dac7328f57f4ca69ce1a302ce13f7317c7
4
+ data.tar.gz: ba834b5fe46d843f6967cc9e9657acc99657a606
5
5
  SHA512:
6
- metadata.gz: 4b3077e7781c0ab4bd53966e7fa17dd85e4bf59df6bca640611cd639cdcf486b7edbcb22aaf1f090b39cc7cfeb544e055e07ecf76931e6d4a516f4249caaf14f
7
- data.tar.gz: eb1f0d7763a28f6fcfac54c3c5db65def2bb5bfe1525f107ae327799ea86455c3d640a67ba49c6b609bef1343df2866a6fb85d93ec660d509f80185fffd504d6
6
+ metadata.gz: 67c99376aa1f0ee082c0c83adb194334a99d480732922e32259449b12169f4216cfb15c14737bdbf2804ce316d0be8aecc42f970af721a8d2daf7f6925520692
7
+ data.tar.gz: 3dfca1879a9616c23a3fff721b3591ab2ff7cc25340cd9ce7b196068f5923576e07ade609307b4c79c5d1e73bd16fdfa0730ed83f9f42c64b9a4ced58dd4a20b
data/.gitignore CHANGED
@@ -48,3 +48,6 @@ doc
48
48
 
49
49
  # VCR Cassettes
50
50
  spec/fixtures/vcr_cassettes
51
+
52
+ # Gem integration script
53
+ script/gem_integration_test.sh
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- freesound_ruby (0.1.1)
4
+ freesound_ruby (0.1.2)
5
5
  activeresource (~> 4.0.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -4,6 +4,7 @@ Consume the [Freesound.org](http://www.freesound.org) API with Ruby.
4
4
 
5
5
  [![Build Status](https://travis-ci.org/alexgenco/freesound_ruby.png)](https://travis-ci.org/alexgenco/freesound_ruby)
6
6
  [![Code Climate](https://codeclimate.com/github/alexgenco/freesound_ruby.png)](https://codeclimate.com/github/alexgenco/freesound_ruby)
7
+ [![Gem Version](https://badge.fury.io/rb/freesound_ruby.png)](http://badge.fury.io/rb/freesound_ruby)
7
8
 
8
9
  ## Installation
9
10
 
@@ -29,7 +29,8 @@ module Freesound
29
29
  end
30
30
 
31
31
  def search(query)
32
- Resources::Sound.get(:search, query_params(q: query))
32
+ params = query_params(q: query)
33
+ Resources::Sound.find(:all, from: :search, params: params)
33
34
  end
34
35
 
35
36
  private
@@ -1,3 +1,3 @@
1
1
  module Freesound
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -7,6 +7,8 @@ describe "searching for a sound" do
7
7
  sounds = VCR.use_cassette(:search_csharp) do
8
8
  client.search("csharp")
9
9
  end
10
+
10
11
  expect(sounds.size).to be > 0
12
+ expect(sounds.first.tags).to respond_to(:to_ary)
11
13
  end
12
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freesound_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Genco