noid-rails 3.0.2 → 3.1.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: a9c5330c3c96082abb5e4a0ad3ec80c003ed246615214e8ea89c2208e61a5424
4
- data.tar.gz: f3d00baafb689a67eda11864b2773f1234e4ba9e3260c357ecb6cc7cc314ea0f
3
+ metadata.gz: 2cbea20da5c324c2711c1870026241c59bfc873685b4e96696364e16fadd2a19
4
+ data.tar.gz: 887c02907ba46a5c7b9a9c349d61ad3afd4507b6b0c0cceb9118994b5f48286c
5
5
  SHA512:
6
- metadata.gz: a4eab612b6608d12e31925fc168d60fcf264e1b483375c7d50e0a91a7822ba1a3cf84ce95367ee2b3e2ba58d1263112d2197c04b37b90bef1f922defa852c345
7
- data.tar.gz: b4b0166a884902e1330380b7056e7e15a0f9cec50ff91f8fdbb0b829646965cb7ba63bb5010a4ed4e28f24afc0b9daa28c88a60099c4ae64f3a835b6e7f76cb8
6
+ metadata.gz: e5e4879180742e94910422d58283f90ede3c1bf726c361bbfaf02ceceb6bebfc95175e20d19530e751f73d60d5150d4eb5e7896d85bb40ddc7c77459f4b2fb0e
7
+ data.tar.gz: 91bfe3889556af3dd53e7fc18a94712fd49b060b69741ea0da03e0b84d9418becf2e9d1ba169ea0d793cedb6d7f98c3a06994f9a7bbdfd078d6cf64522323f5c
data/.circleci/config.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  version: 2.1
2
2
  orbs:
3
- samvera: samvera/circleci-orb@0
3
+ samvera: samvera/circleci-orb@1.0
4
4
  jobs:
5
5
  bundle_and_test:
6
6
  parameters:
@@ -8,7 +8,7 @@ jobs:
8
8
  type: string
9
9
  bundler_version:
10
10
  type: string
11
- default: 1.17.3
11
+ default: 2.4.3
12
12
  rails_version:
13
13
  type: string
14
14
  executor:
@@ -21,6 +21,19 @@ jobs:
21
21
  steps:
22
22
  - samvera/cached_checkout
23
23
 
24
+ - run:
25
+ name: Check for a branch named 'master'
26
+ command: |
27
+ git fetch --all --quiet --prune --prune-tags
28
+ if [[ -n "$(git branch --all --list master */master)" ]]; then
29
+ echo "A branch named 'master' was found. Please remove it."
30
+ echo "$(git branch --all --list master */master)"
31
+ fi
32
+ [[ -z "$(git branch --all --list master */master)" ]]
33
+
34
+ - run: 'sudo apt-get update'
35
+ - run: 'sudo apt-get install -y libsqlite3-dev'
36
+
24
37
  - samvera/bundle_for_gem:
25
38
  ruby_version: << parameters.ruby_version >>
26
39
  bundler_version: << parameters.bundler_version >>
@@ -42,49 +55,38 @@ workflows:
42
55
  ci:
43
56
  jobs:
44
57
  - bundle_and_test:
45
- name: ruby2-7_rails6-0
46
- ruby_version: 2.7.1
47
- rails_version: 6.0.3.1
48
- - bundle_and_test:
49
- name: ruby2-7_rails5-2
50
- ruby_version: 2.7.1
51
- rails_version: 5.2.4.3
58
+ name: ruby3-2_rails7-0
59
+ ruby_version: 3.2.0
60
+ rails_version: 7.0.4
61
+
52
62
  - bundle_and_test:
53
- name: ruby2-7_rails5-1
54
- ruby_version: 2.7.1
55
- rails_version: 5.1.7
63
+ name: ruby3-1_rails7-0
64
+ ruby_version: 3.1.3
65
+ rails_version: 7.0.4
56
66
 
