lcbo 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
+
Version 0.9.2
|
2
|
+
|
3
|
+
* Fixed potential bug in some versions of Ruby where Object#send semantics cause a failure when calling private or protected methods.
|
4
|
+
|
1
5
|
Version 0.9.1
|
2
6
|
|
3
|
-
|
4
|
-
|
7
|
+
* Removed dependency on Addressable.
|
8
|
+
* Refactored tests to use MiniTest::Spec instead of RSpec, removing another dependency.
|
5
9
|
|
6
10
|
Version 0.9.0
|
7
11
|
|
@@ -16,17 +16,11 @@ module LCBO
|
|
16
16
|
'Nov' => '11',
|
17
17
|
'Dec' => '12' }
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
def initialize(input_string)
|
22
|
-
@input = input_string
|
23
|
-
end
|
24
|
-
|
25
|
-
def self.[](input_string)
|
26
|
-
new(input_string).as_sql_date
|
19
|
+
def self.[](input)
|
20
|
+
sql_date(input)
|
27
21
|
end
|
28
22
|
|
29
|
-
def
|
23
|
+
def self.sql_date(input)
|
30
24
|
return nil unless input
|
31
25
|
parts = input.gsub(',', '').split
|
32
26
|
month = MONTH_NAMES_TO_NUMBERS[parts[0]]
|
@@ -27,9 +27,7 @@ module LCBO
|
|
27
27
|
end
|
28
28
|
h[:store_no] = begin
|
29
29
|
node.
|
30
|
-
|
31
|
-
attribute('href').
|
32
|
-
value.
|
30
|
+
to_s.
|
33
31
|
match(/\?STORE=([0-9]{1,3})\&/).
|
34
32
|
captures[0].
|
35
33
|
to_s.
|
@@ -46,8 +44,6 @@ module LCBO
|
|
46
44
|
end
|
47
45
|
end
|
48
46
|
|
49
|
-
private
|
50
|
-
|
51
47
|
def inventory_table
|
52
48
|
doc.css('table[cellpadding="3"]')
|
53
49
|
end
|
data/lib/lcbo/version.rb
CHANGED