zammad-szpm 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e64a091155d2dc314c8ae10414284f28dc623ae2
4
- data.tar.gz: bd0367db3b473ed84efb1e9e55d03a1cd4316c98
2
+ SHA256:
3
+ metadata.gz: 5dd969da5626f4d726b5d6f90f8c97a01fac244f95666e72970e3d8eb260f684
4
+ data.tar.gz: e0478829c5c19a0c19a5a88148d076685c6185e51b55cd897cd9818356dc12bb
5
5
  SHA512:
6
- metadata.gz: 53c171055624ae47224e00ecef35e5cb0f77d75311ee6b0e61eafd8478acd79a56a885939af5452816c100c502c79c858511280a8b0f15f4caf665f099eb3ac2
7
- data.tar.gz: 75819960c1917132080ca17697512ac133d229bbf55b682ccbb665c3b4c65d260769c1b41aa68d446dd08aacddbe86d85bfb4253f738673532b8b994797b6006
6
+ metadata.gz: 744b94a57da2ee63fb9baeb903138d494de4ff7f955e4f3827c219cac914d1fa853ed430402d55ea29a2c632dc14b1e81bf0592e570fdfc0dc946499d47f4276
7
+ data.tar.gz: a582b52d0db1895cde863a2e9b9c85f47535889690046564f53b59fbf84130623f1a03829a72842bf1c848a2480265f76395fd8be88d6e3cb98564cc43ca2fa2
data/.gitignore CHANGED
File without changes
data/.rubocop.yml CHANGED
@@ -1,7 +1,11 @@
1
+ require:
2
+ - rubocop-rails
3
+ - rubocop-rake
4
+
1
5
  # Default enabled cops
2
6
  # https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml
3
7
 
4
- Metrics/LineLength:
8
+ Layout/LineLength:
5
9
  Description: 'Limit lines to 80 characters.'
6
10
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
7
11
  Enabled: false
@@ -20,40 +24,40 @@ Style/IfUnlessModifier:
20
24
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
21
25
  Enabled: false
22
26
 
23
- Style/TrailingComma:
27
+ Layout/ExtraSpacing:
24
28
  Description: 'Checks for trailing comma in parameter lists and literals.'
25
29
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
26
30
  Enabled: false
27
31
 
28
- Style/SpaceInsideParens:
32
+ Layout/SpaceInsideParens:
29
33
  Description: 'No spaces after ( or before ).'
30
34
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
31
35
  Enabled: false
32
36
 
33
- Style/SpaceAfterMethodName:
37
+ Layout/SpaceAfterMethodName:
34
38
  Description: >-
35
39
  Do not put a space between a method name and the opening
36
40
  parenthesis in a method definition.
37
41
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
38
42
  Enabled: false
39
43
 
40
- Style/SingleSpaceBeforeFirstArg:
44
+ Layout/SpaceBeforeFirstArg:
41
45
  Description: >-
42
46
  Checks that exactly one space is used between a method name
43
47
  and the first argument for method calls without parentheses.
44
48
  Enabled: false
45
49
 
46
- Style/LeadingCommentSpace:
50
+ Layout/LeadingCommentSpace:
47
51
  Description: 'Comments should start with a space.'
48
52
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
49
- Enabled: false
53
+ Enabled: true
50
54
 
51
- Style/MethodCallParentheses:
55
+ Layout/SpaceInsideParens:
52
56
  Description: 'Do not use parentheses for method calls with no arguments.'
53
57
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
54
58
  Enabled: false
55
59
 
56
- Style/SpaceInsideBrackets:
60
+ Style/UnpackFirst:
57
61
  Description: 'No spaces after [ or before ].'
58
62
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
59
63
  Enabled: false
@@ -69,19 +73,19 @@ Style/MethodDefParentheses:
69
73
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
70
74
  Enabled: false
71
75
 
72
- Style/EmptyLinesAroundClassBody:
76
+ Layout/EmptyLinesAroundClassBody:
73
77
  Description: "Keeps track of empty lines around class bodies."
74
78
  Enabled: false
75
79
 
76
- Style/EmptyLinesAroundMethodBody:
80
+ Layout/EmptyLinesAroundMethodBody:
77
81
  Description: "Keeps track of empty lines around method bodies."
