picky-generators 1.1.7 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,7 @@ end
33
33
  # and then populate the result with models (rendered, even).
34
34
  #
35
35
  get '/search/full' do
36
- results = FullBooks.search :query => params[:query], :offset => params[:offset]
36
+ results = FullBooks.search params[:query], :offset => params[:offset]
37
37
  results.extend Picky::Convenience
38
38
  results.populate_with Book do |book|
39
39
  book.to_s
@@ -53,7 +53,7 @@ end
53
53
  # For live results, you'd actually go directly to the search server without taking the detour.
54
54
  #
55
55
  get '/search/live' do
56
- LiveBooks.search :query => params[:query], :offset => params[:offset]
56
+ LiveBooks.search params[:query], :offset => params[:offset]
57
57
  end
58
58
 
59
59
  helpers do
@@ -61,7 +61,7 @@
61
61
  %pre
62
62
  :preserve
63
63
  get '/search/full' do
64
- results = FullBooks.search :query => params[:query], :offset => params[:offset]
64
+ results = FullBooks.search params[:query], :offset => params[:offset]
65
65
  results.extend Picky::Convenience
66
66
  results.populate_with Book do |book|
67
67
  book.to_s
@@ -73,7 +73,7 @@
73
73
  %strong hash
74
74
  with the results:
75
75
  %code
76
- %pre results = FullBooks.search :query => params[:query], :offset => params[:offset]
76
+ %pre results = FullBooks.search params[:query], :offset => params[:offset]
77
77
  %p
78
78
  This part takes the
79
79
  %strong hash
@@ -125,7 +125,7 @@
125
125
  LiveBooks = Picky::Client::Live.new :host => 'localhost', :port => 8080, :path => '/books/live'
126
126
 
127
127
  get '/search/full' do
128
- results = FullBooks.search :query => params[:query], :offset => params[:offset]
128
+ results = FullBooks.search params[:query], :offset => params[:offset]
129
129
 
130
130
  results.extend Picky::Convenience
131
131
  results.populate_with Book do |book|
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
- - 1
8
- - 7
9
- version: 1.1.7
7
+ - 2
8
+ - 0
9
+ version: 1.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Florian Hanke
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-15 00:00:00 +01:00
17
+ date: 2010-12-17 00:00:00 +01:00
18
18
  default_executable: picky-generate
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -40,9 +40,9 @@ dependencies:
40
40
  - !ruby/object:Gem::Version
41
41
  segments:
42
42
  - 1
43
- - 1
44
- - 7
45
- version: 1.1.7
43
+ - 2
44
+ - 0
45
+ version: 1.2.0
46
46
  type: :runtime
47
47
  version_requirements: *id002
48
48
  - !ruby/object:Gem::Dependency
@@ -55,9 +55,9 @@ dependencies:
55
55
  - !ruby/object:Gem::Version
56
56
  segments:
57
57
  - 1
58
- - 1
59
- - 7
60
- version: 1.1.7
58
+ - 2
59
+ - 0
60
+ version: 1.2.0
61
61
  type: :runtime
62
62
  version_requirements: *id003
63
63
  description: Generators for Picky.