salary_croatia 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -2
- data/Gemfile.lock +2 -3
- data/README.md +1 -1
- data/lib/salary_croatia.rb +4 -14
- data/lib/salary_croatia/version.rb +1 -1
- data/salary_croatia.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db092c005c0775b939888e325df4289324ec27ad40072b58774e64201eda9d9f
|
4
|
+
data.tar.gz: b4be41870b4d6d9bc39a376a49bf609f69a3129f36e6c0f49396cf9ee4316f18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e2d9d68063b7fb70c0bc0b8d056fb80f2fe5ad83b63fe7974fb7a16e332a9a1e7e5e90203b747187ffcc2adab8a2b74dc21ce42f590b0278c8605125cc2f1d8
|
7
|
+
data.tar.gz: 5e2cf0c6291fbcda9538c8449a25dc9266f32e9e3bf1cba2641a8390fce8f8c4dfe09ab6e21668a23b63a4202b3cb8e51bc12889e530a35d008fdeaffb2e7101
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
salary_croatia (0.1.
|
4
|
+
salary_croatia (0.1.2)
|
5
5
|
creek (~> 1.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -28,14 +28,13 @@ GEM
|
|
28
28
|
diff-lcs (>= 1.2.0, < 2.0)
|
29
29
|
rspec-support (~> 3.9.0)
|
30
30
|
rspec-support (3.9.0)
|
31
|
-
rubyzip (2.
|
31
|
+
rubyzip (2.2.0)
|
32
32
|
|
33
33
|
PLATFORMS
|
34
34
|
ruby
|
35
35
|
|
36
36
|
DEPENDENCIES
|
37
37
|
bundler (~> 2.0)
|
38
|
-
creek (~> 1.1)
|
39
38
|
rake (~> 10.0)
|
40
39
|
rspec
|
41
40
|
salary_croatia!
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
33
33
|
|
34
34
|
## Contributing
|
35
35
|
|
36
|
-
Bug reports and pull requests are welcome on GitHub at https://
|
36
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/salary_croatia. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
37
37
|
|
38
38
|
## License
|
39
39
|
|
data/lib/salary_croatia.rb
CHANGED
@@ -12,15 +12,6 @@ class WageStats
|
|
12
12
|
@@dates_hash = {}
|
13
13
|
@@merged_hash = {}
|
14
14
|
|
15
|
-
# ------------------------------------------------------------------------------
|
16
|
-
|
17
|
-
def initialize(file=FILE_NAME, download=WAGE_STATISTICS_URL)
|
18
|
-
self.file_name = file
|
19
|
-
self.download_url = download
|
20
|
-
end
|
21
|
-
|
22
|
-
# ------------------------------------------------------------------------------
|
23
|
-
|
24
15
|
|
25
16
|
# class method, that is using default values for download and file_name
|
26
17
|
def self.update_stats(filename=FILE_NAME, download_url=WAGE_STATISTICS_URL)
|
@@ -30,14 +21,14 @@ class WageStats
|
|
30
21
|
saved_file.write(read_file.read)
|
31
22
|
end
|
32
23
|
end
|
33
|
-
puts "Updated stats!"
|
24
|
+
#puts "Updated stats!"
|
34
25
|
end
|
35
26
|
|
36
27
|
if (@@average_salary_hash.empty?)
|
37
28
|
file_data = Creek::Book.new filename
|
38
29
|
file_data.sheets[0].rows.each_with_index do |row, index|
|
39
|
-
@@average_salary_hash = row if index ==
|
40
|
-
@@dates_hash = row if index ==
|
30
|
+
@@average_salary_hash = row if index == 75
|
31
|
+
@@dates_hash = row if index == 6
|
41
32
|
end
|
42
33
|
end
|
43
34
|
end
|
@@ -63,8 +54,7 @@ class WageStats
|
|
63
54
|
self.update_stats
|
64
55
|
self.merge_arrays
|
65
56
|
end
|
66
|
-
|
67
|
-
converted_date = cd.transform_date(date)
|
57
|
+
converted_date = ConvertDate.new.transform_date(date)
|
68
58
|
return @@merged_hash[converted_date.to_s]
|
69
59
|
end
|
70
60
|
|
data/salary_croatia.gemspec
CHANGED
@@ -9,13 +9,13 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ["lukapovreslo@gmail.com"]
|
10
10
|
|
11
11
|
spec.summary = %q{Gem for statistics about Croatia national average net monthly salary.}
|
12
|
-
spec.homepage = "https://
|
12
|
+
spec.homepage = "https://github.com/luka55/salary_croatia"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
15
|
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
16
16
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
-
spec.metadata["source_code_uri"] = "https://
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/luka55/salary_croatia"
|
19
19
|
|
20
20
|
# Specify which files should be added to the gem when it is released.
|
21
21
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salary_croatia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luka
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -89,13 +89,13 @@ files:
|
|
89
89
|
- lib/salary_croatia/data_type_helper.rb
|
90
90
|
- lib/salary_croatia/version.rb
|
91
91
|
- salary_croatia.gemspec
|
92
|
-
homepage: https://
|
92
|
+
homepage: https://github.com/luka55/salary_croatia
|
93
93
|
licenses:
|
94
94
|
- MIT
|
95
95
|
metadata:
|
96
96
|
allowed_push_host: https://rubygems.org
|
97
|
-
homepage_uri: https://
|
98
|
-
source_code_uri: https://
|
97
|
+
homepage_uri: https://github.com/luka55/salary_croatia
|
98
|
+
source_code_uri: https://github.com/luka55/salary_croatia
|
99
99
|
post_install_message:
|
100
100
|
rdoc_options: []
|
101
101
|
require_paths:
|