tube 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tube/status_parser.rb +6 -1
- data/test/status_parser_test.rb +1 -1
- metadata +36 -40
data/lib/tube/status_parser.rb
CHANGED
@@ -103,7 +103,12 @@ module Tube # :nodoc:
|
|
103
103
|
bst_end = Time.gm( bst_end.year, bst_end.month, bst_end.day )
|
104
104
|
bst_end += one_hour
|
105
105
|
|
106
|
-
(bst_start..bst_end)
|
106
|
+
bst = (bst_start..bst_end)
|
107
|
+
if bst.respond_to?(:cover?)
|
108
|
+
bst.cover?( Time.now.getgm )
|
109
|
+
else
|
110
|
+
bst.include?( Time.now.getgm )
|
111
|
+
end
|
107
112
|
end
|
108
113
|
|
109
114
|
# :call-seq: last_sunday_of_month(month_name) -> date
|
data/test/status_parser_test.rb
CHANGED
metadata
CHANGED
@@ -1,36 +1,35 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: tube
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.5
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- Matthew Sadler
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-07-20 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: nokogiri
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
- !ruby/object:Gem::Version
|
16
|
+
requirement: &2153504660 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 1.4.1
|
24
|
-
|
25
|
-
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2153504660
|
25
|
+
description: A simple Ruby library to access the status of the London Underground
|
26
|
+
network.
|
26
27
|
email: mat@sourcetagsandcodes.com
|
27
28
|
executables: []
|
28
|
-
|
29
29
|
extensions: []
|
30
|
-
|
31
|
-
extra_rdoc_files:
|
30
|
+
extra_rdoc_files:
|
32
31
|
- README.rdoc
|
33
|
-
files:
|
32
|
+
files:
|
34
33
|
- lib/tube/line.rb
|
35
34
|
- lib/tube/station.rb
|
36
35
|
- lib/tube/status.rb
|
@@ -39,34 +38,31 @@ files:
|
|
39
38
|
- test/status_parser_test.rb
|
40
39
|
- examples/service_board.rb
|
41
40
|
- README.rdoc
|
42
|
-
has_rdoc: true
|
43
41
|
homepage: http://github.com/matsadler/tube
|
44
42
|
licenses: []
|
45
|
-
|
46
43
|
post_install_message:
|
47
|
-
rdoc_options:
|
44
|
+
rdoc_options:
|
48
45
|
- --main
|
49
46
|
- README.rdoc
|
50
|
-
require_paths:
|
47
|
+
require_paths:
|
51
48
|
- lib
|
52
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ! '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
64
61
|
requirements: []
|
65
|
-
|
66
62
|
rubyforge_project:
|
67
|
-
rubygems_version: 1.
|
63
|
+
rubygems_version: 1.8.7
|
68
64
|
signing_key:
|
69
65
|
specification_version: 3
|
70
66
|
summary: Access the status of the London Underground network.
|
71
|
-
test_files:
|
67
|
+
test_files:
|
72
68
|
- test/status_parser_test.rb
|