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 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
@@ -1,5 +1,3 @@
1
- Copyright (c) 2014 John D'Agostino
2
-
3
1
  MIT License
4
2
 
5
3
  Permission is hereby granted, free of charge, to any person obtaining
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
- [![Build Status](https://travis-ci.org/jobready/usi.svg)](https://travis-ci.org/jobready/usi)
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/jobready/usi/fork )
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
@@ -1,3 +1,3 @@
1
1
  module Usi
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,13 +1,7 @@
1
1
  require 'simplecov'
2
2
  SimpleCov.start
3
3
 
4
- require 'coveralls'
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 = ["John D'Agostino"]
10
- spec.email = ['john.dagostino@gmail.com']
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/jobready/usi'
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', '~> 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 'coveralls', '~> 0'
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
- hash: 29
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
- - John D'Agostino
6
+ authors:
7
+ - ReadyTech
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2016-07-05 00:00:00 Z
19
- dependencies:
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
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
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
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 31
44
- segments:
45
- - 2
46
- - 14
47
- version: "2.14"
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
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 15
59
- segments:
60
- - 2
61
- - 6
62
- version: "2.6"
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
- requirement: &id004 !ruby/object:Gem::Requirement
69
- none: false
70
- requirements:
71
- - - ~>
72
- - !ruby/object:Gem::Version
73
- hash: 13
74
- segments:
75
- - 2
76
- - 7
77
- version: "2.7"
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
- requirement: &id005 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
86
- - - ~>
87
- - !ruby/object:Gem::Version
88
- hash: 33
89
- segments:
90
- - 10
91
- - 1
92
- version: "10.1"
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
- requirement: &id006 !ruby/object:Gem::Requirement
99
- none: false
100
- requirements:
101
- - - ~>
102
- - !ruby/object:Gem::Version
103
- hash: 3
104
- segments:
105
- - 0
106
- version: "0"
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
- version_requirements: *id006
109
- description: A gem for validating Australian Government Unique Student Identifiers (USI)
110
- email:
111
- - john.dagostino@gmail.com
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
- files:
119
- - .gitignore
120
- - .travis.yml
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/jobready/usi
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
- none: false
143
- requirements:
129
+ required_ruby_version: !ruby/object:Gem::Requirement
130
+ requirements:
144
131
  - - ">="
145
- - !ruby/object:Gem::Version
146
- hash: 3
147
- segments:
148
- - 0
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: 3
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
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1.2
4
- cache:
5
- - bundler
6
- - apt
7
- bundler_args: -j4 --quiet
8
- script:
9
- - bundle exec rspec