tangle 0.10.2 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +37 -0
- data/.rubocop.yml +14 -1
- data/CHANGELOG.md +21 -7
- data/Gemfile +0 -2
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/lib/tangle/directed/graph.rb +2 -2
- data/lib/tangle/mixin/directory.rb +1 -1
- data/lib/tangle/undirected/graph.rb +2 -2
- data/tangle.gemspec +12 -10
- metadata +59 -29
- data/.travis.yml +0 -5
- data/azure-pipelines.yml +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be7e93897d5dcfbe1b739f977740f46d2bef0a050503244e1204f9bb2a387bac
|
4
|
+
data.tar.gz: ca037f66996798b77e0fdd2b2c734a880ce5f495caac85cd84a49748daa04547
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f94196947e837391f4c09b194f7d2d07e76ce7bc0215faad944eecf3c75109840f309e4b07ddd976b9466f382f7c8c0a0caffde4b68fa09c4d6fea32eb10669
|
7
|
+
data.tar.gz: 464b75f77486d466c0621bd272fdab22db7047ee58648e8af98799dfc0c1ff2da64534304c55c1bc41b7db67052801aa9ac41ec53d9b352e3d93cbae9499d958
|
@@ -0,0 +1,37 @@
|
|
1
|
+
%YAML 1.1
|
2
|
+
---
|
3
|
+
# This workflow uses actions that are not certified by GitHub.
|
4
|
+
# They are provided by a third-party and are governed by
|
5
|
+
# separate terms of service, privacy policy, and support
|
6
|
+
# documentation.
|
7
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
8
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
9
|
+
|
10
|
+
name: Ruby
|
11
|
+
|
12
|
+
on:
|
13
|
+
push:
|
14
|
+
pull_request:
|
15
|
+
branches: [ main ]
|
16
|
+
|
17
|
+
jobs:
|
18
|
+
test:
|
19
|
+
|
20
|
+
runs-on: ubuntu-latest
|
21
|
+
strategy:
|
22
|
+
matrix:
|
23
|
+
ruby-version: ['2.6', '2.7', '3.0']
|
24
|
+
|
25
|
+
steps:
|
26
|
+
- uses: actions/checkout@v2
|
27
|
+
- name: Set up Ruby
|
28
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
29
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
30
|
+
# uses: ruby/setup-ruby@v1
|
31
|
+
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
32
|
+
with:
|
33
|
+
ruby-version: ${{ matrix.ruby-version }}
|
34
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
35
|
+
- name: Run tests
|
36
|
+
run: bundle exec rake
|
37
|
+
...
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
+
%YAML 1.1
|
2
|
+
---
|
1
3
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
4
|
+
TargetRubyVersion: 2.6
|
5
|
+
NewCops: enable
|
3
6
|
|
4
7
|
Metrics/BlockLength:
|
5
8
|
Exclude:
|
@@ -8,3 +11,13 @@ Metrics/BlockLength:
|
|
8
11
|
Style/BlockDelimiters:
|
9
12
|
Exclude:
|
10
13
|
- 'spec/*_spec.rb'
|
14
|
+
|
15
|
+
Style/HashEachMethods:
|
16
|
+
Enabled: true
|
17
|
+
|
18
|
+
Style/HashTransformKeys:
|
19
|
+
Enabled: true
|
20
|
+
|
21
|
+
Style/HashTransformValues:
|
22
|
+
Enabled: true
|
23
|
+
...
|
data/CHANGELOG.md
CHANGED
@@ -1,31 +1,45 @@
|
|
1
1
|
# Changelog
|
2
|
+
|
2
3
|
All notable changes to this project will be documented in this file.
|
3
4
|
|
4
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
9
|
|
10
|
+
## [0.11.0] - 2021-05-30
|
11
|
+
|
12
|
+
This release updates dependencies, changes the minimum Ruby version to 2.6, and adds support for Ruby version 3.
|
13
|
+
|
14
|
+
### Added
|
15
|
+
|
16
|
+
- Ruby version 3 is now supported, and mixin initializers should not rely on keyword splat semantics for a `Hash` argument.
|
17
|
+
|
18
|
+
### Changed
|
19
|
+
|
20
|
+
- The minimum required Ruby version is now 2.6.
|
21
|
+
|
22
|
+
- Dependencies have been updated.
|
23
|
+
|
24
|
+
|
10
25
|
## [0.10.2] - 2019-07-05
|
11
26
|
|
12
27
|
### Changed
|
13
28
|
|
14
|
-
- `Currify::currify`now raises a `CurrifyError` < `ArgumentError` when the
|
15
|
-
method takes no arguments, instead of the curried method failing when called
|
29
|
+
- `Currify::currify`now raises a `CurrifyError` < `ArgumentError` when the method takes no arguments, instead of the curried method failing when called
|
16
30
|
|
17
31
|
- Development dependency on `bundler` is updated to `~> 2.0`.
|
18
32
|
|
19
33
|
### Fixed
|
20
34
|
|
21
|
-
- `Graph#connected_subgraph` and `Graph#disconnected_subgraph` called an invalid
|
22
|
-
method to determine connectedness of candidate vertices
|
35
|
+
- `Graph#connected_subgraph` and `Graph#disconnected_subgraph` called an invalid method to determine connectedness of candidate vertices
|
23
36
|
|
24
37
|
|
25
38
|
## [Older]
|
26
39
|
These releases have no change logs.
|
27
40
|
|
28
41
|
|
29
|
-
[Unreleased]: https://github.com/notCalle/ruby-tangle/compare/v0.
|
42
|
+
[Unreleased]: https://github.com/notCalle/ruby-tangle/compare/v0.11.0..HEAD
|
43
|
+
[0.11.0]: https://github.com/notCalle/ruby-tangle/compare/v0.10.2..v0.11.0
|
30
44
|
[0.10.2]: https://github.com/notCalle/ruby-tangle/compare/v0.10.1..v0.10.2
|
31
45
|
[Older]: https://github.com/notCalle/ruby-tangle/releases/tag/v0.10.1
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/tangle.svg)](https://badge.fury.io/rb/tangle)
|
2
2
|
[![Maintainability](https://api.codeclimate.com/v1/badges/0d92a4d05b6bb5c06dce/maintainability)](https://codeclimate.com/github/notCalle/ruby-tangle/maintainability)
|
3
3
|
[![codecov](https://codecov.io/gh/notCalle/ruby-tangle/branch/master/graph/badge.svg)](https://codecov.io/gh/notCalle/ruby-tangle)
|
4
|
-
[![
|
4
|
+
[![Ruby](https://github.com/notCalle/ruby-tangle/actions/workflows/ruby.yml/badge.svg)](https://github.com/notCalle/ruby-tangle/actions/workflows/ruby.yml)
|
5
5
|
|
6
6
|
# Tangle
|
7
7
|
|
@@ -86,7 +86,7 @@ Tangle::Graph.new(mixins: [WeightedEdges])
|
|
86
86
|
|
87
87
|
## Contributing
|
88
88
|
|
89
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/notCalle/tangle. Pull requests should be rebased to HEAD of `
|
89
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/notCalle/tangle. Pull requests should be rebased to HEAD of `main` before submitting, and all commits must be signed with valid GPG key. 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.
|
90
90
|
|
91
91
|
## License
|
92
92
|
|
data/Rakefile
CHANGED
@@ -40,7 +40,7 @@ module Tangle
|
|
40
40
|
|
41
41
|
private
|
42
42
|
|
43
|
-
def initialize_kwarg_directory(
|
43
|
+
def initialize_kwarg_directory(options)
|
44
44
|
@root_directory = options.fetch(:root)
|
45
45
|
@directory_loaders = options.fetch(:loaders)
|
46
46
|
@follow_directory_links = options[:follow_links]
|
data/tangle.gemspec
CHANGED
@@ -5,14 +5,16 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
require 'tangle/version'
|
6
6
|
|
7
7
|
dev_deps = {
|
8
|
-
'bundler' => '~> 2.
|
9
|
-
'codecov' => '~> 0.
|
10
|
-
'fasterer' => '~> 0.
|
11
|
-
'pry' => '~> 0.
|
12
|
-
'rake' => '~>
|
13
|
-
'rspec' => '~> 3.
|
14
|
-
'rubocop' => '~>
|
15
|
-
'
|
8
|
+
'bundler' => '~> 2.2',
|
9
|
+
'codecov' => '~> 0.5.0',
|
10
|
+
'fasterer' => '~> 0.9.0',
|
11
|
+
'pry' => '~> 0.14.0',
|
12
|
+
'rake' => '~> 13.0',
|
13
|
+
'rspec' => '~> 3.10',
|
14
|
+
'rubocop' => '~> 1.15',
|
15
|
+
'rubocop-rake' => '~> 0.5.1',
|
16
|
+
'rubocop-rspec' => '~> 2.3',
|
17
|
+
'simplecov' => '~> 0.21.0'
|
16
18
|
}
|
17
19
|
|
18
20
|
Gem::Specification.new do |spec|
|
@@ -33,9 +35,9 @@ Gem::Specification.new do |spec|
|
|
33
35
|
spec.require_paths = ['lib']
|
34
36
|
|
35
37
|
spec.platform = Gem::Platform::RUBY
|
36
|
-
spec.required_ruby_version = '
|
38
|
+
spec.required_ruby_version = '>= 2.6', '< 4.0'
|
37
39
|
|
38
|
-
spec.add_dependency 'git-version-bump', '~> 0.
|
40
|
+
spec.add_dependency 'git-version-bump', '~> 0.17.0'
|
39
41
|
|
40
42
|
dev_deps.each { |d| spec.add_development_dependency(*d) }
|
41
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tangle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Calle Englund
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git-version-bump
|
@@ -16,144 +16,171 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.17.0
|
20
20
|
type: :runtime
|
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:
|
26
|
+
version: 0.17.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2.
|
33
|
+
version: '2.2'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
40
|
+
version: '2.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: codecov
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.5.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:
|
54
|
+
version: 0.5.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: fasterer
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.9.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.9.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: pry
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 0.14.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:
|
82
|
+
version: 0.14.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '13.0'
|
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: '
|
96
|
+
version: '13.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '3.
|
103
|
+
version: '3.10'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '3.
|
110
|
+
version: '3.10'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rubocop
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '1.15'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '1.15'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rubocop-rake
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.5.1
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.5.1
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rubocop-rspec
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '2.3'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '2.3'
|
125
153
|
- !ruby/object:Gem::Dependency
|
126
154
|
name: simplecov
|
127
155
|
requirement: !ruby/object:Gem::Requirement
|
128
156
|
requirements:
|
129
157
|
- - "~>"
|
130
158
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
159
|
+
version: 0.21.0
|
132
160
|
type: :development
|
133
161
|
prerelease: false
|
134
162
|
version_requirements: !ruby/object:Gem::Requirement
|
135
163
|
requirements:
|
136
164
|
- - "~>"
|
137
165
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
139
|
-
description:
|
166
|
+
version: 0.21.0
|
167
|
+
description:
|
140
168
|
email:
|
141
169
|
- calle@discord.bofh.se
|
142
170
|
executables: []
|
143
171
|
extensions: []
|
144
172
|
extra_rdoc_files: []
|
145
173
|
files:
|
174
|
+
- ".github/workflows/ruby.yml"
|
146
175
|
- ".gitignore"
|
147
176
|
- ".rspec"
|
148
177
|
- ".rubocop.yml"
|
149
|
-
- ".travis.yml"
|
150
178
|
- CHANGELOG.md
|
151
179
|
- CODE_OF_CONDUCT.md
|
152
180
|
- Gemfile
|
153
181
|
- LICENSE.txt
|
154
182
|
- README.md
|
155
183
|
- Rakefile
|
156
|
-
- azure-pipelines.yml
|
157
184
|
- bin/console
|
158
185
|
- bin/setup
|
159
186
|
- lib/tangle.rb
|
@@ -179,23 +206,26 @@ homepage: https://github.com/notcalle/ruby-tangle
|
|
179
206
|
licenses:
|
180
207
|
- MIT
|
181
208
|
metadata: {}
|
182
|
-
post_install_message:
|
209
|
+
post_install_message:
|
183
210
|
rdoc_options: []
|
184
211
|
require_paths:
|
185
212
|
- lib
|
186
213
|
required_ruby_version: !ruby/object:Gem::Requirement
|
187
214
|
requirements:
|
188
|
-
- - "
|
215
|
+
- - ">="
|
216
|
+
- !ruby/object:Gem::Version
|
217
|
+
version: '2.6'
|
218
|
+
- - "<"
|
189
219
|
- !ruby/object:Gem::Version
|
190
|
-
version: '
|
220
|
+
version: '4.0'
|
191
221
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
222
|
requirements:
|
193
223
|
- - ">="
|
194
224
|
- !ruby/object:Gem::Version
|
195
225
|
version: '0'
|
196
226
|
requirements: []
|
197
|
-
rubygems_version: 3.
|
198
|
-
signing_key:
|
227
|
+
rubygems_version: 3.2.15
|
228
|
+
signing_key:
|
199
229
|
specification_version: 4
|
200
230
|
summary: Tangle implements graphs of things
|
201
231
|
test_files: []
|
data/.travis.yml
DELETED
data/azure-pipelines.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# Ruby
|
2
|
-
# Package your Ruby project.
|
3
|
-
# Add steps that install rails, analyze code, save build artifacts, deploy, and more:
|
4
|
-
# https://docs.microsoft.com/azure/devops/pipelines/languages/ruby
|
5
|
-
|
6
|
-
pool:
|
7
|
-
vmImage: 'Ubuntu 16.04'
|
8
|
-
|
9
|
-
steps:
|
10
|
-
- task: UseRubyVersion@0
|
11
|
-
inputs:
|
12
|
-
versionSpec: '>= 2.5'
|
13
|
-
|
14
|
-
- script: |
|
15
|
-
gem install bundler
|
16
|
-
bin/setup
|
17
|
-
displayName: 'bundle install'
|
18
|
-
|
19
|
-
- script: bundle exec rake
|
20
|
-
displayName: 'bundle exec rake'
|
21
|
-
env:
|
22
|
-
CODECOV_TOKEN: $(codecov.token)
|