clock_indicator 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: 85d495e45d8317e8d1644ea5ccaa74cde8589eb1
4
- data.tar.gz: d12028f69514c9706159451e3eafb03c4c99fabf
3
+ metadata.gz: 2e19c5773aa174e4cb056a1a52d0ca77a6400318
4
+ data.tar.gz: 01e7425d24f8b0e3db45ca1822b25bf9a382f1c5
5
5
  SHA512:
6
- metadata.gz: 07533a9de7a15f43806c26a1307496fcf4eabab13182a9dcca0d9bf91b5779007ecc7488047526dbc318fb8cb03066c14b24b2328fcf68268bbe0c42251be7a0
7
- data.tar.gz: 0242b1daa5b528fba7fa72efb36b0942588657fafbf512f892c532f761ac157ab5062ee0e498c92788fd9da8fa8ea336b519ab5a35674297dec089129d956ec8
6
+ metadata.gz: 20e0b9f3f8a54e412699832875007cb0d4721eda34964668be0dfbb5ded30b0ab24f091c21b4398707065c941c99b12b20ae21100d03969733ce79f44c7c346b
7
+ data.tar.gz: 33914b8a37dc4e578af67698a3faf5c055679ddefd7e91007308c68582c20d851df9a37632f30d90146a60bff79594d793e0589cbd28b0fe5bb7cd0543ba2fd5
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clock_indicator (0.0.1)
4
+ clock_indicator (0.0.2)
5
5
  activesupport
6
6
  gir_ffi-gtk
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (4.2.0)
11
+ activesupport (4.2.4)
12
12
  i18n (~> 0.7)
13
13
  json (~> 1.7, >= 1.7.7)
14
14
  minitest (~> 5.1)
@@ -16,30 +16,25 @@ GEM
16
16
  tzinfo (~> 1.1)
17
17
  binding_of_caller (0.7.2)
18
18
  debug_inspector (>= 0.0.1)
19
- byebug (3.5.1)
20
- columnize (~> 0.8)
21
- debugger-linecache (~> 1.2)
22
- slop (~> 3.6)
23
- celluloid (0.16.0)
24
- timers (~> 4.0.0)
25
- codeclimate-test-reporter (0.4.6)
19
+ byebug (5.0.0)
20
+ columnize (= 0.9.0)
21
+ codeclimate-test-reporter (0.4.8)
26
22
  simplecov (>= 0.7.1, < 1.0.0)
27
23
  coderay (1.1.0)
28
24
  columnize (0.9.0)
29
25
  debug_inspector (0.0.2)
30
- debugger-linecache (1.2.0)
31
26
  diff-lcs (1.2.5)
32
27
  docile (1.1.5)
33
- ffi (1.9.6)
28
+ ffi (1.9.10)
34
29
  formatador (0.2.5)
35
- gir_ffi (0.7.8)
30
+ gir_ffi (0.8.2)
36
31
  ffi (~> 1.8)
37
32
  indentation (~> 0.1.1)
38
- gir_ffi-gtk (0.7.2)
39
- gir_ffi (~> 0.7.6)
40
- guard (2.12.1)
33
+ gir_ffi-gtk (0.8.0)
34
+ gir_ffi (~> 0.8.0)
35
+ guard (2.13.0)
41
36
  formatador (>= 0.2.4)
42
- listen (~> 2.7)
37
+ listen (>= 2.7, <= 4.0)
43
38
  lumberjack (~> 1.0)
44
39
  nenv (~> 0.1)
45
40
  notiffany (~> 0.0)
@@ -47,66 +42,61 @@ GEM
47
42
  shellany (~> 0.0)
48
43
  thor (>= 0.18.1)
49
44
  guard-compat (1.2.1)
50
- guard-rspec (4.5.0)
45
+ guard-rspec (4.6.4)
51
46
  guard (~> 2.1)
52
47
  guard-compat (~> 1.1)
53
48
  rspec (>= 2.99.0, < 4.0)
54
- hitimes (1.2.2)
55
49
  i18n (0.7.0)
56
50
  indentation (0.1.1)
57
- json (1.8.2)
51
+ json (1.8.3)
58
52
  libnotify (0.9.1)
59
53
  ffi (>= 1.0.11)
60
- listen (2.8.5)
61
- celluloid (>= 0.15.2)
54
+ listen (3.0.3)
62
55
  rb-fsevent (>= 0.9.3)
63
56
  rb-inotify (>= 0.9)
64
57
  lumberjack (1.0.9)
65
58
  method_source (0.8.2)
