toys 0.3.11 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -108,7 +108,7 @@ module Toys
108
108
  logger.error "Cannot push the gem when there are uncommited changes"
109
109
  exit(1)
110
110
  end
111
- exit(1) unless yes || confirm("Release #{gemfile}?")
111
+ exit(1) unless yes || confirm("Release #{gemfile}?", default: true)
112
112
  exec(["gem", "push", "pkg/#{gemfile}"])
113
113
  if template.tag
114
114
  exec(["git", "tag", "v#{version}"])
@@ -98,6 +98,7 @@ module Toys
98
98
  desc "Run minitest on the current project."
99
99
 
100
100
  include :exec
101
+ include :gems
101
102
 
102
103
  flag :warnings, "-w", "--[no-]warnings",
103
104
  default: template.warnings,
@@ -106,7 +107,8 @@ module Toys
106
107
  remaining_args :tests, desc: "Paths to the tests to run (defaults to all tests)"
107
108
 
108
109
  to_run do
109
- gem("minitest", *Array(template.gem_version))
110
+ gem "minitest", *Array(template.gem_version)
111
+
110
112
  ruby_args = []
111
113
  unless template.libs.empty?
112
114
  lib_path = template.libs.join(::File::PATH_SEPARATOR)
@@ -115,10 +115,11 @@ module Toys
115
115
  tool(template.name) do
116
116
  desc "Run rdoc on the current project."
117
117
 
118
- include :exec
118
+ include :exec, exit_on_nonzero_status: true
119
+ include :gems
119
120
 
120
121
  to_run do
121
- gem("rdoc", *Array(template.gem_version))
122
+ gem "rdoc", *Array(template.gem_version)
122
123
  require "rdoc"
123
124
 
124
125
  files = []
@@ -137,8 +138,7 @@ module Toys
137
138
  args << "-T" << template.template if template.template
138
139
  args << "-f" << template.generator if template.generator
139
140
 
140
- exec_proc(proc { RDoc::RDoc.new.document(args + files) },
141
- exit_on_nonzero_status: true)
141
+ exec_proc(proc { RDoc::RDoc.new.document(args + files) })
142
142
  end
143
143
  end
144
144
  end
@@ -80,8 +80,10 @@ module Toys
80
80
  tool(template.name) do
81
81
  desc "Run rubocop on the current project."
82
82
 
83
+ include :gems
84
+
83
85
  to_run do
84
- gem("rubocop", *Array(template.gem_version))
86
+ gem "rubocop", *Array(template.gem_version)
85
87
  require "rubocop"
86
88
 
87
89
  cli = ::RuboCop::CLI.new
@@ -163,9 +163,10 @@ module Toys
163
163
 
164
164
  include :exec
165
165
  include :terminal
166
+ include :gems
166
167
 
167
168
  to_run do
168
- gem("yard", *Array(template.gem_version))
169
+ gem "yard", *Array(template.gem_version)
169
170
  require "yard"
170
171
 
171
172
  files = []
@@ -34,5 +34,5 @@ module Toys
34
34
  # Current version of the Toys command line binary
35
35
  # @return [String]
36
36
  #
37
- VERSION = "0.3.11"
37
+ VERSION = "0.4.0"
38
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-02 00:00:00.000000000 Z
11
+ date: 2018-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toys-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.11
19
+ version: 0.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.11
26
+ version: 0.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,33 +72,35 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.55.0
75
+ version: 0.57.2
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.55.0
82
+ version: 0.57.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: yard
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0.9'
89
+ version: 0.9.14
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0.9'
97
- description: Toys is a command line binary that lets you build your own personal suite
98
- of command line tools using a Ruby DSL. Toys handles argument parsing, error reporting,
99
- logging, help text, and many other details for you. It is designed for software
100
- developers, IT specialists, and other power users who want to write and organize
101
- scripts to automate their workflows.
96
+ version: 0.9.14
97
+ description: Toys is a configurable command line tool. Write commands in config files
98
+ using a simple DSL, and Toys will provide the command line binary and take care
99
+ of all the details such as argument parsing, online help, and error reporting. Toys
100
+ is designed for software developers, IT professionals, and other power users who
101
+ want to write and organize scripts to automate their workflows. It can also be used
102
+ as a Rake replacement, providing a more natural command line interface for your
103
+ project's build tasks.
102
104
  email:
103
105
  - dazuma@gmail.com
104
106
  executables:
@@ -146,5 +148,5 @@ rubyforge_project:
146
148
  rubygems_version: 2.7.6
147
149
  signing_key:
148
150
  specification_version: 4
149
- summary: Framework for creating personal command line tools
151
+ summary: A configurable command line tool
150
152
  test_files: []