toys-core 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/toys/context.rb +7 -0
- data/lib/toys/core.rb +1 -1
- data/lib/toys/utils/git_cache.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5faba9107743469c7a7092eb483b103136dda81252fb7dbf4ed9d2abadc0c9cb
|
4
|
+
data.tar.gz: 7c5898c2f6c5de58c73cc99b38a00537164ceeb7575b944df857ddbed75a8d86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d6552a6c22d948d28e90ccbd6690b8eafe82c1157f1b6fea3c8eec75b22e0b3e5d81862f93cb994ae63bbfdf234e6bcf97618da4835848c3a25ada8ca76dd80
|
7
|
+
data.tar.gz: f2843e6e542612b0f22b1619a02d5a9b153bf85584065dce49f520d1e190b0e81bb071378a92f296bf6fb5d1768a1489ba97c856a0757b45ea89873fb30ab504
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### v0.12.2 / 2021-08-30
|
4
|
+
|
5
|
+
* FIXED: Tool context inspect string is no longer overwhelmingly long
|
6
|
+
* FIXED: Fixed an exception in GitCache when updating a changed ref
|
7
|
+
|
3
8
|
### v0.12.1 / 2021-08-17
|
4
9
|
|
5
10
|
* FIXED: Fixed a regression in 0.12.0 where bundler could use the wrong Gemfile if you set a custom context directory
|
data/lib/toys/context.rb
CHANGED
@@ -146,6 +146,13 @@ module Toys
|
|
146
146
|
@__data = data
|
147
147
|
end
|
148
148
|
|
149
|
+
# @private
|
150
|
+
def inspect
|
151
|
+
name = Array(@__data[Key::TOOL_NAME]).join(" ")
|
152
|
+
id = object_id.to_s(16)
|
153
|
+
"#<Toys::Context id=0x#{id} #{name}>"
|
154
|
+
end
|
155
|
+
|
149
156
|
##
|
150
157
|
# The raw arguments passed to the tool, as an array of strings.
|
151
158
|
# This does not include the tool name itself.
|
data/lib/toys/core.rb
CHANGED
data/lib/toys/utils/git_cache.rb
CHANGED
@@ -156,7 +156,7 @@ module Toys
|
|
156
156
|
repo_dir = ::File.join(dir, repo_dir_name)
|
157
157
|
is_sha = commit =~ /^[0-9a-f]{40}$/
|
158
158
|
if update && !is_sha || !commit_exists?(repo_dir, local_commit)
|
159
|
-
git(repo_dir, ["fetch", "--depth=1", "origin", "#{commit}:#{local_commit}"],
|
159
|
+
git(repo_dir, ["fetch", "--depth=1", "--force", "origin", "#{commit}:#{local_commit}"],
|
160
160
|
error_message: "Unable to to fetch commit: #{commit}")
|
161
161
|
end
|
162
162
|
result = git(repo_dir, ["rev-parse", local_commit],
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toys-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Toys-Core is the command line tool framework underlying Toys. It can
|
14
14
|
be used to create command line executables using the Toys DSL and classes.
|
@@ -76,10 +76,10 @@ homepage: https://github.com/dazuma/toys
|
|
76
76
|
licenses:
|
77
77
|
- MIT
|
78
78
|
metadata:
|
79
|
-
changelog_uri: https://dazuma.github.io/toys/gems/toys-core/v0.12.
|
79
|
+
changelog_uri: https://dazuma.github.io/toys/gems/toys-core/v0.12.2/file.CHANGELOG.html
|
80
80
|
source_code_uri: https://github.com/dazuma/toys/tree/main/toys-core
|
81
81
|
bug_tracker_uri: https://github.com/dazuma/toys/issues
|
82
|
-
documentation_uri: https://dazuma.github.io/toys/gems/toys-core/v0.12.
|
82
|
+
documentation_uri: https://dazuma.github.io/toys/gems/toys-core/v0.12.2
|
83
83
|
post_install_message:
|
84
84
|
rdoc_options: []
|
85
85
|
require_paths:
|