picky-generators 3.6.16 → 4.0.0pre1

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,8 +20,8 @@ module Picky
20
20
  def generate
21
21
  exclaim "Setting up Picky Sinatra Client/Server \"#{name}\"."
22
22
  create_target_directory
23
- copy_all_files expand_prototype_path('server/shared')
24
23
  copy_all_files
24
+ copy_all_files expand_prototype_path('server/shared')
25
25
  exclaim "\"#{name}\" is a great project name! Have fun :)\n"
26
26
  exclaim ""
27
27
  exclaim "Next steps:"
@@ -2,7 +2,7 @@ source :gemcutter
2
2
 
3
3
  # Gems required by the Picky client.
4
4
  #
5
- gem 'picky-client', '~> 3.0'
5
+ gem 'picky-client', '~> 4.0.0pre1'
6
6
  gem 'i18n'
7
7
  gem 'activesupport', :require => 'active_support/core_ext'
8
8
  gem 'sinatra'
@@ -10,7 +10,7 @@ gem 'haml'
10
10
 
11
11
  # Gems required by the Picky server.
12
12
  #
13
- gem 'picky', '~> 3.0'
13
+ gem 'picky', '~> 4.0.0pre1'
14
14
  gem 'rake'
15
15
  gem 'rack'
16
16
  gem 'rack_fast_escape', '2009.06.24' # Optional.
@@ -19,7 +19,7 @@ gem 'yajl-ruby', :require => 'yajl'
19
19
 
20
20
  # Should be optional, but isn't yet.
21
21
  #
22
- gem 'activerecord', '~> 3.0', :require => 'active_record'
22
+ gem 'activerecord', '~> 3.0', :require => 'active_record'
23
23
 
24
24
  # Required by your project.
25
25
  #
@@ -3,4 +3,9 @@ require 'picky-client/tasks'
3
3
 
4
4
  # Pass in location of your javascript files, default is "javascripts".
5
5
  #
6
- Picky::Tasks::Javascripts.new
6
+ Picky::Tasks::Javascripts.new
7
+
8
+ require 'rspec'
9
+ require 'rspec/core/rake_task'
10
+
11
+ RSpec::Core::RakeTask.new :spec
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ #
3
+ require 'spec_helper'
4
+ require 'picky-client/spec'
5
+
6
+ describe 'Integration Tests' do
7
+
8
+ before(:all) do
9
+ Picky::Indexes.index
10
+ Picky::Indexes.load
11
+ end
12
+
13
+ let(:books) { Picky::TestClient.new(BookSearch, :path => '/search/full') }
14
+
15
+ # Testing a count of results.
16
+ #
17
+ it { books.search('a s').total.should == 42 }
18
+
19
+ # Testing a specific order of result ids.
20
+ #
21
+ it { books.search('alan').ids.should == [449, 259, 307] }
22
+
23
+ # Testing an order of result categories.
24
+ #
25
+ it { books.search('alan').should have_categories(['title'], ['author']) }
26
+ it { books.search('alan p').should have_categories(['title', 'author'], ['author', 'title']) }
27
+
28
+ end
@@ -0,0 +1,6 @@
1
+ ENV['PICKY_ENV'] = 'test'
2
+
3
+ require 'picky'
4
+ require 'rspec'
5
+
6
+ Picky::Loader.load_application
@@ -2,7 +2,7 @@ source :gemcutter
2
2
 
3
3
  # Gems required by the Picky client.
4
4
  #
5
- gem 'picky-client', '~> 3.0'
5
+ gem 'picky-client', '~> 4.0.0pre1'
6
6
  gem 'i18n'
7
7
  gem 'activesupport', :require => 'active_support/core_ext'
8
8
  gem 'sinatra'
@@ -2,7 +2,7 @@ source :gemcutter
2
2
 
3
3
  # Gems required by Picky.
4
4
  #
5
- gem 'picky', '~> 3.0'
5
+ gem 'picky', '~> 4.0.0pre1'
6
6
  gem 'rake'
7
7
  gem 'rack'
8
8
  gem 'rack-mount'
@@ -22,6 +22,6 @@ gem 'mysql' # Project specific.
22
22
  gem 'redis' # Project specific.
23
23
 
24
24
  group :test do
25
- gem 'picky-client', '~> 3.0'
25
+ gem 'picky-client', '~> 4.0.0pre1'
26
26
  gem 'rspec'
27
27
  end
@@ -6,7 +6,7 @@ require 'picky-client/spec'
6
6
  describe 'Integration Tests' do
7
7
 
8
8
  before(:all) do
9
- Picky::Indexes.index_for_tests
9
+ Picky::Indexes.index
10
10
  Picky::Indexes.load
11
11
  end
12
12
 
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picky-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.16
5
- prerelease:
4
+ version: 4.0.0pre1
5
+ prerelease: 5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Florian Hanke
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-01 00:00:00.000000000 Z
12
+ date: 2011-12-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70340706763640 !ruby/object:Gem::Requirement
16
+ requirement: &70278827867220 !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: *70340706763640
24
+ version_requirements: *70278827867220
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: picky
27
- requirement: &70340706763100 !ruby/object:Gem::Requirement
27
+ requirement: &70278827866720 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 3.6.16
32
+ version: 4.0.0pre1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70340706763100
35
+ version_requirements: *70278827866720
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: picky-client
38
- requirement: &70340706762580 !ruby/object:Gem::Requirement
38
+ requirement: &70278827866060 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: 3.6.16
43
+ version: 4.0.0pre1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70340706762580
46
+ version_requirements: *70278827866060
47
47
  description: Generators for Picky.
48
48
  email: florian.hanke+picky-generators@gmail.com
49
49
  executables:
@@ -72,6 +72,8 @@ files:
72
72
  - prototypes/all_in_one/sinatra/log/README
73
73
  - prototypes/all_in_one/sinatra/logging.rb
74
74
  - prototypes/all_in_one/sinatra/Rakefile
75
+ - prototypes/all_in_one/sinatra/spec/integration_spec.rb
76
+ - prototypes/all_in_one/sinatra/spec/spec_helper.rb
75
77
  - prototypes/all_in_one/sinatra/stylesheets/application.css
76
78
  - prototypes/all_in_one/sinatra/stylesheets/picky.css
77
79
  - prototypes/all_in_one/sinatra/views/configure.haml
@@ -135,9 +137,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
137
  required_rubygems_version: !ruby/object:Gem::Requirement
136
138
  none: false
137
139
  requirements:
138
- - - ! '>='
140
+ - - ! '>'
139
141
  - !ruby/object:Gem::Version
140
- version: '0'
142
+ version: 1.3.1
141
143
  requirements: []
142
144
  rubyforge_project: http://rubyforge.org/projects/picky
143
145
  rubygems_version: 1.8.11