66
- minitest (5.5.1)
67
- multi_json (1.10.1)
59
+ minitest (5.8.1)
68
60
  nenv (0.2.0)
69
- notiffany (0.0.5)
61
+ notiffany (0.0.8)
70
62
  nenv (~> 0.1)
71
63
  shellany (~> 0.0)
72
- pry (0.10.1)
64
+ pry (0.10.2)
73
65
  coderay (~> 1.1.0)
74
66
  method_source (~> 0.8.1)
75
67
  slop (~> 3.4)
76
- pry-byebug (3.0.1)
77
- byebug (~> 3.4)
68
+ pry-byebug (3.2.0)
69
+ byebug (~> 5.0)
78
70
  pry (~> 0.10)
79
71
  rake (10.4.2)
80
- rb-fsevent (0.9.4)
72
+ rb-fsevent (0.9.6)
81
73
  rb-inotify (0.9.5)
82
74
  ffi (>= 0.5.0)
83
75
  rspec (3.2.0)
84
76
  rspec-core (~> 3.2.0)
85
77
  rspec-expectations (~> 3.2.0)
86
78
  rspec-mocks (~> 3.2.0)
87
- rspec-core (3.2.0)
79
+ rspec-core (3.2.3)
88
80
  rspec-support (~> 3.2.0)
89
- rspec-expectations (3.2.0)
81
+ rspec-expectations (3.2.1)
90
82
  diff-lcs (>= 1.2.0, < 2.0)
91
83
  rspec-support (~> 3.2.0)
92
84
  rspec-its (1.2.0)
93
85
  rspec-core (>= 3.0.0)
94
86
  rspec-expectations (>= 3.0.0)
95
- rspec-mocks (3.2.0)
87
+ rspec-mocks (3.2.1)
96
88
  diff-lcs (>= 1.2.0, < 2.0)
97
89
  rspec-support (~> 3.2.0)
98
- rspec-support (3.2.1)
90
+ rspec-support (3.2.2)
99
91
  shellany (0.0.1)
100
- simplecov (0.9.2)
92
+ simplecov (0.10.0)
101
93
  docile (~> 1.1.0)
102
- multi_json (~> 1.0)
103
- simplecov-html (~> 0.9.0)
104
- simplecov-html (0.9.0)
94
+ json (~> 1.8)
95
+ simplecov-html (~> 0.10.0)
96
+ simplecov-html (0.10.0)
105
97
  slop (3.6.0)
106
98
  thor (0.19.1)
107
- thread_safe (0.3.4)
108
- timers (4.0.1)
109
- hitimes
99
+ thread_safe (0.3.5)
110
100
  tzinfo (1.2.2)
111
101
  thread_safe (~> 0.1)
112
102
 
data/README.md CHANGED
@@ -25,6 +25,10 @@ wouldn't work. So, I set out to writing one.
25
25
 
26
26
  ## Installation
27
27
 
28
+ Get https://github.com/PaulSD/Tray_Apps/tree/master/gtktrayicon
29
+ $ sudo apt-get install libgirepository1.0-dev gobject-introspection libgtk-3-dev
30
+ sudo make install
31
+
28
32
  $ gem install clock_indicator
29
33
 
30
34
  ## Usage
@@ -8,10 +8,10 @@ module ClockIndicator
8
8
 
9
9
  private
10
10
 
11
- CAL_WIDTH = 200
11
+ CAL_WIDTH = 350
12
12
 
13
13
  def cals_in_window
14
- (Gdk::Screen.width / CAL_WIDTH) / 2
14
+ [(Gdk::Screen.width / CAL_WIDTH) / 2, 3].min
15
15
  end
16
16
 
17
17
  def window
@@ -31,7 +31,7 @@ module ClockIndicator
31
31
  end
32
32
 
33
33
  def time_item_text
34
- Time.new.strftime("%A, %B %e, %Y %I:%M:%S %P")
34
+ Time.new.strftime("%A, %B %e, %Y %I:%M:%S %P".freeze)
35
35
  end
36
36
 
37
37
  def sub_menu
@@ -84,7 +84,7 @@ module ClockIndicator
84
84
  end
85
85
 
86
86
  def time_format
87
- "%a %m/%d/%Y <b>%I:%M%P</b> "
87
+ "%a %m/%d/%Y <b>%I:%M%P</b> ".freeze
88
88
  end
89
89
 
90
90
  def start_update_thread
@@ -1,3 +1,3 @@
1
1
  module ClockIndicator
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clock_indicator
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
  - Juan C. Müller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-23 00:00:00.000000000 Z
11
+ date: 2015-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler