pallets 0.6.0 → 0.7.0

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: a2894dd7dff299d2cb4f2c9bf67b7be01f27adc93cfc7729fbbac8c3c9988722
4
- data.tar.gz: ce6d91fc194a7441557bd3250f994b65dbb35dd29d7adbb0a08c3be699a88cf8
3
+ metadata.gz: c9f4f127abbba26bbab9303e347764dd08495034b64ee9eba41d8b995756cf4c
4
+ data.tar.gz: 89e22edf0746dde5c63602d0dc25176aae6e6a7a8e7fc2e7f7785c5d8487770e
5
5
  SHA512:
6
- metadata.gz: 37ff1a501b2661b0a63d9d0c3844d323952e07e05135661169138dd3ee88f906115c3db13b33205dbcc7faf94af6ac2dc4a8cc2e2e49982789ca5e75cca0ea2a
7
- data.tar.gz: 5cc7c495ca3b2463ef2d8d168f0bb43f73c6c7d7a970d66b21ebe22068db389e272819e2d2f7bb49c6fc2835f6b22a8b3991421e5501dc763a94c5aecd5aca88
6
+ metadata.gz: 4a6399b78b97b5ba1a21d2b73c3e24218d4b0b4244f8384c0bf01a9fa8547f479f8c5ae52899f66765eb66adbb49986a6c455f08fff45178a074d88996d0f748
7
+ data.tar.gz: e8b8117b9cbfaf10f1a6912128fa9a8b9b746a53664ce120d2d9299e7d7ea416bffdf986578629e75518eebd9ebb251a50cdf4c1a4d066dfd070c7294ee625e8
@@ -0,0 +1 @@
1
+ github: linkyndy
data/.travis.yml CHANGED
@@ -7,8 +7,5 @@ rvm:
7
7
  - 2.4.6
8
8
  - 2.5.5
9
9
  - 2.6.3
10
- before_install:
11
- # Bundler 2.0 needs a newer RubyGems
12
- - gem update --system
13
- - gem install bundler
10
+ - 2.7.0
14
11
  script: bundle exec rspec
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.7.0] - 2020-01-19
10
+ ### Added
11
+ - support for Ruby 2.7 (#46)
12
+
9
13
  ## [0.6.0] - 2019-09-02
10
14
  ### Added
11
15
  - define task aliases in order to reuse tasks within a workflow definition (#44)
@@ -1,7 +1,13 @@
1
1
  module Pallets
2
2
  module DSL
3
3
  module Workflow
4
- def task(arg, as: nil, depends_on: nil, max_failures: nil, &block)
4
+ def task(arg=nil, as: nil, depends_on: nil, max_failures: nil, **kwargs)
5
+ # Have to work more to keep Pallets' nice DSL valid in Ruby 2.7
6
+ arg = !kwargs.empty? ? kwargs : arg
7
+ raise ArgumentError, 'Task is incorrectly defined. It must receive '\
8
+ 'either a name, or a name => dependencies pair as '\
9
+ 'the first argument' unless arg
10
+
5
11
  klass, dependencies = case arg
6
12
  when Hash
7
13
  # The `task Foo => Bar` notation
@@ -1,3 +1,3 @@
1
1
  module Pallets
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pallets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Horak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-02 00:00:00.000000000 Z
11
+ date: 2020-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -46,6 +46,7 @@ executables:
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
+ - ".github/FUNDING.yml"
49
50
  - ".gitignore"
50
51
  - ".rspec"
51
52
  - ".travis.yml"
@@ -112,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
113
  - !ruby/object:Gem::Version
113
114
  version: '0'
114
115
  requirements: []
115
- rubygems_version: 3.0.3
116
+ rubygems_version: 3.1.2
116
117
  signing_key:
117
118
  specification_version: 4
118
119
  summary: Toy workflow engine, written in Ruby