picky-generators 2.7.0 → 3.0.0.pre1
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.
- data/lib/picky-generators/generators/selector.rb +11 -5
- data/lib/picky-generators/generators/server/sinatra.rb +41 -0
- data/lib/picky-generators.rb +1 -0
- data/prototypes/server/empty_unicorn/app/application.rb +1 -1
- data/prototypes/server/shared_unicorn/Gemfile +2 -2
- data/prototypes/server/shared_unicorn/Rakefile +1 -1
- data/prototypes/server/shared_unicorn/app/logging.rb +3 -3
- data/prototypes/server/shared_unicorn/config.ru +2 -2
- data/prototypes/server/shared_unicorn/{unicorn.ru → unicorn.rb} +1 -1
- data/prototypes/server/sinatra/Gemfile +28 -0
- data/prototypes/server/sinatra/Rakefile +6 -0
- data/prototypes/server/sinatra/app.rb +48 -0
- data/prototypes/server/sinatra/config.ru +14 -0
- data/prototypes/server/sinatra/data/development/library.csv +540 -0
- data/prototypes/server/sinatra/data/production/library.csv +540 -0
- data/prototypes/server/sinatra/data/test/library.csv +540 -0
- data/prototypes/server/sinatra/log/README +0 -0
- data/prototypes/server/sinatra/log/unicorn.stderr.log +98 -0
- data/prototypes/server/sinatra/log/unicorn.stdout.log +62 -0
- data/prototypes/server/sinatra/spec/integration_spec.rb +28 -0
- data/prototypes/server/sinatra/spec/spec_helper.rb +5 -0
- data/prototypes/server/sinatra/tmp/pids/README +1 -0
- data/prototypes/server/sinatra/unicorn.rb +17 -0
- data/prototypes/server/unicorn/Rakefile +1 -1
- data/prototypes/server/unicorn/app/application.rb +7 -2
- data/prototypes/server/unicorn/spec/integration_spec.rb +2 -2
- data/prototypes/server/unicorn/spec/spec_helper.rb +2 -2
- data/spec/lib/picky-generators/generators/selector_spec.rb +3 -1
- data/spec/lib/picky-generators/generators/server/sinatra_spec.rb +35 -0
- metadata +25 -8
File without changes
|
@@ -0,0 +1,98 @@
|
|
1
|
+
I, [2011-08-07T19:44:32.570326 #13862] INFO -- : listening on addr=0.0.0.0:8080 fd=5
|
2
|
+
I, [2011-08-07T19:44:32.570869 #13862] INFO -- : Refreshing Gem list
|
3
|
+
worker=0 spawning...
|
4
|
+
worker=1 spawning...
|
5
|
+
worker=2 spawning...
|
6
|
+
master process ready
|
7
|
+
worker=0 spawned pid=13864
|
8
|
+
worker=1 spawned pid=13865
|
9
|
+
worker=0 ready
|
10
|
+
worker=1 ready
|
11
|
+
worker=2 spawned pid=13866
|
12
|
+
worker=2 ready
|
13
|
+
reaped #<Process::Status: pid 13866 exit 0> worker=2
|
14
|
+
reaped #<Process::Status: pid 13865 exit 0> worker=1
|
15
|
+
reaped #<Process::Status: pid 13864 exit 0> worker=0
|
16
|
+
master complete
|
17
|
+
I, [2011-08-07T19:45:29.818891 #13916] INFO -- : listening on addr=0.0.0.0:8080 fd=5
|
18
|
+
I, [2011-08-07T19:45:29.822904 #13916] INFO -- : Refreshing Gem list
|
19
|
+
worker=0 spawning...
|
20
|
+
worker=1 spawning...
|
21
|
+
worker=2 spawning...
|
22
|
+
master process ready
|
23
|
+
worker=0 spawned pid=13917
|
24
|
+
worker=1 spawned pid=13918
|
25
|
+
worker=1 ready
|
26
|
+
worker=0 ready
|
27
|
+
worker=2 spawned pid=13919
|
28
|
+
worker=2 ready
|
29
|
+
reaped #<Process::Status: pid 13919 exit 0> worker=2
|
30
|
+
reaped #<Process::Status: pid 13918 exit 0> worker=1
|
31
|
+
reaped #<Process::Status: pid 13917 exit 0> worker=0
|
32
|
+
master complete
|
33
|
+
I, [2011-08-07T19:47:59.882771 #14141] INFO -- : listening on addr=0.0.0.0:8080 fd=5
|
34
|
+
I, [2011-08-07T19:47:59.899987 #14141] INFO -- : Refreshing Gem list
|
35
|
+
worker=0 spawning...
|
36
|
+
worker=1 spawning...
|
37
|
+
worker=2 spawning...
|
38
|
+
worker=0 spawned pid=14142
|
39
|
+
worker=0 ready
|
40
|
+
master process ready
|
41
|
+
worker=1 spawned pid=14143
|
42
|
+
worker=1 ready
|
43
|
+
worker=2 spawned pid=14144
|
44
|
+
worker=2 ready
|
45
|
+
reaped #<Process::Status: pid 14144 exit 0> worker=2
|
46
|
+
reaped #<Process::Status: pid 14143 exit 0> worker=1
|
47
|
+
reaped #<Process::Status: pid 14142 exit 0> worker=0
|
48
|
+
master complete
|
49
|
+
I, [2011-08-07T19:48:25.294568 #14153] INFO -- : listening on addr=0.0.0.0:8080 fd=5
|
50
|
+
I, [2011-08-07T19:48:25.295306 #14153] INFO -- : Refreshing Gem list
|
51
|
+
worker=0 spawning...
|
52
|
+
worker=1 spawning...
|
53
|
+
worker=2 spawning...
|
54
|
+
master process ready
|
55
|
+
worker=0 spawned pid=14154
|
56
|
+
worker=0 ready
|
57
|
+
worker=1 spawned pid=14155
|
58
|
+
worker=1 ready
|
59
|
+
worker=2 spawned pid=14156
|
60
|
+
worker=2 ready
|
61
|
+
127.0.0.1 - - [07/Aug/2011 19:49:56] "GET /books?query=b HTTP/1.1" 200 59 0.2489
|
62
|
+
127.0.0.1 - - [07/Aug/2011 19:49:56] "GET /books?query=b HTTP/1.1" 200 59 0.2517
|
63
|
+
127.0.0.1 - - [07/Aug/2011 19:49:57] "GET /books?query=b HTTP/1.1" 200 59 0.1334
|
64
|
+
127.0.0.1 - - [07/Aug/2011 19:49:57] "GET /books?query=b HTTP/1.1" 200 59 0.1352
|
65
|
+
127.0.0.1 - - [07/Aug/2011 19:49:58] "GET /books?query=b HTTP/1.1" 200 58 0.0009
|
66
|
+
127.0.0.1 - - [07/Aug/2011 19:49:58] "GET /books?query=b HTTP/1.1" 200 58 0.0015
|
67
|
+
reaped #<Process::Status: pid 14156 exit 0> worker=2
|
68
|
+
reaped #<Process::Status: pid 14155 exit 0> worker=1
|
69
|
+
reaped #<Process::Status: pid 14154 exit 0> worker=0
|
70
|
+
master complete
|
71
|
+
I, [2011-08-07T19:51:12.474331 #14416] INFO -- : listening on addr=0.0.0.0:8080 fd=5
|
72
|
+
I, [2011-08-07T19:51:12.506839 #14416] INFO -- : Refreshing Gem list
|
73
|
+
worker=0 spawning...
|
74
|
+
worker=1 spawning...
|
75
|
+
worker=2 spawning...
|
76
|
+
master process ready
|
77
|
+
worker=0 spawned pid=14417
|
78
|
+
worker=1 spawned pid=14418
|
79
|
+
worker=0 ready
|
80
|
+
worker=1 ready
|
81
|
+
worker=2 spawned pid=14419
|
82
|
+
worker=2 ready
|
83
|
+
127.0.0.1 - - [07/Aug/2011 19:51:19] "GET /books?query=b HTTP/1.1" 200 204 0.1864
|
84
|
+
127.0.0.1 - - [07/Aug/2011 19:51:19] "GET /books?query=b HTTP/1.1" 200 204 0.1890
|
85
|
+
127.0.0.1 - - [07/Aug/2011 19:51:22] "GET /books?query=b HTTP/1.1" 200 204 0.1394
|
86
|
+
127.0.0.1 - - [07/Aug/2011 19:51:22] "GET /books?query=b HTTP/1.1" 200 204 0.1415
|
87
|
+
127.0.0.1 - - [07/Aug/2011 19:51:23] "GET /books?query=b HTTP/1.1" 200 204 0.0011
|
88
|
+
127.0.0.1 - - [07/Aug/2011 19:51:23] "GET /books?query=b HTTP/1.1" 200 204 0.0018
|
89
|
+
127.0.0.1 - - [07/Aug/2011 19:51:23] "GET /books?query=b HTTP/1.1" 200 204 0.0012
|
90
|
+
127.0.0.1 - - [07/Aug/2011 19:51:23] "GET /books?query=b HTTP/1.1" 200 204 0.0025
|
91
|
+
127.0.0.1 - - [07/Aug/2011 19:51:24] "GET /books?query=b HTTP/1.1" 200 204 0.0010
|
92
|
+
127.0.0.1 - - [07/Aug/2011 19:51:24] "GET /books?query=b HTTP/1.1" 200 204 0.0017
|
93
|
+
127.0.0.1 - - [07/Aug/2011 19:51:25] "GET /books?query=b HTTP/1.1" 200 204 0.0013
|
94
|
+
127.0.0.1 - - [07/Aug/2011 19:51:25] "GET /books?query=b HTTP/1.1" 200 204 0.0023
|
95
|
+
reaped #<Process::Status: pid 14419 exit 0> worker=2
|
96
|
+
reaped #<Process::Status: pid 14418 exit 0> worker=1
|
97
|
+
reaped #<Process::Status: pid 14417 exit 0> worker=0
|
98
|
+
master complete
|
@@ -0,0 +1,62 @@
|
|
1
|
+
Loaded picky with environment 'development' in /Users/admin/temp/picky/generators/prototypes/server/sinatra on Ruby 1.9.2.
|
2
|
+
Loaded picky with environment 'development' in /Users/admin/temp/picky/generators/prototypes/server/sinatra on Ruby 1.9.2.
|
3
|
+
Loaded picky with environment 'development' in /Users/admin/temp/picky/generators/prototypes/server/sinatra on Ruby 1.9.2.
|
4
|
+
Loaded picky with environment 'development' in /Users/admin/temp/picky/generators/prototypes/server/sinatra on Ruby 1.9.2.
|
5
|
+
Loaded picky with environment 'development' in /Users/admin/temp/picky/generators/prototypes/server/sinatra on Ruby 1.9.2.
|
6
|
+
19:51:13: "development:books:title": Starting serial data preparation.
|
7
|
+
19:51:13: "development:books:title": => /Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/prepared_title_index.txt.
|
8
|
+
19:51:13: "development:books:title": Finished serial data preparation.
|
9
|
+
19:51:13: "development:books:title:exact": Loading prepared data into memory.
|
10
|
+
19:51:13: "development:books:title:exact": Caching from intermediate in-memory index.
|
11
|
+
19:51:13: "development:books:title:partial": Generating partial index for index.
|
12
|
+
19:51:13: "development:books:title:partial": Caching from intermediate in-memory index.
|
13
|
+
19:51:13: "development:books:title:exact": Dumping data.
|
14
|
+
19:51:13: "development:books:title:exact": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/title_exact_inverted.json).
|
15
|
+
19:51:13: "development:books:title:exact": => Picky::Backend::File::Marshal(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/title_exact_similarity.dump).
|
16
|
+
19:51:13: "development:books:title:exact": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/title_exact_weights.json).
|
17
|
+
19:51:13: "development:books:title:exact": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/title_exact_configuration.json).
|
18
|
+
19:51:13: "development:books:title:partial": Dumping data.
|
19
|
+
19:51:13: "development:books:title:partial": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/title_partial_inverted.json).
|
20
|
+
19:51:13: "development:books:title:partial": => Picky::Backend::File::Marshal(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/title_partial_similarity.dump).
|
21
|
+
19:51:13: "development:books:title:partial": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/title_partial_weights.json).
|
22
|
+
19:51:13: "development:books:title:partial": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/title_partial_configuration.json).
|
23
|
+
19:51:13: "development:books:title": Caching finished.
|
24
|
+
19:51:13: "development:books:author": Starting serial data preparation.
|
25
|
+
19:51:13: "development:books:author": => /Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/prepared_author_index.txt.
|
26
|
+
19:51:13: "development:books:author": Finished serial data preparation.
|
27
|
+
19:51:13: "development:books:author:exact": Loading prepared data into memory.
|
28
|
+
19:51:13: "development:books:author:exact": Caching from intermediate in-memory index.
|
29
|
+
19:51:13: "development:books:author:partial": Generating partial index for index.
|
30
|
+
19:51:13: "development:books:author:partial": Caching from intermediate in-memory index.
|
31
|
+
19:51:13: "development:books:author:exact": Dumping data.
|
32
|
+
19:51:13: "development:books:author:exact": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/author_exact_inverted.json).
|
33
|
+
19:51:13: "development:books:author:exact": => Picky::Backend::File::Marshal(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/author_exact_similarity.dump).
|
34
|
+
19:51:13: "development:books:author:exact": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/author_exact_weights.json).
|
35
|
+
19:51:13: "development:books:author:exact": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/author_exact_configuration.json).
|
36
|
+
19:51:13: "development:books:author:partial": Dumping data.
|
37
|
+
19:51:13: "development:books:author:partial": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/author_partial_inverted.json).
|
38
|
+
19:51:13: "development:books:author:partial": => Picky::Backend::File::Marshal(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/author_partial_similarity.dump).
|
39
|
+
19:51:13: "development:books:author:partial": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/author_partial_weights.json).
|
40
|
+
19:51:13: "development:books:author:partial": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/author_partial_configuration.json).
|
41
|
+
19:51:13: "development:books:author": Caching finished.
|
42
|
+
19:51:13: "development:books:year": Starting serial data preparation.
|
43
|
+
19:51:13: "development:books:year": => /Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/prepared_year_index.txt.
|
44
|
+
19:51:13: "development:books:year": Finished serial data preparation.
|
45
|
+
19:51:13: "development:books:year:exact": Loading prepared data into memory.
|
46
|
+
19:51:13: "development:books:year:exact": Caching from intermediate in-memory index.
|
47
|
+
19:51:13: "development:books:year:partial": Generating partial index for index.
|
48
|
+
19:51:13: "development:books:year:partial": Caching from intermediate in-memory index.
|
49
|
+
19:51:13: "development:books:year:exact": Dumping data.
|
50
|
+
19:51:13: "development:books:year:exact": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/year_exact_inverted.json).
|
51
|
+
19:51:13: "development:books:year:exact": => Picky::Backend::File::Marshal(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/year_exact_similarity.dump).
|
52
|
+
19:51:13: "development:books:year:exact": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/year_exact_weights.json).
|
53
|
+
19:51:13: "development:books:year:exact": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/year_exact_configuration.json).
|
54
|
+
19:51:13: "development:books:year:partial": Dumping data.
|
55
|
+
19:51:13: "development:books:year:partial": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/year_partial_inverted.json).
|
56
|
+
19:51:13: "development:books:year:partial": => Picky::Backend::File::Marshal(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/year_partial_similarity.dump).
|
57
|
+
19:51:13: "development:books:year:partial": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/year_partial_weights.json).
|
58
|
+
19:51:13: "development:books:year:partial": => Picky::Backend::File::JSON(/Users/admin/temp/picky/generators/prototypes/server/sinatra/index/development/books/year_partial_configuration.json).
|
59
|
+
19:51:13: "development:books:year": Caching finished.
|
60
|
+
19:51:13: "development:books:title": Loading index from cache.
|
61
|
+
19:51:13: "development:books:author": Loading index from cache.
|
62
|
+
19:51:13: "development:books:year": Loading index from cache.
|
@@ -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_for_tests
|
10
|
+
Picky::Indexes.load_from_cache
|
11
|
+
end
|
12
|
+
|
13
|
+
let(:books) { Picky::TestClient.new(BookSearch, :path => '/books') }
|
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 @@
|
|
1
|
+
Temporary pids of Unicorn servers.
|
@@ -0,0 +1,17 @@
|
|
1
|
+
listen '0.0.0.0:8080'
|
2
|
+
pid 'tmp/pids/unicorn.pid'
|
3
|
+
preload_app true
|
4
|
+
stderr_path 'log/unicorn.stderr.log'
|
5
|
+
stdout_path 'log/unicorn.stdout.log'
|
6
|
+
timeout 10
|
7
|
+
worker_processes 3
|
8
|
+
|
9
|
+
# TODO Decide if you want to use the Unicorn killing trick. (Good with large data sets)
|
10
|
+
#
|
11
|
+
# After forking, the GC is disabled, because we
|
12
|
+
# kill off the workers after x requests and fork
|
13
|
+
# new ones – so the GC doesn't run.
|
14
|
+
#
|
15
|
+
# after_fork do |_, _|
|
16
|
+
# GC.disable
|
17
|
+
# end
|
@@ -5,7 +5,12 @@
|
|
5
5
|
#
|
6
6
|
# Questions? Mail me, IRC #picky, the google group, http://github.com/floere/picky/wiki.
|
7
7
|
#
|
8
|
-
class PickySearch < Application
|
8
|
+
class PickySearch < Picky::Application
|
9
|
+
|
10
|
+
# So we don't have to write Picky::
|
11
|
+
# in front of everything.
|
12
|
+
#
|
13
|
+
include Picky
|
9
14
|
|
10
15
|
# How text is indexed. Move to Index block to make it index specific.
|
11
16
|
#
|
@@ -21,7 +26,7 @@ class PickySearch < Application
|
|
21
26
|
maximum_tokens: 5, # Amount of tokens used in a search (5 = default).
|
22
27
|
substitutes_characters_with: CharacterSubstituters::WestEuropean.new # Normalizes special user input, Ä -> Ae, ñ -> n etc.
|
23
28
|
|
24
|
-
books_index =
|
29
|
+
books_index = Indexes::Memory.new :books do
|
25
30
|
source Sources::CSV.new(:title, :author, :year, file: "data/#{PICKY_ENVIRONMENT}/library.csv")
|
26
31
|
category :title,
|
27
32
|
similarity: Similarity::DoubleMetaphone.new(3), # Default is no similarity.
|
@@ -6,8 +6,8 @@ require 'picky-client/spec'
|
|
6
6
|
describe 'Integration Tests' do
|
7
7
|
|
8
8
|
before(:all) do
|
9
|
-
Indexes.index_for_tests
|
10
|
-
Indexes.load_from_cache
|
9
|
+
Picky::Indexes.index_for_tests
|
10
|
+
Picky::Indexes.load_from_cache
|
11
11
|
end
|
12
12
|
|
13
13
|
let(:books) { Picky::TestClient.new(PickySearch, :path => '/books') }
|
@@ -21,7 +21,9 @@ describe Picky::Generators::Selector do
|
|
21
21
|
it "should not raise if a generator is available" do
|
22
22
|
lambda { @selector.generator_for('unicorn_server', 'some_project') }.should_not raise_error
|
23
23
|
end
|
24
|
-
|
24
|
+
it "should not raise if a generator is available" do
|
25
|
+
lambda { @selector.generator_for('sinatra_server', 'some_project') }.should_not raise_error
|
26
|
+
end
|
25
27
|
it "should raise if a generator is not available" do
|
26
28
|
lambda { @selector.generator_for('blarf', 'gnorf') }.should raise_error(Picky::Generators::NotFoundException)
|
27
29
|
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
#
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Picky::Generators::Server::Sinatra do
|
6
|
+
|
7
|
+
before(:each) do
|
8
|
+
@sinatra = Picky::Generators::Server::Sinatra.new :sinatra_server, 'sinatra_server_dir_name'
|
9
|
+
@sinatra.stub! :exclaim
|
10
|
+
end
|
11
|
+
|
12
|
+
context "after initialize" do
|
13
|
+
it 'has the right identifier' do
|
14
|
+
@sinatra.identifier.should == :sinatra_server
|
15
|
+
end
|
16
|
+
it 'has the right name' do
|
17
|
+
@sinatra.name.should == 'sinatra_server_dir_name'
|
18
|
+
end
|
19
|
+
it 'has the right prototype dir' do
|
20
|
+
@sinatra.prototype_basedir.should == File.expand_path('../../../../../../prototypes/server/sinatra', __FILE__)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "generate" do
|
25
|
+
it "should do things in order" do
|
26
|
+
@sinatra.should_receive(:exclaim).once.ordered # Initial explanation
|
27
|
+
@sinatra.should_receive(:create_target_directory).once.ordered
|
28
|
+
@sinatra.should_receive(:copy_all_files)
|
29
|
+
@sinatra.should_receive(:exclaim).at_least(9).times.ordered # Some user steps to do
|
30
|
+
|
31
|
+
@sinatra.generate
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: picky-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version:
|
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-
|
13
|
+
date: 2011-08-07 00:00:00 +10:00
|
14
14
|
default_executable: picky-generate
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - ~>
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
35
|
+
version: 3.0.0.pre1
|
36
36
|
type: :runtime
|
37
37
|
version_requirements: *id002
|
38
38
|
- !ruby/object:Gem::Dependency
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - ~>
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
46
|
+
version: 3.0.0.pre1
|
47
47
|
type: :runtime
|
48
48
|
version_requirements: *id003
|
49
49
|
description: Generators for Picky.
|
@@ -60,6 +60,7 @@ files:
|
|
60
60
|
- lib/picky-generators/generators/not_found_exception.rb
|
61
61
|
- lib/picky-generators/generators/selector.rb
|
62
62
|
- lib/picky-generators/generators/server/empty_unicorn.rb
|
63
|
+
- lib/picky-generators/generators/server/sinatra.rb
|
63
64
|
- lib/picky-generators/generators/server/unicorn.rb
|
64
65
|
- lib/picky-generators.rb
|
65
66
|
- prototypes/client/sinatra/app.rb
|
@@ -88,7 +89,21 @@ files:
|
|
88
89
|
- prototypes/server/shared_unicorn/script/console
|
89
90
|
- prototypes/server/shared_unicorn/tmp/pids/README
|
90
91
|
- prototypes/server/shared_unicorn/tmp/README
|
91
|
-
- prototypes/server/shared_unicorn/unicorn.
|
92
|
+
- prototypes/server/shared_unicorn/unicorn.rb
|
93
|
+
- prototypes/server/sinatra/app.rb
|
94
|
+
- prototypes/server/sinatra/config.ru
|
95
|
+
- prototypes/server/sinatra/data/development/library.csv
|
96
|
+
- prototypes/server/sinatra/data/production/library.csv
|
97
|
+
- prototypes/server/sinatra/data/test/library.csv
|
98
|
+
- prototypes/server/sinatra/Gemfile
|
99
|
+
- prototypes/server/sinatra/log/README
|
100
|
+
- prototypes/server/sinatra/log/unicorn.stderr.log
|
101
|
+
- prototypes/server/sinatra/log/unicorn.stdout.log
|
102
|
+
- prototypes/server/sinatra/Rakefile
|
103
|
+
- prototypes/server/sinatra/spec/integration_spec.rb
|
104
|
+
- prototypes/server/sinatra/spec/spec_helper.rb
|
105
|
+
- prototypes/server/sinatra/tmp/pids/README
|
106
|
+
- prototypes/server/sinatra/unicorn.rb
|
92
107
|
- prototypes/server/unicorn/app/application.rb
|
93
108
|
- prototypes/server/unicorn/data/development/library.csv
|
94
109
|
- prototypes/server/unicorn/data/production/library.csv
|
@@ -99,6 +114,7 @@ files:
|
|
99
114
|
- spec/lib/picky-generators/generators/base_spec.rb
|
100
115
|
- spec/lib/picky-generators/generators/client/sinatra_spec.rb
|
101
116
|
- spec/lib/picky-generators/generators/selector_spec.rb
|
117
|
+
- spec/lib/picky-generators/generators/server/sinatra_spec.rb
|
102
118
|
- spec/lib/picky-generators/generators/server/unicorn_spec.rb
|
103
119
|
- bin/picky-generate
|
104
120
|
has_rdoc: true
|
@@ -119,9 +135,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
136
|
none: false
|
121
137
|
requirements:
|
122
|
-
- - "
|
138
|
+
- - ">"
|
123
139
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
140
|
+
version: 1.3.1
|
125
141
|
requirements: []
|
126
142
|
|
127
143
|
rubyforge_project: http://rubyforge.org/projects/picky
|
@@ -133,4 +149,5 @@ test_files:
|
|
133
149
|
- spec/lib/picky-generators/generators/base_spec.rb
|
134
150
|
- spec/lib/picky-generators/generators/client/sinatra_spec.rb
|
135
151
|
- spec/lib/picky-generators/generators/selector_spec.rb
|
152
|
+
- spec/lib/picky-generators/generators/server/sinatra_spec.rb
|
136
153
|
- spec/lib/picky-generators/generators/server/unicorn_spec.rb
|