1. 23 Jun, 2011 1 commit
    • not continually prepending newlines. · 1d58ea1b
      Jack Danger Canty authored
      Prior to this patch every time the schema was regenerated at the end of
      the file it prepended an additional newline character. This made the
      schema slowly creep down the file over time. Finally annoyed me enough
      to fork and fix ;)
  2. 21 Jun, 2011 2 commits
  3. 20 Jun, 2011 1 commit
  4. 06 Jun, 2011 1 commit
  5. 16 Feb, 2011 1 commit
  6. 06 Nov, 2009 1 commit
  7. 23 Oct, 2009 1 commit
  8. 18 Oct, 2009 1 commit
  9. 12 Oct, 2009 1 commit
  10. 21 Aug, 2009 1 commit
  11. 14 Aug, 2009 2 commits
  12. 15 Jul, 2009 1 commit
  13. 02 Jul, 2009 1 commit
  14. 11 Jun, 2009 2 commits
  15. 09 Jun, 2009 2 commits
  16. 19 May, 2009 1 commit
  17. 30 Apr, 2009 4 commits
  18. 28 Mar, 2009 1 commit
  19. 27 Feb, 2009 1 commit
  20. 20 Feb, 2009 1 commit
  21. 14 Feb, 2009 1 commit
  22. 12 Feb, 2009 1 commit
  23. 08 Feb, 2009 1 commit
  24. 04 Feb, 2009 1 commit
  25. 28 Dec, 2008 1 commit
  26. 26 Dec, 2008 1 commit
  27. 25 Dec, 2008 4 commits
  28. 04 Sep, 2008 1 commit
  29. 03 Sep, 2008 1 commit
    • Modified the AnnotateModels module so it only updates models that have changed… · 7f3322e7
      Jerod Santo authored
      Modified the AnnotateModels module so it only updates models that have changed since the last time 'annotate' was run. This is huge for those of us who like to run 'annotate' frequently but don't want to update our VCS for all the models in our application each time we do.
      
      This required a few small modifications to the annotate_one_file, annotate, and do_annotations methods. Comments have been updated to reflect changes.
  30. 17 May, 2008 1 commit
    • output as binary files to enforce "unix command line" mode. · b8180640
      Tim Harper authored
      = In ruby, on windows =
      * A text file with CRLF or LF line endings will be opened with UNIX (LF) line endings in ruby.
      * When writing text to a file, ruby always uses CRLF line endings, regardless of the format of the line endings of the file to begin with.
      
      This causes an automatic conversion of all LF files to CRLF.  If you check out a project that uses unix line endings, then run annotate_models (before this commit), you're SCM is going to want to commit every line of every model.
      
      = In ruby, on *nix / osx =
      - Strings are always read and written as text with LF line endings.
      
      ----
      
      The end result is an endless tug-a-war over line-endings for collaborating windows and *nix developers.
      
      If you specify to write the files as binary ("wb"), both windows and *nix will output the text with LF line endings.  Most editors on windows support this format, and if you're deploying to a linux server, you should be using this format anyways.  This has solved the tug-a-war for me.