mikado_graph_generator 0.4.0 → 0.4.1

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
- SHA1:
3
- metadata.gz: a16c549fe09057fbb0d4090de664ca9458a3a3fa
4
- data.tar.gz: 03e6bb95d832c01d44c848725de31f1a4cfee999
2
+ SHA256:
3
+ metadata.gz: a254c6a80eab0d8a945761db1885099d097e377e84a45710610e2fbb66f336fb
4
+ data.tar.gz: 2f9164d1e405be0c8cc583c578f8768ec82f9fe4fecf9c0531b224573f1d7a27
5
5
  SHA512:
6
- metadata.gz: 1565ecd8e5bff92f0bd122659d744f9da06eba78321ddf256f69b63e6691c0913a4387ec5cdb975ba691531b1f1af60f99833f15d3b13df51d05e251b2b78a4f
7
- data.tar.gz: 8b0feeefbdc005ed029483568acd36322a526c4da14d78568efa9f6eb639bb21c02d85b723c920d3a931f1fca53e5966bb73f412474cd31a58c9771a940d6f8d
6
+ metadata.gz: 78de18a57dfd317370ea5b26b4d48337b33d575b7184686b6b8139efac1d72b37fa98f09a08bc01f0d09094e96de8380240ad2475a15502bdb93e9cc0e0d68ea
7
+ data.tar.gz: 1793b88bb2c63668f226beb685631e1b221b19b53fe45a9f6660584704b1e4d571ab42b2e7b3f75a62688d32660735246bbf20ffe458edb90a76ddb49654804c
@@ -6,74 +6,6 @@
6
6
 
7
7
  require: rubocop-rspec
8
8
 
9
- #
10
- # This cop identifies places where a case-insensitive string comparison can better be implemented using casecmp.
11
- #
12
- # # bad
13
- # str.downcase == 'abc'
14
- # str.upcase.eql? 'ABC'
15
- # 'abc' == str.downcase
16
- # 'ABC'.eql? str.upcase
17
- # str.downcase == str.downcase
18
- #
19
- # # good
20
- # str.casecmp('ABC').zero?
21
- # 'abc'.casecmp(str).zero?
22
- #
23
- Performance/Casecmp:
24
- Enabled: false
25
-
26
- #
27
- # Place when conditions that use splat at the end of the list of when branches.
28
- #
29
- Performance/CaseWhenSplat:
30
- Enabled: false
31
-
32
- #
33
- # Do not compute the size of statically sized objects.
34
- #
35
- Performance/FixedSize:
36
- Enabled: false
37
-
38
- #
39
- # This cop identifies places where Hash#merge! can be replaced by Hash#[]=.
40
- #
41
- # hash.merge!(a: 1)
42
- # hash.merge!({'key' => 'value'})
43
- # hash.merge!(a: 1, b: 2)
44
- #
45
- Performance/RedundantMerge:
46
- Enabled: false
47
-
48
- #
49
- # This cop looks for delegations, that could have been created automatically with delegate method.
50
- #
51
- # # bad
52
- # def bar
53
- # foo.bar
54
- # end
55
- #
56
- # # good
57
- # delegate :bar, to: :foo
58
- #
59
- Rails/Delegate:
60
- Enabled: false
61
-
62
- #
63
- # Note: enable once we move to a newer version of Rails.
64
- #
65
- # This cop is used to identify usages of http methods like get, post, put, patch without the usage of
66
- # keyword arguments in your tests and change them to use keyword arguments.
67
- #
68
- # # bad
69
- # get :new, { user_id: 1 }
70
- #
71
- # # good
72
- # get :new, params: { user_id: 1 }
73
- #
74
- Rails/HttpPositionalArguments:
75
- Enabled: false
76
-
77
9
  #
78
10
  # Checks that tests use 'described_class'.
79
11
  #
@@ -13,7 +13,7 @@ require: rubocop-rspec
13
13
  # variable = if true
14
14
  # end
15
15
  #
16
- Lint/EndAlignment:
16
+ Layout/EndAlignment:
17
17
  EnforcedStyleAlignWith: variable
18
18
 
19
19
  #
@@ -34,7 +34,7 @@ Metrics/BlockLength:
34
34
  #
35
35
  # This cop checks the length of lines in the source code.
36
36
  #
37
- Metrics/LineLength:
37
+ Layout/LineLength:
38
38
  Max: 140
39
39
 
40
40
  #
@@ -43,35 +43,6 @@ Metrics/LineLength:
43
43
  Metrics/MethodLength:
44
44
  Max: 15
45
45
 
