picky-generators 3.1.13 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/picky-generators/generators/client/sinatra.rb +11 -10
- data/lib/picky-generators/generators/server/sinatra.rb +3 -4
- data/prototypes/all_in_one/sinatra/app.rb +4 -0
- data/prototypes/server/sinatra/spec/spec_helper.rb +1 -0
- data/spec/lib/picky-generators/generators/client/sinatra_spec.rb +1 -1
- data/spec/lib/picky-generators/generators/server/sinatra_spec.rb +1 -1
- metadata +10 -11
- data/prototypes/server/sinatra/Gemfile +0 -27
@@ -1,7 +1,7 @@
|
|
1
1
|
module Picky
|
2
2
|
|
3
3
|
module Generators
|
4
|
-
|
4
|
+
|
5
5
|
module Client
|
6
6
|
|
7
7
|
# Generates a new Picky Sinatra Client Example.
|
@@ -10,11 +10,11 @@ module Picky
|
|
10
10
|
# > picky-generate sinatra_client my_lovely_sinatra
|
11
11
|
#
|
12
12
|
class Sinatra < Picky::Generators::Base
|
13
|
-
|
13
|
+
|
14
14
|
def initialize identifier, name, *args
|
15
15
|
super identifier, name, 'client/sinatra', *args
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
#
|
19
19
|
#
|
20
20
|
def generate
|
@@ -24,16 +24,17 @@ module Picky
|
|
24
24
|
exclaim "\"#{name}\" is a great project name! Have fun :)\n"
|
25
25
|
exclaim ""
|
26
26
|
exclaim "Next steps:"
|
27
|
-
exclaim "cd #{name}"
|
28
|
-
exclaim "bundle install"
|
29
|
-
exclaim "unicorn -p 3000 # (optional) Or use your favorite web server."
|
27
|
+
exclaim "1. cd #{name}"
|
28
|
+
exclaim "2. bundle install"
|
29
|
+
exclaim "3. unicorn -p 3000 # (optional) Or use your favorite web server."
|
30
|
+
exclaim "4. open http://localhost:3000"
|
30
31
|
exclaim ""
|
31
32
|
end
|
32
|
-
|
33
|
+
|
33
34
|
end
|
34
|
-
|
35
|
+
|
35
36
|
end
|
36
|
-
|
37
|
+
|
37
38
|
end
|
38
|
-
|
39
|
+
|
39
40
|
end
|
@@ -26,10 +26,9 @@ module Picky
|
|
26
26
|
exclaim ""
|
27
27
|
exclaim "Next steps:"
|
28
28
|
exclaim "1. cd #{name}"
|
29
|
-
exclaim "2.
|
30
|
-
exclaim "3.
|
31
|
-
exclaim "4.
|
32
|
-
exclaim "5. rake todo # (optional) shows you where Picky needs input from you"
|
29
|
+
exclaim "2. rake index"
|
30
|
+
exclaim "3. unicorn -c unicorn.rb"
|
31
|
+
exclaim "4. rake todo # (optional) shows you where Picky needs input from you"
|
33
32
|
exclaim " # if you want to define your own search."
|
34
33
|
end
|
35
34
|
|
@@ -23,7 +23,7 @@ describe Picky::Generators::Client::Sinatra do
|
|
23
23
|
|
24
24
|
describe "generate" do
|
25
25
|
it "should do things in order" do
|
26
|
-
@sinatra.should_receive(:exclaim).
|
26
|
+
@sinatra.should_receive(:exclaim).twice.ordered # Initial explanation
|
27
27
|
@sinatra.should_receive(:create_target_directory).once.ordered
|
28
28
|
@sinatra.should_receive(:copy_all_files).once.ordered
|
29
29
|
@sinatra.should_receive(:exclaim).at_least(7).times.ordered # Some user steps to do
|
@@ -26,7 +26,7 @@ describe Picky::Generators::Server::Sinatra do
|
|
26
26
|
@sinatra.should_receive(:exclaim).once.ordered # Initial explanation
|
27
27
|
@sinatra.should_receive(:create_target_directory).once.ordered
|
28
28
|
@sinatra.should_receive(:copy_all_files).twice.ordered
|
29
|
-
@sinatra.should_receive(:exclaim).at_least(
|
29
|
+
@sinatra.should_receive(:exclaim).at_least(8).times.ordered # Some user steps to do
|
30
30
|
|
31
31
|
@sinatra.generate
|
32
32
|
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.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-10-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70283009048380 !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: *70283009048380
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: picky
|
27
|
-
requirement: &
|
27
|
+
requirement: &70283009077000 !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.2.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70283009077000
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: picky-client
|
38
|
-
requirement: &
|
38
|
+
requirement: &70283009076200 !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.2.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70283009076200
|
47
47
|
description: Generators for Picky.
|
48
48
|
email: florian.hanke+picky-generators@gmail.com
|
49
49
|
executables:
|
@@ -109,7 +109,6 @@ files:
|
|
109
109
|
- prototypes/server/shared/unicorn.rb
|
110
110
|
- prototypes/server/sinatra/app.rb
|
111
111
|
- prototypes/server/sinatra/config.ru
|
112
|
-
- prototypes/server/sinatra/Gemfile
|
113
112
|
- prototypes/server/sinatra/log/README
|
114
113
|
- prototypes/server/sinatra/log/unicorn.stderr.log
|
115
114
|
- prototypes/server/sinatra/log/unicorn.stdout.log
|
@@ -141,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
140
|
version: '0'
|
142
141
|
requirements: []
|
143
142
|
rubyforge_project: http://rubyforge.org/projects/picky
|
144
|
-
rubygems_version: 1.8.
|
143
|
+
rubygems_version: 1.8.11
|
145
144
|
signing_key:
|
146
145
|
specification_version: 3
|
147
146
|
summary: Generators for Picky the Ruby Search Engine.
|
@@ -1,27 +0,0 @@
|
|
1
|
-
source :gemcutter
|
2
|
-
|
3
|
-
# Gems required by Picky.
|
4
|
-
#
|
5
|
-
gem 'picky', '~> 3.0'
|
6
|
-
gem 'rake'
|
7
|
-
gem 'rack'
|
8
|
-
gem 'rack_fast_escape', '2009.06.24' # Optional.
|
9
|
-
gem 'text'
|
10
|
-
gem 'yajl-ruby', :require => 'yajl'
|
11
|
-
|
12
|
-
# Should be optional, but isn't yet.
|
13
|
-
#
|
14
|
-
gem 'activesupport', '~> 3.0', :require => 'active_support/core_ext'
|
15
|
-
gem 'activerecord', '~> 3.0', :require => 'active_record'
|
16
|
-
|
17
|
-
# Required by your project.
|
18
|
-
#
|
19
|
-
gem 'sinatra'
|
20
|
-
gem 'unicorn'
|
21
|
-
gem 'mysql' # Project specific.
|
22
|
-
gem 'redis' # Project specific.
|
23
|
-
|
24
|
-
group :test do
|
25
|
-
gem 'picky-client', '~> 3.0'
|
26
|
-
gem 'rspec'
|
27
|
-
end
|