sifttter-redux 0.4.3 → 0.4.4
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 +4 -4
- data/HISTORY.md +4 -0
- data/README.md +2 -8
- data/lib/sifttter_redux/dbu.rb +26 -20
- data/lib/sifttter_redux/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b449eb116b9d31aa2617e8c4016998017967e45
|
4
|
+
data.tar.gz: 8575cbe65d2dc1c220c690f835af1acb0f24f640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dc307b238a1af03e089bce59a4d3b9d993beb30639f0dfde83d8b85f509d458656d62d6ec712a25f4d81d22541b8382d3e3a06f6dbf6a69aa719d01c612235c
|
7
|
+
data.tar.gz: a49786fff55b83bb4729bbf512695b492282760b7967c8ad7ead5c0f53a515a6d3ad80b40c9f7d2413c8d261c60917d165f36bf3d4c021ceceead2ec9a98dc0f
|
data/HISTORY.md
CHANGED
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
|
-
|
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
|
|
data/lib/sifttter_redux/dbu.rb
CHANGED
@@ -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
|
-
|
44
|
-
|
45
|
-
|
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
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
|
61
|
-
|
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
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2014-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|