46
- #
47
- # This cop is used to identify usages of select.first, select.last, find_all.first, and find_all.last and
48
- # change them to use detect instead.
49
- #
50
- # ActiveRecord compatibility: ActiveRecord does not implement a detect method and find has its own meaning.
51
- # Correcting ActiveRecord methods with this cop should be considered unsafe.
52
- #
53
- # # bad
54
- # [].select { |item| true }.first
55
- # [].select { |item| true }.last
56
- # [].find_all { |item| true }.first
57
- # [].find_all { |item| true }.last
58
- #
59
- # # good
60
- # [].detect { |item| true }
61
- # [].reverse.detect { |item| true }
62
- #
63
- Performance/Detect:
64
- AutoCorrect: false
65
-
66
- #
67
- # This cop checks dynamic find_by_* methods. Use find_by instead of dynamic method.
68
- # See. https://github.com/bbatsov/rails-style-guide#find_by
69
- #
70
- # NOTE: Do not autocorrect since we have non-dynamic finders that follow the dynamic finder naming convention
71
- #
72
- Rails/DynamicFindBy:
73
- AutoCorrect: false
74
-
75
46
  #
76
47
  # Checks for long examples.
77
48
  #
@@ -115,7 +86,7 @@ RSpec/NotToNot:
115
86
  # Check that the keys, separators, and values of a multi-line hash literal are aligned according
116
87
  # to configuration. With 'key' everything is left aligned.
117
88
  #
118
- Layout/AlignHash:
89
+ Layout/HashAlignment:
119
90
  EnforcedHashRocketStyle: key
120
91
  EnforcedColonStyle: key
121
92
  EnforcedLastArgumentHashStyle: always_ignore
@@ -123,7 +94,7 @@ Layout/AlignHash:
123
94
  #
124
95
  # Here we check if the parameters on a multi-line method call or definition are aligned.
125
96
  #
126
- Layout/AlignParameters:
97
+ Layout/ParameterAlignment:
127
98
  EnforcedStyle: with_fixed_indentation
128
99
 
129
100
  #
@@ -175,51 +146,6 @@ Layout/FirstHashElementLineBreak:
175
146
  Layout/FirstMethodArgumentLineBreak:
176
147
  Enabled: true
177
148
 
178
- # This cop checks the indentation of the first parameter in a method call. Parameters after the first one are checked by Style/AlignParameters, not by this cop.
179
- #
180
- # # bad
181
- # some_method(
182
- # first_param,
183
- # second_param)
184
- #
185
- # # good
186
- # some_method(
187
- # first_param,
188
- # second_param)
189
- #
190
- Layout/FirstParameterIndentation:
191
- EnforcedStyle: consistent
192
-
193
- #
194
- # This cop checks the indentation of the first element in an array literal where the opening bracket and the
195
- # first element are on separate lines.
196
- #
197
- # # consistent
198
- # array = [
199
- # :value
200
- # ]
201
- # and_in_a_method_call([
202
- # :no_difference
203
- # ])
204
- #
205
- Layout/IndentArray:
206
- EnforcedStyle: consistent
207
-
208
- #
209
- # This cops checks the indentation of the first key in a hash literal where the opening brace and the first key
210
- # are on separate lines.
211
- #
212
- # # consistent
213
- # hash = {
214
- # key: :value
215
- # }
216
- # and_in_a_method_call({
217
- # no: :difference
218
- # })
219
- #
220
- Layout/IndentHash:
221
- EnforcedStyle: consistent
222
-
223
149
  #
224
150
  # This cop checks for uses of the lambda literal syntax.
225
151
  #
@@ -2,8 +2,8 @@
2
2
  # The Rubocop configuration for mikado_graph_generator
3
3
  #
4
4
 
5
- #AllCops:
6
- # Exclude:
5
+ AllCops:
6
+ NewCops: enable
7
7
 
8
8
  inherit_from:
9
9
  - .rubocop.disabled.yml
@@ -1 +1 @@
1
- ruby-2.4.0
1
+ 2.6.6
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.4.0
3
+ - 2.6.6
4
4
  before_install:
5
5
  - gem update --system
6
6
  - sudo apt-get -qq update
