trestle-auth 0.5.0.pre → 0.5.0.pre2

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: 4bf9bdc4d138b38fa4ad97bcfd868b5a10eded1259fc61d781f3c06ba5d0d442
4
- data.tar.gz: 720f210a517b3cd1a90218fedc6c6a962ff92e39d683f6ed3f8f5e83b88a8958
3
+ metadata.gz: 144e61c6788c0348620a3eff6dbebfe6ceca99fe4f7ea25033ff6bdc63fcd948
4
+ data.tar.gz: 919a738389172b29a037ef7a3f981efd665f67a67ec22738cf625a49e6a14c48
5
5
  SHA512:
6
- metadata.gz: d31ce0625a8e8f2ab7c0e2d4f3da94f7c4409efcb4e6b2ed34ff22db00cbd4e9e7a47f830e41dbfd1801412d0531015aebfc6d5d8975f78a0e589f643bf77373
7
- data.tar.gz: e2f83f7ffa3652879224c87230a1fbfa9e6f6cf104f9607f8e606c2cc8e2b3d29560f46ec4811eeccb54d1de71c2a91d9941d676409ebb8102f7360e9fa29687
6
+ metadata.gz: 00a63d8741775dbf8a5a3ecbf5cb0ad1e44ea22a218db17fa83b0340ed5416e19943ff0b341af8dbb37ded9cbcc3a129b744546aa93e9c25cc0cf83a4f8f6653
7
+ data.tar.gz: c9c42bde70ebb2afd0194b42b34c416870f77b782c6ee95b467cdcd2ea5760a775180714888857a47a1fdecbaa741a58f6d1a3d378f4d14c91033a5d02d082c0
@@ -0,0 +1,26 @@
1
+ name: Publish gem
2
+
3
+ on: workflow_dispatch
4
+
5
+ jobs:
6
+ push:
7
+ runs-on: ubuntu-latest
8
+
9
+ permissions:
10
+ contents: write
11
+ id-token: write
12
+
13
+ # If you configured a GitHub environment on RubyGems, you must use it here.
14
+ environment: release
15
+
16
+ steps:
17
+ # Set up
18
+ - uses: actions/checkout@v4
19
+ - name: Set up Ruby
20
+ uses: ruby/setup-ruby@v1
21
+ with:
22
+ bundler-cache: true
23
+ ruby-version: ruby
24
+
25
+ # Release
26
+ - uses: rubygems/release-gem@v1
@@ -7,17 +7,27 @@ jobs:
7
7
  strategy:
8
8
  fail-fast: false
9
9
  matrix:
10
- gemfile: [ rails-5.2, rails-6.0, rails-6.1 ]
11
- ruby: [ '2.7' ]
12
10
  include:
11
+ - gemfile: rails-6.0
12
+ ruby: '2.6'
13
+ - gemfile: rails-6.1
14
+ ruby: '2.6'
13
15
  - gemfile: rails-6.1
14
16
  ruby: '3.0'
15
17
  - gemfile: rails-7.0
16
18
  ruby: '2.7'
17
19
  - gemfile: rails-7.0
18
20
  ruby: '3.0'
21
+ - gemfile: rails-7.0-propshaft
22
+ ruby: '3.0'
19
23
  - gemfile: rails-7.1
20
- ruby: '3.2'
24
+ ruby: '3.3'
25
+ - gemfile: rails-7.1-propshaft
26
+ ruby: '3.3'
27
+ - gemfile: rails-7.2
28
+ ruby: '3.3'
29
+ - gemfile: rails-7.2-propshaft
30
+ ruby: '3.3'
21
31
  runs-on: ubuntu-latest
22
32
  env:
23
33
  BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
data/Gemfile CHANGED
@@ -1,7 +1,9 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in trestle-auth.gemspec
4
- gemspec
3
+ group :development, :test do
4
+ gem "sprockets-rails"
5
+ # gem "propshaft"
6
+ end
5
7
 
6
8
  group :test do
7
9
  gem "rspec-rails"
@@ -14,6 +16,7 @@ group :test do
14
16
  end
15
17
 
16
18
  gem "rails", "~> 7.1.0"
17
- gem "sprockets-rails"
18
-
19
19
  gem "trestle", github: "TrestleAdmin/trestle"
20
+
21
+ # Specify your gem's dependencies in trestle-auth.gemspec
22
+ gemspec
@@ -0,0 +1 @@
1
+ .auth-body{color:#fff;display:flex}.auth-body .container{margin:auto;width:320px}.auth-header{margin-bottom:20px;text-align:center}.auth-header h1{align-items:center;display:flex;font-size:1.75rem;font-weight:500;justify-content:center;padding:.75rem 1rem;text-shadow:rgba(0,0,0,.5) 0 1px 1px}.auth-header img{max-height:100%;max-width:80%}.auth-header span{margin-left:10px}.login-form .input-group>*{background:hsla(0,0%,100%,.1);border:0;margin-left:0!important}.login-form .form-control{color:#fff;font-size:1rem;padding:.875rem .625rem}.login-form .form-control:focus{box-shadow:none;outline-color:transparent;outline-style:none}.login-form .form-control:-ms-input-placeholder{color:hsla(0,0%,100%,.5)}.login-form .form-control::placeholder{color:hsla(0,0%,100%,.5)}.login-form .form-control:-webkit-autofill{-webkit-text-fill-color:#fff}.login-form .form-control:-webkit-autofill,.login-form .form-control:-webkit-autofill:active,.login-form .form-control:-webkit-autofill:focus,.login-form .form-control:-webkit-autofill:hover{-webkit-transition:background-color 9999999s ease-in-out 0s;transition:background-color 9999999s ease-in-out 0s}.login-form .input-group-text{color:hsla(0,0%,100%,.5);padding:.25rem .25rem .25rem .875rem}.login-form .btn-primary{box-shadow:0 0 2px rgba(0,0,0,.1);padding-bottom:.625rem;padding-top:.625rem}.login-form .alert-danger{background-color:hsla(2,62%,66%,.75)}.login-form .remember-me{font-size:.8125rem;line-height:1.5;padding-left:0}.login-form .remember-me .form-check-input{margin-left:1em;margin-top:.825em}.login-form .remember-me .form-check-label{background:rgba(0,0,0,.075);border-radius:.375rem;color:hsla(0,0%,100%,.75);cursor:pointer;display:block;padding:.75em 1.5em .75em 3.25em}.login-form .remember-me .form-check-label:hover{background:rgba(0,0,0,.125)}
@@ -1 +1 @@
1
- .userbox{align-items:center;display:flex;order:99;padding:2px 0}.userbox>a{color:#333;display:block;font-weight:400;line-height:40px;padding:2px 0}.userbox>a:focus,.userbox>a:hover{text-decoration:none}.userbox .avatar{margin-left:6px;vertical-align:top}.userbox .dropdown-toggle:after{vertical-align:middle}@media (max-width:767.98px){.userbox{display:block;position:relative;z-index:5}.userbox .name{display:none}.userbox .avatar{border:1px solid hsla(0,0%,100%,.25);margin-left:0}}
1
+ .userbox{align-items:center;display:flex;order:99;padding:.125rem 0}.userbox>a{color:#333;display:block;font-weight:400;line-height:40px;padding:.125rem 0}.userbox>a:focus,.userbox>a:hover{text-decoration:none}.userbox .avatar{margin-left:.375rem;vertical-align:top}.userbox .dropdown-toggle:after{vertical-align:middle}@media(max-width:575.98px){.userbox{display:block;position:relative;z-index:5}.userbox .name{display:none}.userbox .avatar{border:1px solid hsla(0,0%,100%,.25);margin-left:0}}
@@ -0,0 +1,3 @@
1
+ //= link trestle/auth/login.css
2
+ //= link trestle/auth/userbox.css
3
+ //= link trestle/auth/custom.css
@@ -18,9 +18,10 @@
18
18
  <%= stylesheet_link_tag "trestle/admin", 'data-turbo-track': 'reload' %>
19
19
  <%= stylesheet_link_tag "trestle/icons/font-awesome", 'data-turbo-track': 'reload' if defined?(Sprockets) %>
20
20
 
21
- <%= stylesheet_link_tag "trestle/custom", 'data-turbo-track': 'reload' %>
21
+ <%= stylesheet_link_tag "trestle/auth/login", 'data-turbo-track': 'reload' %>
22
22
 
23
- <%= stylesheet_link_tag "trestle/auth", 'data-turbo-track': 'reload' %>
23
+ <%= stylesheet_link_tag "trestle/custom", 'data-turbo-track': 'reload' %>
24
+ <%= stylesheet_link_tag "trestle/auth/custom", 'data-turbo-track': 'reload' %>
24
25
 
25
26
  <%= render "trestle/theme" %>
26
27
 
data/frontend/_form.scss CHANGED
@@ -7,9 +7,9 @@
7
7
 
8
8
  .form-control {
9
9
  color: $auth-form-control-color;
10
- font-size: 1.1rem;
10
+ font-size: 1rem;
11
11
 
12
- padding: 1rem 0.75rem;
12
+ padding: 0.875rem 0.625rem;
13
13
 
14
14
  &:focus {
15
15
  outline-color: transparent;
@@ -32,14 +32,14 @@
32
32
 
33
33
  .input-group-text {
34
34
  color: $auth-form-control-icon-color;
35
- padding: 0.375rem 0.25rem 0.375rem 1rem;
35
+ padding: 0.25rem 0.25rem 0.25rem 0.875rem;
36
36
  }
37
37
 
38
38
  .btn-primary {
39
39
  box-shadow: rgba(black, 0.1) 0 0 2px;
40
40
 
41
- padding-top: 0.75rem;
42
- padding-bottom: 0.75rem;
41
+ padding-top: 0.625rem;
42
+ padding-bottom: 0.625rem;
43
43
  }
44
44
 
45
45
  .alert-danger {
@@ -47,7 +47,7 @@
47
47
  }
48
48
 
49
49
  .remember-me {
50
- font-size: 0.95rem;
50
+ font-size: 0.8125rem;
51
51
  line-height: 1.5;
52
52
 
53
53
  padding-left: 0;
@@ -2,7 +2,7 @@
2
2
 
3
3
  .userbox {
4
4
  order: 99;
5
- padding: 2px 0;
5
+ padding: 0.125rem 0;
6
6
 
7
7
  display: flex;
8
8
  align-items: center;
@@ -11,7 +11,7 @@
11
11
  color: $body-color;
12
12
 
13
13
  display: block;
14
- padding: 2px 0;
14
+ padding: 0.125rem 0;
15
15
 
16
16
  font-weight: normal;
17
17
  line-height: 40px;
@@ -23,7 +23,7 @@
23
23
 
24
24
  .avatar {
25
25
  vertical-align: top;
26
- margin-left: 6px;
26
+ margin-left: 0.375rem;
27
27
  }
28
28
 
29
29
  .dropdown-toggle {
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+
3
+ group :test do
4
+ gem "rspec-rails"
5
+
6
+ gem "coveralls_reborn", require: false
7
+ gem "capybara"
8
+ end
9
+
10
+ gem "rails", "~> 7.0.0"
11
+ gem "propshaft"
12
+ gem "sqlite3", "~> 1.4"
13
+ gem "devise"
14
+
15
+ gem "trestle", github: "TrestleAdmin/trestle"
16
+
17
+ gemspec path: "../"
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+
3
+ group :test do
4
+ gem "rspec-rails"
5
+
6
+ gem "coveralls_reborn", require: false
7
+ gem "capybara"
8
+ end
9
+
10
+ gem "rails", "~> 7.1.0"
11
+ gem "propshaft"
12
+ gem "sqlite3", "~> 1.4"
13
+ gem "devise"
14
+
15
+ gem "trestle", github: "TrestleAdmin/trestle"
16
+
17
+ gemspec path: "../"
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+
3
+ group :test do
4
+ gem "rspec-rails"
5
+
6
+ gem "coveralls_reborn", require: false
7
+ gem "capybara"
8
+ end
9
+
10
+ gem "rails", "~> 7.2.0.rc1"
11
+ gem "propshaft"
12
+ gem "sqlite3", "~> 1.4"
13
+ gem "devise"
14
+
15
+ gem "trestle", github: "TrestleAdmin/trestle"
16
+
17
+ gemspec path: "../"
@@ -7,9 +7,9 @@ group :test do
7
7
  gem "capybara"
8
8
  end
9
9
 
10
- gem "rails", "~> 5.2.0"
10
+ gem "rails", "~> 7.2.0.rc1"
11
11
  gem "sprockets-rails"
12
- gem "sqlite3", "~> 1.3.13"
12
+ gem "sqlite3", "~> 1.4"
13
13
  gem "devise"
14
14
 
15
15
  gem "trestle", github: "TrestleAdmin/trestle"
@@ -1,7 +1,14 @@
1
1
  module Trestle
2
2
  module Auth
3
3
  class Engine < ::Rails::Engine
4
- config.assets.precompile << "trestle/auth.css" << "trestle/auth/userbox.css"
4
+ initializer "trestle.sprockets" do |app|
5
+ # Sprockets manifest
6
+ config.assets.precompile << "trestle/auth/manifest.js"
7
+ end if defined?(Sprockets)
8
+
9
+ initializer "trestle.propshaft" do |app|
10
+ app.config.assets.excluded_paths << root.join("app/assets/sprockets")
11
+ end if defined?(Propshaft)
5
12
 
6
13
  config.before_initialize do
7
14
  Trestle::Engine.paths["app/helpers"].concat(paths["app/helpers"].existent)
@@ -1,5 +1,5 @@
1
1
  module Trestle
2
2
  module Auth
3
- VERSION = "0.5.0.pre"
3
+ VERSION = "0.5.0.pre2"
4
4
  end
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trestle-auth",
3
- "version": "0.5.0.pre",
3
+ "version": "0.5.0-pre2",
4
4
  "description": "Authentication plugin for the Trestle admin framework",
5
5
  "repository": "https://github.com/TrestleAdmin/trestle-auth.git",
6
6
  "author": "Sam Pohlenz <sam@sampohlenz.com>",
@@ -19,8 +19,8 @@
19
19
  "css-loader": "^5.2.6",
20
20
  "css-minimizer-webpack-plugin": "^3.0.2",
21
21
  "mini-css-extract-plugin": "^2.0.0",
22
- "node-sass": "^7.0.0",
23
22
  "postcss-loader": "^6.1.1",
23
+ "sass": "^1.77.6",
24
24
  "sass-loader": "^12.1.0",
25
25
  "webpack": "^5.42.0",
26
26
  "webpack-cli": "^4.7.2",
data/trestle-auth.gemspec CHANGED
@@ -16,12 +16,12 @@ Gem::Specification.new do |spec|
16
16
 
17
17
  spec.require_paths = ["lib"]
18
18
 
19
- spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
19
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
20
20
 
21
21
  spec.metadata["homepage_uri"] = spec.homepage
22
22
  spec.metadata["source_code_uri"] = "https://github.com/TrestleAdmin/trestle-auth"
23
23
 
24
- spec.add_dependency "trestle", "~> 0.10.0.pre"
24
+ spec.add_dependency "trestle", "~> 0.10.0.pre2"
25
25
  spec.add_dependency "bcrypt", "~> 3.1.7"
26
26
 
27
27
  spec.add_development_dependency "rspec-rails"
data/webpack.config.js CHANGED
@@ -7,7 +7,7 @@ const RemoveEmptyScriptsPlugin = require('webpack-remove-empty-scripts');
7
7
  module.exports = {
8
8
  mode: 'production',
9
9
  entry: {
10
- bundle: path.resolve(__dirname, 'frontend/index.scss'),
10
+ login: path.resolve(__dirname, 'frontend/index.scss'),
11
11
  userbox: path.resolve(__dirname, 'frontend/userbox.scss')
12
12
  },
13
13
  output: {
@@ -35,7 +35,14 @@ module.exports = {
35
35
  }
36
36
  }
37
37
  },
38
- { loader: 'sass-loader' }
38
+ {
39
+ loader: 'sass-loader',
40
+ options: {
41
+ sassOptions: {
42
+ quietDeps: true
43
+ }
44
+ }
45
+ }
39
46
  ]
40
47
  }
41
48
  ]