dailyprogress 2.0.0 → 2.1.0
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/README.md +4 -1
- data/bin/console +0 -0
- data/exe/{DailyProgress → dailyprogress} +2 -1
- data/lib/DailyProgress/version.rb +1 -1
- data/lib/daily_progress.rb +5 -0
- metadata +5 -8
- data/.gitignore +0 -66
- data/Gemfile.lock +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 203963bd71f82b5d11c57a3075b43bce961abebceab769a06fad8b70da2332a5
|
4
|
+
data.tar.gz: 8305ff8b66c085f34675f0e982732e4bfdc6a19f74aadb5c8d4de094cb7d013c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 509deaa18b7543ceb93ec85cad72e9f6dc0e3f09d44995f7dc362abcc70922008d66c7cc08430bcc587b553aff812df1ac693a8fc9f0b8f6bcea97c3c7aad16e
|
7
|
+
data.tar.gz: fee7a6e8f294b15c7d68e6d676ad3c20a0a9d9cac3c520c34b528538761854d93becae042550d8daa048ac361261428ca450e4e90c6cdbb39edbd7514306e97c
|
data/README.md
CHANGED
@@ -38,11 +38,14 @@ Or install it yourself as:
|
|
38
38
|
2. Call the executable. By default it looks for the vimwiki at the path `$HOME/vimwiki/diary`
|
39
39
|
|
40
40
|
```sh
|
41
|
-
lovepreet@home:~$
|
41
|
+
lovepreet@home:~$ dailyProgress
|
42
42
|
```
|
43
43
|
|
44
44
|
If you have it somewhere else, add the file path as an argument to the executable. The path can be relative.
|
45
45
|
|
46
|
+
```sh
|
47
|
+
lovepreet@home:~$ dailyProgress /path/to/vimwiki/diary
|
48
|
+
```
|
46
49
|
|
47
50
|
## Development
|
48
51
|
|
data/bin/console
CHANGED
File without changes
|
@@ -5,7 +5,8 @@ require_relative '../lib/daily_progress'
|
|
5
5
|
include DailyProgress
|
6
6
|
|
7
7
|
path = ARGV[0].nil? ? "#{Dir.home}/vimwiki/diary/" : ARGV[0].nil?
|
8
|
-
|
8
|
+
puts "Configured path: #{path}"
|
9
9
|
DailyProgress.configure(path)
|
10
10
|
content = DailyProgress.progress
|
11
|
+
puts content
|
11
12
|
to_clipboard(content)
|
data/lib/daily_progress.rb
CHANGED
@@ -50,22 +50,27 @@ module DailyProgress
|
|
50
50
|
content.gsub!('[X]', '')
|
51
51
|
content.gsub!('[-]', '')
|
52
52
|
content.gsub!('[ ]', '')
|
53
|
+
content
|
53
54
|
end
|
54
55
|
|
55
56
|
def evening_progress(content)
|
56
57
|
content.gsub!('[X]', '[Completed]')
|
57
58
|
content.gsub!('[-]', '[On Hold]')
|
58
59
|
content.gsub!('[ ]', '[In Progress]')
|
60
|
+
content
|
59
61
|
end
|
60
62
|
|
61
63
|
def to_clipboard(content)
|
64
|
+
success_msg = "Content copied to clipboard successfully!"
|
62
65
|
if OS.windows?
|
63
66
|
IO.popen('clip', 'w') { |f| f << content.to_s }
|
67
|
+
puts success_msg
|
64
68
|
elsif OS.wsl?
|
65
69
|
puts "Clipboard not implemented for WSL."
|
66
70
|
puts content
|
67
71
|
else OS.linux?
|
68
72
|
IO.popen('xclip -selection clipboard', 'r+') { |f| f.puts content.to_s }
|
73
|
+
puts success_msg
|
69
74
|
end
|
70
75
|
end
|
71
76
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dailyprogress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lovepreet
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -56,24 +56,22 @@ description:
|
|
56
56
|
email:
|
57
57
|
- lovepreetkaul23@gmail.com
|
58
58
|
executables:
|
59
|
-
-
|
59
|
+
- dailyprogress
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
-
- ".gitignore"
|
64
63
|
- ".rspec"
|
65
64
|
- ".travis.yml"
|
66
65
|
- CODE_OF_CONDUCT.md
|
67
66
|
- DailyProgress.gemspec
|
68
67
|
- Gemfile
|
69
|
-
- Gemfile.lock
|
70
68
|
- LICENSE.txt
|
71
69
|
- README.md
|
72
70
|
- Rakefile
|
73
71
|
- bin/console
|
74
72
|
- bin/setup
|
75
73
|
- config/config_loader.rb
|
76
|
-
- exe/
|
74
|
+
- exe/dailyprogress
|
77
75
|
- lib/DailyProgress/version.rb
|
78
76
|
- lib/daily_progress.rb
|
79
77
|
- lib/main.rb
|
@@ -98,8 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
96
|
- !ruby/object:Gem::Version
|
99
97
|
version: '0'
|
100
98
|
requirements: []
|
101
|
-
|
102
|
-
rubygems_version: 2.7.6.2
|
99
|
+
rubygems_version: 3.2.5
|
103
100
|
signing_key:
|
104
101
|
specification_version: 4
|
105
102
|
summary: Simple Project to create my daily progress emails from Vimwiki
|
data/.gitignore
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
*
|
2
|
-
/.idea/*
|
3
|
-
/.bundle/
|
4
|
-
/.yardoc
|
5
|
-
/_yardoc/
|
6
|
-
/doc/
|
7
|
-
|
8
|
-
# rspec failure tracking
|
9
|
-
.rspec_status
|
10
|
-
=======
|
11
|
-
*.gem
|
12
|
-
*.rbc
|
13
|
-
/.config
|
14
|
-
/coverage/
|
15
|
-
/InstalledFiles
|
16
|
-
/pkg/
|
17
|
-
/spec/reports/
|
18
|
-
/spec/examples.txt
|
19
|
-
/test/tmp/
|
20
|
-
/test/version_tmp/
|
21
|
-
/tmp/
|
22
|
-
|
23
|
-
# Used by dotenv library to load environment variables.
|
24
|
-
# .env
|
25
|
-
|
26
|
-
# Ignore Byebug command history file.
|
27
|
-
.byebug_history
|
28
|
-
|
29
|
-
## Specific to RubyMotion:
|
30
|
-
.dat*
|
31
|
-
.repl_history
|
32
|
-
build/
|
33
|
-
*.bridgesupport
|
34
|
-
build-iPhoneOS/
|
35
|
-
build-iPhoneSimulator/
|
36
|
-
|
37
|
-
## Specific to RubyMotion (use of CocoaPods):
|
38
|
-
#
|
39
|
-
# We recommend against adding the Pods directory to your .gitignore. However
|
40
|
-
# you should judge for yourself, the pros and cons are mentioned at:
|
41
|
-
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
42
|
-
#
|
43
|
-
# vendor/Pods/
|
44
|
-
|
45
|
-
## Documentation cache and generated files:
|
46
|
-
/.yardoc/
|
47
|
-
/_yardoc/
|
48
|
-
/doc/
|
49
|
-
/rdoc/
|
50
|
-
|
51
|
-
## Environment normalization:
|
52
|
-
/.bundle/
|
53
|
-
/vendor/bundle
|
54
|
-
/lib/bundler/man/
|
55
|
-
|
56
|
-
# for a library or gem, you might want to ignore these files since the code is
|
57
|
-
# intended to run in multiple environments; otherwise, check them in:
|
58
|
-
# Gemfile.lock
|
59
|
-
# .ruby-version
|
60
|
-
# .ruby-gemset
|
61
|
-
|
62
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
63
|
-
.rvmrc
|
64
|
-
|
65
|
-
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
|
66
|
-
# .rubocop-https?--*
|
data/Gemfile.lock
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
DailyProgress (1.0.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
diff-lcs (1.3)
|
10
|
-
rake (13.0.1)
|
11
|
-
rspec (3.9.0)
|
12
|
-
rspec-core (~> 3.9.0)
|
13
|
-
rspec-expectations (~> 3.9.0)
|
14
|
-
rspec-mocks (~> 3.9.0)
|
15
|
-
rspec-core (3.9.1)
|
16
|
-
rspec-support (~> 3.9.1)
|
17
|
-
rspec-expectations (3.9.1)
|
18
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
-
rspec-support (~> 3.9.0)
|
20
|
-
rspec-mocks (3.9.1)
|
21
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
-
rspec-support (~> 3.9.0)
|
23
|
-
rspec-support (3.9.2)
|
24
|
-
|
25
|
-
PLATFORMS
|
26
|
-
ruby
|
27
|
-
x64-mingw32
|
28
|
-
|
29
|
-
DEPENDENCIES
|
30
|
-
DailyProgress!
|
31
|
-
bundler (>= 2.2.10)
|
32
|
-
rake (~> 13.0)
|
33
|
-
rspec (~> 3.0)
|
34
|
-
|
35
|
-
BUNDLED WITH
|
36
|
-
2.2.19
|