57
67
  - bundle_and_test:
58
- name: ruby2-6_rails6-0
59
- ruby_version: 2.6.6
60
- rails_version: 6.0.3.1
68
+ name: ruby3-0_rails7-0
69
+ ruby_version: 3.0.5
70
+ rails_version: 7.0.4
61
71
  - bundle_and_test:
62
- name: ruby2-6_rails5-2
63
- ruby_version: 2.6.6
64
- rails_version: 5.2.4.3
72
+ name: ruby3-0_rails6-1
73
+ ruby_version: 3.0.5
74
+ rails_version: 6.1.7
65
75
  - bundle_and_test:
66
- name: ruby2-6_rails5-1
67
- ruby_version: 2.6.6
68
- rails_version: 5.1.7
76
+ name: ruby3-0_rails6-0
77
+ ruby_version: 3.0.5
78
+ rails_version: 6.0.6
69
79
 
70
80
  - bundle_and_test:
71
- name: ruby2-5_rails6-0
72
- ruby_version: 2.5.8
73
- rails_version: 6.0.3.1
81
+ name: ruby2-7_rails6-1
82
+ ruby_version: 2.7.7
83
+ rails_version: 6.1.7
74
84
  - bundle_and_test:
75
- name: ruby2-5_rails5-2
76
- ruby_version: 2.5.8
77
- rails_version: 5.2.4.3
85
+ name: ruby2-7_rails6-0
86
+ ruby_version: 2.7.7
87
+ rails_version: 6.0.6
78
88
  - bundle_and_test:
79
- name: ruby2-5_rails5-1
80
- ruby_version: 2.5.8
81
- rails_version: 5.1.7
89
+ name: ruby2-7_rails5-2
90
+ ruby_version: 2.7.7
91
+ rails_version: 5.2.8.1
82
92
 
83
- - bundle_and_test:
84
- name: ruby2-4_rails5-2
85
- ruby_version: 2.4.10
86
- rails_version: 5.2.4.3
87
- - bundle_and_test:
88
- name: ruby2-4_rails5-1
89
- ruby_version: 2.4.10
90
- rails_version: 5.1.7
@@ -1,2 +1,2 @@
1
1
  unreleased=true
2
- future-release=3.0.2
2
+ future-release=3.0.3
data/CHANGELOG.md CHANGED
@@ -1,8 +1,22 @@
1
1
  # Changelog
2
2
 
3
- ## [3.0.2](https://github.com/samvera/noid-rails/tree/3.0.2) (2020-06-11)
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.1...3.0.2)
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
@@ -45,15 +67,22 @@ You should also add yourself to the `CONTRIBUTORS.md` file in the root of the pr
45
67
 
46
68
  * Fork the repository on GitHub
47
69
  * Create a topic branch from where you want to base your work.
