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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5194e490defa536f8c60e03f8a514cd34a0b9792a1c2e7bea2fff8abcf232f6
4
- data.tar.gz: 4af2896b0e37dc9b562d0e607e119f32bd59bdec8b2d0ad0e1345240bb0cd37a
3
+ metadata.gz: 5faba9107743469c7a7092eb483b103136dda81252fb7dbf4ed9d2abadc0c9cb
4
+ data.tar.gz: 7c5898c2f6c5de58c73cc99b38a00537164ceeb7575b944df857ddbed75a8d86
5
5
  SHA512:
6
- metadata.gz: 241cf1d02337a0adec166a7cba3e418e62028e40e591ba818ac7e8aa82e1877c6cc9b0fc5c50f368647589782c3fbaf5ff34729aeeebf02c5d4e270684bd196d
7
- data.tar.gz: 23fd4df87b2721df587ee5077c057770db56c2ad4d7de240ee4dee64c5004adccf400214546379869973f7344ecfb55121e1d62fff1ef320046346ed83cc31b4
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
@@ -9,7 +9,7 @@ module Toys
9
9
  # Current version of Toys core.
10
10
  # @return [String]
11
11
  #
12
- VERSION = "0.12.1"
12
+ VERSION = "0.12.2"
13
13
  end
14
14
 
15
15
  ## @private deprecated
@@ -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.1
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-17 00:00:00.000000000 Z
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.1/file.CHANGELOG.html
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.1
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: