sifttter-redux 0.4.3 → 0.4.4

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
  SHA1:
3
- metadata.gz: 03f585acfd07efebcebbde1defc4de33b85c2602
4
- data.tar.gz: 853ed1e11a744d8debfa013095c2646485a0a2d2
3
+ metadata.gz: 1b449eb116b9d31aa2617e8c4016998017967e45
4
+ data.tar.gz: 8575cbe65d2dc1c220c690f835af1acb0f24f640
5
5
  SHA512:
6
- metadata.gz: 87c237e039c24c6873b55606d98c89b982520d19c847c5c9b7740e4b754e7dd7e95bbc3315f603d8a2c78ef3205bca462456420a6011fed3f140e9b470957517
7
- data.tar.gz: ae005b8088871439fad23a499ce854efa8c2d7d1fd2323da1934d410116cbe3795413bf8fe1661a21f3ffaa6717e37b3fa7a9735e6b7d8a69db292dc876bc826
6
+ metadata.gz: 7dc307b238a1af03e089bce59a4d3b9d993beb30639f0dfde83d8b85f509d458656d62d6ec712a25f4d81d22541b8382d3e3a06f6dbf6a69aa719d01c612235c
7
+ data.tar.gz: a49786fff55b83bb4729bbf512695b492282760b7967c8ad7ead5c0f53a515a6d3ad80b40c9f7d2413c8d261c60917d165f36bf3d4c021ceceead2ec9a98dc0f
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.4.4 (2014-02-28)
2
+
3
+ * Fixed a prompt error when providing Dropbox-Uploader with a bad path
4
+
1
5
  # 0.4.3 (2014-02-26)
2
6
 
3
7
  * Fixed regression with Dropbox-Uploader
data/README.md CHANGED
@@ -404,15 +404,9 @@ Another option is to install the bundled gems to the global gemset:
404
404
  $ bundle install --global
405
405
  ```
406
406
 
407
- # Known Issues
407
+ # Known Issues & Future Releases
408
408
 
409
- * Sifttter Redux makes no effort to see if entries already exist in Day One for a particular date. This means that if you're not careful, you might end up with duplicate entries. A future version will address this.
410
- * Multiline updates aren't caught by Sifttter Redux; it counts on content being on single lines.
411
- * If the contents of `~/.dropbox_uploader` should ever be incorrect, Sifttter Redux fails without warning. Working on a fix, but it's slow-going.
412
-
413
- # Future Releases
414
-
415
- Enhancement requests (my own or those submitted by others) can be found on the [Issues Page](https://github.com/bachya/Sifttter-Redux/issues?labels=enhancement&state=open "Open Enhancements").
409
+ Bugs, issues, and enhancement requests (my own or those submitted by others) can be found on the [Issues Page](https://github.com/bachya/Sifttter-Redux/issues "Open Items").
416
410
 
417
411
  # Bugs and Feature Requests
418
412
 
@@ -39,31 +39,37 @@ module SifttterRedux
39
39
  # @return Void
40
40
  # ----------------------------------------------------
41
41
  def self.install_wizard(already_initialized = false)
42
+ valid_path_chosen = false
43
+
42
44
  CLIMessage::section_block('CONFIGURING DROPBOX UPLOADER...') do
43
- # Prompt the user for a location to save Dropbox Uploader.
44
- path = CLIMessage::prompt('Location for Dropbox-Uploader', already_initialized && !Configuration['db_uploader']['base_filepath'].nil? ? Configuration['db_uploader']['base_filepath'] : DBU_LOCAL_FILEPATH)
45
- path.chop! if path.end_with?('/')
45
+ until valid_path_chosen
46
+ # Prompt the user for a location to save Dropbox Uploader.
47
+ path = CLIMessage::prompt('Location for Dropbox-Uploader', already_initialized && !Configuration['db_uploader']['base_filepath'].nil? ? Configuration['db_uploader']['base_filepath'] : DBU_LOCAL_FILEPATH)
48
+ path.chop! if path.end_with?('/')
49
+
50
+ # If the entered directory exists, clone the repository.
51
+ if File.directory?(path)
52
+ valid_path_chosen = true
53
+
54
+ dbu_path = File.join(path, 'Dropbox-Uploader')
55
+ executable_path = File.join(dbu_path, 'dropbox_uploader.sh')
46
56
 
47
- # If the entered directory exists, clone the repository.
48
- if File.directory?(path)
49
- dbu_path = File.join(path, 'Dropbox-Uploader')
50
- executable_path = File.join(dbu_path, 'dropbox_uploader.sh')
51
-
52
- if File.directory?(dbu_path)
53
- CLIMessage::warning("Using pre-existing Dropbox Uploader at #{ dbu_path }...")
54
- else
55
- CLIMessage::info_block("Downloading Dropbox Uploader to #{ dbu_path }...", 'Done.', true) do
56
- system "git clone https://github.com/andreafabrizi/Dropbox-Uploader.git #{ dbu_path }"
57
+ if File.directory?(dbu_path)
58
+ CLIMessage::warning("Using pre-existing Dropbox Uploader at #{ dbu_path }...")
59
+ else
60
+ CLIMessage::info_block("Downloading Dropbox Uploader to #{ dbu_path }...", 'Done.', true) do
61
+ system "git clone https://github.com/andreafabrizi/Dropbox-Uploader.git #{ dbu_path }"
62
+ end
57
63
  end
58
- end
59
64
 
60
- # If the user has never configured Dropbox Uploader, have them do it here.
61
- CLIMessage::info_block('Initializing Dropbox Uploader...') { system "#{ executable_path }" } unless File.exists?(CONFIG_FILEPATH)
65
+ # If the user has never configured Dropbox Uploader, have them do it here.
66
+ CLIMessage::info_block('Initializing Dropbox Uploader...') { system "#{ executable_path }" } unless File.exists?(CONFIG_FILEPATH)
62
67
 
63
- Configuration::add_section('db_uploader') unless Configuration::section_exists?('db_uploader')
64
- Configuration['db_uploader'].merge!('base_filepath' => path, 'dbu_filepath' => dbu_path, 'exe_filepath' => executable_path)
65
- else
66
- CLIMessage::error("Sorry, but #{ path } isn't a valid directory.")
68
+ Configuration::add_section('db_uploader') unless Configuration::section_exists?('db_uploader')
69
+ Configuration['db_uploader'].merge!('base_filepath' => path, 'dbu_filepath' => dbu_path, 'exe_filepath' => executable_path)
70
+ else
71
+ CLIMessage::error("Sorry, but #{ path } isn't a valid directory.")
72
+ end
67
73
  end
68
74
  end
69
75
  end
@@ -1,4 +1,4 @@
1
1
  module SifttterRedux
2
- VERSION = '0.4.3'
2
+ VERSION = '0.4.4'
3
3
  NEWEST_CONFIG_VERSION = '0.4.3'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sifttter-redux
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Bach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-27 00:00:00.000000000 Z
11
+ date: 2014-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake