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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b81630fc9e1e5c118178059c5ae3a995191f0a35624492829cc327c1b1e23efa
4
- data.tar.gz: cc3c8d358221b4ffaf11022603e3b83634d12497afeaada408f8eb3c0aa15511
3
+ metadata.gz: db092c005c0775b939888e325df4289324ec27ad40072b58774e64201eda9d9f
4
+ data.tar.gz: b4be41870b4d6d9bc39a376a49bf609f69a3129f36e6c0f49396cf9ee4316f18
5
5
  SHA512:
6
- metadata.gz: e83bb0649a6f3eba6f24ff2363ac39fba1a6fdacdfd1ee2d473ce677aacd99e90bcac63433f17e6a4da7991cada1e3b380d454bc00a250c767c7273cc241e4b8
7
- data.tar.gz: cfb18079c86ef65814f5aff3187c33aba6cb2847ae14858f0ab22e1cb0a21ea1421da26aecdd1431678c9cdfc97752189f47121ad222754b0bfa2a03f206ec8b
6
+ metadata.gz: 9e2d9d68063b7fb70c0bc0b8d056fb80f2fe5ad83b63fe7974fb7a16e332a9a1e7e5e90203b747187ffcc2adab8a2b74dc21ce42f590b0278c8605125cc2f1d8
7
+ data.tar.gz: 5e2cf0c6291fbcda9538c8449a25dc9266f32e9e3bf1cba2641a8390fce8f8c4dfe09ab6e21668a23b63a4202b3cb8e51bc12889e530a35d008fdeaffb2e7101
data/Gemfile CHANGED
@@ -1,7 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in salary_croatia.gemspec
4
-
4
+ gemspec
5
5
 
6
6
  gem 'rspec'
7
- gem 'creek', '~> 1.1'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- salary_croatia (0.1.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.0.0)
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://bitbucket.org/l00ksi/salary_croatia/src/master/. 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.
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
 
@@ -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 == 74
40
- @@dates_hash = row if index == 5
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
- cd = ConvertDate.new
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
 
@@ -1,3 +1,3 @@
1
1
  module SalaryCroatia
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -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://bitbucket.org/l00ksi/salary_croatia/src/master/"
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://bitbucket.org/l00ksi/salary_croatia/src/master/"
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.2
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-01-08 00:00:00.000000000 Z
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://bitbucket.org/l00ksi/salary_croatia/src/master/
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://bitbucket.org/l00ksi/salary_croatia/src/master/
98
- source_code_uri: https://bitbucket.org/l00ksi/salary_croatia/src/master/
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: