business_pipeline 0.1.3 → 0.2.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: 2f6c7cfe3bbbd5a32ee37665327ebb703287b67f97cd951b5abf18a49d75c299
4
- data.tar.gz: 8b4f0c9d44e2df91a0033c45c56c4b8ab309db5a3638f7397a1e151135232b29
3
+ metadata.gz: 87c9f00222933c8299c1c9980bbc96c617d4cad0999e0864ae58e0a825beeb84
4
+ data.tar.gz: 7705f869cd0c9247b94cf698b215a1fd0faa9708c07a560636c3f117f9e7eb22
5
5
  SHA512:
6
- metadata.gz: 6e70718b9b7b6876be20c36c3bf7ae5e1a71a1f0c1eff5ed313838029574f07b4af75fe08135b153d87ac337ffdc273d358d55ac268efaefd912eaaf59ebf30a
7
- data.tar.gz: 2fbb00b2e78fede35f85397b81f86dea713337c3d9de47c7d186d4d525634a71d309cb3ab1e2ad54c22ce7b38da3ae18ece642ac5eb6d82eacb0fd0194617b9f
6
+ metadata.gz: da83c4bbe6ef8f391e06664e5cad46b82188226e69623e27675f7c9a3f3ddf36bf56d71312b562b25d285d408182b234154ff581cfa2c52bc9da65c8340fb615
7
+ data.tar.gz: e79ef790d67d7b0ff5d1f1de72638f9f7d21f07e8cc71a1d36705620f305128a917a4ebdc8506a0358ec89eb235fc42b330406885c6893edf8fe43517c477ac4
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ cache: bundler
3
+ before_install:
4
+ - gem install bundler -v $(tail -1 Gemfile.lock)
5
+ rvm:
6
+ - 2.5
7
+ - 2.6
8
+ - 2.7
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0
4
+
5
+ * Adding Ruby 2.7 compatibility
6
+
3
7
  ## 0.1.2
4
8
 
5
9
  * Fixing hooks inheritence to prevent modifying parent class hooks
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- business_pipeline (0.1.3)
4
+ business_pipeline (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -9,10 +9,10 @@ GEM
9
9
  ast (2.4.0)
10
10
  coderay (1.1.2)
11
11
  diff-lcs (1.3)
12
- docile (1.3.1)
13
- ffi (1.10.0)
12
+ docile (1.3.2)
13
+ ffi (1.12.2)
14
14
  formatador (0.2.5)
15
- guard (2.15.0)
15
+ guard (2.16.2)
16
16
  formatador (>= 0.2.4)
17
17
  listen (>= 2.7, < 4.0)
18
18
  lumberjack (>= 1.0.12, < 2.0)
@@ -26,73 +26,70 @@ GEM
26
26
  guard (~> 2.1)
27
27
  guard-compat (~> 1.1)
28
28
  rspec (>= 2.99.0, < 4.0)
29
- jaro_winkler (1.5.1)
30
- json (2.1.0)
31
- listen (3.1.5)
32
- rb-fsevent (~> 0.9, >= 0.9.4)
33
- rb-inotify (~> 0.9, >= 0.9.7)
34
- ruby_dep (~> 1.2)
35
- lumberjack (1.0.13)
36
- method_source (0.9.2)
29
+ listen (3.2.1)
30
+ rb-fsevent (~> 0.10, >= 0.10.3)
31
+ rb-inotify (~> 0.9, >= 0.9.10)
32
+ lumberjack (1.2.4)
33
+ method_source (1.0.0)
37
34
  nenv (0.3.0)
38
- notiffany (0.1.1)
35
+ notiffany (0.1.3)
39
36
  nenv (~> 0.1)
40
37
  shellany (~> 0.0)
41
- parallel (1.12.1)
42
- parser (2.5.1.2)
38
+ parallel (1.19.1)
39
+ parser (2.7.1.2)
43
40
  ast (~> 2.4.0)
44
- powerpack (0.1.2)
45
- pry (0.12.2)
46
- coderay (~> 1.1.0)
47
- method_source (~> 0.9.0)
41
+ pry (0.13.1)
42
+ coderay (~> 1.1)
43
+ method_source (~> 1.0)
48
44
  rainbow (3.0.0)
49
- rake (10.5.0)
50
- rb-fsevent (0.10.3)
51
- rb-inotify (0.10.0)
45
+ rake (13.0.1)
46
+ rb-fsevent (0.10.4)
47
+ rb-inotify (0.10.1)
52
48
  ffi (~> 1.0)
53
- rspec (3.8.0)
54
- rspec-core (~> 3.8.0)
55
- rspec-expectations (~> 3.8.0)
56
- rspec-mocks (~> 3.8.0)
57
- rspec-core (3.8.0)
58
- rspec-support (~> 3.8.0)
59
- rspec-expectations (3.8.2)
49
+ rexml (3.2.4)
50
+ rspec (3.9.0)
51
+ rspec-core (~> 3.9.0)
52
+ rspec-expectations (~> 3.9.0)
53
+ rspec-mocks (~> 3.9.0)
54
+ rspec-core (3.9.2)
55
+ rspec-support (~> 3.9.3)
56
+ rspec-expectations (3.9.2)
60
57
  diff-lcs (>= 1.2.0, < 2.0)
61
- rspec-support (~> 3.8.0)
62
- rspec-mocks (3.8.0)
58
+ rspec-support (~> 3.9.0)
59
+ rspec-mocks (3.9.1)
63
60
  diff-lcs (>= 1.2.0, < 2.0)
64
- rspec-support (~> 3.8.0)
65
- rspec-support (3.8.0)
66
- rubocop (0.60.0)
67
- jaro_winkler (~> 1.5.1)
61
+ rspec-support (~> 3.9.0)
62
+ rspec-support (3.9.3)
63
+ rubocop (0.84.0)
68
64
  parallel (~> 1.10)
69
- parser (>= 2.5, != 2.5.1.1)
70
- powerpack (~> 0.1)
65
+ parser (>= 2.7.0.1)
71
66
  rainbow (>= 2.2.2, < 4.0)
67
+ rexml
68
+ rubocop-ast (>= 0.0.3)
72
69
  ruby-progressbar (~> 1.7)
73
- unicode-display_width (~> 1.4.0)
74
- ruby-progressbar (1.10.0)
75
- ruby_dep (1.5.0)
70
+ unicode-display_width (>= 1.4.0, < 2.0)
71
+ rubocop-ast (0.0.3)
72
+ parser (>= 2.7.0.1)
73
+ ruby-progressbar (1.10.1)
76
74
  shellany (0.0.1)
77
- simplecov (0.16.1)
75
+ simplecov (0.18.5)
78
76
  docile (~> 1.1)
79
- json (>= 1.8, < 3)
80
- simplecov-html (~> 0.10.0)
81
- simplecov-html (0.10.2)
82
- thor (0.20.3)
83
- unicode-display_width (1.4.0)
77
+ simplecov-html (~> 0.11)
78
+ simplecov-html (0.12.2)
79
+ thor (1.0.1)
80
+ unicode-display_width (1.7.0)
84
81
 
85
82
  PLATFORMS
86
83
  ruby
87
84
 
88
85
  DEPENDENCIES
89
- bundler (~> 1.16)
86
+ bundler (~> 2.1)
90
87
  business_pipeline!
91
88
  guard-rspec (~> 4.7)
92
- rake (~> 10.0)
89
+ rake (~> 13.0)
93
90
  rspec (~> 3.6)
94
- rubocop (~> 0.60.0)
95
- simplecov (~> 0.16.1)
91
+ rubocop (~> 0.84.0)
92
+ simplecov (~> 0.18.5)
96
93
 
97
94
  BUNDLED WITH
98
- 1.17.2
95
+ 2.1.4
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://travis-ci.org/simonc/business_pipeline.svg?branch=master)](https://travis-ci.org/simonc/business_pipeline)
2
+
1
3
  # BusinessPipeline
2
4
 
3
5
  BusinessPipeline (BP) aim is to help organize your app's logic in a generic way. You define business bricks that you can then plug together to build more eveolved pipelines.
@@ -76,7 +78,7 @@ end
76
78
  class SortUsers
77
79
  include BusinessPipeline::Step
78
80
 
79
- def call
81
+ def call
80
82
  context.users = context.users.order(context.sort)
81
83
  end
82
84
  end
@@ -84,7 +86,7 @@ end
84
86
  class PaginateUsers
85
87
  include BusinessPipeline::Step
86
88
 
87
- def call
89
+ def call
88
90
  context.users = context.user.page(context.page)
89
91
  end
90
92
  end
data/Rakefile CHANGED
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
4
7
 
5
8
  task default: :spec
@@ -22,10 +22,10 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.add_development_dependency 'bundler', '~> 1.16'
25
+ spec.add_development_dependency 'bundler', '~> 2.1'
26
26
  spec.add_development_dependency 'guard-rspec', '~> 4.7'
27
- spec.add_development_dependency 'rake', '~> 10.0'
27
+ spec.add_development_dependency 'rake', '~> 13.0'
28
28
  spec.add_development_dependency 'rspec', '~> 3.6'
29
- spec.add_development_dependency 'rubocop', '~> 0.60.0'
30
- spec.add_development_dependency 'simplecov', '~> 0.16.1'
29
+ spec.add_development_dependency 'rubocop', '~> 0.84.0'
30
+ spec.add_development_dependency 'simplecov', '~> 0.18.5'
31
31
  end
@@ -37,7 +37,7 @@ module BusinessPipeline
37
37
  end
38
38
 
39
39
  private def update!(context)
40
- context.each { |key, value| modifiable[key.to_sym] = value }
40
+ context.each { |key, value| modifiable?[key.to_sym] = value }
41
41
  end
42
42
  end
43
43
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BusinessPipeline
4
- VERSION = -'0.1.3'
4
+ VERSION = -'0.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: business_pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Courtois
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-07 00:00:00.000000000 Z
11
+ date: 2020-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: '2.1'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: guard-rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '13.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.60.0
75
+ version: 0.84.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.60.0
82
+ version: 0.84.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.16.1
89
+ version: 0.18.5
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.16.1
96
+ version: 0.18.5
97
97
  description:
98
98
  email:
99
99
  - scourtois_github@cubyx.fr
@@ -104,6 +104,7 @@ files:
104
104
  - ".gitignore"
105
105
  - ".rspec"
106
106
  - ".rubocop.yml"
107
+ - ".travis.yml"
107
108
  - CHANGELOG.md
108
109
  - CODE_OF_CONDUCT.md
109
110
  - Gemfile
@@ -142,8 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
143
  - !ruby/object:Gem::Version
143
144
  version: '0'
144
145
  requirements: []
145
- rubyforge_project:
146
- rubygems_version: 2.7.6
146
+ rubygems_version: 3.0.3
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: A new business pipeline architecture for Rails applications