48
- * This is usually the master branch.
49
- * To quickly create a topic branch based on master; `git branch fix/master/my_contribution master`
50
- * Then checkout the new branch with `git checkout fix/master/my_contribution`.
51
- * Please avoid working directly on the `master` branch.
70
+ * This is usually the `main` branch.
71
+ * To quickly create a topic branch based on `main`; `git branch fix/main/my_contribution main`
72
+ * Then checkout the new branch with `git checkout fix/main/my_contribution`.
73
+ * Please avoid working directly on the `main` branch.
74
+ * Please do not create a branch called `master`. (See note below.)
52
75
  * You may find the [hub suite of commands](https://github.com/defunkt/hub) helpful
53
76
  * Make sure you have added sufficient tests and documentation for your changes.
54
77
  * Test functionality with RSpec; Test features / UI with Capybara.
55
78
  * Run _all_ the tests to assure nothing else was accidentally broken.
56
79
 
80
+ NOTE: This repository follows the [Samvera Community Code of Conduct](https://samvera.atlassian.net/wiki/spaces/samvera/pages/405212316/Code+of+Conduct)
81
+ and [language recommendations](#language).
82
+ Please ***do not*** create a branch called `master` for this repository or as part of
83
+ your pull request; the branch will either need to be removed or renamed before it can
84
+ be considered for inclusion in the code base and history of this repository.
85
+
57
86
  ### Documenting Code
58
87
 
59
88
  * All new public methods, modules, and classes should include inline documentation in [YARD](http://yardoc.org/).
@@ -109,15 +138,15 @@ You should also add yourself to the `CONTRIBUTORS.md` file in the root of the pr
109
138
  ### Submitting Changes
110
139
 
111
140
  * Read the article ["Using Pull Requests"](https://help.github.com/articles/using-pull-requests) on GitHub.
112
- * Make sure your branch is up to date with its parent branch (i.e. master)
113
- * `git checkout master`
141
+ * Make sure your branch is up to date with its parent branch (i.e. main)
142
+ * `git checkout main`
114
143
  * `git pull --rebase`
115
144
  * `git checkout <your-branch>`
116
- * `git rebase master`
145
+ * `git rebase main`
117
146
  * It is a good idea to run your tests again.
118
147
  * If you've made more than one commit take a moment to consider whether squashing commits together would help improve their logical grouping.
119
148
  * [Detailed Walkthrough of One Pull Request per Commit](http://ndlib.github.io/practices/one-commit-per-pull-request/)
120
- * `git rebase --interactive master` ([See Github help](https://help.github.com/articles/interactive-rebase))
149
+ * `git rebase --interactive main` ([See Github help](https://help.github.com/articles/interactive-rebase))
121
150
  * Squashing your branch's changes into one commit is "good form" and helps the person merging your request to see everything that is going on.
122
151
  * Push your changes to a topic branch in your fork of the repository.
123
152
  * Submit a pull request from your fork to the project.
@@ -127,12 +156,14 @@ You should also add yourself to the `CONTRIBUTORS.md` file in the root of the pr
127
156
  We adopted [Github's Pull Request Review](https://help.github.com/articles/about-pull-request-reviews/) for our repositories.
128
157
  Common checks that may occur in our repositories:
129
158
 
130
- 1. Travis CI - where our automated tests are running
131
- 2. Approval Required - Github enforces at least one person approve a pull request. Also, all reviewers that have chimed in must approve.
159
+ 1. [CircleCI](https://circleci.com/gh/samvera) - where our automated tests are running
160
+ 2. RuboCop/Bixby - where we check for style violations
161
+ 3. Approval Required - Github enforces at least one person approve a pull request. Also, all reviewers that have chimed in must approve.
162
+ 4. CodeClimate - is our code remaining healthy (at least according to static code analysis)
132
163
 
133
164
  If one or more of the required checks failed (or are incomplete), the code should not be merged (and the UI will not allow it). If all of the checks have passed, then anyone on the project (including the pull request submitter) may merge the code.
134
165
 
135
- *Example: Carolyn submits a pull request, Justin reviews the pull request and approves. However, Justin is still waiting on other checks (Travis CI is usually the culprit), so he does not merge the pull request. Eventually, all of the checks pass. At this point, Carolyn or anyone else may merge the pull request.*
166
+ *Example: Carolyn submits a pull request, Justin reviews the pull request and approves. However, Justin is still waiting on other checks (CI tests are usually the culprit), so he does not merge the pull request. Eventually, all of the checks pass. At this point, Carolyn or anyone else may merge the pull request.*
136
167
 
137
168
  #### Things to Consider When Reviewing
138
169
 
@@ -149,7 +180,7 @@ This is your chance for a mentoring moment of another developer. Take time to gi
149
180
  * Do new or changed methods, modules, and classes have documentation?
150
181
  * Does the commit contain more than it should? Are two separate concerns being addressed in one commit?
151
182
  * Does the description of the new/changed specs match your understanding of what the spec is doing?
152
- * Did the Travis tests complete successfully?
183
+ * Did the Continuous Integration tests complete successfully?
153
184
 
154
185
  If you are uncertain, bring other contributors into the conversation by assigning them as a reviewer.
155
186
 
data/README.md CHANGED
@@ -1,10 +1,18 @@
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=master)](https://coveralls.io/github/samvera/noid-rails?branch=master) [![Code Climate](https://codeclimate.com/github/samvera/noid-rails/badges/gpa.svg)](https://codeclimate.com/github/samvera/noid-rails)
3
+ Code:
4
+ [![Gem Version](https://badge.fury.io/rb/noid-rails.png)](http://badge.fury.io/rb/noid-rails)
5
+ [![Build Status](https://circleci.com/gh/samvera/noid-rails.svg?style=svg)](https://circleci.com/gh/samvera/noid-rails)
6
+ [![Coverage Status](https://coveralls.io/repos/github/samvera/noid-rails/badge.svg?branch=main)](https://coveralls.io/github/samvera/noid-rails?branch=main)
7
+ [![Maintainability](https://api.codeclimate.com/v1/badges/9c8739a529edc982fdec/maintainability)](https://codeclimate.com/github/samvera/noid-rails/maintainability)
4
8
 
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=master)](https://inch-ci.org/github/samvera/noid-rails)
9
+ Docs:
10
+ [![Contribution Guidelines](http://img.shields.io/badge/CONTRIBUTING-Guidelines-blue.svg)](./CONTRIBUTING.md)
11
+ [![Apache 2.0 License](http://img.shields.io/badge/APACHE2-license-blue.svg)](./LICENSE)
12
+ [![API Docs](http://img.shields.io/badge/API-docs-blue.svg)](http://rubydoc.info/gems/noid-rails)
13
+ [![Documentation Status](https://inch-ci.org/github/samvera/noid-rails.svg?branch=main)](https://inch-ci.org/github/samvera/noid-rails)
6
14
 
7
- Jump In: [![Slack Status](http://slack.samvera.org/badge.svg)](http://slack.samvera.org/)
15
+ Community Support: [![Samvera Community Slack](https://img.shields.io/badge/samvera-slack-blueviolet)](http://slack.samvera.org/)
8
16
 
9
17
  # What is noid-rails?
10
18
 
@@ -14,11 +22,13 @@ This gem mints identifiers for models in your Rails-based application with opaqu
14
22
 
15
23
  ## Product Owner & Maintenance
16
24
 
17
- **noid-rails** is a Core Component of the Samvera community. The documentation for what this means can be found [here](http://samvera.github.io/core_components.html#requirements-for-a-core-component).
25
+ `noid-rails` was a Core Component of the Samvera Community. Given a decline in available labor required for maintenance, this project no longer has a dedicated Product Owner. The documentation for what this means can be found [here](http://samvera.github.io/core_components.html#requirements-for-a-core-component).
18
26
 
19
27
  ### Product Owner
20
28
 
21
- [Justin Coyne](https://github.com/jcoyne)
29
+ **Vacant**
30
+
31
+ _Until a Product Owner has been identified, we ask that you please direct all requests for support, bug reports, and general questions to the [`#dev` Channel on the Samvera Slack](https://samvera.slack.com/app_redirect?channel=dev)._
22
32
 
23
33
  ## Table of Contents
24
34
 
@@ -128,7 +138,7 @@ To better support multi-host production installations that expect a shared datab
128
138
  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
139
 
130
140
  ```bash
131
- $ rails generate active_fedora:noid:install
141
+ $ rails generate noid:rails:install
132
142
  ```
133
143
 
134
144
  This will create the necessary database migrations.
@@ -138,7 +148,7 @@ Then run `rake db:migrate`
138
148
  To start minting identifiers with the new minter, override the AF::Noid configuration in e.g. `config/initializers/noid-rails.rb`:
139
149
 
140
150
  ```ruby
141
- require 'active_fedora/noid'
151
+ require 'noid-rails'
142
152
 
143
153
  Noid::Rails.configure do |config|
144
154
  config.minter_class = Noid::Rails::Minter::Db
@@ -148,7 +158,7 @@ end
148
158
  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
159
 
150
160
  ```ruby
151
- require 'active_fedora/noid/rspec'
161
+ require 'noid/rails/rspec'
152
162
 
153
163
  RSpec.configure do |config|
154
164
  include Noid::Rails::RSpec
@@ -219,6 +229,12 @@ end
219
229
 
220
230
  And the service will delegate minting and validating to an instance of your customized minter class.
221
231
 
232
+ ## Contributing
233
+
234
+ If you're working on PR for this project, create a feature branch off of `main`.
235
+
236
+ This repository follows the [Samvera Community Code of Conduct](https://samvera.atlassian.net/wiki/spaces/samvera/pages/405212316/Code+of+Conduct) and [language recommendations](https://github.com/samvera/maintenance/blob/master/templates/CONTRIBUTING.md#language). Please ***do not*** create a branch called `master` for this repository or as part of your pull request; the branch will either need to be removed or renamed before it can be considered for inclusion in the code base and history of this repository.
237
+
222
238
  ## Releasing
223
239
 
224
240
  1. `bundle install`
@@ -230,7 +246,7 @@ And the service will delegate minting and validating to an instance of your cust
230
246
  github_changelog_generator --user samvera --project noid-rails --token YOUR_GITHUB_TOKEN_HERE
231
247
  ```
232
248
 
233
- 5. Commit these changes to the master branch
249
+ 5. Commit these changes to the main branch
234
250
 
235
251
  6. Run `rake release`
236
252
 
@@ -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.update_attributes!(
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))
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Noid
4
4
  module Rails
5
- VERSION = '3.0.2'
5
+ VERSION = '3.1.0'
6
6
  end
7
7
  end
data/noid-rails.gemspec CHANGED
@@ -18,11 +18,11 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^spec/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'actionpack', '>= 5.0.0', '< 7'
21
+ spec.add_dependency 'actionpack', '>= 5.0.0', '< 7.1'
22
22
  spec.add_dependency 'noid', '~> 0.9'
23
23
 
24
- spec.add_development_dependency 'bixby', '~> 3.0.0'
25
- spec.add_development_dependency 'bundler', '>= 1.7'
24
+ spec.add_development_dependency 'bixby', '~> 5.0.0'
25
+ spec.add_development_dependency 'bundler', '>= 2.1'
26
26
  spec.add_development_dependency 'engine_cart', '~> 2.2'
27
27
  spec.add_development_dependency 'rake', '>= 11'
28
28
  spec.add_development_dependency 'rspec', '~> 3.8'
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.2
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael J. Giarlo
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-11 00:00:00.000000000 Z
11
+ date: 2023-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 5.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7'
22
+ version: '7.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 5.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7'
32
+ version: '7.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: noid
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 3.0.0
53
+ version: 5.0.0
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 3.0.0
60
+ version: 5.0.0
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: bundler
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: '1.7'
67
+ version: '2.1'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: '1.7'
74
+ version: '2.1'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: engine_cart
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -195,7 +195,7 @@ homepage: https://github.com/samvera/noid-rails
195
195
  licenses:
196
196
  - Apache2
197
197
  metadata: {}
198
- post_install_message:
198
+ post_install_message:
199
199
  rdoc_options: []
200
200
  require_paths:
201
201
  - lib
@@ -210,8 +210,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  - !ruby/object:Gem::Version
211
211
  version: '0'
212
212
  requirements: []
213
- rubygems_version: 3.0.3
214
- signing_key:
213
+ rubygems_version: 3.1.6
214
+ signing_key:
215
215
  specification_version: 4
216
216
  summary: Noid identifier services for Rails-based applications
217
217
  test_files: