td-logger 0.3.27 → 0.3.28

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
- SHA1:
3
- metadata.gz: '08d8cffdf42dc7bbe14a546690db23f087541ee4'
4
- data.tar.gz: 8e02136f8e6a1d9bcfb6b46add461063d7fd5d38
2
+ SHA256:
3
+ metadata.gz: c8d82284d5c496c5a78ebe21849f7460505b14b16017b059559dcbbcae6da0be
4
+ data.tar.gz: 4659ee78358501bd3d79ba75938668b5c854fcc333e92c5194f0675b87cc38a4
5
5
  SHA512:
6
- metadata.gz: 261a948beb97dc79302b826b3f08e8d3f5fbe180772215efac1f6f14f32415d9fee889303a8d78ea83f160d45a70b6f868e7026e1153bdc8c22cbb10d751457f
7
- data.tar.gz: 6e7eebe6033a0ee5b0519eb184b8e8b2d097c61ca4d14fe4059f2e19957e83ffeb901fef11a982cc60a7595ff38596435376f33c88db331d975cb1ea5dc1ecd9
6
+ metadata.gz: '08b999bb71891b3b4474693b3ec0954a9d71308b497d130dfa85e8f5e31a927cd57bdada7c32c73d4042d6132ffc872b0a4279bb867487bf8cc2b5cd91fae8df'
7
+ data.tar.gz: 46f0313dde88022116aff652481a7acb266d8e7cc53053c48cae0c31fc4fad6769aa9ad8618ecff79f5e112296059a4750a3b38ddaae46beb4d3d0b8a4e480b3
@@ -0,0 +1,44 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+
6
+ jobs:
7
+ test:
8
+ runs-on: ${{ matrix.os }}
9
+
10
+ strategy:
11
+ matrix:
12
+ os:
13
+ - ubuntu-latest
14
+ ruby:
15
+ - 2.3.1
16
+ - 2.4.1
17
+ - 2.5.9
18
+ - 2.6.9
19
+ - 2.7.5
20
+ - 3.0.3
21
+ - 3.1.0
22
+ - head
23
+ # TODO: Add jruby
24
+ include:
25
+ - os: windows-latest
26
+ ruby: 2.7.5
27
+ - os: macos-latest
28
+ ruby: 2.7.5
29
+
30
+
31
+ steps:
32
+ - uses: actions/checkout@v2
33
+ - name: Set up Ruby
34
+ uses: ruby/setup-ruby@v1
35
+ with:
36
+ ruby-version: ${{ matrix.ruby }}
37
+
38
+ - name: Install dependencies
39
+ run: |
40
+ bundle config path vendor/bundle
41
+ bundle install --jobs 4 --retry 3
42
+
43
+ - name: Run tests
44
+ run: bundle exec rake spec
@@ -0,0 +1,70 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ master ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ master ]
20
+ schedule:
21
+ - cron: '39 1 * * 6'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'ruby' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37
+ # Learn more about CodeQL language support at https://git.io/codeql-language-support
38
+
39
+ steps:
40
+ - name: Checkout repository
41
+ uses: actions/checkout@v3
42
+
43
+ # Initializes the CodeQL tools for scanning.
44
+ - name: Initialize CodeQL
45
+ uses: github/codeql-action/init@v1
46
+ with:
47
+ languages: ${{ matrix.language }}
48
+ # If you wish to specify custom queries, you can do so here or in a config file.
49
+ # By default, queries listed here will override any specified in a config file.
50
+ # Prefix the list here with "+" to use these queries and those in the config file.
51
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
52
+
53
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54
+ # If this step fails, then you should remove it and run the build manually (see below)
55
+ - name: Autobuild
56
+ uses: github/codeql-action/autobuild@v1
57
+
58
+ # ℹ️ Command-line programs to run using the OS shell.
59
+ # 📚 https://git.io/JvXDl
60
+
61
+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62
+ # and modify them (or add more) to build your code if your project
63
+ # uses a compiled language
64
+
65
+ #- run: |
66
+ # make bootstrap
67
+ # make release
68
+
69
+ - name: Perform CodeQL Analysis
70
+ uses: github/codeql-action/analyze@v1
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ == 2022-06-23 version 0.3.28
2
+
3
+ * Support Ruby 3.1 (psych 4.0): Allow loading configuration files (tresure_data.yml) which have YAML aliases.
4
+
1
5
  == 2017-04-26 version 0.3.27
2
6
 
3
7
  * Allow td-client v1.x
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.27
1
+ 0.3.28
@@ -121,12 +121,12 @@ module Agent::Rails
121
121
  end
122
122
 
123
123
  def load_yaml(path)
124
- require 'yaml'
124
+ require 'td/logger/agent/rails/yaml'
125
125
  require 'erb'