78
82
  Enabled: false
79
83
 
80
- Style/EmptyLinesAroundBlockBody:
84
+ Layout/EmptyLinesAroundBlockBody:
81
85
  Description: "Keeps track of empty lines around block bodies."
82
86
  Enabled: false
83
87
 
84
- Style/EmptyLinesAroundModuleBody:
88
+ Layout/EmptyLinesAroundModuleBody:
85
89
  Description: "Keeps track of empty lines around module bodies."
86
90
  Enabled: false
87
91
 
@@ -124,24 +128,15 @@ Style/SelfAssignment:
124
128
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
125
129
  Enabled: false
126
130
 
127
- Style/BracesAroundHashParameters:
131
+ Layout/SpaceAroundBlockParameters:
128
132
  Description: 'Enforce braces style around hash parameters.'
129
133
  Enabled: false
130
134
 
131
- Rails/FindEach:
132
- Description: 'Prefer all.find_each over all.find.'
133
- Enabled: false
134
-
135
- Rails/HasAndBelongsToMany:
136
- Description: 'Prefer has_many :through to has_and_belongs_to_many.'
137
- # StyleGuide: 'https://github.com/bbatsov/rails-style-guide#has-many-through'
138
- Enabled: false
139
-
140
135
  Style/ClassAndModuleChildren:
141
136
  Description: 'Checks style of children classes and modules.'
142
137
  Enabled: false
143
138
 
144
- Style/FileName:
139
+ Naming/FileName:
145
140
  Description: 'Use snake_case for source file names.'
146
141
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
147
142
  Enabled: true
data/CODE_OF_CONDUCT.md CHANGED
File without changes
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in zammad-szpm.gemspec
data/Gemfile.lock CHANGED
@@ -1,37 +1,69 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zammad-szpm (0.2.3)
4
+ zammad-szpm (0.2.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- ast (2.2.0)
10
- astrolabe (1.3.1)
11
- parser (~> 2.2)
12
- parser (2.2.3.0)
13
- ast (>= 1.1, < 3.0)
14
- powerpack (0.1.1)
15
- rainbow (2.0.0)
16
- rake (10.4.2)
17
- rubocop (0.35.1)
18
- astrolabe (~> 1.3)
19
- parser (>= 2.2.3.0, < 3.0)
20
- powerpack (~> 0.1)
21
- rainbow (>= 1.99.1, < 3.0)
9
+ activesupport (7.0.7)
10
+ concurrent-ruby (~> 1.0, >= 1.0.2)
11
+ i18n (>= 1.6, < 2)
12
+ minitest (>= 5.1)
13
+ tzinfo (~> 2.0)
14
+ ast (2.4.2)
15
+ base64 (0.1.1)
16
+ concurrent-ruby (1.2.2)
17
+ i18n (1.14.1)
18
+ concurrent-ruby (~> 1.0)
19
+ json (2.6.3)
20
+ language_server-protocol (3.17.0.3)
21
+ minitest (5.19.0)
22
+ parallel (1.23.0)
23
+ parser (3.2.2.3)
24
+ ast (~> 2.4.1)
25
+ racc
26
+ racc (1.7.1)
27
+ rack (3.0.8)
28
+ rainbow (3.1.1)
29
+ rake (13.0.6)
30
+ regexp_parser (2.8.1)
31
+ rexml (3.2.6)
32
+ rubocop (1.56.1)
33
+ base64 (~> 0.1.1)
34
+ json (~> 2.3)
35
+ language_server-protocol (>= 3.17.0)
36
+ parallel (~> 1.10)
37
+ parser (>= 3.2.2.3)
38
+ rainbow (>= 2.2.2, < 4.0)
39
+ regexp_parser (>= 1.8, < 3.0)
40
+ rexml (>= 3.2.5, < 4.0)
41
+ rubocop-ast (>= 1.28.1, < 2.0)
22
42
  ruby-progressbar (~> 1.7)
23
- tins (<= 1.6.0)
24
- ruby-progressbar (1.7.5)
25
- tins (1.6.0)
43
+ unicode-display_width (>= 2.4.0, < 3.0)
44
+ rubocop-ast (1.29.0)
45
+ parser (>= 3.2.1.0)
46
+ rubocop-rails (2.20.2)
47
+ activesupport (>= 4.2.0)
48
+ rack (>= 1.1)
49
+ rubocop (>= 1.33.0, < 2.0)
50
+ rubocop-rake (0.6.0)
51
+ rubocop (~> 1.0)
52
+ ruby-progressbar (1.13.0)
53
+ tzinfo (2.0.6)
54
+ concurrent-ruby (~> 1.0)
55
+ unicode-display_width (2.4.2)
26
56
 
27
57
  PLATFORMS
28
58
  ruby
29
59
 
30
60
  DEPENDENCIES
31
- bundler (~> 1.11)
32
- rake (~> 10.0)
61
+ bundler (> 2.0)
62
+ rake
33
63
  rubocop
64
+ rubocop-rails
65
+ rubocop-rake
34
66
  zammad-szpm!
35
67
 
36
68
  BUNDLED WITH
37
- 1.14.6
69
+ 2.4.6
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  task default: :spec
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # General Zammad class, for later/other purposes maybe. Should handle more Zammad related stuff
2
4
  class Zammad
3
5
  # Handles all SZPM and ZPM related stuff
4
6
  class SZPM
5
- VERSION = '0.2.3'
7
+ VERSION = '0.2.4'
6
8
  end
7
9
  end
data/lib/zammad/szpm.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'nokogiri'
2
4
  require 'base64'
3
5
  require 'zammad/szpm/version'
@@ -7,8 +9,7 @@ class Zammad
7
9
  # Handles all SZPM and ZPM related stuff
8
10
  class SZPM
9
11
 
10
- attr_reader :szpm
11
- attr_reader :structure
12
+ attr_reader :szpm, :structure
12
13
 
13
14
  # Creates an instance based on a given SZPM file path.
14
15
  #
@@ -43,10 +44,10 @@ class Zammad
43
44
 
44
45
  # append entry
45
46
  @structure['change_log'].push({
46
- 'version' => version,
47
- 'date' => Time.zone.now,
48
- 'content' => change_log
49
- })
47
+ 'version' => version,
48
+ 'date' => Time.zone.now,
49
+ 'content' => change_log
50
+ })
50
51
 
51
52
  store
52
53
  end
@@ -87,8 +88,8 @@ class Zammad
87
88
  return if !update
88
89
 
89
90
  @structure['files'].push({
90
- 'location' => location,
91
- 'permission' => permission,
91
+ 'location' => location,
92
+ 'permission' => permission
92
93
  })
93
94
 
94
95
  store
data/zammad-szpm.gemspec CHANGED
@@ -1,5 +1,6 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'zammad/szpm/version'
5
6
 
@@ -16,7 +17,10 @@ Gem::Specification.new do |spec|
16
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
18
  spec.require_paths = ['lib']
18
19
 
19
- spec.add_development_dependency 'bundler', '~> 1.11'
20
- spec.add_development_dependency 'rake', '~> 10.0'
20
+ spec.required_ruby_version = '>= 3.0'
21
+ spec.add_development_dependency 'bundler', '> 2.0'
22
+ spec.add_development_dependency 'rake'
21
23
  spec.add_development_dependency 'rubocop'
24
+ spec.add_development_dependency 'rubocop-rails'
25
+ spec.add_development_dependency 'rubocop-rake'
22
26
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zammad-szpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thorsten Eckel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-16 00:00:00.000000000 Z
11
+ date: 2023-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.11'
19
+ version: '2.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.11'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +52,34 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
55
83
  description:
56
84
  email:
57
85
  - thorsten.eckel@znuny.com
@@ -84,15 +112,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
112
  requirements:
85
113
  - - ">="
86
114
  - !ruby/object:Gem::Version
87
- version: '0'
115
+ version: '3.0'
88
116
  required_rubygems_version: !ruby/object:Gem::Requirement
89
117
  requirements:
90
118
  - - ">="
91
119
  - !ruby/object:Gem::Version
92
120
  version: '0'
93
121
  requirements: []
94
- rubyforge_project:
95
- rubygems_version: 2.6.8
122
+ rubygems_version: 3.4.10
96
123
  signing_key:
97
124
  specification_version: 4
98
125
  summary: This gem provides a class to parse, manipulate and store SZPM files and create