sifttter-redux 0.3.7 → 0.3.8

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: 13c23c7765b3f89eeb6fc02bc93b3b825fee5850
4
- data.tar.gz: 85176505e850dd37b3d9fa3c111d08e4a3d73810
3
+ metadata.gz: 7eab55431f87668da7e470133d56b79d320427af
4
+ data.tar.gz: 1ff696c44b6781b0686ef079cd12d734453a9b6d
5
5
  SHA512:
6
- metadata.gz: a39f012561aef02e15f31171467f593290b581a613fc3c7884340c77831aff3cec50ec676945a4becd779e63825e86c4d083f0d21ad4fdc910efdf33b1c73d6e
7
- data.tar.gz: 3cf86d715dc7598ed4c8b3f10fd74c800d4f9aef6f416aa78790320fe7e4fb521ac8aa8e015c79bea5eb7608e7d6bd320f53f6ee95544b78069ad704fa64b0c8
6
+ metadata.gz: 732cb81c102f7481d2f61d577e97603779022c1de683c69de126b25953cc6ea136d9a7f431c849db41864ce4f241278d8ac05e39bde75f4d4c1f21536a8582d9
7
+ data.tar.gz: 2aaa8d693eb4c663cd7ca42f9d8e18118a2aa701e72983ea52a3098e1384614052d8e498bd3d1c296dc17a8ad08e706b9ba2a06e3efcc2ff6677dcf5cc0f7ae7
data/HISTORY.md CHANGED
@@ -1,4 +1,11 @@
1
- # 0.3.6 (2014-02-25)
1
+ # 0.3.8 (2014-02-25)
2
+
3
+ * Upgraded to Methadone 1.3.2 in gemspec
4
+ * Redirected all Methadone logging to file
5
+ * Fixed a bug in which initailization would fail under certain circumstances
6
+ * Fixed a bug in which Dropbox Uploader would fail to initialize properly
7
+
8
+ # 0.3.7 (2014-02-25)
2
9
 
3
10
  * Fixed a bug in which Sifttter-Redux would fail on Ruby 2.0.0 (and potentially others)
4
11
 
File without changes
data/bin/srd CHANGED
@@ -66,17 +66,13 @@ switch(
66
66
  pre do |global, command, options, args|
67
67
  # Load SifttterRedux configuration module.
68
68
  Configuration.load(SRD_CONFIG_FILEPATH)
69
-
69
+
70
70
  # Load Dropbox Uploader module.
71
- DBU.load(File.join(Configuration['db_uploader']['local_filepath'], 'dropbox_uploader.sh'))
71
+ DBU.load(File.join(Configuration['db_uploader']['local_filepath'], 'dropbox_uploader.sh')) if File.exists?(SRD_CONFIG_FILEPATH)
72
72
 
73
73
  # Load Methadone CLILogging module.
74
- Methadone::CLILogging.change_logger(Methadone::CLILogger.new(
75
- File.open(SRD_LOG_FILEPATH, 'a+')
76
- ))
77
-
78
- # Initialize if the config file doesn't exist.
79
- init unless File.exists?(SRD_CONFIG_FILEPATH)
74
+ Methadone::CLILogging.change_logger(Methadone::CLILogger.new(SRD_LOG_FILEPATH, SRD_LOG_FILEPATH))
75
+
80
76
  true
81
77
  end
82
78
 
@@ -16,7 +16,13 @@ module SifttterRedux
16
16
  # @return Hash
17
17
  # ----------------------------------------------------
18
18
  def self.[](section_name)
19
- @data[section_name]
19
+ if section_exists?(section_name)
20
+ @data[section_name]
21
+ else
22
+ error = "Section does not exist: #{section_name}"
23
+ Methadone::CLILogging.error(error)
24
+ fail ArgumentError, error
25
+ end
20
26
  end
21
27
 
22
28
  # ----------------------------------------------------
@@ -60,12 +60,13 @@ module SifttterRedux
60
60
  system "git clone https://github.com/andreafabrizi/Dropbox-Uploader.git #{ path }"
61
61
  end
62
62
  end
63
-
64
- # If the user has never configured Dropbox Uploader, have them do it here.
65
- CLIMessage.info_block('Initializing Dropbox Uploader...') { system "#{ @dbu }" } unless File.exists?(CONFIG_FILEPATH)
66
63
 
67
64
  Configuration.add_section('db_uploader')
68
65
  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)
69
70
  else
70
71
  puts "Sorry, but #{ path } isn't a valid directory."
71
72
  end
@@ -1,3 +1,3 @@
1
1
  module SifttterRedux
2
- VERSION = '0.3.7'
2
+ VERSION = '0.3.8'
3
3
  end
@@ -19,10 +19,10 @@ spec = Gem::Specification.new do |s|
19
19
 
20
20
  s.license = 'MIT'
21
21
  s.rdoc_options = ['--charset=UTF-8']
22
- s.extra_rdoc_files = %w[README.md HISTORY.md LICENSE]
22
+ s.extra_rdoc_files = %w[README.md HISTORY.md LICENSE.txt]
23
23
 
24
24
  s.add_development_dependency('rake', '~> 0')
25
25
  s.add_runtime_dependency('chronic', '0.10.2')
26
26
  s.add_runtime_dependency('gli','2.9.0')
27
- s.add_runtime_dependency('methadone', '1.3.1')
27
+ s.add_runtime_dependency('methadone', '1.3.2')
28
28
  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.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Bach
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 1.3.1
61
+ version: 1.3.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 1.3.1
68
+ version: 1.3.2
69
69
  description: A customized IFTTT-to-Day One service that allows for smart installation
70
70
  and automated running on a standalone *NIX device (such as a Raspberry Pi).
71
71
  email: bachya1208@gmail.com
@@ -75,12 +75,12 @@ extensions: []
75
75
  extra_rdoc_files:
76
76
  - README.md
77
77
  - HISTORY.md
78
- - LICENSE
78
+ - LICENSE.txt
79
79
  files:
80
80
  - ".gitignore"
81
81
  - Gemfile
82
82
  - HISTORY.md
83
- - LICENSE
83
+ - LICENSE.txt
84
84
  - README.md
85
85
  - Rakefile
86
86
  - bin/srd