picky-generators 3.5.4 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,9 +23,9 @@ given_env = ARGV.first
|
|
23
23
|
ENV['PICKY_ENV'] = mapping[given_env] || given_env || ENV['PICKY_ENV'] || 'development'
|
24
24
|
|
25
25
|
puts "Use \x1b[1;30mLoader.load_application\x1b[m to load app."
|
26
|
-
puts "Use \x1b[1;
|
26
|
+
puts "Use \x1b[1;30mPicky::Indexes.load\x1b[m after that to load indexes."
|
27
27
|
puts "Copy the following line to do just that:"
|
28
|
-
puts "\x1b[1;30mLoader.load_application; Indexes.
|
28
|
+
puts "\x1b[1;30mLoader.load_application; Indexes.load; nil\x1b[m"
|
29
29
|
puts ""
|
30
30
|
puts "Now you can for example create a query instance."
|
31
31
|
puts "\x1b[1;30mbooks = Search.new(Indexes[:books]); nil\x1b[m"
|
@@ -4,25 +4,25 @@ require 'spec_helper'
|
|
4
4
|
require 'picky-client/spec'
|
5
5
|
|
6
6
|
describe 'Integration Tests' do
|
7
|
-
|
7
|
+
|
8
8
|
before(:all) do
|
9
9
|
Picky::Indexes.index_for_tests
|
10
|
-
Picky::Indexes.
|
10
|
+
Picky::Indexes.load
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
let(:books) { Picky::TestClient.new(BookSearch, :path => '/books') }
|
14
14
|
|
15
15
|
# Testing a count of results.
|
16
16
|
#
|
17
17
|
it { books.search('a s').total.should == 42 }
|
18
|
-
|
18
|
+
|
19
19
|
# Testing a specific order of result ids.
|
20
20
|
#
|
21
21
|
it { books.search('alan').ids.should == [449, 259, 307] }
|
22
|
-
|
22
|
+
|
23
23
|
# Testing an order of result categories.
|
24
24
|
#
|
25
25
|
it { books.search('alan').should have_categories(['title'], ['author']) }
|
26
26
|
it { books.search('alan p').should have_categories(['title', 'author'], ['author', 'title']) }
|
27
|
-
|
27
|
+
|
28
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: picky-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.6.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-11-
|
12
|
+
date: 2011-11-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70254572412380 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,29 +21,29 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70254572412380
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: picky
|
27
|
-
requirement: &
|
27
|
+
requirement: &70254572411860 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.6.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70254572411860
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: picky-client
|
38
|
-
requirement: &
|
38
|
+
requirement: &70254572411360 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 3.
|
43
|
+
version: 3.6.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70254572411360
|
47
47
|
description: Generators for Picky.
|
48
48
|
email: florian.hanke+picky-generators@gmail.com
|
49
49
|
executables:
|