diary 0.1.2 → 0.1.3
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.
- data/VERSION +1 -1
- data/diary.gemspec +1 -1
- data/lib/diary.rb +1 -0
- data/lib/diary/item.rb +1 -1
- data/lib/diary/post.rb +8 -0
- metadata +2 -2
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            0.1. | 
| 1 | 
            +
            0.1.3
         | 
    
        data/diary.gemspec
    CHANGED
    
    
    
        data/lib/diary.rb
    CHANGED
    
    
    
        data/lib/diary/item.rb
    CHANGED
    
    | @@ -153,7 +153,7 @@ module Diary | |
| 153 153 | 
             
                def self.create(title, path, directory)
         | 
| 154 154 | 
             
                  FileUtils.mkdir_p("#{base_directory}/#{directory}")
         | 
| 155 155 | 
             
                  file = File.new(path, "w+")
         | 
| 156 | 
            -
                  file.puts(" | 
| 156 | 
            +
                  file.puts("---\ntitle: #{title}\n---\n")
         | 
| 157 157 | 
             
                  file.close
         | 
| 158 158 |  | 
| 159 159 | 
             
                  puts "#{Created} #{path}"
         | 
    
        data/lib/diary/post.rb
    CHANGED