thyme 0.0.7 → 0.0.8
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/README.md +1 -0
 - data/thyme.rb +3 -2
 - metadata +2 -2
 
    
        data/README.md
    CHANGED
    
    | 
         @@ -34,6 +34,7 @@ Thyme is configurable and extensible.  All configurations live in the 
     | 
|
| 
       34 
34 
     | 
    
         
             
                set :timer, 25*60
         
     | 
| 
       35 
35 
     | 
    
         
             
                set :interval, 1
         
     | 
| 
       36 
36 
     | 
    
         
             
                set :tmux, true
         
     | 
| 
      
 37 
     | 
    
         
            +
                set :tmux_theme "#[fg=mycolor,bg=mycolor]#[fg=%s]%s#[fg=mycolor,bg=mycolor]"
         
     | 
| 
       37 
38 
     | 
    
         | 
| 
       38 
39 
     | 
    
         
             
                option :o, :open, 'open sheets' do
         
     | 
| 
       39 
40 
     | 
    
         
             
                  `vim -O ~/.thyme-today.md ~/.thyme-records.md < \`tty\` > \`tty\``
         
     | 
    
        data/thyme.rb
    CHANGED
    
    | 
         @@ -2,7 +2,7 @@ require 'ruby-progressbar' 
     | 
|
| 
       2 
2 
     | 
    
         
             
            require 'date'
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            class Thyme
         
     | 
| 
       5 
     | 
    
         
            -
              VERSION = '0.0. 
     | 
| 
      
 5 
     | 
    
         
            +
              VERSION = '0.0.8'
         
     | 
| 
       6 
6 
     | 
    
         
             
              CONFIG_FILE = "#{ENV['HOME']}/.thymerc"
         
     | 
| 
       7 
7 
     | 
    
         
             
              PID_FILE = "#{ENV['HOME']}/.thyme-pid"
         
     | 
| 
       8 
8 
     | 
    
         
             
              TMUX_FILE = "#{ENV['HOME']}/.thyme-tmux"
         
     | 
| 
         @@ -12,6 +12,7 @@ class Thyme 
     | 
|
| 
       12 
12 
     | 
    
         
             
                @timer = 25 * 60
         
     | 
| 
       13 
13 
     | 
    
         
             
                @tmux = false
         
     | 
| 
       14 
14 
     | 
    
         
             
                @interval = 1
         
     | 
| 
      
 15 
     | 
    
         
            +
                @tmux_theme = "#[default]#[fg=%s]%s#[default]" 
         
     | 
| 
       15 
16 
     | 
    
         
             
              end
         
     | 
| 
       16 
17 
     | 
    
         | 
| 
       17 
18 
     | 
    
         
             
              def run
         
     | 
| 
         @@ -36,7 +37,7 @@ class Thyme 
     | 
|
| 
       36 
37 
     | 
    
         
             
                  if @tmux
         
     | 
| 
       37 
38 
     | 
    
         
             
                    tmux_file.truncate(0)
         
     | 
| 
       38 
39 
     | 
    
         
             
                    tmux_file.rewind
         
     | 
| 
       39 
     | 
    
         
            -
                    tmux_file.write( 
     | 
| 
      
 40 
     | 
    
         
            +
                    tmux_file.write(@tmux_theme % [fg, title])
         
     | 
| 
       40 
41 
     | 
    
         
             
                    tmux_file.flush
         
     | 
| 
       41 
42 
     | 
    
         
             
                  end
         
     | 
| 
       42 
43 
     | 
    
         
             
                  if before_hook
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: thyme
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.8
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors:
         
     | 
| 
         @@ -9,7 +9,7 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: .
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date: 2013- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2013-10-13 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: ruby-progressbar
         
     |