noid-rails 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +12 -8
- data/.github_changelog_generator +1 -1
- data/CHANGELOG.md +23 -7
- data/CONTRIBUTING.md +23 -1
- data/README.md +6 -6
- data/lib/noid/rails/minter/db.rb +1 -1
- data/lib/noid/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c20b4f7d62f3517fbeabda81ce436f03a5ba618b74ec9486037e61e04e089b7c
|
4
|
+
data.tar.gz: 2e14763d3c44b24901bdd882b43710d9be355f5efe0716b9f49c05264a1da4b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35d3b285b77e6a3cbcfabee89fa9a53765cdbabe137ca4e86414dc06733238b747a4c99baf9d5cb4843216894fbb41c191d551497ba54085f8b84357a631cbfd
|
7
|
+
data.tar.gz: c302a6185f7c0b20054ec14899941d329240670a215d1878d1c7047302af856342828fd3e8682ace3ef5b89b40857ba830a9f9ba5901facff0342de8ac13f3ea
|
data/.circleci/config.yml
CHANGED
@@ -41,6 +41,10 @@ jobs:
|
|
41
41
|
workflows:
|
42
42
|
ci:
|
43
43
|
jobs:
|
44
|
+
- bundle_and_test:
|
45
|
+
name: ruby2-7_rails6-1
|
46
|
+
ruby_version: 2.7.1
|
47
|
+
rails_version: 6.1.3.2
|
44
48
|
- bundle_and_test:
|
45
49
|
name: ruby2-7_rails6-0
|
46
50
|
ruby_version: 2.7.1
|
@@ -49,11 +53,11 @@ workflows:
|
|
49
53
|
name: ruby2-7_rails5-2
|
50
54
|
ruby_version: 2.7.1
|
51
55
|
rails_version: 5.2.4.3
|
52
|
-
- bundle_and_test:
|
53
|
-
name: ruby2-7_rails5-1
|
54
|
-
ruby_version: 2.7.1
|
55
|
-
rails_version: 5.1.7
|
56
56
|
|
57
|
+
- bundle_and_test:
|
58
|
+
name: ruby2-6_rails6-1
|
59
|
+
ruby_version: 2.6.6
|
60
|
+
rails_version: 6.1.3.2
|
57
61
|
- bundle_and_test:
|
58
62
|
name: ruby2-6_rails6-0
|
59
63
|
ruby_version: 2.6.6
|
@@ -62,11 +66,11 @@ workflows:
|
|
62
66
|
name: ruby2-6_rails5-2
|
63
67
|
ruby_version: 2.6.6
|
64
68
|
rails_version: 5.2.4.3
|
65
|
-
- bundle_and_test:
|
66
|
-
name: ruby2-6_rails5-1
|
67
|
-
ruby_version: 2.6.6
|
68
|
-
rails_version: 5.1.7
|
69
69
|
|
70
|
+
- bundle_and_test:
|
71
|
+
name: ruby2-5_rails6-1
|
72
|
+
ruby_version: 2.5.8
|
73
|
+
rails_version: 6.1.3.2
|
70
74
|
- bundle_and_test:
|
71
75
|
name: ruby2-5_rails6-0
|
72
76
|
ruby_version: 2.5.8
|
data/.github_changelog_generator
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
unreleased=true
|
2
|
-
future-release=3.0.
|
2
|
+
future-release=3.0.3
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,22 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [3.0.
|
3
|
+
## [3.0.3](https://github.com/samvera/noid-rails/tree/3.0.3) (2021-05-13)
|
4
4
|
|
5
|
-
[Full Changelog](https://github.com/samvera/noid-rails/compare/v3.0.
|
5
|
+
[Full Changelog](https://github.com/samvera/noid-rails/compare/v3.0.2...3.0.3)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- Fix code climate badge [\#102](https://github.com/samvera/noid-rails/pull/102) ([bess](https://github.com/bess))
|
10
|
+
- Update CI matrix to only cover supported versions [\#101](https://github.com/samvera/noid-rails/pull/101) ([bess](https://github.com/bess))
|
11
|
+
- Fix deprecated/removed update\_attributes! with update! [\#100](https://github.com/samvera/noid-rails/pull/100) ([dgcliff](https://github.com/dgcliff))
|
12
|
+
- Remove remaining active\_fedora:noid references from README [\#99](https://github.com/samvera/noid-rails/pull/99) ([cjcolvar](https://github.com/cjcolvar))
|
13
|
+
- Adding CONTRIBUTING.md
|
14
|
+
|
15
|
+
This was uploaded via automation. [\#98](https://github.com/samvera/noid-rails/pull/98) ([jeremyf](https://github.com/jeremyf))
|
16
|
+
|
17
|
+
## [v3.0.2](https://github.com/samvera/noid-rails/tree/v3.0.2) (2020-06-11)
|
18
|
+
|
19
|
+
[Full Changelog](https://github.com/samvera/noid-rails/compare/v3.0.1...v3.0.2)
|
6
20
|
|
7
21
|
**Implemented enhancements:**
|
8
22
|
|
@@ -16,6 +30,7 @@
|
|
16
30
|
|
17
31
|
**Merged pull requests:**
|
18
32
|
|
33
|
+
- Prep for 3.0.2 release [\#97](https://github.com/samvera/noid-rails/pull/97) ([bess](https://github.com/bess))
|
19
34
|
- Align on current samvera style guide [\#96](https://github.com/samvera/noid-rails/pull/96) ([bess](https://github.com/bess))
|
20
35
|
- Adding Ruby 2.7.z and Rails 6.y.z releases to the CircleCI build configuration [\#95](https://github.com/samvera/noid-rails/pull/95) ([jrgriffiniii](https://github.com/jrgriffiniii))
|
21
36
|
- Update CircleCI Ruby and Rails versions [\#92](https://github.com/samvera/noid-rails/pull/92) ([botimer](https://github.com/botimer))
|
@@ -127,10 +142,6 @@
|
|
127
142
|
|
128
143
|
[Full Changelog](https://github.com/samvera/noid-rails/compare/v2.0.0.beta6...v1.1.3)
|
129
144
|
|
130
|
-
**Merged pull requests:**
|
131
|
-
|
132
|
-
- Treeify algorithm should raise ArgumentError when passed nil or empty string [\#49](https://github.com/samvera/noid-rails/pull/49) ([mjgiarlo](https://github.com/mjgiarlo))
|
133
|
-
|
134
145
|
## [v2.0.0.beta6](https://github.com/samvera/noid-rails/tree/v2.0.0.beta6) (2016-10-26)
|
135
146
|
|
136
147
|
[Full Changelog](https://github.com/samvera/noid-rails/compare/v2.0.0.beta5...v2.0.0.beta6)
|
@@ -177,6 +188,8 @@
|
|
177
188
|
**Closed issues:**
|
178
189
|
|
179
190
|
- Running generator raises an error. [\#37](https://github.com/samvera/noid-rails/issues/37)
|
191
|
+
- Test gem in two configurations: with Rails and without Rails [\#36](https://github.com/samvera/noid-rails/issues/36)
|
192
|
+
- Conditionalize autoload of Engine and classes that depend on ActiveRecord [\#35](https://github.com/samvera/noid-rails/issues/35)
|
180
193
|
- MinterState isn't requirable by implementors. [\#29](https://github.com/samvera/noid-rails/issues/29)
|
181
194
|
|
182
195
|
## [v2.0.0.beta3](https://github.com/samvera/noid-rails/tree/v2.0.0.beta3) (2016-09-13)
|
@@ -225,7 +238,6 @@
|
|
225
238
|
**Merged pull requests:**
|
226
239
|
|
227
240
|
- Preserve the hash when translating to id. Fixes \#26 [\#27](https://github.com/samvera/noid-rails/pull/27) ([jcoyne](https://github.com/jcoyne))
|
228
|
-
- Adding check for gone since that is also not a valid id to mint. [\#18](https://github.com/samvera/noid-rails/pull/18) ([carolyncole](https://github.com/carolyncole))
|
229
241
|
|
230
242
|
## [v1.1.0](https://github.com/samvera/noid-rails/tree/v1.1.0) (2016-05-10)
|
231
243
|
|
@@ -239,6 +251,10 @@
|
|
239
251
|
|
240
252
|
[Full Changelog](https://github.com/samvera/noid-rails/compare/v1.0.2...v1.0.3)
|
241
253
|
|
254
|
+
**Merged pull requests:**
|
255
|
+
|
256
|
+
- Adding check for gone since that is also not a valid id to mint. [\#18](https://github.com/samvera/noid-rails/pull/18) ([carolyncole](https://github.com/carolyncole))
|
257
|
+
|
242
258
|
## [v1.0.2](https://github.com/samvera/noid-rails/tree/v1.0.2) (2015-08-11)
|
243
259
|
|
244
260
|
[Full Changelog](https://github.com/samvera/noid-rails/compare/v1.0.1...v1.0.2)
|
data/CONTRIBUTING.md
CHANGED
@@ -22,6 +22,28 @@ https://wiki.duraspace.org/display/samvera/Samvera+Community+Intellectual+Proper
|
|
22
22
|
|
23
23
|
You should also add yourself to the `CONTRIBUTORS.md` file in the root of the project.
|
24
24
|
|
25
|
+
## Language
|
26
|
+
|
27
|
+
The language we use matters. Today, tomorrow, and for years to come
|
28
|
+
people will read the code we write. They will judge us for our
|
29
|
+
design, logic, and the words we use to describe the system.
|
30
|
+
|
31
|
+
Our words should be accessible. Favor descriptive words that give
|
32
|
+
meaning while avoiding reinforcing systemic inequities. For example,
|
33
|
+
in the Samvera community, we should favor using allowed\_list instead
|
34
|
+
of whitelist, denied\_list instead of blacklist, or source/copy
|
35
|
+
instead of master/slave.
|
36
|
+
|
37
|
+
We're going to get it wrong, but this is a call to keep working to
|
38
|
+
make it right. View our code and the words we choose as a chance to
|
39
|
+
have a conversation. A chance to grow an understanding of the systems
|
40
|
+
we develop as well as the systems in which we live.
|
41
|
+
|
42
|
+
See [“Blacklists” and “whitelists”: a salutary warning concerning the
|
43
|
+
prevalence of racist language in discussions of predatory
|
44
|
+
publishing](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6148600/) for
|
45
|
+
further details.
|
46
|
+
|
25
47
|
## Contribution Tasks
|
26
48
|
|
27
49
|
* Reporting Issues
|
@@ -34,7 +56,7 @@ You should also add yourself to the `CONTRIBUTORS.md` file in the root of the pr
|
|
34
56
|
### Reporting Issues
|
35
57
|
|
36
58
|
* Make sure you have a [GitHub account](https://github.com/signup/free)
|
37
|
-
* Submit a [Github issue](https://github.com/samvera/noid-rails/issues) by:
|
59
|
+
* Submit a [Github issue](https://github.com/samvera/noid-rails/issues/) by:
|
38
60
|
* Clearly describing the issue
|
39
61
|
* Provide a descriptive summary
|
40
62
|
* Explain the expected behavior
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Noid::Rails
|
2
2
|
|
3
|
-
Code: [![Version](https://badge.fury.io/rb/noid-rails.png)](http://badge.fury.io/rb/noid-rails) [![Build Status](https://circleci.com/gh/samvera/noid-rails.svg?style=svg)](https://circleci.com/gh/samvera/noid-rails) [![Coverage Status](https://coveralls.io/repos/github/samvera/noid-rails/badge.svg?branch=
|
3
|
+
Code: [![Version](https://badge.fury.io/rb/noid-rails.png)](http://badge.fury.io/rb/noid-rails) [![Build Status](https://circleci.com/gh/samvera/noid-rails.svg?style=svg)](https://circleci.com/gh/samvera/noid-rails) [![Coverage Status](https://coveralls.io/repos/github/samvera/noid-rails/badge.svg?branch=main)](https://coveralls.io/github/samvera/noid-rails?branch=main)[![Maintainability](https://api.codeclimate.com/v1/badges/9c8739a529edc982fdec/maintainability)](https://codeclimate.com/github/samvera/noid-rails/maintainability)
|
4
4
|
|
5
|
-
Docs: [![Apache 2.0 License](http://img.shields.io/badge/APACHE2-license-blue.svg)](./LICENSE) [![Contribution Guidelines](http://img.shields.io/badge/CONTRIBUTING-Guidelines-blue.svg)](./CONTRIBUTING.md) [![API Docs](http://img.shields.io/badge/API-docs-blue.svg)](http://rubydoc.info/gems/noid-rails) [![Documentation Status](https://inch-ci.org/github/samvera/noid-rails.svg?branch=
|
5
|
+
Docs: [![Apache 2.0 License](http://img.shields.io/badge/APACHE2-license-blue.svg)](./LICENSE) [![Contribution Guidelines](http://img.shields.io/badge/CONTRIBUTING-Guidelines-blue.svg)](./CONTRIBUTING.md) [![API Docs](http://img.shields.io/badge/API-docs-blue.svg)](http://rubydoc.info/gems/noid-rails) [![Documentation Status](https://inch-ci.org/github/samvera/noid-rails.svg?branch=main)](https://inch-ci.org/github/samvera/noid-rails)
|
6
6
|
|
7
7
|
Jump In: [![Slack Status](http://slack.samvera.org/badge.svg)](http://slack.samvera.org/)
|
8
8
|
|
@@ -128,7 +128,7 @@ To better support multi-host production installations that expect a shared datab
|
|
128
128
|
The database-based minter stores minter state information in your application's relational database. To use it, you'll first need to run the install generator:
|
129
129
|
|
130
130
|
```bash
|
131
|
-
$ rails generate
|
131
|
+
$ rails generate noid:rails:install
|
132
132
|
```
|
133
133
|
|
134
134
|
This will create the necessary database migrations.
|
@@ -138,7 +138,7 @@ Then run `rake db:migrate`
|
|
138
138
|
To start minting identifiers with the new minter, override the AF::Noid configuration in e.g. `config/initializers/noid-rails.rb`:
|
139
139
|
|
140
140
|
```ruby
|
141
|
-
require '
|
141
|
+
require 'noid-rails'
|
142
142
|
|
143
143
|
Noid::Rails.configure do |config|
|
144
144
|
config.minter_class = Noid::Rails::Minter::Db
|
@@ -148,7 +148,7 @@ end
|
|
148
148
|
Using the database-backed minter can cause problems with your test suite, where it is often sensible to wipe out database rows between tests (which destroys the database-backed minter's state, which renders it unusable). To deal with this and still get the benefits of using the database-backed minter in development and production environments, you'll also want to add the following helper to your `spec/spec_helper.rb`:
|
149
149
|
|
150
150
|
```ruby
|
151
|
-
require '
|
151
|
+
require 'noid/rails/rspec'
|
152
152
|
|
153
153
|
RSpec.configure do |config|
|
154
154
|
include Noid::Rails::RSpec
|
@@ -230,7 +230,7 @@ And the service will delegate minting and validating to an instance of your cust
|
|
230
230
|
github_changelog_generator --user samvera --project noid-rails --token YOUR_GITHUB_TOKEN_HERE
|
231
231
|
```
|
232
232
|
|
233
|
-
5. Commit these changes to the
|
233
|
+
5. Commit these changes to the main branch
|
234
234
|
|
235
235
|
6. Run `rake release`
|
236
236
|
|
data/lib/noid/rails/minter/db.rb
CHANGED
@@ -35,7 +35,7 @@ module Noid
|
|
35
35
|
# @param [::Noid::Minter] minter state containing the updates
|
36
36
|
def serialize(inst, minter)
|
37
37
|
# namespace and template are the same, now update the other attributes
|
38
|
-
inst.
|
38
|
+
inst.update!(
|
39
39
|
seq: minter.seq,
|
40
40
|
counters: JSON.generate(minter.counters),
|
41
41
|
rand: Marshal.dump(minter.instance_variable_get(:@rand))
|
data/lib/noid/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noid-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael J. Giarlo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
210
|
- !ruby/object:Gem::Version
|
211
211
|
version: '0'
|
212
212
|
requirements: []
|
213
|
-
rubygems_version: 3.
|
213
|
+
rubygems_version: 3.2.3
|
214
214
|
signing_key:
|
215
215
|
specification_version: 4
|
216
216
|
summary: Noid identifier services for Rails-based applications
|