slayer_rails 0.5.0.beta → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +2 -3
- data/.github/workflows/test.yml +7 -5
- data/Appraisals +7 -2
- data/Dockerfile +1 -1
- data/bin/ssh_to_container +3 -0
- data/gemfiles/rails_6.1.gemfile +9 -11
- data/gemfiles/rails_7.0.gemfile +9 -11
- data/gemfiles/rails_7.1.gemfile +13 -0
- data/lib/slayer_rails/extensions/translation.rb +4 -4
- data/lib/slayer_rails/version.rb +1 -1
- data/slayer_rails.gemspec +1 -1
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9eb2cad10c8868fa239994378d096827c2b4ec5ad6022d92ec7d9aea3d96f4ee
|
4
|
+
data.tar.gz: cead0ce11dfd1f663082de832d8271d8e82d70a7b1f73ba0bcf510fe1e8a0eef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b181e25eb01f7ebd9ab7dd35fd0da3ae44912dd868d9e7e8d8eec0342eed07702df082fc811d8f4bb81cdee8b7d141a7a119dfe662cf17e6abe32be9e9c4893
|
7
|
+
data.tar.gz: 77e9c84240882bb7897b592312b860ce3178e3b35ab5aa14c5c610cb8510e5f51f2d7be64b9355b2293640fc4b622db376589d311b6573355ee8700d19e783e4
|
@@ -4,16 +4,15 @@ name: Release
|
|
4
4
|
|
5
5
|
on:
|
6
6
|
workflow_dispatch:
|
7
|
-
pull_request:
|
8
7
|
|
9
8
|
jobs:
|
10
9
|
release:
|
11
10
|
runs-on: ubuntu-latest
|
12
11
|
steps:
|
13
|
-
- uses: actions/checkout@
|
12
|
+
- uses: actions/checkout@v4
|
14
13
|
- uses: ruby/setup-ruby@v1
|
15
14
|
with:
|
16
|
-
ruby-version: 3.
|
15
|
+
ruby-version: 3.2
|
17
16
|
- run: bundle install
|
18
17
|
- name: publish gem
|
19
18
|
run: |
|
data/.github/workflows/test.yml
CHANGED
@@ -2,7 +2,7 @@ name: Test & Lint
|
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
5
|
-
branches: [
|
5
|
+
branches: [main]
|
6
6
|
pull_request:
|
7
7
|
|
8
8
|
jobs:
|
@@ -12,12 +12,12 @@ jobs:
|
|
12
12
|
|
13
13
|
strategy:
|
14
14
|
matrix:
|
15
|
-
ruby-version: ['2.7']
|
15
|
+
ruby-version: ['3.3', '3.2', '3.1', '3.0', '2.7']
|
16
16
|
|
17
17
|
steps:
|
18
|
-
- uses: actions/checkout@
|
18
|
+
- uses: actions/checkout@v4
|
19
19
|
- name: Set up Ruby
|
20
|
-
uses: ruby/setup-ruby@
|
20
|
+
uses: ruby/setup-ruby@v1
|
21
21
|
with:
|
22
22
|
ruby-version: ${{ matrix.ruby-version }}
|
23
23
|
- name: Install dependencies
|
@@ -28,4 +28,6 @@ jobs:
|
|
28
28
|
- name: Rubocop
|
29
29
|
run: rubocop
|
30
30
|
- name: Run tests
|
31
|
-
run:
|
31
|
+
run: |
|
32
|
+
RAILS_ENV=test bundle exec rake dummy:db:schema:load
|
33
|
+
bundle exec appraisal rspec
|
data/Appraisals
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
appraise 'rails_6.1' do
|
4
|
-
gem 'rails', '6.1'
|
4
|
+
gem 'rails', '~> 6.1'
|
5
5
|
gem 'tzinfo-data'
|
6
6
|
end
|
7
7
|
|
8
8
|
appraise 'rails_7.0' do
|
9
|
-
gem 'rails', '7.0'
|
9
|
+
gem 'rails', '~> 7.0'
|
10
|
+
gem 'tzinfo-data'
|
11
|
+
end
|
12
|
+
|
13
|
+
appraise 'rails_7.1' do
|
14
|
+
gem 'rails', '~> 7.1'
|
10
15
|
gem 'tzinfo-data'
|
11
16
|
end
|
data/Dockerfile
CHANGED
data/gemfiles/rails_6.1.gemfile
CHANGED
@@ -1,15 +1,13 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
# This file was generated by Appraisal
|
4
2
|
|
5
|
-
source
|
3
|
+
source "https://rubygems.org"
|
6
4
|
|
7
|
-
gem
|
8
|
-
gem
|
9
|
-
gem
|
10
|
-
gem
|
11
|
-
gem
|
12
|
-
gem
|
13
|
-
gem
|
5
|
+
gem "appraisal"
|
6
|
+
gem "byebug"
|
7
|
+
gem "nokogiri"
|
8
|
+
gem "rspec-rails"
|
9
|
+
gem "sqlite3"
|
10
|
+
gem "tzinfo-data"
|
11
|
+
gem "rails", "~> 6.1"
|
14
12
|
|
15
|
-
gemspec path:
|
13
|
+
gemspec path: "../"
|
data/gemfiles/rails_7.0.gemfile
CHANGED
@@ -1,15 +1,13 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
# This file was generated by Appraisal
|
4
2
|
|
5
|
-
source
|
3
|
+
source "https://rubygems.org"
|
6
4
|
|
7
|
-
gem
|
8
|
-
gem
|
9
|
-
gem
|
10
|
-
gem
|
11
|
-
gem
|
12
|
-
gem
|
13
|
-
gem
|
5
|
+
gem "appraisal"
|
6
|
+
gem "byebug"
|
7
|
+
gem "nokogiri"
|
8
|
+
gem "rspec-rails"
|
9
|
+
gem "sqlite3"
|
10
|
+
gem "tzinfo-data"
|
11
|
+
gem "rails", "~> 7.0"
|
14
12
|
|
15
|
-
gemspec path:
|
13
|
+
gemspec path: "../"
|
@@ -7,13 +7,13 @@ module SlayerRails
|
|
7
7
|
|
8
8
|
# rubocop:disable Metrics/BlockLength
|
9
9
|
included do
|
10
|
-
def translate(key, options
|
11
|
-
I18n.translate(self.class.full_key(key), options
|
10
|
+
def translate(key, **options)
|
11
|
+
I18n.translate(self.class.full_key(key), **options)
|
12
12
|
end
|
13
13
|
alias_method :t, :translate
|
14
14
|
|
15
|
-
def localize(*args)
|
16
|
-
I18n.localize(*args)
|
15
|
+
def localize(*args, **kwargs)
|
16
|
+
I18n.localize(*args, **kwargs)
|
17
17
|
end
|
18
18
|
alias_method :l, :localize
|
19
19
|
|
data/lib/slayer_rails/version.rb
CHANGED
data/slayer_rails.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
25
|
spec.add_runtime_dependency 'rails', '>= 4.2.0'
|
26
|
-
spec.add_runtime_dependency 'slayer', '>= 0.5
|
26
|
+
spec.add_runtime_dependency 'slayer', '>= 0.5'
|
27
27
|
|
28
28
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
29
29
|
spec.add_development_dependency 'rake', '~> 12.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slayer_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wyatt Kirby
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.5
|
33
|
+
version: '0.5'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.5
|
40
|
+
version: '0.5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -102,6 +102,7 @@ files:
|
|
102
102
|
- bin/console
|
103
103
|
- bin/helpers/docker
|
104
104
|
- bin/setup
|
105
|
+
- bin/ssh_to_container
|
105
106
|
- config.ru
|
106
107
|
- config/locales/en.yml
|
107
108
|
- db/migrate/20170214100255_create_person.rb
|
@@ -110,6 +111,7 @@ files:
|
|
110
111
|
- docker/start.sh
|
111
112
|
- gemfiles/rails_6.1.gemfile
|
112
113
|
- gemfiles/rails_7.0.gemfile
|
114
|
+
- gemfiles/rails_7.1.gemfile
|
113
115
|
- lib/generators/command/command_generator.rb
|
114
116
|
- lib/generators/command/templates/command.rb
|
115
117
|
- lib/generators/form/form_generator.rb
|
@@ -138,11 +140,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
140
|
version: '0'
|
139
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
142
|
requirements:
|
141
|
-
- - "
|
143
|
+
- - ">="
|
142
144
|
- !ruby/object:Gem::Version
|
143
|
-
version:
|
145
|
+
version: '0'
|
144
146
|
requirements: []
|
145
|
-
rubygems_version: 3.
|
147
|
+
rubygems_version: 3.4.19
|
146
148
|
signing_key:
|
147
149
|
specification_version: 4
|
148
150
|
summary: Rails extensions for Slayer.
|