dailyprogress 1.2.0 → 2.0.0

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
  SHA256:
3
- metadata.gz: f9aa045f9bce70d0d78c11679b3f30d1774415e3a910548a3a5c2b4c1fe89eaa
4
- data.tar.gz: 91fee9144a5caadd5456788c4a768b904edab6a0c39b7d7b1167f237e04bb272
3
+ metadata.gz: a5713a8d514389b43fe4911ec566b286b33d29b352a293fa01793abba40e9779
4
+ data.tar.gz: '08ce12aa55e6ea8522336338e9dc2a5ae1c040067f6b39141c7fbee8ef7a700a'
5
5
  SHA512:
6
- metadata.gz: 2f57c0252f707cd444ed46b478a6708ef680d51dbe5772067410e4d325f094904ec1da26d39c05e8075e2d471d6470309cc3b2113bc3d5550bcacb6c8ff86850
7
- data.tar.gz: 438c465df905987d4ab5406b12517c51a73cabaab81b05c79ca58e41fefcf32a204c24c251ac4d906146565edfac585dd2af9835278ee927713c3853899cf8aa
6
+ metadata.gz: 0db8f8585aa59eb0f0a27dfdc5aff3f1b6cd1de44940d7cae7e7360f96b794a949de3186550e2a65902f6bcc965c12561ba4dc5596dde188720083bf4b7083b2
7
+ data.tar.gz: f5e91aa5e9d0285ecbfda474a32742173814dfda9e2be783b089090c2cd537a0ab40041dcd367bbc0fdbd248b62f15b77ad1c31d11c810eb9febb20a29372c72
data/.gitignore ADDED
@@ -0,0 +1,66 @@
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 ADDED
@@ -0,0 +1,36 @@
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
data/README.md CHANGED
@@ -38,14 +38,11 @@ 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:~$ dailyProgress
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
- ```
49
46
 
50
47
  ## Development
51
48
 
data/bin/console CHANGED
File without changes
@@ -5,8 +5,7 @@ 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
- puts "Configured path: #{path}"
8
+
9
9
  DailyProgress.configure(path)
10
10
  content = DailyProgress.progress
11
- puts content
12
11
  to_clipboard(content)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DailyProgress
4
- VERSION = '1.2.0'
4
+ VERSION = '2.0.0'
5
5
  WSL_VERSION_PATH = '/proc/version'
6
6
  end
@@ -50,27 +50,22 @@ module DailyProgress
50
50
  content.gsub!('[X]', '')
51
51
  content.gsub!('[-]', '')
52
52
  content.gsub!('[ ]', '')
53
- content
54
53
  end
55
54
 
56
55
  def evening_progress(content)
57
56
  content.gsub!('[X]', '[Completed]')
58
57
  content.gsub!('[-]', '[On Hold]')
59
58
  content.gsub!('[ ]', '[In Progress]')
60
- content
61
59
  end
62
60
 
63
61
  def to_clipboard(content)
64
- success_msg = "Content copied to clipboard successfully!"
65
62
  if OS.windows?
66
63
  IO.popen('clip', 'w') { |f| f << content.to_s }
67
- puts success_msg
68
64
  elsif OS.wsl?
69
65
  puts "Clipboard not implemented for WSL."
70
66
  puts content
71
67
  else OS.linux?
72
68
  IO.popen('xclip -selection clipboard', 'r+') { |f| f.puts content.to_s }
73
- puts success_msg
74
69
  end
75
70
  end
76
71
  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: 1.2.0
4
+ version: 2.0.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-08-19 00:00:00.000000000 Z
11
+ date: 2021-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,22 +56,24 @@ description:
56
56
  email:
57
57
  - lovepreetkaul23@gmail.com
58
58
  executables:
59
- - dailyprogress
59
+ - DailyProgress
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
+ - ".gitignore"
63
64
  - ".rspec"
64
65
  - ".travis.yml"
65
66
  - CODE_OF_CONDUCT.md
66
67
  - DailyProgress.gemspec
67
68
  - Gemfile
69
+ - Gemfile.lock
68
70
  - LICENSE.txt
69
71
  - README.md
70
72
  - Rakefile
71
73
  - bin/console
72
74
  - bin/setup
73
75
  - config/config_loader.rb
74
- - exe/dailyprogress
76
+ - exe/DailyProgress
75
77
  - lib/DailyProgress/version.rb
76
78
  - lib/daily_progress.rb
77
79
  - lib/main.rb
@@ -96,7 +98,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
98
  - !ruby/object:Gem::Version
97
99
  version: '0'
98
100
  requirements: []
99
- rubygems_version: 3.2.5
101
+ rubyforge_project:
102
+ rubygems_version: 2.7.6.2
100
103
  signing_key:
101
104
  specification_version: 4
102
105
  summary: Simple Project to create my daily progress emails from Vimwiki