@@ -1,27 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mikado_graph_generator (0.4.0)
4
+ mikado_graph_generator (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- ast (2.3.0)
10
- coderay (1.1.1)
9
+ ast (2.4.1)
10
+ coderay (1.1.3)
11
11
  diff-lcs (1.3)
12
- ffi (1.9.17)
12
+ ffi (1.13.1)
13
13
  formatador (0.2.5)
14
- guard (2.14.1)
14
+ guard (2.16.2)
15
15
  formatador (>= 0.2.4)
16
16
  listen (>= 2.7, < 4.0)
17
- lumberjack (~> 1.0)
17
+ lumberjack (>= 1.0.12, < 2.0)
18
18
  nenv (~> 0.1)
19
19
  notiffany (~> 0.0)
20
20
  pry (>= 0.9.12)
21
21
  shellany (~> 0.0)
22
22
  thor (>= 0.18.1)
23
- guard-bundler (2.1.0)
24
- bundler (~> 1.0)
23
+ guard-bundler (3.0.0)
24
+ bundler (>= 2.1, < 3)
25
25
  guard (~> 2.2)
26
26
  guard-compat (~> 1.1)
27
27
  guard-compat (1.2.1)
@@ -29,76 +29,78 @@ GEM
29
29
  guard (~> 2.1)
30
30
  guard-compat (~> 1.1)
31
31
  rspec (>= 2.99.0, < 4.0)
32
- guard-rubocop (1.2.0)
32
+ guard-rubocop (1.3.0)
33
33
  guard (~> 2.0)
34
34
  rubocop (~> 0.20)
35
- listen (3.1.5)
36
- rb-fsevent (~> 0.9, >= 0.9.4)
37
- rb-inotify (~> 0.9, >= 0.9.7)
38
- ruby_dep (~> 1.2)
39
- lumberjack (1.0.11)
40
- method_source (0.8.2)
35
+ listen (3.2.1)
36
+ rb-fsevent (~> 0.10, >= 0.10.3)
37
+ rb-inotify (~> 0.9, >= 0.9.10)
38
+ lumberjack (1.2.5)
39
+ method_source (1.0.0)
41
40
  nenv (0.3.0)
42
- notiffany (0.1.1)
41
+ notiffany (0.1.3)
43
42
  nenv (~> 0.1)
44
43
  shellany (~> 0.0)
45
- parallel (1.12.1)
46
- parser (2.4.0.2)
47
- ast (~> 2.3)
48
- powerpack (0.1.1)
49
- pry (0.10.4)
50
- coderay (~> 1.1.0)
51
- method_source (~> 0.8.1)
52
- slop (~> 3.4)
44
+ parallel (1.19.1)
45
+ parser (2.7.1.3)
46
+ ast (~> 2.4.0)
47
+ pry (0.13.1)
48
+ coderay (~> 1.1)
49
+ method_source (~> 1.0)
53
50
  rainbow (3.0.0)
54
- rake (10.5.0)
55
- rb-fsevent (0.9.8)
56
- rb-inotify (0.9.8)
57
- ffi (>= 0.5.0)
58
- rspec (3.5.0)
59
- rspec-core (~> 3.5.0)
60
- rspec-expectations (~> 3.5.0)
61
- rspec-mocks (~> 3.5.0)
62
- rspec-core (3.5.4)
63
- rspec-support (~> 3.5.0)
64
- rspec-expectations (3.5.0)
51
+ rake (13.0.1)
52
+ rb-fsevent (0.10.4)
53
+ rb-inotify (0.10.1)
54
+ ffi (~> 1.0)
55
+ regexp_parser (1.7.1)
56
+ rexml (3.2.4)
57
+ rspec (3.9.0)
58
+ rspec-core (~> 3.9.0)
59
+ rspec-expectations (~> 3.9.0)
60
+ rspec-mocks (~> 3.9.0)
61
+ rspec-core (3.9.2)
62
+ rspec-support (~> 3.9.3)
63
+ rspec-expectations (3.9.2)
65
64
  diff-lcs (>= 1.2.0, < 2.0)
66
- rspec-support (~> 3.5.0)
67
- rspec-mocks (3.5.0)
65
+ rspec-support (~> 3.9.0)
66
+ rspec-mocks (3.9.1)
68
67
  diff-lcs (>= 1.2.0, < 2.0)
69
- rspec-support (~> 3.5.0)
70
- rspec-support (3.5.0)
71
- rubocop (0.52.0)
68
+ rspec-support (~> 3.9.0)
69
+ rspec-support (3.9.3)
70
+ rubocop (0.85.1)
72
71
  parallel (~> 1.10)
73
- parser (>= 2.4.0.2, < 3.0)
74
- powerpack (~> 0.1)
72
+ parser (>= 2.7.0.1)
75
73
  rainbow (>= 2.2.2, < 4.0)
74
+ regexp_parser (>= 1.7)
75
+ rexml
76
+ rubocop-ast (>= 0.0.3)
76
77
  ruby-progressbar (~> 1.7)
77
- unicode-display_width (~> 1.0, >= 1.0.1)
78
- rubocop-rspec (1.21.0)
79
- rubocop (>= 0.52.0)
80
- ruby-graphviz (1.2.2)
81
- ruby-progressbar (1.9.0)
82
- ruby_dep (1.5.0)
78
+ unicode-display_width (>= 1.4.0, < 2.0)
79
+ rubocop-ast (0.0.3)
80
+ parser (>= 2.7.0.1)
81
+ rubocop-rspec (1.40.0)
82
+ rubocop (>= 0.68.1)
83
+ ruby-graphviz (1.2.5)
84
+ rexml
85
+ ruby-progressbar (1.10.1)
83
86
  shellany (0.0.1)
84
- slop (3.6.0)
85
- thor (0.19.4)
86
- unicode-display_width (1.3.0)
87
+ thor (1.0.1)
88
+ unicode-display_width (1.7.0)
87
89
 
88
90
  PLATFORMS
89
91
  ruby
90
92
 
91
93
  DEPENDENCIES
92
- bundler (~> 1.14)
94
+ bundler (~> 2.1.4)
93
95
  guard-bundler
94
96
  guard-rspec
95
97
  guard-rubocop
96
98
  mikado_graph_generator!
97
- rake (~> 10.0)
99
+ rake (~> 13.0)
98
100
  rspec (~> 3.0)
99
101
  rubocop (~> 0.52)
100
102
  rubocop-rspec (~> 1.21)
101
103
  ruby-graphviz (~> 1.2)
102
104
 
103
105
  BUNDLED WITH
104
- 1.16.1
106
+ 2.1.4
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Mikado Graph Generator [![Build Status](https://travis-ci.org/snasirca/mikado-graph-generator.svg?branch=master)](https://travis-ci.org/snasirca/mikado-graph-generator) [![Maintainability](https://api.codeclimate.com/v1/badges/d748f762abb3995c15eb/maintainability)](https://codeclimate.com/github/snasirca/mikado-graph-generator/maintainability)
1
+ # Mikado Graph Generator [![Gem Version](https://badge.fury.io/rb/mikado_graph_generator.svg)](https://badge.fury.io/rb/mikado_graph_generator) [![Build Status](https://travis-ci.org/snasirca/mikado-graph-generator.svg?branch=master)](https://travis-ci.org/snasirca/mikado-graph-generator) [![Maintainability](https://api.codeclimate.com/v1/badges/d748f762abb3995c15eb/maintainability)](https://codeclimate.com/github/snasirca/mikado-graph-generator/maintainability)
2
2
 
3
3
  Welcome to a DSL for creating Mikado Graphs using *GraphViz*.
4
4
 
@@ -20,7 +20,7 @@ Or install it yourself as:
20
20
 
21
21
  ### Prerequisites
22
22
 
23
- Ensure you have *GraphViz* installed. On MacOS you can install it using Homebrew with the following command:
23
+ Ensure you have *GraphViz* installed. On macOS you can install it using Homebrew with the following command:
24
24
 
25
25
  ```bash
26
26
  brew install graphviz
@@ -99,7 +99,7 @@ Use `direnv` to speed development.
99
99
 
100
100
  ## Contributing
101
101
 
102
- Bug reports and pull requests are welcome on GitHub at https://github.com/snasirca/mikado_graph_generator. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
102
+ Bug reports and pull requests are welcome on GitHub at https://github.com/snasirca/mikado-graph-generator. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
103
103
 
104
104
  ## License
105
105
 
@@ -1,3 +1,3 @@
1
1
  module MikadoGraph
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -1,4 +1,4 @@
1
- lib = File.expand_path("../lib", __FILE__)
1
+ lib = File.expand_path("lib", __dir__)
2
2
 
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require "mikado_graph/version"
@@ -19,11 +19,11 @@ Gem::Specification.new do |spec|
19
19
  end
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.14"
22
+ spec.add_development_dependency "bundler", "~> 2.1.4"
23
23
  spec.add_development_dependency "guard-bundler"
24
24
  spec.add_development_dependency "guard-rspec"
25
25
  spec.add_development_dependency "guard-rubocop"
26
- spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "rake", "~> 13.0"
27
27
  spec.add_development_dependency "rspec", "~> 3.0"
28
28
  spec.add_development_dependency "rubocop", "~> 0.52"
29
29
  spec.add_development_dependency "rubocop-rspec", "~> 1.21"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mikado_graph_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shahriyar Nasir
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-23 00:00:00.000000000 Z
11
+ date: 2020-06-12 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.14'
19
+ version: 2.1.4
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.14'
26
+ version: 2.1.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: guard-bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '10.0'
75
+ version: '13.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: '10.0'
82
+ version: '13.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -176,7 +176,7 @@ homepage: https://github.com/snasirca/mikado_graph_generator
176
176
  licenses:
177
177
  - MIT
178
178
  metadata: {}
179
- post_install_message:
179
+ post_install_message:
180
180
  rdoc_options: []
181
181
  require_paths:
182
182
  - lib
@@ -191,9 +191,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  - !ruby/object:Gem::Version
192
192
  version: '0'
193
193
  requirements: []
194
- rubyforge_project:
195
- rubygems_version: 2.6.14
196
- signing_key:
194
+ rubygems_version: 3.1.2
195
+ signing_key:
197
196
  specification_version: 4
198
197
  summary: Mikado Graph generator
199
198
  test_files: []