castle_devise 0.4.3 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6843034cd0d1278d25140abc645d54dca7b8a3431829c6d7b58920ad987381a6
4
- data.tar.gz: 58f4ae8fb336b3299f96b067210b788f9906efd223965c7c17143a2e2583fad3
3
+ metadata.gz: ec99e18ff024ed0a67da899ebb6ecd0feca90f4f4a9e9ecf482195f99473c536
4
+ data.tar.gz: 1936cca9eb03a1f6a70680337f9513f266fe09493d1886881ccd3d8be8a3c759
5
5
  SHA512:
6
- metadata.gz: 0b8f9feca618661708bf6695d3c870c54e4fd4eb747b8ea96031e8a88bcb53c7af7b52b47ce38b92cd44bb85e352b5a9a6bc1aba6a80d4218ecee6dbbe6fdd6c
7
- data.tar.gz: e81f6b014851e78444088a9949746aec347a800c39487ab4cae3c0727c6568b8a2b9691f561c7366be873725ea00f0e62e9d33e2ca919193d3c758da975b116a
6
+ metadata.gz: ba9db9541573aa3ce7e7dba634bae8756303f337327bd96631d73b0055fbb6159d311ba668a9ae6828392336cf2aeec49702e827134f6ba9a650095b67af9de2
7
+ data.tar.gz: da1ee7ab23bdd7db7b9a2975d7becd1d2dd10ad56667db657355ed49126975fabba059342f2975ae6e536fedd9fdb7479cddce81a17bb50c2d26e299cd6c3c20
@@ -1,21 +1,18 @@
1
1
  name: Lint
2
2
 
3
- on: [pull_request]
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches: [main]
4
7
 
5
8
  jobs:
6
9
  standardrb:
7
- name: runner / standardrb
10
+ name: standardrb
8
11
  runs-on: ubuntu-latest
9
12
  steps:
10
- - name: Check out code
11
- uses: actions/checkout@v1
12
- - name: Give permissions
13
- run: |
14
- sudo chown -R root:root $GITHUB_WORKSPACE
15
- - name: standardrb
16
- uses: SennaLabs/action-standardrb@v0.0.3
13
+ - uses: actions/checkout@v5
14
+ - uses: ruby/setup-ruby@v1
17
15
  with:
18
- github_token: ${{ secrets.github_token }}
19
- reporter: github-pr-review # Default is github-pr-check
20
- rubocop_version: 1.1.6 # note: this actually refers to standardb version, not Rubocop
21
- rubocop_flags: --format progress
16
+ ruby-version: "3.4"
17
+ bundler-cache: true
18
+ - run: bundle exec standardrb --format progress
@@ -10,31 +10,59 @@ jobs:
10
10
  strategy:
11
11
  fail-fast: false
12
12
  matrix:
13
- ruby: ["2.7", "3.0", "3.1", "3.2"]
14
- rails: ["6.0", "6.1", "7.0"]
15
-
13
+ include:
14
+ # Rails 6.0
15
+ - ruby: "3.2"
16
+ rails: "6.0"
17
+ # Rails 6.1
18
+ - ruby: "3.2"
19
+ rails: "6.1"
20
+ # Rails 7.0
21
+ - ruby: "3.2"
22
+ rails: "7.0"
23
+ # Rails 7.1
24
+ - ruby: "3.2"
25
+ rails: "7.1"
26
+ - ruby: "3.3"
27
+ rails: "7.1"
28
+ # Rails 7.2
29
+ - ruby: "3.2"
30
+ rails: "7.2"
31
+ - ruby: "3.3"
32
+ rails: "7.2"
33
+ # Rails 8.0
34
+ - ruby: "3.3"
35
+ rails: "8.0"
36
+ - ruby: "3.4"
37
+ rails: "8.0"
38
+ - ruby: "4.0"
39
+ rails: "8.0"
40
+ # Rails 8.1
41
+ - ruby: "3.3"
42
+ rails: "8.1"
43
+ - ruby: "3.4"
44
+ rails: "8.1"
45
+ - ruby: "4.0"
46
+ rails: "8.1"
16
47
  steps:
17
- - uses: actions/checkout@v2
18
- - name: Set up Ruby ${{ matrix.ruby }}
19
- uses: ruby/setup-ruby@v1
20
- with:
21
- ruby-version: ${{ matrix.ruby }}
22
- - name: Install dependencies
23
- env:
24
- BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.gemfile
25
- run: |
26
- gem update --system
27
- bundle config path vendor/bundle
28
- bundle install
29
- - name: Run specs
30
- env:
31
- BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.gemfile
32
- CASTLE_API_SECRET: ${{ secrets.CASTLE_API_SECRET }}
33
- run: |
34
- bundle exec rake
35
- - name: Simplecov Report
36
- if:
37
- ${{ matrix.rails == '6.1' && matrix.ruby >= '3.0' }}
38
- uses: aki77/simplecov-report-action@v1
39
- with:
40
- token: ${{ secrets.GITHUB_TOKEN }}
48
+ - uses: actions/checkout@v5
49
+ - name: Set up Ruby ${{ matrix.ruby }}
50
+ uses: ruby/setup-ruby@v1
51
+ with:
52
+ ruby-version: ${{ matrix.ruby }}
53
+ - name: Install dependencies
54
+ env:
55
+ BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.gemfile
56
+ run: |
57
+ bundle config path vendor/bundle
58
+ bundle install
59
+ - name: Run specs
60
+ env:
61
+ BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.gemfile
62
+ run: |
63
+ bundle exec rake
64
+ - name: Simplecov Report
65
+ uses: k1LoW/octocov-action@v1
66
+ if: matrix.ruby == '3.4' && matrix.rails == '8.1'
67
+ with:
68
+ github-token: ${{ secrets.GITHUB_TOKEN }}
data/.gitignore CHANGED
@@ -22,3 +22,4 @@ gemfiles/*.lock
22
22
  vendor/
23
23
 
24
24
  spec/dummy_app/log/
25
+ spec/dummy_app/tmp/
data/.octocov.yml ADDED
@@ -0,0 +1,14 @@
1
+ # generated by octocov init
2
+ coverage:
3
+ if: true
4
+ testExecutionTime:
5
+ if: true
6
+ diff:
7
+ datastores:
8
+ - artifact://${GITHUB_REPOSITORY}
9
+ summary:
10
+ if: true
11
+ report:
12
+ if: is_default_branch
13
+ datastores:
14
+ - artifact://${GITHUB_REPOSITORY}
data/.standard.yml ADDED
@@ -0,0 +1,3 @@
1
+ ignore:
2
+ - "gemfiles/vendor/**/*"
3
+ - "vendor/**/*"
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.4.10
data/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  ## [Unreleased][main]
4
4
 
