argentine_holidays 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +6 -14
  2. data/LICENSE +20 -0
  3. data/lib/argentine_holidays.rb +2 -2
  4. metadata +9 -7
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NGI5YTk1MjViMjMxYTE5ODJlYTAzNTgxYWY0NzQ3ZDUyNGVlMzZkNQ==
5
- data.tar.gz: !binary |-
6
- YjRlNjZlZTZmZmZlYzFhZDZjZjkxZDlkMjgzMGYxNDkwMDc1NmJhNQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- OTliYTE0ZGNiODM2ODQ1YmM2MmM3YzNjZmZlNjUzYmVmNGIwYTkzN2Y4Yjg3
10
- NmE1NmFlY2Q1OTMyMGRjMTc2YzJhNDQxNDQyNGZjOTU0ZGZlMGMyNTg2Y2Uw
11
- ZmQ3N2E2OGM1NzBiMWVjNjY5OGIzMmI1YWNiNDgzZTJkZDlhNDg=
12
- data.tar.gz: !binary |-
13
- YThlMjQxYWNkMDRiM2VkYzdlMzc3M2I0ODFiNDc3MzBhNmY4ZWZjMDJkOThh
14
- NDg1N2YxOGRiYzZhMDg1NThlOTRjZWFiMTI0YzBkMTU5ZjVjY2ZlODMzZWFl
15
- YzQ0YWI0ZjdkMWIzZDY1MmRjZDA0MjY5YjY4NjkwMDQ2ZGVhYTU=
2
+ SHA1:
3
+ metadata.gz: 156f69df6ae78b13ad4adcfa7746ffa536f90c05
4
+ data.tar.gz: 46a4948f4f7115ec2c301594f3b85a3ed392974f
5
+ SHA512:
6
+ metadata.gz: 31d90f560d169c871c7e4c521c3345ad11a3d0eaa6bc51ef466174452a3d7df680c5723e2ea134184ab07e69316e758daeac47c1cdb4cecf52f9b727d5c701fe
7
+ data.tar.gz: b3aa04c781205914e3407b78798efd1d8e26d95a07ba2511d68bc54b6498548b58f139b86a4b2bb81c7174282e8482be2e7dbe8627a1a9d76f1e78e392e9f21a
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Roberto Romero
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -27,12 +27,12 @@ class ArgentineHolidays
27
27
 
28
28
  # Non-movable
29
29
  tables[0].css('tr')[1..-1].each {|i|
30
- @@dates += parse_date(i.children[0].text, year)
30
+ @@dates += parse_date(i.children[1].text, year)
31
31
  }
32
32
 
33
33
  # Movable
34
34
  tables[1].css('tr')[1..-1].each {|i|
35
- @@dates += parse_date(i.children[2].text, year)
35
+ @@dates += parse_date(i.children[3].text, year)
36
36
  }
37
37
  @@dates.sort!
38
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: argentine_holidays
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Romero
@@ -14,22 +14,24 @@ dependencies:
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.6.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.6.1
27
- description: A library to fetch argentine holidays from the official source
27
+ description: A library to fetch argentine holidays from the official source. It takes
28
+ movable holidays into account
28
29
  email: sildurin@gmail.com
29
30
  executables: []
30
31
  extensions: []
31
32
  extra_rdoc_files: []
32
33
  files:
34
+ - LICENSE
33
35
  - lib/argentine_holidays.rb
34
36
  homepage: https://github.com/sildur/argentine_holidays
35
37
  licenses:
@@ -41,17 +43,17 @@ require_paths:
41
43
  - lib
42
44
  required_ruby_version: !ruby/object:Gem::Requirement
43
45
  requirements:
44
- - - ! '>='
46
+ - - ">="
45
47
  - !ruby/object:Gem::Version
46
48
  version: '0'
47
49
  required_rubygems_version: !ruby/object:Gem::Requirement
48
50
  requirements:
49
- - - ! '>='
51
+ - - ">="
50
52
  - !ruby/object:Gem::Version
51
53
  version: '0'
52
54
  requirements: []
53
55
  rubyforge_project:
54
- rubygems_version: 2.0.6
56
+ rubygems_version: 2.4.5
55
57
  signing_key:
56
58
  specification_version: 4
57
59
  summary: A library to fetch argentine holidays from the official source