usi 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/publish.yml +26 -0
- data/.github/workflows/run-specs.yml +17 -0
- data/CHANGELOG.md +16 -0
- data/LICENSE.txt +0 -2
- data/README.md +3 -2
- data/lib/usi/version.rb +1 -1
- data/spec/spec_helper.rb +1 -8
- data/usi.gemspec +9 -10
- metadata +102 -126
- data/.travis.yml +0 -9
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0a5eb681f266c2f7479ff2389bedca88ee067ec34cec40618588708f68e02302
|
4
|
+
data.tar.gz: 76469894439abb26d10e91d524c0c6dc1f351c10fe5ce381fdcd5b8c6d7db309
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 36ec0ae8bf7ac7bfec6238669c25ec5c066b64dab63c3fb5603c11a58d78e25c920652e27a740aa0c8f21c7f34034c99216b3a99e05c43eda2e5b2bd93315ee8
|
7
|
+
data.tar.gz: bb42b4ab9a76034886fb4cb839cdbf41203f47f5f996106cc4070ed28aea937c0eaae7945dc0b7a71591c86191b91d6f6d8d511725fb72aebc9304ca3ee75343
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: Publish
|
2
|
+
|
3
|
+
on:
|
4
|
+
release:
|
5
|
+
types: [published]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
build:
|
9
|
+
name: Build + Publish
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
permissions:
|
12
|
+
contents: read
|
13
|
+
packages: write
|
14
|
+
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v3
|
17
|
+
- uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: '2.7'
|
20
|
+
|
21
|
+
- name: Publish to RubyGems
|
22
|
+
run: |
|
23
|
+
gem build *.gemspec
|
24
|
+
gem push *.gem
|
25
|
+
env:
|
26
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
name: Run specs
|
2
|
+
on: [push]
|
3
|
+
jobs:
|
4
|
+
build:
|
5
|
+
runs-on: ubuntu-latest
|
6
|
+
steps:
|
7
|
+
- uses: actions/checkout@v3
|
8
|
+
- name: Set up Ruby 2.7
|
9
|
+
uses: ruby/setup-ruby@v1
|
10
|
+
with:
|
11
|
+
ruby-version: 2.7
|
12
|
+
- name: Install dependencies
|
13
|
+
run: |
|
14
|
+
gem install bundler
|
15
|
+
bundle install
|
16
|
+
- name: Run specs
|
17
|
+
run: bundle exec rspec
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
|
+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [Unreleased]
|
8
|
+
|
9
|
+
## [0.0.2] - 2023-04-14
|
10
|
+
### Added
|
11
|
+
- Update of gemspec to reflect organisation renaming
|
12
|
+
- Add GitHub Actions for CI
|
13
|
+
|
14
|
+
## [0.0.1] - 2014
|
15
|
+
### Added
|
16
|
+
- Initial gem
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# USI
|
2
2
|
|
3
3
|
[![Code Climate](https://codeclimate.com/github/jobready/usi.png)](https://codeclimate.com/github/jobready/usi)
|
4
|
-
[![
|
4
|
+
[![Gem Downloads](https://img.shields.io/gem/dt/usi.svg)](https://rubygems.org/gems/usi)
|
5
|
+
![specs workflow](https://github.com/rdytech/usi/actions/workflows/run-specs.yml/badge.svg)
|
5
6
|
|
6
7
|
A gem for validating USI (Unique Student Identifiers) for VET Students in Australia
|
7
8
|
|
@@ -56,7 +57,7 @@ end
|
|
56
57
|
|
57
58
|
## Contributing
|
58
59
|
|
59
|
-
1. Fork it ( http://github.com/
|
60
|
+
1. Fork it ( http://github.com/rdytech/usi/fork )
|
60
61
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
61
62
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
62
63
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/usi/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
require 'simplecov'
|
2
2
|
SimpleCov.start
|
3
3
|
|
4
|
-
|
5
|
-
Coveralls.wear!
|
6
|
-
|
7
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
8
|
-
SimpleCov::Formatter::HTMLFormatter,
|
9
|
-
Coveralls::SimpleCov::Formatter,
|
10
|
-
]
|
4
|
+
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
|
11
5
|
|
12
6
|
SimpleCov.configure do
|
13
7
|
add_filter '/spec/'
|
@@ -17,7 +11,6 @@ require 'bundler/setup'
|
|
17
11
|
Bundler.require(:default, :development)
|
18
12
|
|
19
13
|
RSpec.configure do |config|
|
20
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
21
14
|
config.run_all_when_everything_filtered = true
|
22
15
|
config.filter_run :focus
|
23
16
|
config.filter_run_excluding perf: true
|
data/usi.gemspec
CHANGED
@@ -6,25 +6,24 @@ require 'usi/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'usi'
|
8
8
|
spec.version = Usi::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = ['
|
9
|
+
spec.authors = ['ReadyTech']
|
10
|
+
spec.email = ['engineering@readytech.io']
|
11
11
|
spec.summary = %q{Validate Australian Government USI}
|
12
12
|
spec.description = %q{A gem for validating Australian Government Unique Student Identifiers (USI)}
|
13
|
-
spec.homepage = 'https://github.com/
|
13
|
+
spec.homepage = 'https://github.com/rdytech/usi'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.required_rubygems_version = '>= 1.3.6'
|
17
17
|
|
18
|
-
spec.add_development_dependency 'bundler', '
|
19
|
-
spec.add_development_dependency 'rspec', '
|
20
|
-
spec.add_development_dependency 'cane', '
|
21
|
-
spec.add_development_dependency 'byebug', '
|
22
|
-
spec.add_development_dependency 'rake', '
|
23
|
-
spec.add_development_dependency '
|
18
|
+
spec.add_development_dependency 'bundler', '> 1.0'
|
19
|
+
spec.add_development_dependency 'rspec', '> 2.14'
|
20
|
+
spec.add_development_dependency 'cane', '> 2.6'
|
21
|
+
spec.add_development_dependency 'byebug', '> 2.7'
|
22
|
+
spec.add_development_dependency 'rake', '> 10.1'
|
23
|
+
spec.add_development_dependency 'simplecov', '> 0'
|
24
24
|
|
25
25
|
spec.files = `git ls-files -z`.split("\x0")
|
26
26
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
27
27
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
28
28
|
spec.require_paths = ['lib']
|
29
29
|
end
|
30
|
-
|
metadata
CHANGED
@@ -1,123 +1,111 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: usi
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 0.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
6
|
+
authors:
|
7
|
+
- ReadyTech
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2023-04-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: bundler
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 15
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 0
|
32
|
-
version: "1.0"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
33
20
|
type: :development
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rspec
|
37
21
|
prerelease: false
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.14'
|
48
34
|
type: :development
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: cane
|
52
35
|
prerelease: false
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.14'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: cane
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.6'
|
63
48
|
type: :development
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: byebug
|
67
49
|
prerelease: false
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.6'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: byebug
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.7'
|
78
62
|
type: :development
|
79
|
-
version_requirements: *id004
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: rake
|
82
63
|
prerelease: false
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.7'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.1'
|
93
76
|
type: :development
|
94
|
-
version_requirements: *id005
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: coveralls
|
97
77
|
prerelease: false
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
107
90
|
type: :development
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
-
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: A gem for validating Australian Government Unique Student Identifiers
|
98
|
+
(USI)
|
99
|
+
email:
|
100
|
+
- engineering@readytech.io
|
112
101
|
executables: []
|
113
|
-
|
114
102
|
extensions: []
|
115
|
-
|
116
103
|
extra_rdoc_files: []
|
117
|
-
|
118
|
-
|
119
|
-
- .
|
120
|
-
- .
|
104
|
+
files:
|
105
|
+
- ".github/workflows/publish.yml"
|
106
|
+
- ".github/workflows/run-specs.yml"
|
107
|
+
- ".gitignore"
|
108
|
+
- CHANGELOG.md
|
121
109
|
- Gemfile
|
122
110
|
- LICENSE.txt
|
123
111
|
- README.md
|
@@ -130,41 +118,29 @@ files:
|
|
130
118
|
- spec/spec_helper.rb
|
131
119
|
- spec/validator_spec.rb
|
132
120
|
- usi.gemspec
|
133
|
-
homepage: https://github.com/
|
134
|
-
licenses:
|
121
|
+
homepage: https://github.com/rdytech/usi
|
122
|
+
licenses:
|
135
123
|
- MIT
|
124
|
+
metadata: {}
|
136
125
|
post_install_message:
|
137
126
|
rdoc_options: []
|
138
|
-
|
139
|
-
require_paths:
|
127
|
+
require_paths:
|
140
128
|
- lib
|
141
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
-
|
143
|
-
requirements:
|
129
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
144
131
|
- - ">="
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
version: "0"
|
150
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
-
none: false
|
152
|
-
requirements:
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
153
136
|
- - ">="
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
hash: 23
|
156
|
-
segments:
|
157
|
-
- 1
|
158
|
-
- 3
|
159
|
-
- 6
|
137
|
+
- !ruby/object:Gem::Version
|
160
138
|
version: 1.3.6
|
161
139
|
requirements: []
|
162
|
-
|
163
|
-
rubyforge_project:
|
164
|
-
rubygems_version: 1.8.15
|
140
|
+
rubygems_version: 3.1.6
|
165
141
|
signing_key:
|
166
|
-
specification_version:
|
142
|
+
specification_version: 4
|
167
143
|
summary: Validate Australian Government USI
|
168
|
-
test_files:
|
144
|
+
test_files:
|
169
145
|
- spec/spec_helper.rb
|
170
146
|
- spec/validator_spec.rb
|