toys 0.3.11 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +35 -37
- data/builtins/system.rb +1 -1
- data/docs/guide.md +320 -262
- data/lib/toys/templates/gem_build.rb +1 -1
- data/lib/toys/templates/minitest.rb +3 -1
- data/lib/toys/templates/rdoc.rb +4 -4
- data/lib/toys/templates/rubocop.rb +3 -1
- data/lib/toys/templates/yardoc.rb +2 -1
- data/lib/toys/version.rb +1 -1
- metadata +16 -14
@@ -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
|
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)
|
data/lib/toys/templates/rdoc.rb
CHANGED
@@ -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
|
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
|
86
|
+
gem "rubocop", *Array(template.gem_version)
|
85
87
|
require "rubocop"
|
86
88
|
|
87
89
|
cli = ::RuboCop::CLI.new
|
data/lib/toys/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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:
|
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:
|
97
|
-
description: Toys is a command line
|
98
|
-
|
99
|
-
|
100
|
-
developers, IT
|
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:
|
151
|
+
summary: A configurable command line tool
|
150
152
|
test_files: []
|