trk 0.1.0 → 0.1.1
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 +4 -4
- data/README.md +22 -17
- data/lib/trk/cli.rb +8 -0
- data/lib/trk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feddb773ec28d36aad912b704ca488b29d2f6b12ee35db61207f2e8876e55b96
|
4
|
+
data.tar.gz: ab1b844add9cec346e27370f60243e533b83ca5742edef3c190e4bff3cd49f1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03f8dd4d1590db3f4e5174dcb7e03b60dc2770994bced3301175f843151ae97c659c93c379504e65572e07541c92721094a4486285ba3f7e1d52551577a641ea
|
7
|
+
data.tar.gz: 2046e11599329a9759b71865543a8f44a895f119727f652d78a53e26249a1519a8080b2ebad6a2edd2d6f9ee18561b90f5f5be74b80f9f7a9ae2bc9416c98fb2
|
data/README.md
CHANGED
@@ -34,46 +34,51 @@ For other files we need to link to specific file
|
|
34
34
|
# config/initializers/result.rb
|
35
35
|
```
|
36
36
|
|
37
|
-
# Development
|
38
|
-
|
39
|
-
Run without installing the gem
|
40
|
-
```
|
41
|
-
bundle exec exe/trk pull
|
42
|
-
```
|
43
|
-
|
44
37
|
## Installation
|
45
38
|
|
46
|
-
```
|
47
|
-
gem build trk.gemspec
|
48
|
-
gem install trk-0.1.0.gem
|
49
|
-
```
|
50
|
-
|
51
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
52
|
-
|
53
39
|
Install the gem and add to the application's Gemfile by executing:
|
54
40
|
|
55
41
|
```bash
|
56
|
-
bundle add
|
42
|
+
bundle add trk
|
57
43
|
```
|
58
44
|
|
59
45
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
60
46
|
|
61
47
|
```bash
|
62
|
-
gem install
|
48
|
+
gem install trk
|
63
49
|
```
|
64
50
|
|
65
51
|
## Usage
|
66
52
|
|
67
|
-
|
53
|
+
Pull code in all repos under `~/trk.tools/*/*`
|
54
|
+
```
|
55
|
+
trk pull
|
56
|
+
```
|
68
57
|
|
69
58
|
## Development
|
70
59
|
|
60
|
+
Run without installing the gem
|
61
|
+
```
|
62
|
+
bundle exec exe/trk pull
|
63
|
+
```
|
64
|
+
|
71
65
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
72
66
|
|
73
67
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
74
68
|
|
75
69
|
## Contributing
|
76
70
|
|
71
|
+
Build
|
72
|
+
|
73
|
+
```
|
74
|
+
gem build trk.gemspec
|
75
|
+
```
|
76
|
+
install locally and publish
|
77
|
+
```
|
78
|
+
gem install trk-0.1.0.gem
|
79
|
+
gem push trk-0.1.0.gem
|
80
|
+
```
|
81
|
+
|
77
82
|
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/trk. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/trk/blob/main/CODE_OF_CONDUCT.md).
|
78
83
|
|
79
84
|
## License
|
data/lib/trk/cli.rb
CHANGED
@@ -18,6 +18,14 @@ module Trk
|
|
18
18
|
|
19
19
|
if status.success?
|
20
20
|
puts "✅ Git pull successful in: #{dir}"
|
21
|
+
_stdout, stderr, status = Open3.capture3("git push")
|
22
|
+
if status.success?
|
23
|
+
puts "✅ Git pull successful in: #{dir}"
|
24
|
+
else
|
25
|
+
puts "❌ Git push failed in: #{dir}\n#{stderr}"
|
26
|
+
puts "Opening shell for manual fix. Type 'exit' when done."
|
27
|
+
system('PS1="trk pull paused on [$(basename $(pwd))]$ " bash --norc')
|
28
|
+
end
|
21
29
|
else
|
22
30
|
puts "❌ Git pull failed in: #{dir}\n#{stderr}"
|
23
31
|
puts "Opening shell for manual fix. Type 'exit' when done."
|
data/lib/trk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dusan Orlovic
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|