battman 0.0.1 → 0.0.2

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: 5fa62d0122ed26fd4632d0052367a1cd815b3d87
4
- data.tar.gz: fb5d61ca34fc8d864e2536c4cfcf340c8399777c
3
+ metadata.gz: b06de66b63cca9223b67e4032173c86429b02d8e
4
+ data.tar.gz: d03b52f4159656b4ad8ca536184db2e93f388ddc
5
5
  SHA512:
6
- metadata.gz: ae56456c53bbcd44cd51539bbcce3cf1d8b3171ab1300c07b502c4ab58cf3d382a455f8e84c957db582201632d33e313a536248cc42ffe87253b6206fc0f7218
7
- data.tar.gz: 48bc96909040afcc6b246d7265abecdc2e4c80a80ac32798c68b4457ffcb1795d9c7ecee188bb20a5c5227aea4531a4e59868b9d06474a4adb4c7e16dae51d1b
6
+ metadata.gz: 86ecd5c55d008f5c80ed7b80d6c8a19be94ed7742c9e0a2258a7898ce170bafb03cda25b8a0a58b62d4a8d63906fc68b7ff73bfe669c7dedf5b41a7231c9c3b6
7
+ data.tar.gz: 198ac0346ee76370fc571d3ae0706305b3c099369fd00ed3e86080752dcd698a98a787c6af802781441a1a618ace4e25ee4e6e87df715a087e944f25b9acb831
data/README.md CHANGED
@@ -20,11 +20,11 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- TODO: Write usage instructions here
23
+ Check out [this example config](battman_example.rb)
24
24
 
25
25
  ## Contributing
26
26
 
27
- 1. Fork it ( https://github.com/[my-github-username]/battman/fork )
27
+ 1. Fork it ( https://github.com/jreinert/battman/fork )
28
28
  2. Create your feature branch (`git checkout -b my-new-feature`)
29
29
  3. Commit your changes (`git commit -am 'Add some feature'`)
30
30
  4. Push to the branch (`git push origin my-new-feature`)
@@ -4,7 +4,7 @@ Battman::Battman.new do |battman|
4
4
 
5
5
  battman.watch :acpi do |watcher|
6
6
 
7
- current_state = :discharging # to be on the safe side
7
+ current_state = :discharging # defaulting to discharging
8
8
 
9
9
  watcher.every 2.seconds do |status|
10
10
 
@@ -27,14 +27,14 @@ Battman::Battman.new do |battman|
27
27
 
28
28
  if current_state == :discharging && value.in?(0...5)
29
29
  `i3lock && systemctl suspend` if suspend
30
- `notify-send -u critical 'Battery is critical'`
30
+ `notify-send -u critical 'Battery level is critical!'`
31
31
 
32
32
  if value.in?(0..2)
33
33
  `notify-send -u critical 'Suspending in 60 seconds! (plug in cable to abort)'`
34
34
  suspend = true
35
35
  end
36
36
  else
37
- supend = false
37
+ suspend = false
38
38
  end
39
39
 
40
40
  end
@@ -1,3 +1,3 @@
1
1
  module Battman
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: battman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joakim Reinert