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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac8a961666c4cbb6e6ec1b7dfd0bccfe14fe41b4dff8a42eaf70adc7bf9e4416
4
- data.tar.gz: 721e88ff965dea9eb041503af3425f0847e0c38809a5d33aacd908c6ed460c79
3
+ metadata.gz: da4e451df54ff60fea9ffc0613766f1629716800fb3a638a79b1a3db2a34510d
4
+ data.tar.gz: 3d43f29e241a2048f6c8687fd4f18871fc341b3ba7f4f31197e9623cea553b1c
5
5
  SHA512:
6
- metadata.gz: 8b171d7040b5453038b81f956a35163d5b38daef03e15e0b49c9d828f6530bc011772a0a8551fbb2702ef37d0789e1fba4c0f048fa9b702354d215d7ebd76de4
7
- data.tar.gz: c278fbf850b74c8839c596c920707676dab0ef4ce8bf636c6636998a9466a789c8b4afa4f89b348bea3d2372565def0f5e6d173bbe9e2cebc8d55ea633334e6c
6
+ metadata.gz: 25b26b20beb4080169f037ce0ed8919e1d7fca2f0913a67b207a6634970d3d018aeef909b7c6ba8468f37c66471dadc5cf56dac21d297a615d6624cc8feb70ae
7
+ data.tar.gz: 60b1b2f12c2f1d314beb03e8832b7cd42732bb2fee5fb52de591798f3d8ecb143c81fe2426e50f6392cef3c72e018cfe2ff5862bbc84700e6eff747d7b87357a
@@ -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.5.1
1
+ 3.2.8
@@ -3,7 +3,7 @@
3
3
  module Subroutine
4
4
  module Factory
5
5
 
6
- VERSION = "0.1.9"
6
+ VERSION = "0.3.0"
7
7
 
8
8
  end
9
9
  end
@@ -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
 
@@ -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/mnelson/subroutine-factory"
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.1.9
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: 2020-07-08 00:00:00.000000000 Z
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/mnelson/subroutine-factory
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.0.6
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: []