initial import of hoe project structure. #1

Closed
wants to merge 1 commit into from

2 participants

@zenspider

This is a bare minimum change to make this gemmable. I simply used Hoe's sow command to create a project of the same name, then moved the files/directories into your project. I moved your top level .rb file into lib and updated the manifest. that's it.

Your todo list:

  • grep -r FIX . and fix them all.
  • Settle on a license. There is a default license section at the bottom of README.txt that conflicts with your COPYING file. (also, my name / org instead of yours).
  • Add VERSION = "x.y.z" within the class of your .rb file. Hoe uses this to track version information.
  • Update History.txt to reflect the reality of your project.

Lemme know if there is anything more I can help with.

@Axel2
Owner

OK, did all you suggested. I think, I must do something else now to make it a gem, right?

I presume, I did not follow the right git workflow. Can you tell me, what would have been the right way? I'm quite familiar with git, but unfortunately not in this case.

Axel

@Axel2 Axel2 closed this Mar 24, 2013
@zenspider

Looks like you pulled in my diffs and did the suggestions from the mailing list in one fell swoop. I think the "github way" would be to have merged my changes via the merge button then done the other changes in small separate commits. shrug Whatever works.

@zenspider

Oh right... and to make it a gem:

  • as needed: Make sure that your manifest is correct, if you added or removed any files. rake check_manifest
  • as needed: rake debug_gem to look at the generated gemspec to make sure that it is correct.
  • as needed: update dependencies in the hoe-spec in the rakefile
  • every time: Update the version constant and the History.txt file.
  • every time: rake release VERSION=x.y.z

You can do a lot with your ~/.hoerc file like set up gem signing, blog and email announcements, etc. Poke at hoe doco for more information.

@Axel2
Owner

rake check_manifest

exits with:
rake aborted!
Command failed with status (1): [diff.exe -du Manifest.txt Manifest.tmp...]

Do you know what's going on?
Whole stdout is:

C:\Dokumente und Einstellungen\Axel\Eigene Dateien\GitHub\fixedpnt.rb>E:\Program
me\Ruby-193-p327\bin\rake check_manifest --trace
** Invoke check_manifest (first_time)
** Invoke clean (first_time)
** Invoke clobber_docs (first_time)
** Execute clobber_docs
rm -rf doc
** Invoke clobber_package (first_time)
** Execute clobber_package
rm -r pkg
** Execute clean
** Execute check_manifest
--- Manifest.txt 2013-03-24 15:54:03 +0000
+++ Manifest.tmp 2013-03-25 07:46:44 +0000
@@ -1,9 +1,9 @@
-.autotest
-LICENSE
-CONTRIBUTORS
-History.txt
-Manifest.txt
-README.txt
-Rakefile
-lib/fixedpnt.rb
-test/test_fixedpnt.rb
+.autotest
+CONTRIBUTORS
+History.txt
+LICENSE
+Manifest.txt
+README.txt
+Rakefile
+lib/fixedpnt.rb
+test/test_fixedpnt.rb
rake aborted!
Command failed with status (1): [diff.exe -du Manifest.txt Manifest.tmp...]
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/file_utils.rb:53:in block in cre
ate_shell_runner'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/file_utils.rb:45:in
call'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/file_utils.rb:45:in sh'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/file_utils_ext.rb:39:in
sh'
E:/Programme/Ruby-193-p327/lib/ruby/gems/1.9.1/gems/hoe-3.5.1/lib/hoe/debug.rb:8
0:in block in check_manifest'
E:/Programme/Ruby-193-p327/lib/ruby/gems/1.9.1/gems/hoe-3.5.1/lib/hoe.rb:856:in
with_config'
E:/Programme/Ruby-193-p327/lib/ruby/gems/1.9.1/gems/hoe-3.5.1/lib/hoe/debug.rb:6
4:in check_manifest'
E:/Programme/Ruby-193-p327/lib/ruby/gems/1.9.1/gems/hoe-3.5.1/lib/hoe/debug.rb:4
8:in
block in define_debug_tasks'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/task.rb:205:in call'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/task.rb:205:in
block in execute'

E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/task.rb:200:in each'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/task.rb:200:in
execute'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/task.rb:158:in block in invoke_w
ith_call_chain'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/monitor.rb:211:in
mon_synchronize'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/task.rb:151:in invoke_with_call_
chain'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/task.rb:144:in
invoke'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/application.rb:116:in invoke_tas
k'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/application.rb:94:in
block (2 le
vels) in top_level'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/application.rb:94:in each'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/application.rb:94:in
block in to
p_level'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/application.rb:133:in standard_e
xception_handling'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/application.rb:88:in
top_level'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/application.rb:66:in block in ru
n'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/application.rb:133:in
standard_e
xception_handling'
E:/Programme/Ruby-193-p327/lib/ruby/1.9.1/rake/application.rb:63:in run'
E:/Programme/Ruby-193-p327/bin/rake:32:in

'
Tasks: TOP => check_manifest

@zenspider
@Axel2
Owner

You are right. I had to use Windows-EOL in manifest.txt. Didn't suppose this to make problems.
Have all done now, gem is released to rubygems.org. Thank you very much for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment