picky-client 4.0.7 → 4.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,8 +23,10 @@ module Picky
23
23
 
24
24
  # Sends a request to the Picky server.
25
25
  #
26
+ # Note: Data is JSON encoded.
27
+ #
26
28
  def request request, index_name, data
27
- request.form_data = { :index => index_name, :data => data }
29
+ request.form_data = { :index => index_name, :data => ActiveSupport::JSON.encode(data) }
28
30
  Net::HTTP.new(self.host, self.port).start { |http| http.request request }
29
31
  end
30
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picky-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.7
4
+ version: 4.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yajl-ruby
16
- requirement: &70126973731340 !ruby/object:Gem::Requirement
16
+ requirement: &70266018835560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.7.8
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70126973731340
24
+ version_requirements: *70266018835560
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activesupport
27
- requirement: &70126973729580 !ruby/object:Gem::Requirement
27
+ requirement: &70266018835060 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 3.0.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70126973729580
35
+ version_requirements: *70266018835060
36
36
  description: Picky Client
37
37
  email: florian.hanke+picky-client@gmail.com
38
38
  executables: []