1. 30 Jul, 2020 1 commit
    • Markus Koller's avatar
      Fix content validation for existing wiki pages · f85e5897
      Markus Koller authored
      This new validation didn't work correctly yet because of two reasons:
      
      - When loading the wiki page in the `#update` controller action, the
        content in `attributes[:content]` won't be initialized which causes
        `content_changed?` to return true. Our factory on the other hand
        sets `attributes[:content]` as part of its initialization.
      
        We can fix this by using `raw_content` instead in `content_changed?`,
        and verify this in the specs by reloading the existing page from the
        wiki.
      
      - Gollum converts CRLF line endings ("\r\n") to LFs ("\n"), so we also
        need to do this conversion in `WikiPage#content_changed?`.
      f85e5897
  2. 27 Jul, 2020 26 commits
  3. 26 Jul, 2020 5 commits
  4. 25 Jul, 2020 4 commits
  5. 24 Jul, 2020 4 commits