nikki 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a7d629d3ac3b7521921c207ef919f3a2662c930
4
- data.tar.gz: a9e340257084abb4e845b95a30a6118579825b33
3
+ metadata.gz: c40c9c4562e207e3d8f9179bcd34d745cce2b43b
4
+ data.tar.gz: 651e1c69cc48b99f1105ab42c0b0385b73ca7e69
5
5
  SHA512:
6
- metadata.gz: fa98582611c8d2d742106e56082d0149c965ccbdaf66e48a29af2773ce33845be96548a99057fcae598ff66ebaf27df54514c7fdda771a7823a160a1bc8efcc9
7
- data.tar.gz: e660cec908c7f9dcf881be72db0e774535af73c7381e1911449a40090ec9a14bee62627018c1c496ad381b790c9a429cbf6add9374a445e60a04bda0ac7a3162
6
+ metadata.gz: 74541758559f4e62b58d645f5fbad10afcada542f7b40fc0b43457fa8ef1748065d6a851c262bb98cfa65a522c70495ce52e4fc1705e10c67ffded04c5c2381e
7
+ data.tar.gz: 583d7e3a83e1acfc1202b0ef7c03a5a3f4cfb23be689009b3f0fc27a649817483495f79fe70a8f87606819939a3b997be260057fe2334d8384b3b32bb606dae7
data/README.md CHANGED
@@ -25,25 +25,20 @@ Or install it yourself as:
25
25
 
26
26
  ## Usage
27
27
 
28
- nikki config # Change Nikki's settings.
29
28
  nikki help [COMMAND] # Describe available commands or one specific command
30
29
  nikki new ENTRY # Creates a new entry in the Nikki journal.
31
- nikki open # Open current year's journal file in editor.
32
- nikki publish YEAR # Save a MultiMarkdown-formatted version of a Nikki journal.
33
- nikki setup # Creates new Nikki and config files.
30
+ nikki open # Open current year's journal file in Vim.
31
+ nikki export YEAR # Save a MultiMarkdown-formatted version of a Nikki journal.
34
32
 
35
33
  ## Examples
36
34
 
37
35
  ### New entry
38
- nikki new "Brandon Pittman is a super cool guy."
39
36
 
40
- ### Configure Nikki
41
- nikki config --yesterday # Reset last updated `datetime`
42
- nikki config --list # Prints latest entries
37
+ nikki new "Brandon Pittman is a super cool guy."
43
38
 
44
39
  ## Contributing
45
40
 
46
- 1. Fork it ( http://github.com/<my-github-username>/nikki/fork )
41
+ 1. Fork it ( http://github.com/brandonpittman/nikki/fork )
47
42
  2. Create your feature branch (`git checkout -b my-new-feature`)
48
43
  3. Commit your changes (`git commit -am 'Add some feature'`)
49
44
  4. Push to the branch (`git push origin my-new-feature`)
data/lib/nikki.rb CHANGED
@@ -8,8 +8,8 @@ require 'fileutils'
8
8
  # This is the main class that interfaces with Thor's methods and does all the
9
9
  # heavy lifting for Nikki. It's a bit of a "God" object. Sorries.
10
10
  class Generator < Thor
11
- NIKKI_PATH = "#{ENV['HOME']}/.nikki"
12
- NIKKI_FILE = "#{ENV['HOME']}/.nikki/nikki.yaml"
11
+ FileUtils.mkdir_p("#{ENV['HOME']}/.config/nikki")
12
+ NIKKI_FILE = "#{ENV['HOME']}/.config/nikki/nikki.yaml".freeze
13
13
 
14
14
  # @!group Data entry
15
15
  desc 'new ENTRY', 'Creates a new entry in the Nikki journal.'
@@ -63,7 +63,6 @@ class Generator < Thor
63
63
  desc 'export YEAR', 'Export Nikki journal from YEAR as YAML'
64
64
  # @param [String] year of journal entries you wish to export
65
65
  def export(export_year)
66
- export_path = "#{NIKKI_PATH}/nikki_export_#{export_year}.yml"
67
66
  YAML::Store.new(NIKKI_FILE).transaction do |store|
68
67
  store['entries'].each do |entry|
69
68
  if entry.keys[0].year.to_s == export_year
@@ -71,7 +70,5 @@ class Generator < Thor
71
70
  end
72
71
  end
73
72
  end
74
- # IO.write(export_path, yamlize(read_file, year.to_i))
75
- # puts "YAML saved to \"#{export_path}\"."
76
73
  end
77
74
  end
data/lib/nikki/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # Sets version for RubyGems
2
2
  module Nikki
3
3
  # Sets version for RubyGems
4
- VERSION = '0.6.1'
4
+ VERSION = '0.6.2'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nikki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Pittman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-16 00:00:00.000000000 Z
11
+ date: 2016-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  requirements: []
116
116
  rubyforge_project:
117
- rubygems_version: 2.5.2
117
+ rubygems_version: 2.6.2
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: A simple one-line-a-day journaling app.