projectionist-projects 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a868c2957b55f05de3bef7d628bb4b8f3136443
4
- data.tar.gz: bcc8875894c4bdff41daf7e5ecf38abd72c91fa1
3
+ metadata.gz: 6406e78a9ccbba32340e6894d1b368e038d32b40
4
+ data.tar.gz: 31027e2f382a6c207ff672014b741b4a0c5799f5
5
5
  SHA512:
6
- metadata.gz: 6dedf5a8b48e9cc258cea660390ea71fa0e0cb2fd05dde55f5f44658c89eb4efb0889f2a74cf26d10fb2acc4d282d4d6f74ac31f71a63be977f3044959a241e1
7
- data.tar.gz: dfdbcce0341b4777e79708f8d1bd26569ed4715850d9ac0698dcd7545cdfd11e195f5d28c65850c64be33a0c12ed6122d75ecc71d3644a008694e289d644f2a2
6
+ metadata.gz: b4193c8709ad078c7710f83115f4d843e683f33f320537947040ea72d9b5d21c2b40b1437dfa0ab8c1dfc733f24a7442a7418e29a74387b59ec9b2133306f573
7
+ data.tar.gz: 02f453f1d3c99082e3da5d3140cc19148f5a3fdc167811b3feb7b5dd23e183983db3d42417ad6f5878a6fb69ce45a5d651856f937801e9e3693a420566780e77
data/exe/projection CHANGED
@@ -32,13 +32,6 @@ if ARGV.count > 0
32
32
  parser = OptionParser.new do |opts|
33
33
  opts.banner = "Usage: projection [options]"
34
34
 
35
- opts.on("-l", "--list", "List available projection names") do |list|
36
- @names_to_files.each do |name, path|
37
- puts name
38
- end
39
- exit
40
- end
41
-
42
35
  opts.on("-p", "--path [name]", "Lists out the paths for the matching name") do |value|
43
36
  value ||= ""
44
37
  filtered = @names_to_files.select { |name| name.downcase.include? value.downcase }
@@ -49,15 +42,21 @@ if ARGV.count > 0
49
42
  exit
50
43
  end
51
44
 
45
+ opts.on("-l", "--list", "List available projection names") do |list|
46
+ @names_to_files.each do |name, path|
47
+ puts name
48
+ end
49
+ exit
50
+ end
51
+
52
52
  opts.on_tail("-h", "--help") do
53
53
  puts opts
54
54
  exit
55
55
  end
56
-
57
- copy_projection ARGV.first, @names_to_files[ARGV.first]
58
56
  end
59
57
 
60
58
  parser.parse!
59
+ copy_projection ARGV.first, @names_to_files[ARGV.first]
61
60
  else
62
61
  choose do |menu|
63
62
  menu.prompt = "What type of project? "
@@ -1,5 +1,5 @@
1
1
  module Projectionist
2
2
  module Projects
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.add_dependency "highline"
22
+
21
23
  spec.add_development_dependency "bundler", "~> 1.10"
22
24
  spec.add_development_dependency "rake", "~> 10.0"
23
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: projectionist-projects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy W. Rowe
@@ -10,6 +10,20 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2015-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: highline
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement