riserva 0.1.0 → 0.1.1

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26e8311ed2e6221b05ee4709ece9ef72db184c20
4
- data.tar.gz: 2bc240b610d0632b51bc7f01efc686fc4248acf7
3
+ metadata.gz: faf79afd7482e3773737e037156a7f2c052e226e
4
+ data.tar.gz: e3f1545fa479b620376a1b792666b658a5d4ca0d
5
5
  SHA512:
6
- metadata.gz: 363e6fea2a5baacd72fa5a95f6d3225e26765d88476f79457406cee409f8f69750b9b32bd28ee8a2a625ad25484bc3768ecb22bed88b1108dfb290de1ac8a8b4
7
- data.tar.gz: 37b03315d54d37d21401ce89e141a8cfbddf2c1f7d59a5c25463d2f9efbfa30bca70ecbbd55ebed6bcc4ac2b0a8d276f50077d15d65b1b1a83678d2d55561d4b
6
+ metadata.gz: '058c49d68ed8537c32780ac717ad1ddd5467bc01731bc9eb814ca2b1a5c8b152201cf3e8cc1863555179935285c703f55bf3b64b8686ed1c049b09f91ff3e679'
7
+ data.tar.gz: 1ede9f0713f97c9215f73bd6983e35a36f6f83216b0a4b9aa2e8fda484765f958cd106fd67458f5738444525fafc3a906e82d4af98fa1c94110b2c4cd6269d05
data/README.md CHANGED
@@ -60,6 +60,9 @@ storage_location: '/home/user/backup'
60
60
  # Enable system notifications (if notification library installed in your OS)
61
61
  system_notifications: true
62
62
 
63
+ # Set custom notification icon
64
+ notification_icon: '/home/user/.riserva/icon.png'
65
+
63
66
  # Each folder will be compressed in separate archive
64
67
  folders:
65
68
  - '/home/user/some_important_folder_1'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'notifier'
2
4
 
3
5
  module Riserva::Listeners
@@ -18,11 +20,15 @@ module Riserva::Listeners
18
20
 
19
21
  def notify(message)
20
22
  return unless enabled?
21
- Notifier.notify(image: 'media-floppy-symbolic', title: 'Riserva', message: message)
23
+ Notifier.notify(image: notification_icon, title: 'Riserva', message: message)
22
24
  end
23
25
 
24
26
  def enabled?
25
27
  Riserva::Config.read('system_notifications')
26
28
  end
29
+
30
+ def notification_icon
31
+ Riserva::Config.read('notification_icon') || 'media-floppy-symbolic'
32
+ end
27
33
  end
28
34
  end
@@ -1,3 +1,3 @@
1
1
  module Riserva
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
data/lib/riserva.rb CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'riserva/version'
4
4
  require 'active_support/core_ext/string/inflections'
5
+ require 'pathname'
5
6
 
6
7
  module Riserva
7
8
  autoload :Config, 'riserva/config'
data/riserva.gemspec CHANGED
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
19
19
  f.match(%r{^(test|spec|features)/})
20
20
  end
21
21
  spec.bindir = 'bin'
22
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
22
  spec.executables << 'riserva'
24
23
  spec.require_paths = ['lib']
25
24
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riserva
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Malinovskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-05 00:00:00.000000000 Z
11
+ date: 2018-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -214,9 +214,7 @@ description:
214
214
  email:
215
215
  - psy.ipm@gmail.com
216
216
  executables:
217
- - console
218
217
  - riserva
219
- - setup
220
218
  extensions: []
221
219
  extra_rdoc_files: []
222
220
  files:
@@ -272,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
272
270
  version: '0'
273
271
  requirements: []
274
272
  rubyforge_project:
275
- rubygems_version: 2.6.12
273
+ rubygems_version: 2.5.2
276
274
  signing_key:
277
275
  specification_version: 4
278
276
  summary: Backup files to cloud drive