126
126
 
127
127
  src = File.read(path)
128
128
  yaml = ERB.new(src).result
129
- YAML.load(yaml)
129
+ YAML.unsafe_load(yaml)
130
130
  end
131
131
  end
132
132
 
@@ -0,0 +1,8 @@
1
+ require 'yaml'
2
+
3
+ unless YAML.respond_to?(:unsafe_load)
4
+ # Ruby < 2.6
5
+ class << YAML
6
+ alias unsafe_load load
7
+ end
8
+ end
@@ -1,7 +1,7 @@
1
1
  module TreasureData
2
2
  module Logger
3
3
 
4
- VERSION = '0.3.27'
4
+ VERSION = '0.3.28'
5
5
 
6
6
  end
7
7
  end
data/td-logger.gemspec CHANGED
@@ -24,6 +24,7 @@ EOF
24
24
  #gem.homepage = %q{https://github.com/treasure-data/td-logger-ruby}
25
25
  gem.description = %q{Treasure Data logging library}
26
26
  gem.summary = gem.description
27
+ gem.licenses = ["Apache-2.0"]
27
28
 
28
29
  gem.files = `git ls-files`.split("\n")
29
30
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: td-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.27
4
+ version: 0.3.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-26 00:00:00.000000000 Z
11
+ date: 2022-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -127,20 +127,20 @@ dependencies:
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  description: Treasure Data logging library
130
- email:
130
+ email:
131
131
  executables: []
132
132
  extensions: []
133
133
  extra_rdoc_files: []
134
134
  files:
135
135
  - ".coveralls.yml"
136
+ - ".github/workflows/ci.yml"
137
+ - ".github/workflows/codeql-analysis.yml"
136
138
  - ".gitignore"
137
- - ".travis.yml"
138
139
  - ChangeLog
139
140
  - Gemfile
140
141
  - README.rdoc
141
142
  - Rakefile
142
143
  - VERSION
143
- - appveyor.yml
144
144
  - config/heroku/treasure_data.yml
145
145
  - lib/td-logger.rb
146
146
  - lib/td/logger.rb
@@ -149,6 +149,7 @@ files:
149
149
  - lib/td/logger/agent/rails/config.rb
150
150
  - lib/td/logger/agent/rails/controller.rb
151
151
  - lib/td/logger/agent/rails/model.rb
152
+ - lib/td/logger/agent/rails/yaml.rb
152
153
  - lib/td/logger/event.rb
153
154
  - lib/td/logger/td_logger.rb
154
155
  - lib/td/logger/version.rb
@@ -160,10 +161,11 @@ files:
160
161
  - spec/td/logger/treasure_data_logger_spec.rb
161
162
  - spec/td/logger_spec.rb
162
163
  - td-logger.gemspec
163
- homepage:
164
- licenses: []
164
+ homepage:
165
+ licenses:
166
+ - Apache-2.0
165
167
  metadata: {}
166
- post_install_message:
168
+ post_install_message:
167
169
  rdoc_options: []
168
170
  require_paths:
169
171
  - lib
@@ -178,9 +180,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
180
  - !ruby/object:Gem::Version
179
181
  version: '0'
180
182
  requirements: []
181
- rubyforge_project:
182
- rubygems_version: 2.6.11
183
- signing_key:
183
+ rubygems_version: 3.3.7
184
+ signing_key:
184
185
  specification_version: 4
185
186
  summary: Treasure Data logging library
186
187
  test_files:
data/.travis.yml DELETED
@@ -1,29 +0,0 @@
1
- language: ruby
2
-
3
- rvm:
4
- - 2.0.0-p648
5
- - 2.1.10
6
- - 2.2.5
7
- - 2.3.1
8
- - 2.4.1
9
- - ruby-head
10
- - jruby-9.1.5.0
11
-
12
- sudo: false
13
-
14
- branches:
15
- only:
16
- - master
17
-
18
- gemfile:
19
- - Gemfile
20
-
21
- script: bundle exec rake spec
22
-
23
- matrix:
24
- allow_failures:
25
- - rvm: ruby-head
26
- - rvm: jruby-9.1.5.0
27
-
28
- notifications:
29
- webhooks: http://td-beda.herokuapp.com/travisci_callback
data/appveyor.yml DELETED
@@ -1,17 +0,0 @@
1
- ---
2
- version: "{build}"
3
- clone_depth: 10
4
- install:
5
- - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
6
- - ruby --version
7
- - gem --version
8
- - gem install bundler --quiet --no-ri --no-rdoc
9
- - bundler --version
10
- - bundle install
11
- build_script:
12
- - bundle exec rake build
13
- test_script:
14
- - bundle exec rake spec
15
- environment:
16
- matrix:
17
- - ruby_version: "22"