sifttter-redux 0.3.8 → 0.3.9

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: 7eab55431f87668da7e470133d56b79d320427af
4
- data.tar.gz: 1ff696c44b6781b0686ef079cd12d734453a9b6d
3
+ metadata.gz: c4afa531ec678cbfa866347937a5156be38299ab
4
+ data.tar.gz: 430b9de23891466f94881203026c092ed5d6127d
5
5
  SHA512:
6
- metadata.gz: 732cb81c102f7481d2f61d577e97603779022c1de683c69de126b25953cc6ea136d9a7f431c849db41864ce4f241278d8ac05e39bde75f4d4c1f21536a8582d9
7
- data.tar.gz: 2aaa8d693eb4c663cd7ca42f9d8e18118a2aa701e72983ea52a3098e1384614052d8e498bd3d1c296dc17a8ad08e706b9ba2a06e3efcc2ff6677dcf5cc0f7ae7
6
+ metadata.gz: eaebe980531b1b1a6080d69e012978d410dbe4f65b430d722f61acce66bcb3876aaf595ae2c87af1b1f9795e05eda90158a8d042975b7d53840a722b323598b9
7
+ data.tar.gz: 9ca6c03f12e26ed70ebdb177454d3cad91501a3cc06a9b3f49ff63a00712559464d07bec3673d6a227b804e708dcf42f25bb8682db86953a058518ac710bf0d7
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.3.9 (2014-02-25)
2
+
3
+ * Smarter checking for initialization before execution
4
+ * Fixed a bug in which the config file wouldn't be properly written to
5
+
1
6
  # 0.3.8 (2014-02-25)
2
7
 
3
8
  * Upgraded to Methadone 1.3.2 in gemspec
data/bin/srd CHANGED
@@ -67,11 +67,17 @@ pre do |global, command, options, args|
67
67
  # Load SifttterRedux configuration module.
68
68
  Configuration.load(SRD_CONFIG_FILEPATH)
69
69
 
70
- # Load Dropbox Uploader module.
71
- DBU.load(File.join(Configuration['db_uploader']['local_filepath'], 'dropbox_uploader.sh')) if File.exists?(SRD_CONFIG_FILEPATH)
72
-
73
70
  # Load Methadone CLILogging module.
74
71
  Methadone::CLILogging.change_logger(Methadone::CLILogger.new(SRD_LOG_FILEPATH, SRD_LOG_FILEPATH))
72
+
73
+ # Force the user to initialize if they try to execute first.
74
+ if command.name_for_help[0] == 'exec' && !File.exists?(SRD_CONFIG_FILEPATH)
75
+ CLIMessage.info('You need to initialize Sifttter Redux first...')
76
+ SifttterRedux.init
77
+ end
78
+
79
+ # Load Dropbox Uploader module.
80
+ DBU.load(File.join(Configuration['db_uploader']['local_filepath'], 'dropbox_uploader.sh')) if File.exists?(SRD_CONFIG_FILEPATH)
75
81
 
76
82
  true
77
83
  end
@@ -61,12 +61,11 @@ module SifttterRedux
61
61
  end
62
62
  end
63
63
 
64
+ # If the user has never configured Dropbox Uploader, have them do it here.
65
+ CLIMessage.info_block('Initializing Dropbox Uploader...') { system "#{ File.join(path, 'dropbox_uploader.sh') }" } unless File.exists?(CONFIG_FILEPATH)
66
+
64
67
  Configuration.add_section('db_uploader')
65
68
  Configuration['db_uploader'].merge!('local_filepath' => path)
66
- load(File.join(path, 'dropbox_uploader.sh'))
67
-
68
- # If the user has never configured Dropbox Uploader, have them do it here.
69
- CLIMessage.info_block('Initializing Dropbox Uploader...') { system "#{ @dbu }" } unless File.exists?(CONFIG_FILEPATH)
70
69
  else
71
70
  puts "Sorry, but #{ path } isn't a valid directory."
72
71
  end
@@ -1,3 +1,3 @@
1
1
  module SifttterRedux
2
- VERSION = '0.3.8'
2
+ VERSION = '0.3.9'
3
3
  end
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.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Bach