attr_required 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/FUNDING.yml +3 -0
- data/.github/workflows/spec.yml +31 -0
- data/Gemfile +1 -1
- data/README.rdoc +1 -3
- data/VERSION +1 -1
- data/attr_required.gemspec +11 -12
- data/spec/attr_optional_spec.rb +1 -1
- data/spec/attr_required_spec.rb +1 -1
- metadata +10 -10
- data/.travis.yml +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 17f71d6a11ee24db5db1ae4eacb88b6b92cd507a39171164b39e9e4ef33648f1
|
4
|
+
data.tar.gz: acb44f9e706328ff4f14c66aee7a9c05bbb74ca4e04a45e24ccb33b3dda5e18d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f59f5512ebcb5ba3bf22506b2989fba7bfd9ec499a09b7f35dc385edd495e5065132811b75ac3eedc60ecf4fa899236f2c73f8aa61e8f72fe06c60886b6ed8b
|
7
|
+
data.tar.gz: 22f8c5ae930db8bb5ed6375591e9ab3d2d18184dcc060194d1d07f099fcc0c26faf209edfd84b5a17c0500eabda4d2c6ab52a5da530540638fd4a46490a2f2d5
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
name: Spec
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
pull_request:
|
8
|
+
|
9
|
+
permissions:
|
10
|
+
contents: read
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
spec:
|
14
|
+
strategy:
|
15
|
+
matrix:
|
16
|
+
os: ['ubuntu-20.04', 'ubuntu-22.04']
|
17
|
+
ruby-version: ['3.1', '3.2', '3.3']
|
18
|
+
include:
|
19
|
+
- os: 'ubuntu-20.04'
|
20
|
+
ruby-version: '3.0'
|
21
|
+
runs-on: ${{ matrix.os }}
|
22
|
+
|
23
|
+
steps:
|
24
|
+
- uses: actions/checkout@v3
|
25
|
+
- name: Set up Ruby
|
26
|
+
uses: ruby/setup-ruby@v1
|
27
|
+
with:
|
28
|
+
ruby-version: ${{ matrix.ruby-version }}
|
29
|
+
bundler-cache: true
|
30
|
+
- name: Run Specs
|
31
|
+
run: bundle exec rake spec
|
data/Gemfile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
source '
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
gemspec
|
data/README.rdoc
CHANGED
@@ -2,14 +2,12 @@
|
|
2
2
|
|
3
3
|
This gem provide <code>attr_required</code> and <code>attr_optional</code> like <code>attr_accessor</code>.
|
4
4
|
|
5
|
-
{<img src="https://secure.travis-ci.org/nov/attr_required.png" />}[http://travis-ci.org/nov/attr_required]
|
6
|
-
|
7
5
|
REQUIRED and OPTIONAL are common terminology in RFCs, and used for protocol parameters.
|
8
6
|
This gem helps RFC library developers to define which parameters (attributes in Ruby world) are REQUIRED and which are OPTIONAL.
|
9
7
|
It might be also helpful for other developers.
|
10
8
|
|
11
9
|
I've developed this gem to use for rack-oauth2, a Rack-based OAuth 2.0 library.
|
12
|
-
|
10
|
+
https://github.com/nov/rack-oauth2
|
13
11
|
|
14
12
|
== Installation
|
15
13
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/attr_required.gemspec
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
|
-
s.name =
|
3
|
-
s.version = File.read(
|
4
|
-
s.
|
5
|
-
s.authors = ["nov matake"]
|
2
|
+
s.name = 'attr_required'
|
3
|
+
s.version = File.read('VERSION')
|
4
|
+
s.authors = ['nov matake']
|
6
5
|
s.description = %q{attr_required and attr_optional}
|
7
6
|
s.summary = %q{attr_required and attr_optional}
|
8
|
-
s.email =
|
9
|
-
s.extra_rdoc_files = [
|
7
|
+
s.email = 'nov@matake.jp'
|
8
|
+
s.extra_rdoc_files = ['LICENSE', 'README.rdoc']
|
10
9
|
s.license = 'MIT'
|
11
|
-
s.rdoc_options = [
|
12
|
-
s.homepage =
|
13
|
-
s.require_paths = [
|
10
|
+
s.rdoc_options = ['--charset=UTF-8']
|
11
|
+
s.homepage = 'https://github.com/nov/attr_required'
|
12
|
+
s.require_paths = ['lib']
|
14
13
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
15
14
|
s.files = `git ls-files`.split("\n")
|
16
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
|
-
s.add_development_dependency
|
18
|
-
s.add_development_dependency
|
19
|
-
s.add_development_dependency
|
16
|
+
s.add_development_dependency 'rake'
|
17
|
+
s.add_development_dependency 'simplecov'
|
18
|
+
s.add_development_dependency 'rspec'
|
20
19
|
end
|
data/spec/attr_optional_spec.rb
CHANGED
data/spec/attr_required_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attr_required
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov matake
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -60,9 +60,10 @@ extra_rdoc_files:
|
|
60
60
|
- LICENSE
|
61
61
|
- README.rdoc
|
62
62
|
files:
|
63
|
+
- ".github/FUNDING.yml"
|
64
|
+
- ".github/workflows/spec.yml"
|
63
65
|
- ".gitignore"
|
64
66
|
- ".rspec"
|
65
|
-
- ".travis.yml"
|
66
67
|
- Gemfile
|
67
68
|
- LICENSE
|
68
69
|
- README.rdoc
|
@@ -74,11 +75,11 @@ files:
|
|
74
75
|
- spec/attr_optional_spec.rb
|
75
76
|
- spec/attr_required_spec.rb
|
76
77
|
- spec/spec_helper.rb
|
77
|
-
homepage:
|
78
|
+
homepage: https://github.com/nov/attr_required
|
78
79
|
licenses:
|
79
80
|
- MIT
|
80
81
|
metadata: {}
|
81
|
-
post_install_message:
|
82
|
+
post_install_message:
|
82
83
|
rdoc_options:
|
83
84
|
- "--charset=UTF-8"
|
84
85
|
require_paths:
|
@@ -92,11 +93,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
93
|
requirements:
|
93
94
|
- - ">="
|
94
95
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
96
|
+
version: '0'
|
96
97
|
requirements: []
|
97
|
-
|
98
|
-
|
99
|
-
signing_key:
|
98
|
+
rubygems_version: 3.4.10
|
99
|
+
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: attr_required and attr_optional
|
102
102
|
test_files:
|