5
+ ## [0.7.0] - 2026-09-07
6
+ - Drop `cdn.castle.io`; load `castle.umd.js` from `/vendor/castle-js` via `castle_javascript_tag`
7
+ - Seed `window.Castle` before a UMD script so 3.x (`name: @castleio/castle-js`) attaches to the same global
8
+ - Support `@castleio/castle-js` 2.x (`injectTokenOnSubmit` / `createRequestToken`) and 3.x (`configure({ pk })` + `createRequestToken`)
9
+ - Add `publishable_key` configuration and drop `app_id`
10
+ - Bump development Gemfile.lock dependencies, including Rails 8.1.3.1, `castle-rb` 9.3.0, Standard 1.56, and SimpleCov 1.2
11
+ - Pin Ruby 3.4.10 via `.tool-versions` and add `mise.toml` task aliases
12
+ - Use `actions/checkout@v5` in CI
13
+
14
+ ## [0.6.0] - 2026-05-25
15
+ - Add support for Rails 8.1
16
+ - Add support for Devise 5
17
+ - Allow `castle-rb` 9.x (constraint widened to `>= 7.2, < 10.0`); verified
18
+ against the upcoming 9.0 release — castle_devise uses only the
19
+ `#risk` / `#filter` / `#log` Client APIs and the `Castle::Error` /
20
+ `InvalidParametersError` / `InvalidRequestTokenError` classes, all of
21
+ which remain in 9.0.
22
+ - Bump `castle-rb` to 9.1.0
23
+ - Add Ruby 3.3, 3.4, and 4.0 to the CI matrix
24
+ - Bump minimum required Ruby version to 3.2
25
+ - Replace deprecated `ActiveSupport::Configurable` with plain Ruby attribute accessors (drops the Rails 8.2 deprecation warning)
26
+ - Drop `appraisal` development dependency in favor of hand-maintained `gemfiles/*.gemfile`
27
+ - Bump development Gemfile to Rails 8.1, Devise 5, sqlite3 ~> 2.1, Bundler 2.7.x
28
+
29
+ ## [0.5.0] - 2025-06-17
30
+ - Throw a warning instead of an error for the `$login.failed` event when an exception is raised
31
+ - Security fixes and dependency updates
32
+
5
33
  ## [0.4.3] - 2023-07-11
6
34
  - Fix an issue where we would send a `login.failed` event on any attempt of accessing a protected resource, not only when the user failed to log in specifically
7
35
 
@@ -29,7 +57,10 @@
29
57
 
30
58
  - Initial release
31
59
 
32
- [main]: https://github.com/castle/castle_devise/compare/v0.4.3...HEAD
60
+ [main]: https://github.com/castle/castle_devise/compare/v0.7.0...HEAD
61
+ [0.7.0]: https://github.com/castle/castle_devise/compare/v0.6.0...v0.7.0
62
+ [0.6.0]: https://github.com/castle/castle_devise/compare/v0.5.0...v0.6.0
63
+ [0.5.0]: https://github.com/castle/castle_devise/compare/v0.4.3...v0.5.0
33
64
  [0.4.3]: https://github.com/castle/castle_devise/compare/v0.4.2...v0.4.3
34
65
  [0.4.2]: https://github.com/castle/castle_devise/compare/v0.4.1...v0.4.2
35
66
  [0.4.1]: https://github.com/castle/castle_devise/compare/v0.4.0...v0.4.1
data/Gemfile CHANGED
@@ -7,13 +7,16 @@ gemspec
7
7
 
8
8
  gem "actionmailer"
9
9
  gem "activerecord"
10
+ # Dev/test: track castle-rb upstream develop. Gemspec uses rubygems.
11
+ gem "castle-rb", github: "castle/castle-ruby", branch: "develop"
10
12
  gem "byebug"
11
- gem "railties", "~> 7.0"
13
+ gem "devise", "~> 5.0"
14
+ gem "railties", "~> 8.1"
12
15
  gem "rake"
13
16
  gem "rspec"
14
17
  gem "rspec-rails"
15
18
  gem "simplecov"
19
+ gem "sqlite3", "~> 2.1"
16
20
  gem "standard"
17
- gem "sqlite3"
18
21
  gem "vcr"
19
22
  gem "webmock"