devlogs 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/devlogs/repository.rb +18 -1
- data/lib/devlogs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71df877e4dad116332b7a4ce20b68a866227d8b68c458227768ca32d72068a0f
|
4
|
+
data.tar.gz: 2f0879fa61fcbd5523dbcd491b35b986f4ccb58e39a50bee63b20d605a3dd4fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1afea8edd55cf989dd67023beacd291d8e116c8b4f55c669c69f46970f39fe64a646169100632b9200060eaa01b85610a23d7f5b5bafa4142030c434847d94d7
|
7
|
+
data.tar.gz: c496818a7360e41d2a0a9ecf2c2085e8acb755c932b1d5a41e20320e113d978a19c742053aea7d0d14721c085ddecfee45b982462b087676645d9bc27e3e2e23
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/devlogs/repository.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/devlogs/version.rb
CHANGED
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
|
+
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.
|
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
|