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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c67f706f583469977288be1dd8114ec79bbca6f13f676d9bd71767d47e3423a1
4
- data.tar.gz: 9f97911c6825359b2c04b6d715abcb7835268c914022705530b8ad5dd4fda8a9
3
+ metadata.gz: 9eb2cad10c8868fa239994378d096827c2b4ec5ad6022d92ec7d9aea3d96f4ee
4
+ data.tar.gz: cead0ce11dfd1f663082de832d8271d8e82d70a7b1f73ba0bcf510fe1e8a0eef
5
5
  SHA512:
6
- metadata.gz: e2fc7da7f190526cc491a99f9f12f2cb517d75685a66c71db91564c1c3c0bd2dcfa57f3e5301d966c98fb8db4ebd80d34d02249daf7a87f5cb7aa45f23c5da2c
7
- data.tar.gz: a67ba310656947024f2001864cd1157cc2fb595a462e14f0b9585398476236ef1e2b43c089b74bac65c69d4228837c4166d56ddec78b057bcff5d83eddf898ea
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@v2
12
+ - uses: actions/checkout@v4
14
13
  - uses: ruby/setup-ruby@v1
15
14
  with:
16
- ruby-version: 3.0.0
15
+ ruby-version: 3.2
17
16
  - run: bundle install
18
17
  - name: publish gem
19
18
  run: |
@@ -2,7 +2,7 @@ name: Test & Lint
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [master]
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@v3
18
+ - uses: actions/checkout@v4
19
19
  - name: Set up Ruby
20
- uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
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: bundle exec appraisal rspec
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
@@ -1,4 +1,4 @@
1
- FROM ruby:2.7-buster
1
+ FROM ruby:3.2-buster
2
2
 
3
3
  RUN apt-get update -qq && apt-get install -y --no-install-recommends \
4
4
  build-essential \
@@ -0,0 +1,3 @@
1
+ #! /bin/bash
2
+
3
+ docker-compose exec ruby bash
@@ -1,15 +1,13 @@
1
- # frozen_string_literal: true
2
-
3
1
  # This file was generated by Appraisal
4
2
 
5
- source 'https://rubygems.org'
3
+ source "https://rubygems.org"
6
4
 
7
- gem 'appraisal'
8
- gem 'byebug'
9
- gem 'nokogiri'
10
- gem 'rails', '6.1'
11
- gem 'rspec-rails'
12
- gem 'sqlite3'
13
- gem 'tzinfo-data'
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: "../"
@@ -1,15 +1,13 @@
1
- # frozen_string_literal: true
2
-
3
1
  # This file was generated by Appraisal
4
2
 
5
- source 'https://rubygems.org'
3
+ source "https://rubygems.org"
6
4
 
7
- gem 'appraisal'
8
- gem 'byebug'
9
- gem 'nokogiri'
10
- gem 'rails', '7.0'
11
- gem 'rspec-rails'
12
- gem 'sqlite3'
13
- gem 'tzinfo-data'
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: "../"
@@ -0,0 +1,13 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "byebug"
7
+ gem "nokogiri"
8
+ gem "rspec-rails"
9
+ gem "sqlite3"
10
+ gem "tzinfo-data"
11
+ gem "rails", "~> 7.1"
12
+
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.dup)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SlayerRails
4
- VERSION = '0.5.0.beta'
4
+ VERSION = '0.5.4'
5
5
  end
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.0.beta'
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.0.beta
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: 2022-12-21 00:00:00.000000000 Z
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.0.beta
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.0.beta
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: 1.3.1
145
+ version: '0'
144
146
  requirements: []
145
- rubygems_version: 3.2.3
147
+ rubygems_version: 3.4.19
146
148
  signing_key:
147
149
  specification_version: 4
148
150
  summary: Rails extensions for Slayer.