picky-generators 3.6.9 → 3.6.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,34 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
3
  #
4
- irb = 'irb'
5
-
6
- require 'optparse'
7
- options = { :sandbox => false, :irb => irb }
8
- OptionParser.new do |opt|
9
- opt.banner = "Usage: console [environment] [options]"
10
- opt.on("--irb=[#{irb}]", 'Invoke a different irb.') { |v| options[:irb] = v }
11
- opt.parse!(ARGV)
12
- end
13
-
14
- libs = " -r irb/completion"
15
- libs << %( -r "picky" )
16
-
17
- mapping = {
18
- 'p' => 'production',
19
- 'd' => 'development',
20
- 't' => 'test'
21
- }
22
- given_env = ARGV.first
23
- ENV['PICKY_ENV'] = mapping[given_env] || given_env || ENV['PICKY_ENV'] || 'development'
24
-
25
- puts "Use \x1b[1;30mLoader.load_application\x1b[m to load app."
26
- puts "Use \x1b[1;30mPicky::Indexes.load\x1b[m after that to load indexes."
27
- puts "Copy the following line to do just that:"
28
- puts "\x1b[1;30mLoader.load_application; Indexes.load; nil\x1b[m"
29
- puts ""
30
- puts "Now you can for example create a query instance."
31
- puts "\x1b[1;30mbooks = Search.new(Indexes[:books]); nil\x1b[m"
32
- puts "and search on it"
33
- puts "\x1b[1;30mbooks.search 'bla', 20, 0\x1b[m"
34
- exec "#{options[:irb]} #{libs} --simple-prompt"
4
+ require 'picky/console'
5
+ Picky::Console.start *ARGV
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.6.9
4
+ version: 3.6.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70234293048540 !ruby/object:Gem::Requirement
16
+ requirement: &70163099089260 !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: *70234293048540
24
+ version_requirements: *70163099089260
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: picky
27
- requirement: &70234293047980 !ruby/object:Gem::Requirement
27
+ requirement: &70163099088680 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 3.6.9
32
+ version: 3.6.10
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70234293047980
35
+ version_requirements: *70163099088680
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: picky-client
38
- requirement: &70234293047420 !ruby/object:Gem::Requirement
38
+ requirement: &70163099088020 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: 3.6.9
43
+ version: 3.6.10
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70234293047420
46
+ version_requirements: *70163099088020
47
47
  description: Generators for Picky.
48
48
  email: florian.hanke+picky-generators@gmail.com
49
49
  executables: