nikki 0.4.0 → 0.4.1
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -7
- data/README.md +2 -1
- data/doc/Generator.html +596 -0
- data/doc/Nikki.html +153 -0
- data/doc/_index.html +137 -0
- data/doc/class_list.html +62 -0
- data/doc/css/common.css +1 -0
- data/doc/css/cucumber.css +227 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/feature_list.html +65 -0
- data/doc/file.README.html +134 -0
- data/doc/file_list.html +64 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +134 -0
- data/doc/js/app.js +219 -0
- data/doc/js/cucumber.js +305 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +85 -0
- data/doc/requirements/step_transformers.html +140 -0
- data/doc/requirements/tags.html +193 -0
- data/doc/requirements.html +132 -0
- data/doc/tag_list.html +65 -0
- data/doc/top-level-namespace.html +128 -0
- data/lib/nikki/version.rb +1 -1
- data/lib/nikki.rb +7 -7
- metadata +25 -4
- data/TODO.md +0 -6
- data/tags +0 -37
data/lib/nikki.rb
CHANGED
@@ -6,11 +6,11 @@ require 'fileutils'
|
|
6
6
|
|
7
7
|
# @author Brandon Pittman
|
8
8
|
# This is the main class that interfaces with Thor's methods and does all the heavy lifting for Nikki.
|
9
|
+
# It's a bit of a "God" object. Sorries.
|
9
10
|
class Generator < Thor
|
10
11
|
|
11
12
|
desc "setup", "Creates new Nikki and config files."
|
12
|
-
#
|
13
|
-
# @note This methods creates the ".nikki" directory, config file and journal file.
|
13
|
+
# This methods creates the ".nikki" directory, config file and journal file.
|
14
14
|
def setup
|
15
15
|
create_path
|
16
16
|
create_file
|
@@ -56,11 +56,11 @@ class Generator < Thor
|
|
56
56
|
option :print, :aliases => :p, :type => :boolean, :banner => "Prints nikki's config settings."
|
57
57
|
option :latest, :aliases => :l, :type => :boolean, :banner => "Prints latest journal entries."
|
58
58
|
# Configure Nikki's settings
|
59
|
-
# @
|
60
|
-
# @
|
61
|
-
# @
|
62
|
-
# @
|
63
|
-
# @
|
59
|
+
# @param --editor [String] (read_config[:editor]) Sets Nikki's editor to open journal file
|
60
|
+
# @param --yesterday Set `settings[:updated]` to yesterday
|
61
|
+
# @param --today Set `settings[:updated]` to today
|
62
|
+
# @param --print Prints Nikki's configuration settings to STDOUT
|
63
|
+
# @param --latest Prints Nikki's latest entries to STDOUT
|
64
64
|
def config
|
65
65
|
settings = read_config
|
66
66
|
settings[:editor] = options[:editor] || read_config[:editor]
|
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.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Pittman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -108,8 +108,30 @@ files:
|
|
108
108
|
- License.txt
|
109
109
|
- README.md
|
110
110
|
- Rakefile
|
111
|
-
- TODO.md
|
112
111
|
- bin/nikki
|
112
|
+
- doc/Generator.html
|
113
|
+
- doc/Nikki.html
|
114
|
+
- doc/_index.html
|
115
|
+
- doc/class_list.html
|
116
|
+
- doc/css/common.css
|
117
|
+
- doc/css/cucumber.css
|
118
|
+
- doc/css/full_list.css
|
119
|
+
- doc/css/style.css
|
120
|
+
- doc/feature_list.html
|
121
|
+
- doc/file.README.html
|
122
|
+
- doc/file_list.html
|
123
|
+
- doc/frames.html
|
124
|
+
- doc/index.html
|
125
|
+
- doc/js/app.js
|
126
|
+
- doc/js/cucumber.js
|
127
|
+
- doc/js/full_list.js
|
128
|
+
- doc/js/jquery.js
|
129
|
+
- doc/method_list.html
|
130
|
+
- doc/requirements.html
|
131
|
+
- doc/requirements/step_transformers.html
|
132
|
+
- doc/requirements/tags.html
|
133
|
+
- doc/tag_list.html
|
134
|
+
- doc/top-level-namespace.html
|
113
135
|
- features/new_entry.feature
|
114
136
|
- features/random.feature
|
115
137
|
- features/step_definitions/new_entry.steps.rb
|
@@ -120,7 +142,6 @@ files:
|
|
120
142
|
- nikki.gemspec
|
121
143
|
- spec/nikki_spec.rb
|
122
144
|
- spec/spec_helper.rb
|
123
|
-
- tags
|
124
145
|
- test/tc_nikki.rb
|
125
146
|
homepage: http://github.com/brandonpittman/nikki
|
126
147
|
licenses:
|
data/TODO.md
DELETED
data/tags
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
|
2
|
-
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
|
3
|
-
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
|
4
|
-
!_TAG_PROGRAM_NAME Exuberant Ctags //
|
5
|
-
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
|
6
|
-
!_TAG_PROGRAM_VERSION 5.8 //
|
7
|
-
Generator lib/nikki.rb /^class Generator < Thor$/;" c
|
8
|
-
Nikki lib/nikki/version.rb /^module Nikki$/;" m
|
9
|
-
NikkiTest test/tc_nikki.rb /^class NikkiTest < MiniTest::Unit::TestCase$/;" c
|
10
|
-
config lib/nikki.rb /^ def config$/;" f class:Generator
|
11
|
-
config_file lib/nikki.rb /^ def config_file$/;" f class:Generator
|
12
|
-
config_file_exist? lib/nikki.rb /^ def config_file_exist?$/;" f class:Generator
|
13
|
-
create_config_file lib/nikki.rb /^ def create_config_file$/;" f class:Generator
|
14
|
-
create_file lib/nikki.rb /^ def create_file$/;" f class:Generator
|
15
|
-
create_path lib/nikki.rb /^ def create_path$/;" f class:Generator
|
16
|
-
editor lib/nikki.rb /^ def editor$/;" f class:Generator
|
17
|
-
file features/step_definitions/reveal_file.steps.rb /^def file$/;" f
|
18
|
-
file lib/nikki.rb /^ def file$/;" f class:Generator
|
19
|
-
file_exist? lib/nikki.rb /^ def file_exist?$/;" f class:Generator
|
20
|
-
last_updated lib/nikki.rb /^ def last_updated$/;" f class:Generator
|
21
|
-
latest lib/nikki.rb /^ def latest$/;" f class:Generator
|
22
|
-
leap_year? lib/nikki.rb /^ def leap_year?$/;" f class:Generator
|
23
|
-
marked lib/nikki.rb /^ def marked$/;" f class:Generator
|
24
|
-
months_with_names lib/nikki.rb /^ def months_with_names$/;" f class:Generator
|
25
|
-
new lib/nikki.rb /^ def new(*args)$/;" f class:Generator
|
26
|
-
open lib/nikki.rb /^ def open$/;" f class:Generator
|
27
|
-
path lib/nikki.rb /^ def path$/;" f class:Generator
|
28
|
-
read_config lib/nikki.rb /^ def read_config$/;" f class:Generator
|
29
|
-
read_file lib/nikki.rb /^ def read_file$/;" f class:Generator
|
30
|
-
setup lib/nikki.rb /^ def setup$/;" f class:Generator
|
31
|
-
test_file_exist? test/tc_nikki.rb /^ def test_file_exist?$/;" f class:NikkiTest
|
32
|
-
test_read_config test/tc_nikki.rb /^ def test_read_config$/;" f class:NikkiTest
|
33
|
-
test_updated_yesterday? test/tc_nikki.rb /^ def test_updated_yesterday?$/;" f class:NikkiTest
|
34
|
-
today lib/nikki.rb /^ def today$/;" f class:Generator
|
35
|
-
updated_yesterday? lib/nikki.rb /^ def updated_yesterday?$/;" f class:Generator
|
36
|
-
write_config lib/nikki.rb /^ def write_config(hash)$/;" f class:Generator
|
37
|
-
write_file lib/nikki.rb /^ def write_file(hash)$/;" f class:Generator
|