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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2QwMTkxY2YyYmJmYzRkNWY1ZDFhYWY0ZmZlYjU4ZDVkNTA3MGZjMw==
4
+ YzE3MDQzODI1MTZjZmEwYzgwM2E5ZDFhMTNjM2EyYmRiNTUxNmE5Ng==
5
5
  data.tar.gz: !binary |-
6
- ZDlhMTc4YzA4ZGI1MzVmM2ZjZjlkNzM0ODlkMWI1MWYyZGI3MjA1MA==
6
+ Y2I2Zjg4Y2JjYzcxM2NiYTM2NGNiODI2MTJiYmZlMTQ1MzgxM2MyMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzZlMTY2NjliNDI5ODY2OGQ5NjkxOTVkYjAwYjU0ZWFiMDc0YzExNDMyN2Rj
10
- MzM4N2JkYjdiN2U2ODRhODczMDIyOGVlOWU1MDdlZTI3NDhkMzE3MzY3NDBl
11
- MjFlOTcxM2RkNmVlODk0ZGY0OTZiYmRlMmEyNzkzMzkyYjlmMWQ=
9
+ MTdiNTliOTI5ODNkMzA5NTZjY2RhMmRhYzFlMWNmYjQ4MTQwYzgzODJhYTlj
10
+ NWI3OWIzYWIzMmNhMGNmYTFjNDZiZDBiZTdlNTdiZTgwNTRiNjMzNDQ1ODNm
11
+ OTFkOWIyODQ4M2M5ZGZhZTQ3YjM1Y2Q3MDM5YWNlODk0ZDg3NTg=
12
12
  data.tar.gz: !binary |-
13
- ZDU0ODMxNzU2Mjg3ZjE2OWRjNGU1NWQ1OTUxMGYxM2EzOTMxYzI5YjgwMDIy
14
- NDljNWNlNTJjN2QzMDQyYjEwNzliZGJhODQzNjY4M2Y4MjE4M2I2M2RjNDE5
15
- OTI4YjJiMDVmMDJlMTM2NTM2ZjM4YmRkM2QwYmJmMGUwZGFlNTA=
13
+ NTI0NGY4NTQyOTljMDE5MjkxN2RkYzU3ZDU0ZjhhZTA2YmM5NGU1YTVhYmE4
14
+ OWU2YjAwYTkxYjQ3NzZhNjI2MDA2YjZhOGM1ODJjN2E2NWNkNjQ4NTE4ZTkz
15
+ Mzc0YjM4ODJkYTU0MmVjZTcyNzkwNTJlMGZhM2M5ZjFkNDM2MDk=
data/HISTORY.md CHANGED
@@ -1,4 +1,11 @@
1
- # 0.2.4 (originall 0.2.3)
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
 
@@ -1,5 +1,5 @@
1
1
  module SifttterRedux
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
 
4
4
  # Sifttter and Sifttter Redux Constants
5
5
  SRD_CONFIG_FILEPATH = File.join(ENV['HOME'], '.sifttter_redux')
@@ -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('DOWNLOADING DROPBOX UPLOADER...')
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.info("You seem to already have Dropbox Uploader at this location; skipping...")
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sifttter-redux
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Bach