devlogs 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: b99f8b324427d042c22df13670cd362387c29d2392d3c5ac5b4dc3933e7a6350
4
- data.tar.gz: 10e884ccc05ab8f967ef1b12eb8b28bb728d0642510e9279c76f2c696929cbb8
3
+ metadata.gz: 71df877e4dad116332b7a4ce20b68a866227d8b68c458227768ca32d72068a0f
4
+ data.tar.gz: 2f0879fa61fcbd5523dbcd491b35b986f4ccb58e39a50bee63b20d605a3dd4fe
5
5
  SHA512:
6
- metadata.gz: 41736e5c49fae07395e3da06f9aba779a48d14b5ded23ba0a062ff9de1a176050fee2208a959417846e9029166c4deb59eb93114dc93c67e3c7c55415b0be550
7
- data.tar.gz: e9854ed3e849a7208a8c9e3c82410973945c99a9a2e488a9f153f8612bcb80ed5f3a66f6a45f2d8cfe4945bb66b6abad3738b2df339a429bf5b7d9e7d31945cb
6
+ metadata.gz: 1afea8edd55cf989dd67023beacd291d8e116c8b4f55c669c69f46970f39fe64a646169100632b9200060eaa01b85610a23d7f5b5bafa4142030c434847d94d7
7
+ data.tar.gz: c496818a7360e41d2a0a9ecf2c2085e8acb755c932b1d5a41e20320e113d978a19c742053aea7d0d14721c085ddecfee45b982462b087676645d9bc27e3e2e23
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devlogs (0.1.4)
4
+ devlogs (0.1.5)
5
5
  rsync (~> 1.0, >= 1.0.9)
6
6
  thor (~> 1.2.1)
7
7
  tty-prompt (~> 0.23.1)
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # devlogs
2
- ![Version](https://img.shields.io/badge/version-0.1.0-green)
2
+ ![Version](https://img.shields.io/badge/version-0.1.4-green)
3
3
 
4
4
  Project based session logging for solo-developers with the option to mirror changes to another directory.
5
5
 
@@ -42,6 +42,7 @@ class Repository
42
42
  File.open(entry_file_path, "w") do |f|
43
43
  f.write <<~ENDOFFILE
44
44
  # #{time.strftime(DEFAULT_TIME_FORMAT_TEXT_ENTRY)}
45
+ Tags: #dev, #log
45
46
 
46
47
  What did you do today?
47
48
 
@@ -146,7 +147,11 @@ class Repository
146
147
 
147
148
  FileUtils.mkdir_p(path)
148
149
  config_file = File.join(path, CONFIG_FILE)
149
- info_file_name = "#{results[:name].gsub(/ /, "_")}_devlogs.info"
150
+
151
+ # Replace spaces in project name with underscores
152
+ sanitized_project_name = results[:name].gsub(/ /, "_").downcase
153
+
154
+ info_file_name = "#{sanitized_project_name}_devlogs.info.md"
150
155
  info_file = File.join(path, info_file_name)
151
156
 
152
157
  # Create config file
@@ -154,10 +159,18 @@ class Repository
154
159
  f.write results.to_yaml
155
160
  end
156
161
 
162
+ # Create the info file
157
163
  File.open(info_file, "w") do |f|
158
164
  f.puts "# #{results[:name]}"
159
165
  f.puts (results[:desc]).to_s
160
166
  end
167
+
168
+ # Git ignore if specified
169
+ if results[:gitignore]
170
+ File.open(File.join(path), "a") do |f|
171
+ f.puts DEFAULT_DIRECTORY_NAME
172
+ end
173
+ end
161
174
  end
162
175
 
163
176
  # Creates an interactive prompt for user input
@@ -181,6 +194,10 @@ class Repository
181
194
  key(:use_mirror).ask("Do you want to mirror these logs?", convert: :boolean)
182
195
  key(:path).ask("Path to mirror directory: ")
183
196
  end
197
+
198
+ key(:gitignore).ask("Do you want to gitignore the devlogs repository?") do |q|
199
+ q.required true
200
+ end
184
201
  end
185
202
  end
186
203
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Devlogs
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devlogs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - aquaflamingo
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
- rubygems_version: 3.2.3
121
+ rubygems_version: 3.3.7
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: A command line utility to create and manage project management with a logs