facio 0.1.11 → 0.1.12

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: 5f58925ad262f641e798bae5733d68b32ec51b1501386c9feced448901e8e551
4
- data.tar.gz: c4c7e9d879b8c61783435acdaf60eb0c6c6c6aef56b115637c2173e8b8417a4d
3
+ metadata.gz: 99ced5156dfed002640561b1846a1b2d82b8e23609950263471db3b96bd4d71b
4
+ data.tar.gz: b8116348cfa5a5d0dc90b31eed2fddf8631f39b1b1ac284710e0e501bfed6873
5
5
  SHA512:
6
- metadata.gz: 40fae9340200e51cfbaab3543dd41cc5eb0e7909d41273eee70f5249f1cb3a505f6c3b9faa81092b780bc826569291e55357fc384abda2d5450c663e1dfaeb49
7
- data.tar.gz: 1a89e4752315ca730bf34bcb3f6644360f66b103f4ad85edf3e3b1e9dee588abbfbe0fac4d9ba19b72550853a79c7a376bc77c82e74c63f690777062586d1eca
6
+ metadata.gz: 96021902f31a30839e09ecaa278cc904f4706f00773917cd22ef18c7fee60b64bd993d982b83f9dbb2faedb7387195327ac6b50b8268cf98534a56d7f6958462
7
+ data.tar.gz: a95fd855b90eec2e46cbefeca94d5cfde676344b7241adffb9360f04bbb876a013954e4c791710bff82698405acbc73710997966d761fe72212415857331fef3
@@ -0,0 +1,3 @@
1
+ # Make sure RUBY_VERSION matches the Ruby version in .ruby-version
2
+ ARG RUBY_VERSION=3.4.1
3
+ FROM ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION
@@ -0,0 +1,49 @@
1
+ name: "facio"
2
+
3
+ services:
4
+ app:
5
+ cpu_count: 2
6
+ build:
7
+ context: ..
8
+ dockerfile: .devcontainer/Dockerfile
9
+
10
+ volumes:
11
+ - ../..:/workspaces:cached
12
+ # Overrides default command so things don't shut down after the process ends.
13
+ command: sleep infinity
14
+
15
+ # Uncomment the next line to use a non-root user for all processes.
16
+ # user: vscode
17
+
18
+ # Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
19
+ # (Adding the "ports" property to this file will not forward from a Codespace.)
20
+ depends_on:
21
+ - selenium
22
+ - postgres
23
+ - redis
24
+
25
+ environment:
26
+ - DATABASE_URL=postgres://postgres:postgres@postgres:5432
27
+ - RUBY_YJIT_ENABLE=1
28
+
29
+ selenium:
30
+ image: selenium/standalone-chromium
31
+ restart: unless-stopped
32
+
33
+ redis:
34
+ image: redis:6.2
35
+ restart: unless-stopped
36
+
37
+ postgres:
38
+ image: postgres:17.0
39
+ restart: unless-stopped
40
+ networks:
41
+ - default
42
+ volumes:
43
+ - postgres-data:/var/lib/postgresql/data
44
+ environment:
45
+ POSTGRES_USER: postgres
46
+ POSTGRES_PASSWORD: postgres
47
+
48
+ volumes:
49
+ postgres-data:
@@ -0,0 +1,35 @@
1
+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2
+ // README at: https://github.com/devcontainers/templates/tree/main/src/ruby
3
+ {
4
+ "name": "facio",
5
+ "dockerComposeFile": "compose.yaml",
6
+ "service": "app",
7
+ "workspaceFolder": "/workspaces/facio",
8
+ // Features to add to the dev container. More info: https://containers.dev/features.
9
+ "features": {
10
+ "ghcr.io/devcontainers/features/github-cli:1": { },
11
+ "ghcr.io/rails/devcontainer/features/activestorage": { },
12
+ "ghcr.io/rails/devcontainer/features/postgres-client": {
13
+ "version": "17"
14
+ },
15
+ "ghcr.io/devcontainers/features/node:1": { },
16
+ "ghcr.io/duduribeiro/devcontainer-features/tmux:1": { }
17
+ },
18
+ "containerEnv": {
19
+ "CAPYBARA_SERVER_PORT": "45678",
20
+ "SELENIUM_HOST": "selenium",
21
+ "DB_HOST": "postgres"
22
+ },
23
+ "forwardPorts": [
24
+ 3000,
25
+ 5432
26
+ ],
27
+ "customizations": {
28
+ "vscode": {
29
+ "extensions": [
30
+ "Shopify.ruby-lsp"
31
+ ]
32
+ }
33
+ },
34
+ "postCreateCommand": "bin/setup"
35
+ }
data/facio.gemspec CHANGED
@@ -43,7 +43,7 @@ Gem::Specification.new do |spec|
43
43
  spec.add_development_dependency "debug", "~> 1.9"
44
44
  spec.add_development_dependency "rubocop", "~> 1"
45
45
  spec.add_development_dependency "standard", "~> 1"
46
- spec.add_development_dependency "sqlite3", "~> 1.4"
46
+ spec.add_development_dependency "sqlite3", "~> 2.1"
47
47
 
48
48
  # For more information and examples about making a new gem, check out our
49
49
  # guide at: https://bundler.io/guides/creating_gem.html
@@ -25,7 +25,6 @@ module Callbacks
25
25
  # Purely as a convenience, but also to enforce a standard
26
26
  context.result ||= result if @result.nil?
27
27
  end
28
- # self
29
28
  end
30
29
 
31
30
  before_enqueue do |job|
data/lib/facio/service.rb CHANGED
@@ -44,7 +44,7 @@ module Facio
44
44
 
45
45
  # Returns whether the service was successfully performed
46
46
  def success?
47
- success = performed? && valid?
47
+ success = performed?
48
48
  success &&= @result.valid? if @result
49
49
  success
50
50
  end
data/lib/facio/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Facio
4
- VERSION = "0.1.11"
4
+ VERSION = "0.1.12"
5
5
  end
data/mise.toml ADDED
@@ -0,0 +1,2 @@
1
+ [tools]
2
+ ruby = "3.4.7"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Grunt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-11-20 00:00:00.000000000 Z
11
+ date: 2026-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '1.4'
159
+ version: '2.1'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '1.4'
166
+ version: '2.1'
167
167
  description: Command pattern for Ruby
168
168
  email:
169
169
  - tom@degrunt.nl
@@ -171,6 +171,9 @@ executables: []
171
171
  extensions: []
172
172
  extra_rdoc_files: []
173
173
  files:
174
+ - ".devcontainer/Dockerfile"
175
+ - ".devcontainer/compose.yaml"
176
+ - ".devcontainer/devcontainer.json"
174
177
  - ".rubocop.yml"
175
178
  - CHANGELOG.md
176
179
  - CODE_OF_CONDUCT.md
@@ -199,6 +202,7 @@ files:
199
202
  - lib/generators/facio/templates/context.rb
200
203
  - lib/generators/facio/templates/service.rb
201
204
  - lib/generators/facio/templates/service_test.rb
205
+ - mise.toml
202
206
  - sig/mando.rbs
203
207
  homepage: https://github.com/entdec/facio
204
208
  licenses: