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.
@@ -2,7 +2,7 @@ require File.expand_path '../app', __FILE__
2
2
 
3
3
  # Load all indexes.
4
4
  #
5
- Picky::Indexes.reload
5
+ Picky::Indexes.load
6
6
 
7
7
  # Use Harakiri middleware to kill unicorn child after X requests.
8
8
  #
@@ -12,7 +12,7 @@ Picky::Loader.load_application
12
12
 
13
13
  # Load the indexes into the memory.
14
14
  #
15
- Picky::Indexes.reload
15
+ Picky::Indexes.load
16
16
 
17
17
  # TODO Decide if you want to use the Unicorn killing trick. (Good with large data sets)
18
18
  #
@@ -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;30mIndexes.load_from_cache\x1b[m after that to load indexes."
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.load_from_cache; nil\x1b[m"
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.load_from_cache
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
@@ -2,7 +2,7 @@ require File.expand_path '../app', __FILE__
2
2
 
3
3
  # Load all indexes.
4
4
  #
5
- Picky::Indexes.reload
5
+ Picky::Indexes.load
6
6
 
7
7
  # Use Harakiri middleware to kill unicorn child after X requests.
8
8
  #
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.5.4
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-13 00:00:00.000000000 Z
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: &70221336483080 !ruby/object:Gem::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: *70221336483080
24
+ version_requirements: *70254572412380
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: picky
27
- requirement: &70221335777300 !ruby/object:Gem::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.5.4
32
+ version: 3.6.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70221335777300
35
+ version_requirements: *70254572411860
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: picky-client
38
- requirement: &2264988460 !ruby/object:Gem::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.5.4
43
+ version: 3.6.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2264988460
46
+ version_requirements: *70254572411360
47
47
  description: Generators for Picky.
48
48
  email: florian.hanke+picky-generators@gmail.com
49
49
  executables: