subroutine-factory 0.1.9 → 0.3.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 +4 -4
- data/.github/CODEOWNERS +1 -0
- data/.github/dependabot.yml +24 -0
- data/.github/workflows/build.yml +26 -0
- data/.ruby-version +1 -1
- data/lib/subroutine/factory/version.rb +1 -1
- data/lib/subroutine/factory.rb +3 -2
- data/subroutine-factory.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da4e451df54ff60fea9ffc0613766f1629716800fb3a638a79b1a3db2a34510d
|
4
|
+
data.tar.gz: 3d43f29e241a2048f6c8687fd4f18871fc341b3ba7f4f31197e9623cea553b1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25b26b20beb4080169f037ce0ed8919e1d7fca2f0913a67b207a6634970d3d018aeef909b7c6ba8468f37c66471dadc5cf56dac21d297a615d6624cc8feb70ae
|
7
|
+
data.tar.gz: 60b1b2f12c2f1d314beb03e8832b7cd42732bb2fee5fb52de591798f3d8ecb143c81fe2426e50f6392cef3c72e018cfe2ff5862bbc84700e6eff747d7b87357a
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
.github/workflows @guideline-tech/engineering
|
@@ -0,0 +1,24 @@
|
|
1
|
+
version: 2
|
2
|
+
updates:
|
3
|
+
- package-ecosystem: "github-actions"
|
4
|
+
directory: "/"
|
5
|
+
open-pull-requests-limit: 20
|
6
|
+
schedule:
|
7
|
+
interval: "daily"
|
8
|
+
time: "09:00"
|
9
|
+
timezone: "America/New_York"
|
10
|
+
commit-message:
|
11
|
+
prefix: "[github-actions] "
|
12
|
+
- package-ecosystem: "bundler"
|
13
|
+
directory: "/"
|
14
|
+
schedule:
|
15
|
+
interval: "daily"
|
16
|
+
time: "08:30"
|
17
|
+
timezone: "America/New_York"
|
18
|
+
versioning-strategy: increase
|
19
|
+
open-pull-requests-limit: 20
|
20
|
+
insecure-external-code-execution: deny
|
21
|
+
allow:
|
22
|
+
- dependency-type: "all"
|
23
|
+
commit-message:
|
24
|
+
prefix: "[bundler] "
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: build
|
2
|
+
on:
|
3
|
+
pull_request:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
jobs:
|
8
|
+
build:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
strategy:
|
11
|
+
fail-fast: false
|
12
|
+
matrix:
|
13
|
+
ruby-version: [3.2, 3.3, 3.4]
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v4
|
16
|
+
with:
|
17
|
+
show-progress: "false"
|
18
|
+
- name: get bundler version
|
19
|
+
run: echo "BUNDLER=$(cat .bundler-version)" >> $GITHUB_ENV
|
20
|
+
- uses: ruby/setup-ruby@v1
|
21
|
+
with:
|
22
|
+
ruby-version: ${{ matrix.ruby-version }}
|
23
|
+
bundler: ${{ env.BUNDLER }}
|
24
|
+
bundler-cache: true
|
25
|
+
- run: bundle install
|
26
|
+
- run: bundle exec rake test
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
3.2.8
|
data/lib/subroutine/factory.rb
CHANGED
@@ -63,11 +63,11 @@ module Subroutine
|
|
63
63
|
def self.random(random_options = {}, &lambda)
|
64
64
|
if block_given?
|
65
65
|
proc do |*options|
|
66
|
-
x = build_random(random_options)
|
66
|
+
x = build_random(**random_options)
|
67
67
|
lambda.call(*[x, *options].compact)
|
68
68
|
end
|
69
69
|
else
|
70
|
-
build_random(random_options)
|
70
|
+
build_random(**random_options)
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
@@ -75,6 +75,7 @@ module Subroutine
|
|
75
75
|
ALPHAS = ("a".."z").to_a
|
76
76
|
NUMERICS = (0..9).to_a
|
77
77
|
ALPHANUMERICS = NUMERICS + ALPHAS
|
78
|
+
|
78
79
|
def self.build_random(length: 8, type: :alphanumeric)
|
79
80
|
raise ArgumentError, ":type must be one of #{RANDOM_FUNCTION_TYPES.inspect}" unless RANDOM_FUNCTION_TYPES.include?(type.to_sym)
|
80
81
|
|
data/subroutine-factory.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Test factories for ops using Subroutine Ops}
|
13
13
|
spec.description = %q{Test factories for ops using Subroutine Ops}
|
14
|
-
spec.homepage = "https://github.com/
|
14
|
+
spec.homepage = "https://github.com/guideline-tech/subroutine-factory"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subroutine-factory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Nelson
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: subroutine
|
@@ -101,6 +100,9 @@ executables: []
|
|
101
100
|
extensions: []
|
102
101
|
extra_rdoc_files: []
|
103
102
|
files:
|
103
|
+
- ".github/CODEOWNERS"
|
104
|
+
- ".github/dependabot.yml"
|
105
|
+
- ".github/workflows/build.yml"
|
104
106
|
- ".gitignore"
|
105
107
|
- ".ruby-version"
|
106
108
|
- ".travis.yml"
|
@@ -116,12 +118,11 @@ files:
|
|
116
118
|
- lib/subroutine/factory/spec_helper.rb
|
117
119
|
- lib/subroutine/factory/version.rb
|
118
120
|
- subroutine-factory.gemspec
|
119
|
-
homepage: https://github.com/
|
121
|
+
homepage: https://github.com/guideline-tech/subroutine-factory
|
120
122
|
licenses:
|
121
123
|
- MIT
|
122
124
|
metadata:
|
123
125
|
allowed_push_host: https://rubygems.org
|
124
|
-
post_install_message:
|
125
126
|
rdoc_options: []
|
126
127
|
require_paths:
|
127
128
|
- lib
|
@@ -136,8 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
137
|
- !ruby/object:Gem::Version
|
137
138
|
version: '0'
|
138
139
|
requirements: []
|
139
|
-
rubygems_version: 3.
|
140
|
-
signing_key:
|
140
|
+
rubygems_version: 3.6.7
|
141
141
|
specification_version: 4
|
142
142
|
summary: Test factories for ops using Subroutine Ops
|
143
143
|
test_files: []
|