-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
will there be an update to rubygem? #345
Comments
I wasn't planning on releasing a new version. However if someone can confirm that the latest master is in a releasable state then I can look into publishing a new version. |
I removed my previous installation of $ sudo gem uninstall githug as well as the local Then, as a preliminary test, without any edit to the source code as provided here, in Linux Debian 13/trixie and ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-gnu], I run $ git clone https://github.com/Gazler/githug.git
$ cd git_hug/
$ gem build githug.gemspec
$ sudo gem install --local ./githug-0.5.0.gem
Successfully installed githug-0.5.0
Parsing documentation for githug-0.5.0
Installing ri documentation for githug-0.5.0
Done installing documentation for githug after 0 seconds
1 gem installed
$
$ githug
********************************************************************************
* Githug *
********************************************************************************
No githug directory found, do you wish to create one? [yn] y
Welcome to Githug!
Name: init
Level: 1
Difficulty: *
A new directory, `git_hug`, has been created; initialize an empty repository in it. The directory was created as announced (
Edit: I recognized the cause. My screening isn't complete yet. |
Depending where the tool was used, passing level 4 was possible / was not possible because of the different naming convention of the principal branch (of deployment) either git branch -m master if necessary. Because this arguably would be be much more useful if implemented, than the helpful note on the project's Regarding the issue of the naming of the main/master branch, I have to look up my notes again. |
@Gazler I would like to suggest edits to a couple of questions; however prior to working on them, and eventually filing a PR, I would like to get in touch with you. Some of the questions (4, 16, 19, 20, ...) are affected if
instead of difficulty 1
description "The `README` file has been added to your staging area, now commit it."
setup do
repo.init
system "git branch -m master"
FileUtils.touch("README")
repo.add("README")
end
solution do
return false if repo.commits.empty?
true
end
hint do
puts "You must include a message when you commit."
end (cf. local branch here). Other questions (for instance level 03 / My proposal to update the code basis of * The questions appear as (initially) sorted in increasing difficulty expressed by asterisks. This isn't consistently the case (any more), e.g. ** One then equally could imagine an additional question; i.e. in addition to |
Thanks for your efforts with this. We can either explicitly set the branch in the individual levels, or perhaps we could write a local file to The levels weren't necessarily designed to be from easiest to most difficult, but rather ordered so that they made sense, for example, adding before committing, even though neither is more difficult. Happy for these to be re-ordered if you have a different order in mind that makes sense. I believe the integration tests are order dependent, however they could me modified to explicitly be set to a specific level before running the tests. |
@Gazler What happened to the proposal to update There are a couple of levels in |
@nbehrnd I'll look at getting it published this week! |
I just pushed 0.5.1 - let me know if it works ok. |
Thank you for the note, I'm going to let you know the results of my tests soon.
|
I'm not sure if it is because of using Ruby greater than version 3.0 the landing page discourages to use. But while question 10) in Debian 13/trixie worked just fine (githug 0.5.1) $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux trixie/sid
Release: n/a
Codename: trixie
$ ruby --version
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-gnu]
$ git --version
git version 2.43.0 it does not within Xubuntu 22.04 LTS $ githug reset 10
********************************************************************************
* Githug *
********************************************************************************
resetting level
Name: number_of_files_committed
Level: 10
Difficulty: *
There are some files in this repository; how many of them are staged for a commit?
$ git status
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: rubyfile1.rb
new file: rubyfile4.rb
new file: rubyfile5.rb
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: rubyfile5.rb
Untracked files:
(use "git add <file>..." to include in what will be committed)
rubyfile6.rb
rubyfile7.rb
$ githug
********************************************************************************
* Githug *
********************************************************************************
How many files are going to be committed? 3
Sorry, this solution is not quite right!
Name: number_of_files_committed
Level: 10
Difficulty: *
There are some files in this repository; how many of them are staged for a commit?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
$ ruby --version
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]
$ git --version
git version 2.34.1 I have to repeat this the way the landing page recommends it, inside/with the ruby version manager. |
Observation:
At present, githug as available on rubygem is version 0.5.0 which is an upload by November 13, 2016. On the other hand, the last commit to the repository here was October 13, 2023 about 7 years later.
Simultaneously, a couple of issues and other pull requests equally wait in line for some time.
Question:
When will there be a newly tagged version of this program eventually uploaded to rubygem?
The text was updated successfully, but these errors were encountered: