rupower 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Rupower
2
2
 
3
- Ruby interface to [UPower] tool available by default on Ubuntu and Debian distros.
3
+ Ruby interface to [UPower].[Device] tool available by default on Ubuntu and Debian distros.
4
4
 
5
5
  ## Example
6
6
 
@@ -12,7 +12,7 @@ Ruby interface to [UPower] tool available by default on Ubuntu and Debian distro
12
12
  capacity: # => 100 # [%]
13
13
  technology: # => 'lithium-ion'
14
14
 
15
- See the UPower documentation for full list of parameters that can be used as methods, or look at the
15
+ See the UPower [documentation] for full list of properties that can be used as methods, or look at the
16
16
  acceptance tests.
17
17
 
18
18
  ## Installation
@@ -37,4 +37,6 @@ Then run:
37
37
 
38
38
  Released under the MIT license. Copyright (C) 2012 Karol Nowicki
39
39
 
40
- [UPower]: http://upower.freedesktop.org
40
+ [UPower]: http://upower.freedesktop.org
41
+ [Device]: http://upower.freedesktop.org/docs/Device.html
42
+ [documentation]: http://upower.freedesktop.org/docs/Device.html#Device.properties
@@ -1,3 +1,3 @@
1
1
  module Rupower
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/lib/rupower.rb CHANGED
@@ -4,7 +4,7 @@ require_relative "rupower/version"
4
4
  module Rupower
5
5
 
6
6
  module Parser
7
- TIME = Regexp.new( /\s+\([\s\w]*\)/ )
7
+ TIME = Regexp.new( /(\d{2}:){2}\d{2}\s\d{4}/ )
8
8
  NUMBER = Regexp.new(/^\d+[.]?\d*(|[%]|\s+\w+)$/) #( /\A[+-]?\d+?(\.\d+)?\Z/ )
9
9
  end
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rupower
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-26 00:00:00.000000000 Z
12
+ date: 2012-04-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'Rupower is UPower (http://upower.freedesktop.org) interface for Ruby,
15
15
  working for Battery and AC supply.
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  segments:
59
59
  - 0
60
- hash: -3585494195028919558
60
+ hash: 151074513370215442
61
61
  requirements: []
62
62
  rubyforge_project:
63
63
  rubygems_version: 1.8.17