jr-cli 0.5.1 → 0.6.0

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: 7e754520393fbf2f8eb6180843fd14885a97b47c
4
- data.tar.gz: 910d8ad71b0a4eb8e473f5990c0214d24254dc7d
2
+ SHA256:
3
+ metadata.gz: 37faec180e6975c2d874b531faaaf2d569cf3c572420c6965580d9e1b45a9650
4
+ data.tar.gz: c0fa38e58ce8089f9a91573ce6c176fffd882d491eb5ee803800cc588c6cbb91
5
5
  SHA512:
6
- metadata.gz: 286fbdd9e5d8e4a902ac7991f1ea71a3a188675a043326b1c16a78058b6cca5b1e5ab61ec4dcb02cbc95000a55b4949a582bbc559e9a42dfae511ef91041c463
7
- data.tar.gz: 604d275ca06629cabdc2836220d2507ea4513690521d39ae9182f38605d1cc18eff7fa9f878a6db0117dc8511d109af5be7aa6164e3f31584c37e77b077e8cc7
6
+ metadata.gz: ea0ec3028ee8b7e7003b237fae7a0384ea6d035e173e24387c5cc5cc1b0cd1cb3ca40d3507c5fea1387c4c71bb616f3eb3ede13738bf4dec3c7ec0b26133f3ef
7
+ data.tar.gz: 28da7823289280d77ae5d0bd99e80d612d712b8d4c4cda5425dd8e913f853a4e97b42a356545cef1b448b7319b7d09ac0ac42859340a768cbfe95c2a1c4a393d
data/.dockerignore ADDED
@@ -0,0 +1,8 @@
1
+ *.md
2
+ *.yml
3
+ *.txt
4
+ /features
5
+ /pkg
6
+ /resources
7
+ /test
8
+ /tmp
@@ -0,0 +1,34 @@
1
+ name: publish-gem
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - v*
7
+
8
+ jobs:
9
+ publish-gem:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: '3.1'
17
+ bundler-cache: true
18
+ - name: Setup credentials
19
+ run: |
20
+ mkdir -p ~/.gem
21
+
22
+ cat << EOF > ~/.gem/credentials
23
+ ---
24
+ :github: Bearer ${GITHUB_TOKEN}
25
+ :rubygems_api_key: ${RUBYGEMS_API_KEY}
26
+ EOF
27
+
28
+ chmod 0600 ~/.gem/credentials
29
+ env:
30
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31
+ RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
32
+ - name: Release Gem
33
+ run: |
34
+ bundle exec rake release
@@ -0,0 +1,20 @@
1
+ name: renovate-config-validator
2
+
3
+ on:
4
+ pull_request:
5
+ paths:
6
+ - .github/workflows/renovate-config-validator.yaml
7
+ - renovate.json5
8
+ push:
9
+ branches:
10
+ - main
11
+ paths:
12
+ - .github/workflows/renovate-config-validator.yaml
13
+ - renovate.json5
14
+
15
+ jobs:
16
+ validate:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.2
@@ -0,0 +1,27 @@
1
+ name: test
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches: [main]
7
+
8
+ jobs:
9
+ test:
10
+ strategy:
11
+ fail-fast: false
12
+ matrix:
13
+ os:
14
+ - ubuntu-latest
15
+ - macos-latest
16
+ ruby:
17
+ - '2.7'
18
+ - '3.0'
19
+ - '3.1'
20
+ runs-on: ${{ matrix.os }}
21
+ steps:
22
+ - uses: actions/checkout@v3
23
+ - uses: ruby/setup-ruby@v1
24
+ with:
25
+ ruby-version: ${{ matrix.ruby }}
26
+ bundler-cache: true
27
+ - run: bundle exec rake
data/.prettierrc.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "printWidth": 80,
3
+ "tabWidth": 2,
4
+ "useTabs": false,
5
+ "semi": true,
6
+ "singleQuote": true,
7
+ "trailingComma": "all",
8
+ "bracketSpacing": true,
9
+ "arrowParens": "avoid"
10
+ }
data/.travis.yml CHANGED
@@ -1,9 +1,10 @@
1
1
  language: ruby
2
2
  sudo: false
3
3
  rvm:
4
- - 2.2.5
5
- - 2.3.3
6
- - 2.4.0
4
+ - 2.2
5
+ - 2.3
6
+ - 2.4
7
+ - 2.5
7
8
  - ruby-head
8
9
  branches:
