hiiro 0.1.53 → 0.1.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5b124b6980d905a9d41a47e5f81de7aa5920ba8047168a952fb826a7bf98df2
4
- data.tar.gz: 2fc08d8b0de4bb03678bcf15f07bde9b4e74745260cb2b5c83f1d6601cb3dce1
3
+ metadata.gz: ed4284e83a1b52e665208b5e706de9017e9acfb3eedbcd0e1b265e3719292638
4
+ data.tar.gz: 23dbed41838b15eeaa2f312669da58bd5a2546a0b1cd52b6149b44bf54d7316e
5
5
  SHA512:
6
- metadata.gz: 053f53b20484aa74d612d2948a7c4439ed6b901d2bd7a4d600cabd84c8fd012c7e9903898a69243c3aca7de753ec37a66192d3915337c503c16eb2152075f0a0
7
- data.tar.gz: ae6342874f5bcda420849a100a7830fd910802d76b7302a8d6e41707c5184f5f7029933e54600e1f314c04d37c593c3edfe2a6ab9ac125b5a061fc41e140fbb5
6
+ metadata.gz: 5ea8a092c971853fbf396ab63702dabf56e88abb09ca34ab170d45cf8cec0ae5a561ece441768136780f98b024657b93d9d3adb46174d15354fec6a9d3545d6b
7
+ data.tar.gz: 3677c376b5a84c7da0ffe69c10cddceb9c3c9446bfbee8aa37282a1e1b33cbd20534d98e67d6deacbc62a78480393d7b2238b1bb992a714903d670d9014b14cf
data/lib/hiiro/history.rb CHANGED
@@ -239,7 +239,12 @@ class Hiiro
239
239
  add(**context)
240
240
  end
241
241
 
242
- def add(description: nil, cmd: nil, source: nil, task: nil, subtask: nil, pwd: nil, app: nil)
242
+ def add(
243
+ description: nil, cmd: nil, source: nil, pwd: nil,
244
+ tmux_session: nil, tmux_window: nil, tmux_pane: nil,
245
+ git_branch: nil, git_sha: nil, git_origin_sha: nil, git_worktree: nil,
246
+ task: nil, subtask: nil, app: nil
247
+ )
243
248
  context = gather_context
244
249
 
245
250
  entry_data = {
@@ -249,13 +254,13 @@ class Hiiro
249
254
  'cmd' => cmd,
250
255
  'pwd' => pwd || context[:pwd],
251
256
  'source' => source,
252
- 'tmux_session' => context[:tmux_session],
253
- 'tmux_window' => context[:tmux_window],
254
- 'tmux_pane' => context[:tmux_pane],
255
- 'git_branch' => context[:git_branch],
256
- 'git_sha' => context[:git_sha],
257
- 'git_origin_sha' => context[:git_origin_sha],
258
- 'git_worktree' => context[:git_worktree],
257
+ 'tmux_session' => tmux_session || context[:tmux_session],
258
+ 'tmux_window' => tmux_window || context[:tmux_window],
259
+ 'tmux_pane' => tmux_pane || context[:tmux_pane],
260
+ 'git_branch' => git_branch || context[:git_branch],
261
+ 'git_sha' => git_sha || context[:git_sha],
262
+ 'git_origin_sha' => git_origin_sha || context[:git_origin_sha],
263
+ 'git_worktree' => git_worktree || context[:git_worktree],
259
264
  'task' => task || context[:task],
260
265
  'subtask' => subtask || context[:subtask],
261
266
  'app' => app || context[:app],
data/lib/hiiro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.53"
2
+ VERSION = "0.1.54"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.53
4
+ version: 0.1.54
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota