skv_report 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/Gemfile.lock +42 -85
- data/lib/skv_report/stripe.rb +9 -1
- data/lib/skv_report/version.rb +1 -1
- data/skv_report.gemspec +3 -2
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f539fc72f07bd1058801be68ba73fd09c16f53eea29be237e6a6f9c2988fe420
|
4
|
+
data.tar.gz: 3f763ceb8b2b9940912f1ab6306f02fbc354820f84a95154701fb43fd77fb9b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 773c8d07f0d6804dfa60b018ad89f37a48f2e508ad72bd9c42faa58d475bb75878e2c659f3e9129604540a6312c4972ab0f76b38bb4beba00bbeb776c8b01a11
|
7
|
+
data.tar.gz: 110abfeafc2219ddf510c830ab827e0f7d46d98ff93b54fb575ab1234fa3b5563802b7499d00f1605622eb5a2ff163683cde8c64f34eb1a13f644a6032708389
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
skv_report (0.3.
|
4
|
+
skv_report (0.3.6)
|
5
5
|
countries (~> 3.1.0)
|
6
6
|
money (~> 6.14)
|
7
7
|
rexml (~> 3.2)
|
@@ -10,113 +10,70 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
|
14
|
-
|
15
|
-
akami (1.3.1)
|
16
|
-
gyoku (>= 0.4.0)
|
17
|
-
nokogiri
|
18
|
-
ast (2.4.1)
|
19
|
-
builder (3.2.4)
|
20
|
-
byebug (11.1.3)
|
21
|
-
coderay (1.1.3)
|
22
|
-
concurrent-ruby (1.1.8)
|
13
|
+
ast (2.4.2)
|
14
|
+
concurrent-ruby (1.1.10)
|
23
15
|
countries (3.1.0)
|
24
16
|
i18n_data (~> 0.11.0)
|
25
17
|
sixarm_ruby_unaccent (~> 1.1)
|
26
18
|
unicode_utils (~> 1.4)
|
27
|
-
diff-lcs (1.
|
28
|
-
|
29
|
-
builder (>= 2.1.2)
|
30
|
-
httpi (2.5.0)
|
31
|
-
rack
|
32
|
-
socksify
|
33
|
-
i18n (1.8.10)
|
19
|
+
diff-lcs (1.5.0)
|
20
|
+
i18n (1.12.0)
|
34
21
|
concurrent-ruby (~> 1.0)
|
35
22
|
i18n_data (0.11.0)
|
36
|
-
|
37
|
-
|
38
|
-
money (6.14.1)
|
23
|
+
json (2.6.2)
|
24
|
+
money (6.16.0)
|
39
25
|
i18n (>= 0.6.4, <= 2)
|
40
|
-
|
41
|
-
|
42
|
-
racc (~> 1.4)
|
43
|
-
nokogiri (1.12.5-x86_64-darwin)
|
44
|
-
racc (~> 1.4)
|
45
|
-
nori (2.6.0)
|
46
|
-
parallel (1.20.1)
|
47
|
-
parser (3.0.0.0)
|
26
|
+
parallel (1.22.1)
|
27
|
+
parser (3.1.2.1)
|
48
28
|
ast (~> 2.4.1)
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
regexp_parser (2.0.3)
|
61
|
-
rexml (3.2.4)
|
62
|
-
rspec (3.10.0)
|
63
|
-
rspec-core (~> 3.10.0)
|
64
|
-
rspec-expectations (~> 3.10.0)
|
65
|
-
rspec-mocks (~> 3.10.0)
|
66
|
-
rspec-core (3.10.1)
|
67
|
-
rspec-support (~> 3.10.0)
|
68
|
-
rspec-expectations (3.10.1)
|
29
|
+
rainbow (3.1.1)
|
30
|
+
rake (13.0.6)
|
31
|
+
regexp_parser (2.6.1)
|
32
|
+
rexml (3.2.5)
|
33
|
+
rspec (3.12.0)
|
34
|
+
rspec-core (~> 3.12.0)
|
35
|
+
rspec-expectations (~> 3.12.0)
|
36
|
+
rspec-mocks (~> 3.12.0)
|
37
|
+
rspec-core (3.12.0)
|
38
|
+
rspec-support (~> 3.12.0)
|
39
|
+
rspec-expectations (3.12.0)
|
69
40
|
diff-lcs (>= 1.2.0, < 2.0)
|
70
|
-
rspec-support (~> 3.
|
71
|
-
rspec-mocks (3.
|
41
|
+
rspec-support (~> 3.12.0)
|
42
|
+
rspec-mocks (3.12.0)
|
72
43
|
diff-lcs (>= 1.2.0, < 2.0)
|
73
|
-
rspec-support (~> 3.
|
74
|
-
rspec-support (3.
|
75
|
-
rubocop (1.
|
44
|
+
rspec-support (~> 3.12.0)
|
45
|
+
rspec-support (3.12.0)
|
46
|
+
rubocop (1.39.0)
|
47
|
+
json (~> 2.3)
|
76
48
|
parallel (~> 1.10)
|
77
|
-
parser (>= 2.
|
49
|
+
parser (>= 3.1.2.1)
|
78
50
|
rainbow (>= 2.2.2, < 4.0)
|
79
51
|
regexp_parser (>= 1.8, < 3.0)
|
80
|
-
rexml
|
81
|
-
rubocop-ast (>= 1.
|
52
|
+
rexml (>= 3.2.5, < 4.0)
|
53
|
+
rubocop-ast (>= 1.23.0, < 2.0)
|
82
54
|
ruby-progressbar (~> 1.7)
|
83
|
-
unicode-display_width (>= 1.4.0, <
|
84
|
-
rubocop-ast (1.
|
85
|
-
parser (>=
|
86
|
-
rubocop-performance (1.
|
87
|
-
rubocop (>=
|
55
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
56
|
+
rubocop-ast (1.23.0)
|
57
|
+
parser (>= 3.1.1.0)
|
58
|
+
rubocop-performance (1.15.1)
|
59
|
+
rubocop (>= 1.7.0, < 2.0)
|
88
60
|
rubocop-ast (>= 0.4.0)
|
89
|
-
rubocop-rake (0.
|
90
|
-
rubocop
|
91
|
-
rubocop-rspec (2.1.0)
|
61
|
+
rubocop-rake (0.6.0)
|
92
62
|
rubocop (~> 1.0)
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
akami (~> 1.2)
|
97
|
-
builder (>= 2.1.2)
|
98
|
-
gyoku (~> 1.2)
|
99
|
-
httpi (~> 2.3)
|
100
|
-
nokogiri (>= 1.8.1)
|
101
|
-
nori (~> 2.4)
|
102
|
-
wasabi (~> 3.4)
|
63
|
+
rubocop-rspec (2.15.0)
|
64
|
+
rubocop (~> 1.33)
|
65
|
+
ruby-progressbar (1.11.0)
|
103
66
|
sixarm_ruby_unaccent (1.2.0)
|
104
|
-
|
105
|
-
unicode-display_width (1.7.0)
|
67
|
+
unicode-display_width (2.3.0)
|
106
68
|
unicode_utils (1.4.0)
|
107
|
-
valvat (1.1
|
108
|
-
|
109
|
-
wasabi (3.6.1)
|
110
|
-
addressable
|
111
|
-
httpi (~> 2.0)
|
112
|
-
nokogiri (>= 1.4.2)
|
69
|
+
valvat (1.2.1)
|
70
|
+
rexml (>= 3.2, < 4.0)
|
113
71
|
|
114
72
|
PLATFORMS
|
115
73
|
ruby
|
116
74
|
x86_64-darwin-19
|
117
75
|
|
118
76
|
DEPENDENCIES
|
119
|
-
pry-byebug
|
120
77
|
rake (~> 13.0)
|
121
78
|
rspec (~> 3.0)
|
122
79
|
rubocop (~> 1.7)
|
@@ -126,4 +83,4 @@ DEPENDENCIES
|
|
126
83
|
skv_report!
|
127
84
|
|
128
85
|
BUNDLED WITH
|
129
|
-
2.3.
|
86
|
+
2.3.11
|
data/lib/skv_report/stripe.rb
CHANGED
@@ -17,6 +17,7 @@ module SKVReport
|
|
17
17
|
# name: String, # contact name on selling company
|
18
18
|
# phone: String, # phone to contact on selling company
|
19
19
|
# email: String, # optional email to contact on selling company
|
20
|
+
# period_type: String, # defaults to 'quarter', can be set to month
|
20
21
|
# type_of_sales: String, # one of the following three
|
21
22
|
# ['wares', 'third_party', 'services']
|
22
23
|
# }
|
@@ -106,7 +107,14 @@ module SKVReport
|
|
106
107
|
end
|
107
108
|
|
108
109
|
def year_and_period
|
109
|
-
|
110
|
+
case @company_information.fetch(:period_type, 'quarter').to_s
|
111
|
+
when 'quarter'
|
112
|
+
"#{year_short}-#{period}"
|
113
|
+
when 'month'
|
114
|
+
"#{year_short}#{period.to_s.rjust(2, '0')}"
|
115
|
+
else
|
116
|
+
raise "Unsupported period type #{@company_information[:period_type]}"
|
117
|
+
end
|
110
118
|
end
|
111
119
|
|
112
120
|
def year_short
|
data/lib/skv_report/version.rb
CHANGED
data/skv_report.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ['frdrkolsson']
|
9
9
|
spec.email = ['fredrik.olsson@standout.se']
|
10
10
|
|
11
|
-
spec.summary = 'Generates CSV complete string for Skatteverkets '\
|
11
|
+
spec.summary = 'Generates CSV complete string for Skatteverkets ' \
|
12
12
|
'Periodisk Sammanfattning'
|
13
13
|
spec.description = spec.summary
|
14
14
|
spec.homepage = 'https://github.com/standout/skv_report'
|
@@ -34,9 +34,10 @@ Gem::Specification.new do |spec|
|
|
34
34
|
# spec.add_dependency to register a new dependency of your gem
|
35
35
|
spec.add_dependency 'countries', '~> 3.1.0'
|
36
36
|
spec.add_dependency 'money', '~> 6.14'
|
37
|
-
spec.add_dependency 'valvat', '~> 1.1'
|
38
37
|
spec.add_dependency 'rexml', '~> 3.2'
|
38
|
+
spec.add_dependency 'valvat', '~> 1.1'
|
39
39
|
|
40
40
|
# For more information and examples about making a new gem, checkout our
|
41
41
|
# guide at: https://bundler.io/guides/creating_gem.html
|
42
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
42
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skv_report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- frdrkolsson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: countries
|
@@ -39,33 +39,33 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '6.14'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rexml
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '3.2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '3.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: valvat
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '1.1'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '1.1'
|
69
69
|
description: Generates CSV complete string for Skatteverkets Periodisk Sammanfattning
|
70
70
|
email:
|
71
71
|
- fredrik.olsson@standout.se
|
@@ -99,6 +99,7 @@ metadata:
|
|
99
99
|
homepage_uri: https://github.com/standout/skv_report
|
100
100
|
source_code_uri: https://github.com/standout/skv_report
|
101
101
|
changelog_uri: https://github.com/standout/skv_report
|
102
|
+
rubygems_mfa_required: 'true'
|
102
103
|
post_install_message:
|
103
104
|
rdoc_options: []
|
104
105
|
require_paths:
|