torque 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/bin/config +5 -5
  4. data/bin/email +6 -1
  5. data/bin/project +1 -1
  6. data/bin/torque +1 -1
  7. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abb92afe8ffbc8574c523dc0edc68438b75ccdeb
4
- data.tar.gz: 5e0715da5458863001a6c9ff66cfa591704ff830
3
+ metadata.gz: 2f854381b747109eef15b6e25a52269228662c14
4
+ data.tar.gz: c30b8f46bb06b4d603ee239b77334b70dad1316d
5
5
  SHA512:
6
- metadata.gz: 63143235c62b8ddd4b95d6a8b6a654f78b17e4b2e4e9592009a51679eaa7f971cc0542246029938df55b473124bd9d91e49f370ca64cd26cb3a2ce73668c9435
7
- data.tar.gz: f0ebb0b09dda8ae970bcd116eeb78ece99d183a21e625074de6638557efa65b0fd9adab1520ef9afeeeddfe22f8515377e4a38256dbe49cc2e47f9c493f912fd
6
+ metadata.gz: 09f97b9a365ef4445b34b1d4e4c6b0eeed47b9dcf92c45cdafa05a6308fb742ed8b1f81e2f5d6b8c0354a0f6d7d8b5fb3c2ba98a0fc45b1a4513d7e811547cfd
7
+ data.tar.gz: 99722a445aae3779420ab5b018f6b2fede07bb280ba6a4612f099aa2035b95c31e208f72174fba2f6b496cab7d104945f25c211ceb7140dba9b84c42ac0582e1
data/VERSION CHANGED
@@ -1,3 +1,3 @@
1
1
  major:0
2
2
  minor:0
3
- patch:1
3
+ patch:2
data/bin/config CHANGED
@@ -20,10 +20,10 @@ require "#{lib_dir}/torque/project/project_manager"
20
20
  options = {}
21
21
  option_parser = OptionParser.new do |opts|
22
22
 
23
- help_message = "Configures a directory to use Torque."
23
+ help_message = "Configures a directory to use Torque. (This script must be run before generating release notes)"
24
24
  help_message += "\n"
25
25
  help_message += "\nThis script will create a template for .torqueinfo.yaml and set up an output directory. It " \
26
- "will also set up access to the Pivotal Tracker API"
26
+ "will then set up access to the Pivotal Tracker API."
27
27
 
28
28
  opts.banner = "\nUsage:"
29
29
  opts.banner += "\n torque config [options]"
@@ -67,7 +67,7 @@ end
67
67
 
68
68
  # Handles special cases and exceptions
69
69
 
70
- if ARGV.member? "help" || options[:help]
70
+ if ((ARGV.member? "help") || options[:help])
71
71
  puts "(Ran with 'help' option; other options ignored)"
72
72
  puts option_parser
73
73
  exit
@@ -100,7 +100,7 @@ if !options[:token]
100
100
  if !options[:force] && !options[:output_dir] && output_path.exist?
101
101
  puts "ABORTING"
102
102
  puts "The default output directory, #{default_output_dir}, already exists."
103
- puts "(Use -o to choose an existing output directory or create a new one)"
103
+ puts "(Use -o to manually choose an existing output directory or create a new one)"
104
104
  puts "(Use -f to overwrite an existing directory)"
105
105
  exit
106
106
  end
@@ -185,7 +185,7 @@ if should_setup_info
185
185
  }
186
186
  token = token_input.to_s
187
187
 
188
- Torque::Pivotal.new(token).check_token ? break : (puts "Token was invalid. Try again")
188
+ Torque::Pivotal.new(token).check_token ? break : (puts "Token was invalid, try again")
189
189
  end
190
190
 
191
191
  File.open(".torqueinfo.yaml", "a+") do |file|
data/bin/email CHANGED
@@ -35,6 +35,11 @@ option_parser = OptionParser.new do |opts|
35
35
  options[:add] << arg
36
36
  end
37
37
 
38
+ opts.on("-h", "--help", "Displays this help screen") do
39
+ |arg|
40
+ options[:help] = arg
41
+ end
42
+
38
43
  opts.on("-r", "--rm ADDRESS", "Remove an email address from the list") do
39
44
  |arg|
40
45
  options[:rm] << arg
@@ -60,7 +65,7 @@ end
60
65
 
61
66
  # Handles special cases and exceptions
62
67
 
63
- if ARGV.member? "help" || options[:help]
68
+ if ((ARGV.member? "help") || options[:help])
64
69
  puts "(Ran with 'help' option; other options ignored)"
65
70
  puts option_parser
66
71
  exit
@@ -56,7 +56,7 @@ end
56
56
 
57
57
  # Handles special cases and exceptions
58
58
 
59
- if (ARGV.member? "help") || options[:help]
59
+ if ((ARGV.member? "help") || options[:help])
60
60
  puts "(Ran with 'help' option; other options ignored)"
61
61
  puts option_parser
62
62
  exit
data/bin/torque CHANGED
@@ -94,7 +94,7 @@ end
94
94
  begin
95
95
  option_parser.parse!
96
96
 
97
- if (ARGV.member? "help") || options[:help]
97
+ if ((ARGV.member? "help") || options[:help])
98
98
  puts "(Ran with 'help' option; other options ignored)"
99
99
  puts option_parser.help
100
100
  exit
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torque
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nico Adams, Scrimmage
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - '>='
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.14.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '>='
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 0.14.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - '>'
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 2.14.1
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - '>'
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 2.14.1
83
83
  description: Compiles Pivotal Tracker stories into a local document to help generate
84
84
  release notes
85
85
  email: