apache-log4j-2 2.12.1.r07-java → 2.17.1.r05-java

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: 9e3c98c7ef74e16499573aafd4d8fed20f41d993a0cdd41ea33d8d64585a1023
4
- data.tar.gz: d93f005596d6b3675aa08f5aa141ecaafc2b63249f4bb926762cc1c551d04bc3
3
+ metadata.gz: 701fde94a1cd7ea87cd7ab2d43fae5d8c9c4aed404371d6c8163047d71d5c344
4
+ data.tar.gz: cc446cc49fac9ba7daa6a26a55f735914d02e606190fe84b8080921721f08201
5
5
  SHA512:
6
- metadata.gz: 86e72e20aed8dec3f6a89b5260b4f090902039f77d997f6e949607fd453ccd8fdfd4d0ca2be408703eb76128c5c8141463cc9562e6a65be62d3f10a6561d3f28
7
- data.tar.gz: 8e9c1e9f4a5a176d0ae88135f2c20d2686ae40714b024bf703cbe534f1a7cb5913ea9769e9ff23a7146af05bcd7c65602d2f2ceac0393c2a41c171a816e7abec
6
+ metadata.gz: e7b61deac2c7f5976cd0cfd7000070d24b6d353f8ffd92419f07fdfe5910c5557a022654d634a8d65419e51e7b1105e06f1246ebcbdfc17ec6195c97df85cf79
7
+ data.tar.gz: df2402d208b195e90ac6f64233b287f58901636993be2740b5074104108a5385e5bf8cf78a998d39fe7efaca480569074f23c59758730bc20fd16e774385ef14
data/README.md CHANGED
@@ -2,23 +2,36 @@
2
2
 
3
3
  This packages the Apache Log4j 2 jars into a convenient gem for requiring.
4
4
 
5
- ```
5
+ ```rb
6
6
  require 'log4j-2'
7
7
  ```
8
8
 
9
+ ## Setup
10
+
11
+ To setup the development environmet for building the gem, execute:
12
+
13
+ ```sh
14
+ asdf plugin add ruby
15
+ asdf list all ruby > /dev/null
16
+ asdf install ruby
17
+ gem install bundler
18
+ bundle install
19
+ ```
20
+
9
21
  ## Building
10
22
 
11
23
  To clean the project, run unit tests, build the gem file, and verify that the built artifact works, execute:
12
24
 
13
- ```{sh}
14
- jruby -S rake clobber package spec gem verify
25
+ ```sh
26
+ bundle exec rake clobber package spec gem verify
15
27
  ```
16
28
 
29
+
17
30
  ## Publish
18
31
 
19
32
  To publish the gem, execute:
20
33
 
21
- ```{sh}
22
- jruby -S rake publish
34
+ ```sh
35
+ bundle exec rake publish
23
36
  ```
24
37
 
data/Rakefile CHANGED
@@ -8,11 +8,8 @@ require 'rake/clean'
8
8
 
9
9
  load 'apache-log4j-2.gemspec'
10
10
 
11
- SOURCE_PATH = File.expand_path(File.dirname(__FILE__))
12
- GEM_SPEC_FILENAME = "#{GEM_SPEC.name}.gemspec"
13
- GEM_FILENAME = "#{GEM_SPEC.full_name}.gem"
14
- CLEAN.add 'lib/**/*.jar', 'tmp'
15
- CLOBBER.add '*.gem', 'pkg'
11
+ CLEAN.add File.join('lib', '**', '*.jar'), 'tmp'
12
+ CLOBBER.add '*.gem', 'gem', 'pkg'
16
13
 
17
14
  desc 'Resolve dependencies'
18
15
  task :dependencies do
@@ -27,27 +24,38 @@ end
27
24
  desc 'Assemble the gem package'
28
25
  task :package do
29
26
  require 'fileutils'
30
- package_dir_path = File.join('pkg', GEM_SPEC.full_name)
27
+ gem_spec_full_name = GEM_SPEC.full_name
28
+ gem_spec_name = GEM_SPEC.name
29
+ gem_spec_ruby = GEM_SPEC.to_ruby
30
+ gem_spec_file_name = gem_spec_name + '.gemspec'
31
+ package_dir_path = File.join('pkg', gem_spec_full_name)
31
32
  FileUtils.mkdir_p package_dir_path
32
33
  FileUtils.cp_r 'ext', package_dir_path
33
34
  FileUtils.cp_r 'lib', package_dir_path
34
35
  FileUtils.cp ['LICENSE.txt', 'Rakefile', 'README.md'], package_dir_path
35
- package_gemspec_file_path = File.join(package_dir_path, GEM_SPEC_FILENAME)
36
+ package_gemspec_file_path = File.join(package_dir_path, gem_spec_file_name)
36
37
  File.open(package_gemspec_file_path, 'w') do |io|
37
- io.write(GEM_SPEC.to_ruby)
38
+ io.write(gem_spec_ruby)
38
39
  end
39
40
  end
40
41
  task package: :dependencies
41
42
 
42
43
  desc 'Build the gem from the assembled package'
43
44
  task :gem do
44
- package_dir_path = File.join('pkg', GEM_SPEC.full_name)
45
+ # Reload the gem spec version
46
+ GEM_SPEC.version = Log4j2::release_version
47
+ gem_spec_name = GEM_SPEC.name
48
+ gem_spec_full_name = GEM_SPEC.full_name
49
+ package_dir_path = File.join('pkg', gem_spec_full_name)
45
50
  Rake::Task[:package].invoke unless File.directory? package_dir_path
46
- gem_file_path = File.join(package_dir_path, GEM_FILENAME)
51
+ gem_file_name = gem_spec_full_name + '.gem'
52
+ gem_file_path = File.join(package_dir_path, gem_file_name)
53
+ gem_spec_file_name = gem_spec_name + '.gemspec'
47
54
  Dir.chdir(package_dir_path) do
48
- system('jgem', 'build', GEM_SPEC_FILENAME)
55
+ system('jgem', 'build', gem_spec_file_name)
49
56
  end
50
- FileUtils.mv gem_file_path, SOURCE_PATH if File.exists? gem_file_path
57
+ project_path = File.expand_path(__dir__)
58
+ FileUtils.mv(gem_file_path, project_path) if File.exists? gem_file_path
51
59
  end
52
60
 
53
61
  # Unit tests
@@ -60,22 +68,29 @@ begin
60
68
 
61
69
  desc 'Run unit tests'
62
70
  RSpec::Core::RakeTask.new(:spec) do |task|
63
- task.pattern = 'spec/rake/*_spec.rb'
71
+ # Reload the gem spec version
72
+ GEM_SPEC.version = Log4j2::release_version
73
+ task.pattern = File.join('spec', 'rake', '*_spec.rb')
64
74
  end
65
75
 
66
76
  desc 'Run coverage'
67
77
  RSpec::Core::RakeTask.new(:rcov) do |task|
78
+ # Reload the gem spec version
79
+ GEM_SPEC.version = Log4j2::release_version
68
80
  task.rcov = true
69
- task.pattern = 'spec/rake/*_spec.rb'
81
+ task.pattern = File.join('spec', 'rake', '*_spec.rb')
70
82
  end
71
83
 
72
84
  desc 'Run gem verification tests'
73
85
  RSpec::Core::RakeTask.new(:verify) do |task|
74
- gem_path = File.join(SOURCE_PATH, GEM_FILENAME)
75
- ENV['GEM_PATH'] = gem_path
76
- ENV['GEM_SPEC_FULL_NAME'] = GEM_SPEC.full_name
86
+ # Reload the gem spec version
87
+ GEM_SPEC.version = Log4j2::release_version
88
+ gem_spec_full_name = GEM_SPEC.full_name
89
+ gem_file_name = gem_spec_full_name + '.gem'
90
+ project_path = File.expand_path(__dir__)
91
+ gem_path = File.join(project_path, gem_file_name)
77
92
  Rake::Task[:gem].invoke unless File.exists? gem_path
78
- task.pattern = 'spec/verify/*_spec.rb'
93
+ task.pattern = File.join('spec', 'verify', '*_spec.rb')
79
94
  end
80
95
 
81
96
  task :default => :spec
@@ -88,7 +103,12 @@ end
88
103
 
89
104
  desc 'Upload gem to https://rubygems.org/'
90
105
  task :publish do
91
- gem_path = File.join(SOURCE_PATH, GEM_FILENAME)
106
+ # Reload the gem spec version
107
+ GEM_SPEC.version = Log4j2::release_version
108
+ gem_spec_full_name = GEM_SPEC.full_name
109
+ gem_file_name = gem_spec_full_name + '.gem'
110
+ project_path = File.expand_path(__dir__)
111
+ gem_path = File.join(project_path, gem_file_name)
92
112
  Rake::Task[:gem].invoke unless File.exists? gem_path
93
113
  system('jgem', 'push', gem_path)
94
114
  end
@@ -1,37 +1,34 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: apache-log4j-2 2.12.1.r07 java lib
2
+ # stub: apache-log4j-2 2.17.1.r05 java lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "apache-log4j-2".freeze
6
- s.version = "2.12.1.r07"
6
+ s.version = "2.17.1.r05"
7
7
  s.platform = "java".freeze
8
8
 
9
9
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version=
10
- s.metadata = { "bug_tracker_uri" => "https://gitlab.com/nelsnelson/apache-log4j-2/issues", "source_code_uri" => "https://gitlab.com/nelsnelson/apache-log4j-2" } if s.respond_to? :metadata=
10
+ s.metadata = { "bug_tracker_uri" => "https://gitlab.com/nelsnelson/apache-log4j-2/issues", "canonical_pom_uri" => "https://search.maven.org/remotecontent?filepath=org/apache/logging/log4j/log4j/2.12.1/log4j-2.12.1.pom", "source_code_uri" => "https://gitlab.com/nelsnelson/apache-log4j-2" } if s.respond_to? :metadata=
11
11
  s.require_paths = ["lib".freeze]
12
12
  s.authors = ["Nels Nelson".freeze]
13
- s.date = "2019-08-07"
13
+ s.date = "2022-01-09"
14
14
  s.description = "Apache Log4j 2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j 1.x, and provides many of the improvements available in Logback while fixing some inherent problems in Logback's architecture.".freeze
15
15
  s.email = "nels@nelsnelson.org".freeze
16
- s.files = ["LICENSE.txt".freeze, "README.md".freeze, "Rakefile".freeze, "apache-log4j-2.gemspec".freeze, "lib/log4j-2.rb".freeze, "lib/log4j-2/log4j-api-2.12.1.jar".freeze, "lib/log4j-2/log4j-core-2.12.1.jar".freeze, "lib/log4j-2/log4j-slf4j-impl-2.12.1.jar".freeze, "lib/log4j-2/version.rb".freeze]
16
+ s.files = ["LICENSE.txt".freeze, "README.md".freeze, "Rakefile".freeze, "apache-log4j-2.gemspec".freeze, "lib/log4j-2.rb".freeze, "lib/log4j-2/log4j-api-2.17.1.jar".freeze, "lib/log4j-2/log4j-core-2.17.1.jar".freeze, "lib/log4j-2/log4j-slf4j-impl-2.17.1.jar".freeze, "lib/log4j-2/version.rb".freeze]
17
17
  s.homepage = "https://rubygems.org/gems/apache-log4j-2".freeze
18
18
  s.licenses = ["Apache-2.0".freeze]
19
19
  s.required_ruby_version = Gem::Requirement.new(">= 2.5.3".freeze)
20
- s.rubygems_version = "2.7.9".freeze
20
+ s.rubygems_version = "3.2.29".freeze
21
21
  s.summary = "Apache Log4j 2 java jars packaged as a gem.".freeze
22
22
 
23
23
  if s.respond_to? :specification_version then
24
24
  s.specification_version = 4
25
+ end
25
26
 
26
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
27
- s.add_development_dependency(%q<rake>.freeze, ["~> 12.3", ">= 12.3.2"])
28
- s.add_development_dependency(%q<rspec>.freeze, [">= 3.8.0", "~> 3.8"])
29
- else
30
- s.add_dependency(%q<rake>.freeze, ["~> 12.3", ">= 12.3.2"])
31
- s.add_dependency(%q<rspec>.freeze, [">= 3.8.0", "~> 3.8"])
32
- end
27
+ if s.respond_to? :add_runtime_dependency then
28
+ s.add_development_dependency(%q<rake>.freeze, ["~> 12.3", ">= 12.3.2"])
29
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 3.8", ">= 3.8.0"])
33
30
  else
34
31
  s.add_dependency(%q<rake>.freeze, ["~> 12.3", ">= 12.3.2"])
35
- s.add_dependency(%q<rspec>.freeze, [">= 3.8.0", "~> 3.8"])
32
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.8", ">= 3.8.0"])
36
33
  end
37
34
  end
Binary file
Binary file
@@ -1,11 +1,20 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Log4j2
4
- VERSION = ['2.12.1']
5
- GEM_RELEASE = 'r07'
4
+ def self.version
5
+ File.read('version')
6
+ end
7
+
8
+ def self.release
9
+ File.read('release')
10
+ end
6
11
 
7
- def self.version(release=GEM_RELEASE)
8
- VERSION << release unless release.nil?
9
- VERSION.join('.').freeze
12
+ def self.release_version(release=Log4j2.release)
13
+ release_version = [Log4j2.version]
14
+ release_version << release unless release.nil?
15
+ release_version.join('.').freeze
10
16
  end
17
+
18
+ VERSION = Log4j2.version
19
+ GEM_RELEASE = Log4j2.release
11
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apache-log4j-2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.1.r07
4
+ version: 2.17.1.r05
5
5
  platform: java
6
6
  authors:
7
7
  - Nels Nelson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-07 00:00:00.000000000 Z
11
+ date: 2022-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -33,23 +33,23 @@ dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - ">="
37
- - !ruby/object:Gem::Version
38
- version: 3.8.0
39
36
  - - "~>"
40
37
  - !ruby/object:Gem::Version
41
38
  version: '3.8'
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 3.8.0
42
42
  name: rspec
43
43
  prerelease: false
44
44
  type: :development
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 3.8.0
50
47
  - - "~>"
51
48
  - !ruby/object:Gem::Version
52
49
  version: '3.8'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 3.8.0
53
53
  description: Apache Log4j 2 is an upgrade to Log4j that provides significant improvements
54
54
  over its predecessor, Log4j 1.x, and provides many of the improvements available
55
55
  in Logback while fixing some inherent problems in Logback's architecture.
@@ -63,15 +63,16 @@ files:
63
63
  - Rakefile
64
64
  - apache-log4j-2.gemspec
65
65
  - lib/log4j-2.rb
66
- - lib/log4j-2/log4j-api-2.12.1.jar
67
- - lib/log4j-2/log4j-core-2.12.1.jar
68
- - lib/log4j-2/log4j-slf4j-impl-2.12.1.jar
66
+ - lib/log4j-2/log4j-api-2.17.1.jar
67
+ - lib/log4j-2/log4j-core-2.17.1.jar
68
+ - lib/log4j-2/log4j-slf4j-impl-2.17.1.jar
69
69
  - lib/log4j-2/version.rb
70
70
  homepage: https://rubygems.org/gems/apache-log4j-2
71
71
  licenses:
72
72
  - Apache-2.0
73
73
  metadata:
74
74
  bug_tracker_uri: https://gitlab.com/nelsnelson/apache-log4j-2/issues
75
+ canonical_pom_uri: https://search.maven.org/remotecontent?filepath=org/apache/logging/log4j/log4j/2.12.1/log4j-2.12.1.pom
75
76
  source_code_uri: https://gitlab.com/nelsnelson/apache-log4j-2
76
77
  post_install_message:
77
78
  rdoc_options: []
@@ -88,8 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
89
  - !ruby/object:Gem::Version
89
90
  version: 1.3.1
90
91
  requirements: []
91
- rubyforge_project:
92
- rubygems_version: 2.7.9
92
+ rubygems_version: 3.2.29
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: Apache Log4j 2 java jars packaged as a gem.
Binary file
Binary file