bullit 0.1.1 → 0.1.2p1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '0960865172d22bc2dc9a29a9d01c5be340b54386'
4
- data.tar.gz: 5d96f08fa3c2c1d14a4346793a1ab561c0ead5c8
3
+ metadata.gz: 443313049d92e3234e875b7ae00e0ee106a64c20
4
+ data.tar.gz: 17197a5d178807da92bed766ec01b1782b75b897
5
5
  SHA512:
6
- metadata.gz: 89f38b733d016cc5704c9afd3567de8373230b9b27ac9cf6a67c8e0f529a92149473fab6b48b72f01c1b98cd097daa179b5689812fb8066c4d0b1ab656aa2b28
7
- data.tar.gz: f5f68803ff523ad17621ca39d403845bacf59b51d96895e44cb3d0e1ddeea05d6dc40dc81821831da6522533f90943f78996443d3ecf8e9cfd11e8545a50e638
6
+ metadata.gz: 5152be2a424e3b93aa0da699acb50cfc34886edfee0d2fbd6cfb2c18a2fbaf5ff23fca3e59deffe641f0190b9a89077a231522a8dc79467adcbd935d0af5b2d3
7
+ data.tar.gz: 287f7e634684f225181472e6f0ffdcca6583d0d6872ea6c471638e607dd5fdb4c8627d6132141384d13ee28fe1a690b2b8a9ddf9579b2ec88f1fcdc25101113d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bullit (0.1.1)
4
+ bullit (0.1.2p1)
5
5
  clamp
6
6
  tty-prompt
7
7
  tty-table
data/README.md CHANGED
@@ -1,34 +1,47 @@
1
- # BulletJournal
1
+ # Bullit
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/bullit`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Bullet journals for those who don't get along with notebooks.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ Currently this implements the 'daily spread' concept of a bullet journal.
6
6
 
7
- ## Installation
7
+ You can:
8
+ - Add tasks.
9
+ - Mark tasks as complete.
10
+ - Migrate uncompleted tasks from the previous day.
8
11
 
9
- Add this line to your application's Gemfile:
12
+ ## Installation
10
13
 
11
- ```ruby
12
- gem 'bullit'
14
+ ```bash
15
+ $ gem install bullit
13
16
  ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install bullit
22
-
23
17
  ## Usage
18
+ ```bash
19
+ $ bullit generate today
20
+ ```
21
+ On first run, this will instantiate a `~/.bullit` directory which will hold the YAML files used to store the daily logs.
24
22
 
25
- TODO: Write usage instructions here
23
+ Throughout your day, add new tasks by running
24
+ ```bash
25
+ $ bullit tasks add
26
+ ```
26
27
 
27
- ## Development
28
+ View your tasks with
29
+ ```bash
30
+ $ bullit tasks list
31
+ ```
28
32
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
33
+ and mark your tasks as complete with
34
+ ```
35
+ $ bullit tasks complete <task_number>
36
+ ```
37
+
38
+ The next day, run
39
+ ```bash
40
+ $ bullit generate today
41
+ ```
42
+ To migrate uncompleted tasks from the day before. You will be able to flag tasks as complete in the prompt that will come up, which will stop them from being carried over.
30
43
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
44
+ The generate command can be run over and over again without side effects, so you can place it in a startup script to run at the start of the day.
32
45
 
33
46
  ## Contributing
34
47
 
data/lib/bullit/file.rb CHANGED
@@ -45,8 +45,6 @@ module BulletJournal
45
45
 
46
46
  yesterday_file.write(YAML.dump(file))
47
47
 
48
- binding.pry
49
-
50
48
  if file[:tasks] == {}
51
49
  return nil
52
50
  else
@@ -62,7 +60,7 @@ module BulletJournal
62
60
  def self.add_task(text)
63
61
  file = YAML.load(today_file.read)
64
62
 
65
- if file[:tasks].nil?
63
+ if file[:tasks] == {}
66
64
  file[:tasks] = [ Task.new(text: text).to_h ]
67
65
  else
68
66
  file[:tasks] = today_tasks << Task.new(text: text).to_h
@@ -1,3 +1,3 @@
1
1
  module BulletJournal
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2p1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2p1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomek Nadolny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-09 00:00:00.000000000 Z
11
+ date: 2019-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -149,9 +149,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - ">="
152
+ - - ">"
153
153
  - !ruby/object:Gem::Version
154
- version: '0'
154
+ version: 1.3.1
155
155
  requirements: []
156
156
  rubyforge_project:
157
157
  rubygems_version: 2.6.13