ostruct-sanitizer 0.6.1 → 0.7.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: ec72d23523602ba268e7d80512e70dbf9b0009832ae82183ec543318113bad65
4
- data.tar.gz: '049578c417a53dc08f904c186f5fd394692a9717f2e78441df7f65ef7192c763'
3
+ metadata.gz: 717ca4bb86a71474fd6b56aedd3ebfc558f36aeb892776bbc630f455a0039811
4
+ data.tar.gz: 473b54e448dae9a63b980d3d16ceff5711af512335b16e5042b4cf2cdc07900b
5
5
  SHA512:
6
- metadata.gz: 42000f20cab9e7cf22da5138392f6c9228ed5482ecb836f99ff27053ad885ca267660d9b240fac18d93900641976ef3f33578df326c2f5eeb2169ab2cb0e0de1
7
- data.tar.gz: 834702166f3e337f6c34b0c975649c4cf2b5e35e4645649f0ed254f1393a423b122db10eb7131f9a10cd6ba22a46bd084a9305594bd1303f4a053f1dceaafc2b
6
+ metadata.gz: 035e5b6f4f7a3dcb25fed61f215827930e2d7425b45709bd39ab5d8487138efd2ec56c617fd1fe6421674c448f68711addd5d8e01365a7b50181757d4e5bd8d1
7
+ data.tar.gz: 2b7b6a5b8bd78de4c55f81cd2d8135dcc3a25074e51c86be1407bacbbbafe54f60bd473102fa234f81c45be167b895fbb882b698224ad5bd188dc7b35d99c2de
@@ -0,0 +1 @@
1
+ * @powerhome/heroes-for-hire
@@ -10,15 +10,15 @@ jobs:
10
10
  fail-fast: false
11
11
  matrix:
12
12
  ruby:
13
- - "2.5"
14
13
  - "2.6"
15
14
  - "2.7"
15
+ - "3.0"
16
16
  steps:
17
17
  - uses: actions/checkout@v2
18
18
  - uses: ruby/setup-ruby@v1
19
19
  with:
20
20
  ruby-version: ${{ matrix.ruby }}
21
- bundler: "2"
21
+ bundler: "2.4.7"
22
22
  bundler-cache: true
23
23
  - name: Run tests
24
24
  run: bundle exec rake spec
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.0.6
@@ -1,5 +1,5 @@
1
1
  module OStruct
2
2
  module Sanitizer
3
- VERSION = "0.6.1"
3
+ VERSION = "0.7.0"
4
4
  end
5
5
  end
@@ -73,7 +73,7 @@ module OStruct
73
73
 
74
74
  def override_setter_for(field)
75
75
  define_singleton_method("#{field}=") do |value|
76
- modifiable?[field] = sanitize(field, value)
76
+ @table[field] = sanitize(field, value)
77
77
  end
78
78
  end
79
79
 
data/mkdocs.yml ADDED
@@ -0,0 +1,7 @@
1
+ site_name: Ostruct Sanitizer
2
+ site_description: Ostruct Sanitizer Documentation
3
+ nav:
4
+ - "Home": "README.md"
5
+ - "Code of Conduct": "CODE_OF_CONDUCT.md"
6
+ plugins:
7
+ - techdocs-core
@@ -21,9 +21,9 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.required_ruby_version = '>= 2.5'
24
+ spec.required_ruby_version = '>= 2.6'
25
25
 
26
- spec.add_development_dependency "bundler", "~> 2.2.11"
26
+ spec.add_development_dependency "bundler", "~> 2.4.7"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
28
28
  spec.add_development_dependency "rspec", "~> 3.0"
29
29
  spec.add_development_dependency "byebug"
data/portal.yml ADDED
@@ -0,0 +1,12 @@
1
+ apiVersion: backstage.io/v1alpha1
2
+ kind: Component
3
+ metadata:
4
+ name: ostruct-sanitizer
5
+ title: Ostruct Sanitizer
6
+ description: Provides Rails-like sanitization rules for OpenStruct fields
7
+ annotations:
8
+ backstage.io/techdocs-ref: dir:.
9
+ spec:
10
+ type: library
11
+ owner: heroes-for-hire
12
+ lifecycle: production
data/renovate.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:base"
5
+ ]
6
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ostruct-sanitizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Borges
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-26 00:00:00.000000000 Z
11
+ date: 2023-09-22 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: 2.2.11
19
+ version: 2.4.7
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: 2.2.11
26
+ version: 2.4.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -73,27 +73,32 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
+ - ".github/CODEOWNERS"
76
77
  - ".github/workflows/ci.yml"
77
78
  - ".github/workflows/release.yml"
78
79
  - ".gitignore"
79
80
  - ".rspec"
81
+ - ".tool-versions"
80
82
  - ".travis.yml"
81
- - CODE_OF_CONDUCT.md
82
83
  - Gemfile
83
84
  - LICENSE.txt
84
- - README.md
85
85
  - Rakefile
86
86
  - bin/console
87
87
  - bin/setup
88
+ - docs/CODE_OF_CONDUCT.md
89
+ - docs/README.md
88
90
  - lib/ostruct/sanitizer.rb
89
91
  - lib/ostruct/sanitizer/version.rb
92
+ - mkdocs.yml
90
93
  - ostruct-sanitizer.gemspec
94
+ - portal.yml
95
+ - renovate.json
91
96
  - test_all.sh
92
97
  homepage: https://github.com/powerhome/ostruct-sanitizer
93
98
  licenses:
94
99
  - MIT
95
100
  metadata: {}
96
- post_install_message:
101
+ post_install_message:
97
102
  rdoc_options: []
98
103
  require_paths:
99
104
  - lib
@@ -101,15 +106,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
106
  requirements:
102
107
  - - ">="
103
108
  - !ruby/object:Gem::Version
104
- version: '2.5'
109
+ version: '2.6'
105
110
  required_rubygems_version: !ruby/object:Gem::Requirement
106
111
  requirements:
107
112
  - - ">="
108
113
  - !ruby/object:Gem::Version
109
114
  version: '0'
110
115
  requirements: []
111
- rubygems_version: 3.0.3
112
- signing_key:
116
+ rubygems_version: 3.4.10
117
+ signing_key:
113
118
  specification_version: 4
114
119
  summary: Provides Rails-like sanitization rules for OpenStruct fields.
115
120
  test_files: []
File without changes
File without changes