9
10
  only:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.6.0] - 2022-07-06
4
+
5
+ ### Added
6
+
7
+ * Support Ruby 3.0 and 3.1 [#43](https://github.com/yuya-takeyama/jr/pull/43) [#46](https://github.com/yuya-takeyama/jr/pull/46)
8
+
9
+ ### Fixed
10
+
11
+ * Applied the security fix for yajl-ruby (CVE-2022-24795) [#38](https://github.com/yuya-takeyama/jr/pull/38)
12
+ * Applied many updates for development dependencies
13
+
3
14
  ## [0.5.1] - 2017-07-02
4
15
 
5
16
  ### Fixed
data/Dockerfile ADDED
@@ -0,0 +1,8 @@
1
+ FROM ruby:3.1-alpine
2
+
3
+ COPY . /app
4
+ WORKDIR /app
5
+ RUN apk --update add build-base git && \
6
+ bundle install --without development
7
+
8
+ ENTRYPOINT ["bundle", "exec", "jr"]
data/Guardfile CHANGED
@@ -23,7 +23,8 @@ guard :test do
23
23
  watch(%r{^lib/jr/cli/(.+)\.rb$}) { |m| "test/unit/#{m[1]}_test.rb" }
24
24
  end
25
25
 
26
- guard "cucumber" do
26
+ guard "cucumber", notification: false do
27
+
27
28
  watch('bin/jr') { "features" }
28
29
 
29
30
  watch(%r{^lib/.+\.rb$}) { "features" }
data/cucumber.yml ADDED
@@ -0,0 +1 @@
1
+ default: --publish-quiet
@@ -1,4 +1,4 @@
1
1
  When(/^I run `([^`]*)` in bash$/)do |cmd|
2
2
  cmd = "bash -c '%s'" % unescape_text(unescape_text(cmd))
3
- run_simple(cmd, false)
3
+ run_command_and_stop(cmd, exit_timeout: 5)
4
4
  end
data/jr-cli.gemspec CHANGED
@@ -4,29 +4,29 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'jr/cli/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "jr-cli"
7
+ spec.name = 'jr-cli'
8
8
  spec.version = Jr::Cli::VERSION
9
- spec.authors = ["Yuya Takeyama"]
10
- spec.email = ["sign.of.the.wolf.pentagram@gmail.com"]
9
+ spec.authors = ['Yuya Takeyama']
10
+ spec.email = ['sign.of.the.wolf.pentagram@gmail.com']
11
11
  spec.summary = %q{jr: command-line JSON processor for Rubyists}
12
12
  spec.description = %q{jr is jq like JSON processor. Its script can be written in Ruby}
13
- spec.homepage = "https://github.com/yuya-takeyama/jr"
14
- spec.license = "MIT"
13
+ spec.homepage = 'https://github.com/yuya-takeyama/jr'
14
+ spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
19
+ spec.require_paths = ['lib']
20
20
 
21
- spec.add_runtime_dependency "yajl-ruby", "~> 1.3.0"
22
- spec.add_runtime_dependency "coderay", "~> 1.1.0"
21
+ spec.add_runtime_dependency 'yajl-ruby', '1.4.3'
22
+ spec.add_runtime_dependency 'coderay', '1.1.3'
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.6"
25
- spec.add_development_dependency "rake", "~> 12.0.0"
26
- spec.add_development_dependency "test-unit", "~> 3.2.3"
27
- spec.add_development_dependency "aruba", "0.9.0"
28
- spec.add_development_dependency "guard", "~> 2.14.0"
29
- spec.add_development_dependency "guard-test", "~> 2.0.6"
30
- spec.add_development_dependency "guard-cucumber", "~> 1.6.0"
31
- spec.add_development_dependency "woothee", "~> 1.3.0"
24
+ spec.add_development_dependency 'bundler', '2.3.17'
25
+ spec.add_development_dependency 'rake', '13.0.6'
26
+ spec.add_development_dependency 'test-unit', '3.5.3'
27
+ spec.add_development_dependency 'aruba', '2.1.0'
28
+ spec.add_development_dependency 'guard', '2.18.0'
29
+ spec.add_development_dependency 'guard-test', '2.0.8'
30
+ spec.add_development_dependency 'guard-cucumber', '3.0.0'
31
+ spec.add_development_dependency 'woothee', '1.13.0'
32
32
  end
@@ -1,5 +1,5 @@
1
1
  module Jr
2
2
  module Cli
3
- VERSION = "0.5.1"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
data/renovate.json5 ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ extends: ['config:base'],
3
+
4
+ prHourlyLimit: 0,
5
+ rebaseWhen: 'conflicted',
6
+ prConcurrentLimit: 10,
7
+
8
+ labels: [
9
+ 'renovate:{{depName}}',
10
+ 'renovate:{{depName}}/{{newVersion}}',
11
+ 'datasource:{{datasource}}',
12
+ ],
13
+
14
+ packageRules: [
15
+ {
16
+ matchUpdateTypes: ['minor', 'patch', 'pin'],
17
+ automerge: true,
18
+ platformAutomerge: true,
19
+ },
20
+ ],
21
+
22
+ regexManagers: [
23
+ {
24
+ fileMatch: ['^*.gemspec'],
25
+ matchStrings: [
26
+ '.*add.*dependency [\'"](?<depName>.*?)[\'"], [\'"](?<currentValue>.*?)[\'"]',
27
+ ],
28
+ datasourceTemplate: 'rubygems',
29
+ },
30
+ ],
31
+ }
metadata CHANGED
@@ -1,155 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jr-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuya Takeyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-02 00:00:00.000000000 Z
11
+ date: 2022-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yajl-ruby
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.3.0
19
+ version: 1.4.3
20
20
  type: :runtime
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.3.0
26
+ version: 1.4.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: coderay
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.1.0
33
+ version: 1.1.3
34
34
  type: :runtime
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: 1.1.0
40
+ version: 1.1.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: '1.6'
47
+ version: 2.3.17
48
48
  type: :development
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: '1.6'
54
+ version: 2.3.17
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 12.0.0
61
+ version: 13.0.6
62
62
  type: :development
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: 12.0.0
68
+ version: 13.0.6
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: test-unit
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 3.2.3
75
+ version: 3.5.3
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 3.2.3
82
+ version: 3.5.3
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: aruba
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.9.0
89
+ version: 2.1.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.9.0
96
+ version: 2.1.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: guard
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 2.14.0
103
+ version: 2.18.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 2.14.0
110
+ version: 2.18.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: guard-test
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 2.0.6
117
+ version: 2.0.8
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - '='
123
123
  - !ruby/object:Gem::Version
124
- version: 2.0.6
124
+ version: 2.0.8
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: guard-cucumber
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 1.6.0
131
+ version: 3.0.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 1.6.0
138
+ version: 3.0.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: woothee
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 1.3.0
145
+ version: 1.13.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: 1.3.0
152
+ version: 1.13.0
153
153
  description: jr is jq like JSON processor. Its script can be written in Ruby
154
154
  email:
155
155
  - sign.of.the.wolf.pentagram@gmail.com
@@ -158,15 +158,22 @@ executables:
158
158
  extensions: []
159
159
  extra_rdoc_files: []
160
160
  files:
161
+ - ".dockerignore"
162
+ - ".github/workflows/publish-gem.yaml"
163
+ - ".github/workflows/renovate-config-validator.yaml"
164
+ - ".github/workflows/test.yaml"
161
165
  - ".gitignore"
166
+ - ".prettierrc.json"
162
167
  - ".travis.yml"
163
168
  - CHANGELOG.md
169
+ - Dockerfile
164
170
  - Gemfile
165
171
  - Guardfile
166
172
  - LICENSE.txt
167
173
  - README.md
168
174
  - Rakefile
169
175
  - bin/jr
176
+ - cucumber.yml
170
177
  - features/core_ext.feature
171
178
  - features/json_processing.feature
172
179
  - features/step_definitions/command_steps.rb
@@ -177,6 +184,7 @@ files:
177
184
  - lib/jr/cli/core_ext/enumerator.rb
178
185
  - lib/jr/cli/core_ext/hash.rb
179
186
  - lib/jr/cli/version.rb
187
+ - renovate.json5
180
188
  - resources/img/jr.gif
181
189
  - test/unit/core_ext/enumerable_test.rb
182
190
  - test/unit/core_ext/enumerator_test.rb
@@ -200,8 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
208
  - !ruby/object:Gem::Version
201
209
  version: '0'
202
210
  requirements: []
203
- rubyforge_project:
204
- rubygems_version: 2.6.8
211
+ rubygems_version: 3.3.7
205
212
  signing_key:
206
213
  specification_version: 4
207
214
  summary: 'jr: command-line JSON processor for Rubyists'