tree_reject 1.0.0 → 2.0.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
2
  SHA256:
3
- metadata.gz: 14b8b4b2f900a483b2965c93b59327447f09845008deb0cf941ec3cf00ab269e
4
- data.tar.gz: 5ad3420dd0784d6451022bb3ccb8c3b57b9bc89b8a9437ba62c105e8d497b911
3
+ metadata.gz: ecf9181b517ad19bbb8ddd1d92f5ab3e7a436184278dd52b896b437dbc4417d6
4
+ data.tar.gz: ce376be5ed05c4d0ee400ba7771a8c4619cc02249061f3889a94b237e71bfce7
5
5
  SHA512:
6
- metadata.gz: '00652939634881c949d29ecc37b65e1e3e205dc9dadef896677a34940ee3c3514532c185a81b67372f4ca528be6ea5a85d9a6aef75ad5c0fed2eee5f76adc2d3'
7
- data.tar.gz: aabdf2ca98f0ad29ef45ea2305122f2ddd574920560595a6cbd313475008c509834860c7b534d762c01bc5f1ff87fce660a20f16a0181537a1acd9ebc188c11e
6
+ metadata.gz: 0516cf6864b753240a08090eabb16a2e80ab208aea3ec99f01ccf56f3ee22c1178a9dae1ab77a96751994df3282630ab4a04745c7a47cb56a7b947c64a01eaba
7
+ data.tar.gz: 3d518599073d61498546b5533b44df8a89ebafa8721ff7d01a8330b62d0263eaf6dd36ed03a87749ec36f9ce9669f5824a48a4098fc51e450c73fdd0cc0b7d1b
@@ -0,0 +1,72 @@
1
+ version: 2.1
2
+ jobs:
3
+ lint:
4
+ docker:
5
+ - image: salsify/ruby_ci:2.7.6
6
+ working_directory: ~/tree_reject
7
+ steps:
8
+ - checkout
9
+ - restore_cache:
10
+ keys:
11
+ - v1-gems-ruby-2.7.6-{{ checksum "tree_reject.gemspec" }}-{{ checksum "Gemfile" }}
12
+ - v1-gems-ruby-2.7.6-
13
+ - run:
14
+ name: Install Gems
15
+ command: |
16
+ if ! bundle check --path=vendor/bundle; then
17
+ bundle install --path=vendor/bundle --jobs=4 --retry=3
18
+ bundle clean
19
+ fi
20
+ - save_cache:
21
+ key: v1-gems-ruby-2.7.6-{{ checksum "tree_reject.gemspec" }}-{{ checksum "Gemfile" }}
22
+ paths:
23
+ - "vendor/bundle"
24
+ - "gemfiles/vendor/bundle"
25
+ - run:
26
+ name: Run Rubocop
27
+ command: bundle exec rubocop
28
+ test:
29
+ parameters:
30
+ ruby_version:
31
+ type: string
32
+ docker:
33
+ - image: salsify/ruby_ci:<< parameters.ruby_version >>
34
+ environment:
35
+ CIRCLE_TEST_REPORTS: "test-results"
36
+ BUNDLE_GEMFILE: Gemfile
37
+ working_directory: ~/tree_reject
38
+ steps:
39
+ - checkout
40
+ - restore_cache:
41
+ keys:
42
+ - v1-gems-ruby-<< parameters.ruby_version >>-{{ checksum "tree_reject.gemspec" }}-{{ checksum "Gemfile" }}
43
+ - v1-gems-ruby-<< parameters.ruby_version >>-
44
+ - run:
45
+ name: Install Gems
46
+ command: |
47
+ if ! bundle check --path=vendor/bundle; then
48
+ bundle install --path=vendor/bundle --jobs=4 --retry=3
49
+ bundle clean
50
+ fi
51
+ - save_cache:
52
+ key: v1-gems-ruby-<< parameters.ruby_version >>-{{ checksum "tree_reject.gemspec" }}-{{ checksum "Gemfile" }}
53
+ paths:
54
+ - "vendor/bundle"
55
+ - "gemfiles/vendor/bundle"
56
+ - run:
57
+ name: Run Tests
58
+ command: |
59
+ bundle exec rspec --format RspecJunitFormatter --out $CIRCLE_TEST_REPORTS/rspec/junit.xml --format progress spec
60
+ - store_test_results:
61
+ path: "test-results"
62
+ workflows:
63
+ build:
64
+ jobs:
65
+ - lint
66
+ - test:
67
+ matrix:
68
+ parameters:
69
+ ruby_version:
70
+ - "2.7.6"
71
+ - "3.0.4"
72
+ - "3.1.2"
@@ -0,0 +1 @@
1
+ * @jturkel @salsify/infrastructure-services
data/.rubocop.yml CHANGED
@@ -2,10 +2,10 @@ inherit_gem:
2
2
  salsify_rubocop: conf/rubocop.yml
3
3
 
4
4
  AllCops:
5
- TargetRubyVersion: 2.4
5
+ TargetRubyVersion: 2.7
6
6
  Exclude:
7
7
  - 'vendor/**/*'
8
- - 'gemfiles/vendor/**/*'
8
+ - 'gemfiles/**/*'
9
9
 
10
10
  Style/FrozenStringLiteralComment:
11
11
  Enabled: true
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.5.3
1
+ ruby-2.7.6
data/CHANGELOG.md CHANGED
@@ -4,5 +4,8 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
6
6
 
7
- ## 1.0.0 - 2019-03-28
7
+ ## v2.0.0
8
+ - Require ruby > 2.7
9
+
10
+ ## v1.0.0
8
11
  - Initial version
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TreeReject
4
- VERSION = '1.0.0'
4
+ VERSION = '2.0.0'
5
5
  end
data/lib/tree_reject.rb CHANGED
@@ -55,4 +55,4 @@ module TreeReject
55
55
  end
56
56
  end
57
57
 
58
- Hash.send(:include, TreeReject::TreeRejectHash)
58
+ Hash.include(TreeReject::TreeRejectHash)
data/tree_reject.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  # Set 'allowed_push_post' to control where this gem can be published.
21
21
  if spec.respond_to?(:metadata)
22
22
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
23
-
23
+ spec.metadata['rubygems_mfa_required'] = 'true'
24
24
  else
25
25
  raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
26
26
  end
@@ -30,13 +30,12 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ['lib']
32
32
 
33
- spec.required_ruby_version = '>= 2.4'
33
+ spec.required_ruby_version = '>= 2.7'
34
34
 
35
- spec.add_development_dependency 'bundler', '~> 1.12'
35
+ spec.add_development_dependency 'bundler', '~> 2.3'
36
36
  spec.add_development_dependency 'overcommit'
37
- spec.add_development_dependency 'rake', '~> 10.0'
38
- spec.add_development_dependency 'rspec', '~> 3.4'
39
-
40
- spec.add_development_dependency 'salsify_rubocop', '~> 0.60.0'
41
-
37
+ spec.add_development_dependency 'rake', '~> 13.0'
38
+ spec.add_development_dependency 'rspec', '~> 3.11'
39
+ spec.add_development_dependency 'rspec_junit_formatter'
40
+ spec.add_development_dependency 'salsify_rubocop', '~> 1.27.1'
42
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tree_reject
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Salsify, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-28 00:00:00.000000000 Z
11
+ date: 2022-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.12'
19
+ version: '2.3'
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.12'
26
+ version: '2.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: overcommit
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,42 +44,56 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '13.0'
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: '10.0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.4'
61
+ version: '3.11'
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: '3.4'
68
+ version: '3.11'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec_junit_formatter
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'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: salsify_rubocop
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: 0.60.0
89
+ version: 1.27.1
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: 0.60.0
96
+ version: 1.27.1
83
97
  description: Remove deeply nested keys from hash.
84
98
  email:
85
99
  - engineering@salsify.com
@@ -89,13 +103,14 @@ executables:
89
103
  extensions: []
90
104
  extra_rdoc_files: []
91
105
  files:
106
+ - ".circleci/config.yml"
107
+ - ".github/CODEOWNERS"
92
108
  - ".gitignore"
93
109
  - ".overcommit.yml"
94
110
  - ".rspec"
95
111
  - ".rubocop.yml"
96
112
  - ".ruby-gemset"
97
113
  - ".ruby-version"
98
- - ".travis.yml"
99
114
  - CHANGELOG.md
100
115
  - Gemfile
101
116
  - LICENSE.txt
@@ -111,6 +126,7 @@ licenses:
111
126
  - MIT
112
127
  metadata:
113
128
  allowed_push_host: https://rubygems.org
129
+ rubygems_mfa_required: 'true'
114
130
  post_install_message:
115
131
  rdoc_options: []
116
132
  require_paths:
@@ -119,14 +135,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
135
  requirements:
120
136
  - - ">="
121
137
  - !ruby/object:Gem::Version
122
- version: '2.4'
138
+ version: '2.7'
123
139
  required_rubygems_version: !ruby/object:Gem::Requirement
124
140
  requirements:
125
141
  - - ">="
126
142
  - !ruby/object:Gem::Version
127
143
  version: '0'
128
144
  requirements: []
129
- rubygems_version: 3.0.2
145
+ rubygems_version: 3.3.7
130
146
  signing_key:
131
147
  specification_version: 4
132
148
  summary: Remove deeply nested keys from hash.
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.5.3
4
- before_install: gem install bundler -v 1.12.4
5
- script:
6
- - bundle exec rubocop
7
- - bundle exec rspec