picky-client 2.7.0 → 3.0.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
@@ -91,7 +91,7 @@ module Picky
91
91
  def search query, params = {}
92
92
  return {} unless query && !query.empty?
93
93
 
94
- Yajl::Parser.parse search_unparsed(query, params), @@parser_options
94
+ ::Yajl::Parser.parse search_unparsed(query, params), @@parser_options
95
95
  end
96
96
  # Use this method for live queries – they can pass the
97
97
  # JSON string with the results through without parsing.
@@ -109,7 +109,7 @@ module Picky
109
109
 
110
110
  def send_search params = {}
111
111
  params = defaultize params
112
- Net::HTTP.get self.host, "#{self.path}?#{params.to_query}", self.port
112
+ ::Net::HTTP.get self.host, "#{self.path}?#{params.to_query}", self.port
113
113
  end
114
114
 
115
115
  end
@@ -12,7 +12,7 @@ module Picky
12
12
  def initialize rack_app, options = {}
13
13
  super options
14
14
 
15
- @request = Rack::MockRequest.new rack_app
15
+ @request = ::Rack::MockRequest.new rack_app
16
16
  end
17
17
 
18
18
  # Wraps the search method to always extend the result with Convenience.
@@ -17,8 +17,8 @@ module Picky
17
17
  define_method :initialize do |target = 'javascripts'|
18
18
  desc "Copy the latest client javascripts to '#{target}' (Give target dir to Picky::Tasks::Javascripts.new to change)."
19
19
  task :javascripts do
20
- target_dir = File.expand_path target, Dir.pwd
21
- source_dir = File.expand_path '../../../../javascripts/*.min.js', __FILE__
20
+ target_dir = ::File.expand_path target, Dir.pwd
21
+ source_dir = ::File.expand_path '../../../../javascripts/*.min.js', __FILE__
22
22
 
23
23
  puts "Copying javascript files from picky-client gem to target dir #{target_dir}"
24
24
  `cp -i #{source_dir} #{target_dir}`
@@ -1,2 +1,2 @@
1
- require File.expand_path '../tasks/javascripts', __FILE__
2
- load File.expand_path '../tasks/update.rake', __FILE__
1
+ require ::File.expand_path '../tasks/javascripts', __FILE__
2
+ load ::File.expand_path '../tasks/update.rake', __FILE__
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picky-client
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 2.7.0
4
+ prerelease: 6
5
+ version: 3.0.0.pre1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Florian Hanke
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-07 00:00:00 +10:00
13
+ date: 2011-08-07 00:00:00 +10:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -86,9 +86,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
86
  required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  none: false
88
88
  requirements:
89
- - - ">="
89
+ - - ">"
90
90
  - !ruby/object:Gem::Version
91
- version: "0"
91
+ version: 1.3.1
92
92
  requirements: []
93
93
 
94
94
  rubyforge_project: http://rubyforge.org/projects/picky