sifttter-redux 0.2.4 → 0.2.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 +8 -8
- data/HISTORY.md +8 -1
- data/bin/srd +4 -3
- data/lib/sifttter-redux/constants.rb +1 -1
- data/lib/sifttter-redux/methods.rb +3 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzE3MDQzODI1MTZjZmEwYzgwM2E5ZDFhMTNjM2EyYmRiNTUxNmE5Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2I2Zjg4Y2JjYzcxM2NiYTM2NGNiODI2MTJiYmZlMTQ1MzgxM2MyMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTdiNTliOTI5ODNkMzA5NTZjY2RhMmRhYzFlMWNmYjQ4MTQwYzgzODJhYTlj
|
10
|
+
NWI3OWIzYWIzMmNhMGNmYTFjNDZiZDBiZTdlNTdiZTgwNTRiNjMzNDQ1ODNm
|
11
|
+
OTFkOWIyODQ4M2M5ZGZhZTQ3YjM1Y2Q3MDM5YWNlODk0ZDg3NTg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTI0NGY4NTQyOTljMDE5MjkxN2RkYzU3ZDU0ZjhhZTA2YmM5NGU1YTVhYmE4
|
14
|
+
OWU2YjAwYTkxYjQ3NzZhNjI2MDA2YjZhOGM1ODJjN2E2NWNkNjQ4NTE4ZTkz
|
15
|
+
Mzc0YjM4ODJkYTU0MmVjZTcyNzkwNTJlMGZhM2M5ZjFkNDM2MDk=
|
data/HISTORY.md
CHANGED
@@ -1,4 +1,11 @@
|
|
1
|
-
# 0.2.
|
1
|
+
# 0.2.5
|
2
|
+
|
3
|
+
* Fixed a bug where execution could prematurely halt if no Day One entries were found
|
4
|
+
* Fixed a bug where re-initialization could continue, even if user declines
|
5
|
+
* Updated some more help documentation
|
6
|
+
* Changed messaging for initialization completion
|
7
|
+
|
8
|
+
# 0.2.4 (originally 0.2.3)
|
2
9
|
|
3
10
|
* Updated some help documentation
|
4
11
|
* Changed message re: no entries found to a warning state
|
data/bin/srd
CHANGED
@@ -161,7 +161,6 @@ command :exec do |c|
|
|
161
161
|
|
162
162
|
dates.each do |date|
|
163
163
|
run_sifttter(date)
|
164
|
-
# puts date
|
165
164
|
end
|
166
165
|
# Upload any Day One entries to Dropbox (if there are any).
|
167
166
|
if (!Dir[$config.sifttter_redux["dayone_local_filepath"] + "/*"].empty?)
|
@@ -179,7 +178,7 @@ command :exec do |c|
|
|
179
178
|
FileUtils.rm_rf($config.sifttter_redux["sifttter_local_filepath"]) if Dir.exists?($config.sifttter_redux["sifttter_local_filepath"])
|
180
179
|
CliMessage.finish_message('DONE.')
|
181
180
|
end
|
182
|
-
|
181
|
+
|
183
182
|
CliMessage.section('EXECUTION COMPLETE!')
|
184
183
|
end
|
185
184
|
end
|
@@ -195,10 +194,12 @@ command :init do |c|
|
|
195
194
|
CliMessage.section('INITIALIZING...')
|
196
195
|
|
197
196
|
if File.exists?($config.configFile)
|
198
|
-
initialize_procedures if CliMessage.prompt("It looks like you've already initialized Sifttter Redux. Do you want to re-initialize?", "N").downcase
|
197
|
+
initialize_procedures if CliMessage.prompt("It looks like you've already initialized Sifttter Redux. Do you want to re-initialize?", "N").downcase == 'y'
|
199
198
|
else
|
200
199
|
initialize_procedures
|
201
200
|
end
|
201
|
+
|
202
|
+
CliMessage.section('INITIALIZATION COMPLETE!')
|
202
203
|
end
|
203
204
|
end
|
204
205
|
|
@@ -53,8 +53,6 @@ def initialize_procedures
|
|
53
53
|
install_db_uploader
|
54
54
|
collect_preferences
|
55
55
|
|
56
|
-
CliMessage.section("INITIALIZATION COMPLETE!")
|
57
|
-
|
58
56
|
$config.save_configuration
|
59
57
|
end
|
60
58
|
|
@@ -68,7 +66,7 @@ end
|
|
68
66
|
def install_db_uploader
|
69
67
|
valid_directory_chosen = false
|
70
68
|
|
71
|
-
CliMessage.section('
|
69
|
+
CliMessage.section('CONFIGURING DROPBOX UPLOADER...')
|
72
70
|
|
73
71
|
# Create a new configuration section for Dropbox-Uploader
|
74
72
|
$config.create_section("db_uploader")
|
@@ -87,8 +85,9 @@ def install_db_uploader
|
|
87
85
|
# If, for some reason, Dropbox Uploader alread exists at this location,
|
88
86
|
# skip the clone.
|
89
87
|
if File.directory?(db_uploader_location)
|
90
|
-
CliMessage.
|
88
|
+
CliMessage.warning("Using pre-existing Dropbox Uploader at #{db_uploader_location}...")
|
91
89
|
else
|
90
|
+
CliMessage.info("Downloading Dropbox Uploader to #{db_uploader_location}...")
|
92
91
|
%x{git clone https://github.com/andreafabrizi/Dropbox-Uploader.git #{db_uploader_location}}
|
93
92
|
end
|
94
93
|
|
@@ -171,7 +170,6 @@ def run_sifttter(date)
|
|
171
170
|
|
172
171
|
if projects.length <=0
|
173
172
|
CliMessage.warning("No entries found...")
|
174
|
-
exit!
|
175
173
|
end
|
176
174
|
|
177
175
|
if projects.length > 0
|