absolutely 4.0.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/CONTRIBUTING.md +3 -3
- data/README.md +9 -10
- data/absolutely.gemspec +12 -7
- data/lib/absolutely/uri.rb +6 -4
- data/lib/absolutely/version.rb +3 -1
- data/lib/absolutely.rb +32 -28
- metadata +9 -20
- data/.editorconfig +0 -14
- data/.gitignore +0 -34
- data/.reek.yml +0 -6
- data/.rspec +0 -2
- data/.rubocop +0 -3
- data/.rubocop.yml +0 -25
- data/.ruby-version +0 -1
- data/.simplecov +0 -13
- data/.travis.yml +0 -19
- data/Gemfile +0 -14
- data/Rakefile +0 -18
- data/lib/absolutely/exceptions.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1aa2a1da53e491e2cfa5cd9338f7d5d10eb817a936576b01ed34ba1da52af7c
|
4
|
+
data.tar.gz: 982e6b3a9855040e398119be1bdc8e3a31fac9289315647a046f8e21ce3d78bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2240df9bf4081b825e303f378a29ba8f1373c240ea1e611e5ffe25adbe9f2cdc11290afc4d756d5f64eb52e83acee79c5e59dd59729e373adb9a832f08ed20c6
|
7
|
+
data.tar.gz: b976465c3c4f2d1e58e43a853397be490a6b763f28ee52228bb72c65481d447aa9bc27877ea5c882dc3bc3d7ae8c6baec51ce745fbff6809c1730c68cca6acac
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 6.0.0 / 2022-05-02
|
4
|
+
|
5
|
+
- **Breaking change:** Rename `AbsolutelyError` to `Error` (efcd8fa)
|
6
|
+
- Remove Reek (0d73600)
|
7
|
+
- Update Addressable dependency constraint (5faefa9)
|
8
|
+
- **Breaking change:** Set minimum supported Ruby to 2.6 (b888d5e)
|
9
|
+
- Update development Ruby to 2.6.10 (b84d268)
|
10
|
+
|
11
|
+
## 5.1.0 / 2021-04-02
|
12
|
+
|
13
|
+
- Expand supported Ruby versions to include 3.0 (c9741de)
|
14
|
+
|
15
|
+
## 5.0.0 / 2020-08-23
|
16
|
+
|
17
|
+
- **Breaking change:** Update minimum supported Ruby version to 2.5 (866cec3)
|
18
|
+
- Update project Ruby version to 2.5.8 (231653b)
|
19
|
+
|
3
20
|
## 4.0.0 / 2020-05-13
|
4
21
|
|
5
22
|
- **Breaking Change:** Remove alias from `to_absolute_uri` to `to_abs` (b4df234)
|
data/CONTRIBUTING.md
CHANGED
@@ -8,9 +8,9 @@ There are a couple ways you can help improve Absolutely:
|
|
8
8
|
|
9
9
|
## Getting Started
|
10
10
|
|
11
|
-
Absolutely is developed using Ruby 2.
|
11
|
+
Absolutely is developed using Ruby 2.6.10 and is additionally tested against Ruby 2.7, 3.0, and 3.1 using [GitHub Actions](https://github.com/jgarber623/absolutely/actions).
|
12
12
|
|
13
|
-
Before making changes to Absolutely, you'll want to install Ruby 2.
|
13
|
+
Before making changes to Absolutely, you'll want to install Ruby 2.6.10. It's recommended that you use a Ruby version managment tool like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm). Once you've installed Ruby 2.6.10 using your method of choice, install the project's gems by running:
|
14
14
|
|
15
15
|
```sh
|
16
16
|
bundle install
|
@@ -22,7 +22,7 @@ bundle install
|
|
22
22
|
1. Install development dependencies as outlined above.
|
23
23
|
1. Create a feature branch for the code changes you're looking to make: `git checkout -b my-new-feature`.
|
24
24
|
1. _Write some code!_
|
25
|
-
1. If your changes would benefit from testing, add the necessary tests and verify everything passes by running `
|
25
|
+
1. If your changes would benefit from testing, add the necessary tests and verify everything passes by running `bin/ci`.
|
26
26
|
1. Commit your changes: `git commit -am 'Add some new feature or fix some issue'`. _(See [this excellent article](https://chris.beams.io/posts/git-commit/) for tips on writing useful Git commit messages.)_
|
27
27
|
1. Push the branch to your fork: `git push -u origin my-new-feature`.
|
28
28
|
1. Create a new [pull request][pulls] and we'll review your changes.
|
data/README.md
CHANGED
@@ -2,23 +2,22 @@
|
|
2
2
|
|
3
3
|
**A Ruby gem for converting relative paths to absolute URIs.**
|
4
4
|
|
5
|
-
[![Gem](https://img.shields.io/gem/v/absolutely.svg?style=for-the-badge)](https://rubygems.org/gems/absolutely)
|
6
|
-
[![Downloads](https://img.shields.io/gem/dt/absolutely.svg?style=for-the-badge)](https://rubygems.org/gems/absolutely)
|
7
|
-
[![Build](https://img.shields.io/
|
8
|
-
[![
|
9
|
-
[![
|
10
|
-
[![Coverage](https://img.shields.io/codeclimate/c/jgarber623/absolutely.svg?style=for-the-badge)](https://codeclimate.com/github/jgarber623/absolutely/code)
|
5
|
+
[![Gem](https://img.shields.io/gem/v/absolutely.svg?logo=rubygems&style=for-the-badge)](https://rubygems.org/gems/absolutely)
|
6
|
+
[![Downloads](https://img.shields.io/gem/dt/absolutely.svg?logo=rubygems&style=for-the-badge)](https://rubygems.org/gems/absolutely)
|
7
|
+
[![Build](https://img.shields.io/github/workflow/status/jgarber623/absolutely/CI?logo=github&style=for-the-badge)](https://github.com/jgarber623/absolutely/actions/workflows/ci.yml)
|
8
|
+
[![Maintainability](https://img.shields.io/codeclimate/maintainability/jgarber623/absolutely.svg?logo=code-climate&style=for-the-badge)](https://codeclimate.com/github/jgarber623/absolutely)
|
9
|
+
[![Coverage](https://img.shields.io/codeclimate/c/jgarber623/absolutely.svg?logo=code-climate&style=for-the-badge)](https://codeclimate.com/github/jgarber623/absolutely/code)
|
11
10
|
|
12
11
|
## Key Features
|
13
12
|
|
14
13
|
- Uses the [Addressable](https://github.com/sporkmonger/addressable) Ruby gem for improved URI parsing.
|
15
|
-
- Supports Ruby 2.
|
14
|
+
- Supports Ruby 2.6 and newer.
|
16
15
|
|
17
16
|
## Getting Started
|
18
17
|
|
19
|
-
Before installing and using Absolutely, you'll want to have [Ruby](https://www.ruby-lang.org) 2.
|
18
|
+
Before installing and using Absolutely, you'll want to have [Ruby](https://www.ruby-lang.org) 2.6 (or newer) installed. It's recommended that you use a Ruby version managment tool like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm).
|
20
19
|
|
21
|
-
Absolutely is developed using Ruby 2.
|
20
|
+
Absolutely is developed using Ruby 2.6.10 and is additionally tested against Ruby 2.7, 3.0, and 3.1 using [CircleCI](https://app.circleci.com/pipelines/github/jgarber623/absolutely).
|
22
21
|
|
23
22
|
## Installation
|
24
23
|
|
@@ -96,7 +95,7 @@ For convenience, the `base_uri` and `relative_uri` methods return instances of t
|
|
96
95
|
|
97
96
|
## Contributing
|
98
97
|
|
99
|
-
Interested in helping improve Absolutely? Awesome! Your help is greatly appreciated. See [CONTRIBUTING.md](https://github.com/jgarber623/absolutely/blob/
|
98
|
+
Interested in helping improve Absolutely? Awesome! Your help is greatly appreciated. See [CONTRIBUTING.md](https://github.com/jgarber623/absolutely/blob/main/CONTRIBUTING.md) for details.
|
100
99
|
|
101
100
|
## Acknowledgments
|
102
101
|
|
data/absolutely.gemspec
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative 'lib/absolutely/version'
|
2
4
|
|
3
5
|
Gem::Specification.new do |spec|
|
4
|
-
spec.required_ruby_version =
|
6
|
+
spec.required_ruby_version = '>= 2.6', '< 4'
|
5
7
|
|
6
8
|
spec.name = 'absolutely'
|
7
9
|
spec.version = Absolutely::VERSION
|
@@ -13,14 +15,17 @@ Gem::Specification.new do |spec|
|
|
13
15
|
spec.homepage = 'https://github.com/jgarber623/absolutely'
|
14
16
|
spec.license = 'MIT'
|
15
17
|
|
16
|
-
spec.files = Dir.
|
17
|
-
|
18
|
-
|
18
|
+
spec.files = Dir['lib/**/*'].reject { |f| File.directory?(f) }
|
19
|
+
spec.files += %w[LICENSE CHANGELOG.md CONTRIBUTING.md README.md]
|
20
|
+
spec.files += %w[absolutely.gemspec]
|
19
21
|
|
20
22
|
spec.require_paths = ['lib']
|
21
23
|
|
22
|
-
spec.metadata
|
23
|
-
|
24
|
+
spec.metadata = {
|
25
|
+
'bug_tracker_uri' => "#{spec.homepage}/issues",
|
26
|
+
'changelog_uri' => "#{spec.homepage}/blob/v#{spec.version}/CHANGELOG.md",
|
27
|
+
'rubygems_mfa_required' => 'true'
|
28
|
+
}
|
24
29
|
|
25
|
-
spec.add_runtime_dependency 'addressable', '~> 2.
|
30
|
+
spec.add_runtime_dependency 'addressable', '~> 2.8'
|
26
31
|
end
|
data/lib/absolutely/uri.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Absolutely
|
2
4
|
class URI
|
3
5
|
attr_reader :base, :relative
|
4
6
|
|
5
7
|
# Create an Absolutely::URI from a base URI and a relative path.
|
6
8
|
#
|
7
|
-
# @param base [String]
|
8
|
-
# @param relative [String]
|
9
|
+
# @param base [String] an absolute URI used to resolve relative path
|
10
|
+
# @param relative [String] a relative path
|
9
11
|
# @raise [Absolutely::ArgumentError]
|
10
12
|
# @raise [Absolutely::InvalidURIError]
|
11
13
|
#
|
@@ -24,8 +26,8 @@ module Absolutely
|
|
24
26
|
relative_uri
|
25
27
|
|
26
28
|
raise ArgumentError, 'base must be an absolute URL (e.g. https://example.com)' unless base_uri.absolute?
|
27
|
-
rescue Addressable::URI::InvalidURIError =>
|
28
|
-
raise InvalidURIError,
|
29
|
+
rescue Addressable::URI::InvalidURIError => e
|
30
|
+
raise InvalidURIError, e
|
29
31
|
end
|
30
32
|
|
31
33
|
# @return [Addressable::URI]
|
data/lib/absolutely/version.rb
CHANGED
data/lib/absolutely.rb
CHANGED
@@ -1,36 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'addressable/uri'
|
2
4
|
|
3
|
-
|
4
|
-
require 'absolutely/exceptions'
|
5
|
+
require_relative 'absolutely/version'
|
5
6
|
|
6
|
-
|
7
|
+
require_relative 'absolutely/uri'
|
7
8
|
|
8
9
|
module Absolutely
|
9
|
-
class
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
10
|
+
class Error < StandardError; end
|
11
|
+
class ArgumentError < Error; end
|
12
|
+
class InvalidURIError < Error; end
|
13
|
+
|
14
|
+
# Convert a relative path to an absolute URI.
|
15
|
+
#
|
16
|
+
# @param base [String] an absolute URI used to resolve relative path
|
17
|
+
# @param relative [String] a relative path
|
18
|
+
# @return [String]
|
19
|
+
#
|
20
|
+
# @example
|
21
|
+
# Absolutely.to_abs(base: 'https://example.com', relative: '/foo')
|
22
|
+
# #=> "https://example.com/foo"
|
23
|
+
def self.to_abs(base:, relative:)
|
24
|
+
uri(base: base, relative: relative).to_abs
|
25
|
+
end
|
22
26
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
27
|
+
# Create an Absolutely::URI from a base URI and a relative path.
|
28
|
+
#
|
29
|
+
# @param base [String] an absolute URI used to resolve relative path
|
30
|
+
# @param relative [String] a relative path
|
31
|
+
# @return [Absolutely::URI]
|
32
|
+
#
|
33
|
+
# @example
|
34
|
+
# uri = Absolutely.uri(base: 'https://example.com', relative: '/foo')
|
35
|
+
# puts uri.to_abs
|
36
|
+
# #=> "https://example.com/foo"
|
37
|
+
def self.uri(base:, relative:)
|
38
|
+
URI.new(base: base, relative: relative)
|
35
39
|
end
|
36
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: absolutely
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Garber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.8'
|
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: '2.
|
26
|
+
version: '2.8'
|
27
27
|
description: Convert relative paths to absolute URIs.
|
28
28
|
email:
|
29
29
|
- jason@sixtwothree.org
|
@@ -31,24 +31,12 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
-
- ".editorconfig"
|
35
|
-
- ".gitignore"
|
36
|
-
- ".reek.yml"
|
37
|
-
- ".rspec"
|
38
|
-
- ".rubocop"
|
39
|
-
- ".rubocop.yml"
|
40
|
-
- ".ruby-version"
|
41
|
-
- ".simplecov"
|
42
|
-
- ".travis.yml"
|
43
34
|
- CHANGELOG.md
|
44
35
|
- CONTRIBUTING.md
|
45
|
-
- Gemfile
|
46
36
|
- LICENSE
|
47
37
|
- README.md
|
48
|
-
- Rakefile
|
49
38
|
- absolutely.gemspec
|
50
39
|
- lib/absolutely.rb
|
51
|
-
- lib/absolutely/exceptions.rb
|
52
40
|
- lib/absolutely/uri.rb
|
53
41
|
- lib/absolutely/version.rb
|
54
42
|
homepage: https://github.com/jgarber623/absolutely
|
@@ -56,7 +44,8 @@ licenses:
|
|
56
44
|
- MIT
|
57
45
|
metadata:
|
58
46
|
bug_tracker_uri: https://github.com/jgarber623/absolutely/issues
|
59
|
-
changelog_uri: https://github.com/jgarber623/absolutely/blob/
|
47
|
+
changelog_uri: https://github.com/jgarber623/absolutely/blob/v6.0.0/CHANGELOG.md
|
48
|
+
rubygems_mfa_required: 'true'
|
60
49
|
post_install_message:
|
61
50
|
rdoc_options: []
|
62
51
|
require_paths:
|
@@ -65,17 +54,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
54
|
requirements:
|
66
55
|
- - ">="
|
67
56
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2.
|
57
|
+
version: '2.6'
|
69
58
|
- - "<"
|
70
59
|
- !ruby/object:Gem::Version
|
71
|
-
version: '
|
60
|
+
version: '4'
|
72
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
62
|
requirements:
|
74
63
|
- - ">="
|
75
64
|
- !ruby/object:Gem::Version
|
76
65
|
version: '0'
|
77
66
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
67
|
+
rubygems_version: 3.3.12
|
79
68
|
signing_key:
|
80
69
|
specification_version: 4
|
81
70
|
summary: Convert relative paths to absolute URIs.
|
data/.editorconfig
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# EditorConfig is awesome: https://EditorConfig.org
|
2
|
-
root = true
|
3
|
-
|
4
|
-
[*]
|
5
|
-
charset = utf-8
|
6
|
-
end_of_line = lf
|
7
|
-
insert_final_newline = true
|
8
|
-
indent_size = 2
|
9
|
-
indent_style = space
|
10
|
-
trim_trailing_whitespace = true
|
11
|
-
|
12
|
-
[*.md]
|
13
|
-
indent_size = 4
|
14
|
-
indent_style = tab
|
data/.gitignore
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
/.config
|
4
|
-
/coverage/
|
5
|
-
/InstalledFiles
|
6
|
-
/pkg/
|
7
|
-
/spec/reports/
|
8
|
-
/spec/examples.txt
|
9
|
-
/test/tmp/
|
10
|
-
/test/version_tmp/
|
11
|
-
/tmp/
|
12
|
-
|
13
|
-
# Used by dotenv library to load environment variables.
|
14
|
-
# .env
|
15
|
-
|
16
|
-
# Documentation cache and generated files:
|
17
|
-
/.yardoc/
|
18
|
-
/_yardoc/
|
19
|
-
/doc/
|
20
|
-
/rdoc/
|
21
|
-
|
22
|
-
# Environment normalization:
|
23
|
-
/.bundle/
|
24
|
-
/vendor/bundle
|
25
|
-
/lib/bundler/man/
|
26
|
-
|
27
|
-
# for a library or gem, you might want to ignore these files since the code is
|
28
|
-
# intended to run in multiple environments; otherwise, check them in:
|
29
|
-
Gemfile.lock
|
30
|
-
# .ruby-version
|
31
|
-
# .ruby-gemset
|
32
|
-
|
33
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
34
|
-
.rvmrc
|
data/.reek.yml
DELETED
data/.rspec
DELETED
data/.rubocop
DELETED
data/.rubocop.yml
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
require:
|
2
|
-
- rubocop-performance
|
3
|
-
- rubocop-rspec
|
4
|
-
|
5
|
-
AllCops:
|
6
|
-
NewCops: enable
|
7
|
-
|
8
|
-
Layout/LineLength:
|
9
|
-
Enabled: false
|
10
|
-
|
11
|
-
Metrics/BlockLength:
|
12
|
-
Exclude:
|
13
|
-
- spec/**/*.rb
|
14
|
-
|
15
|
-
Naming/RescuedExceptionsVariableName:
|
16
|
-
PreferredName: exception
|
17
|
-
|
18
|
-
Style/Documentation:
|
19
|
-
Enabled: false
|
20
|
-
|
21
|
-
Style/FrozenStringLiteralComment:
|
22
|
-
Enabled: false
|
23
|
-
|
24
|
-
Style/SymbolArray:
|
25
|
-
Enabled: false
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.4.10
|
data/.simplecov
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'simplecov-console'
|
2
|
-
|
3
|
-
formatters = [SimpleCov::Formatter::HTMLFormatter]
|
4
|
-
|
5
|
-
# rubocop:disable Style/IfUnlessModifier
|
6
|
-
if RSpec.configuration.files_to_run.length > 1
|
7
|
-
formatters << SimpleCov::Formatter::Console
|
8
|
-
end
|
9
|
-
# rubocop:enable Style/IfUnlessModifier
|
10
|
-
|
11
|
-
SimpleCov.start do
|
12
|
-
formatter SimpleCov::Formatter::MultiFormatter.new(formatters)
|
13
|
-
end
|
data/.travis.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
dist: bionic
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.4
|
5
|
-
- 2.5
|
6
|
-
- 2.6
|
7
|
-
- 2.7
|
8
|
-
cache: bundler
|
9
|
-
before_script:
|
10
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
11
|
-
- chmod +x ./cc-test-reporter
|
12
|
-
- ./cc-test-reporter before-build
|
13
|
-
after_script:
|
14
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
15
|
-
notifications:
|
16
|
-
email: false
|
17
|
-
slack:
|
18
|
-
rooms:
|
19
|
-
secure: HoydkS7DVdZ/qnOEZq1IhavrwpHaSMhGAUnWY1Vzrlb7szKukDQC5DVR0VfWfluJay/oNStdaJLeO026rCtUeI7mR+gi6kwWg71Bp/WnqNBpXU1e6NxgtenuYJyStY92lGOXQW8Ikz+FYs5Q48v4N2SjTHWw1F4TliN/MLx9Pw7TE3EOUmH7g75m3/DBsAkNqGPjGN5QaKZhTJS+o1TWkyYAswhwUeByQOPcPgx+QBhcAaCB/N75NkxPXcCWHY17BVYw4I1YZEtx+uyfq/+h1CtxyASZ7UP2uy/ZjVrqLEYbRLRKb+SgFRkt8yOk93BhmdpaizNicnvjZmWdbfKQ9GGYNo7pw5r7PbeqDIbU/dGsR4ZLUuBXrBWFd9XkK+DADt94aUp3WB4meXqwqeB5bHNAVoD8UqXfQ92Iy2UFcQcPIZ8OsQbrtSiFfJSVlbdhsA4MUAOQtbcoR6so7uuPuzvUGQQbq+YAPRAcVqnAtDc3b78hN1vCFn/napXVfa1kPnQdWh5VgYjXIhWaY3bLyg3/oetXz+9ExkBopoTsap37/uYweUqVC4T0gQSonRfpJnGVnqsqnZyqa0XxhUK/QmbcQC27rUx6OuzFLdJa3HEq1+jPW14qq4lsmD2uNG9x9ZWWuTzVpbjpziLZLXIX2nmy3R3Yh+n7Kq9YTIX50B8=
|
data/Gemfile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in absolutely.gemspec
|
4
|
-
gemspec
|
5
|
-
|
6
|
-
gem 'pry-byebug', '~> 3.9'
|
7
|
-
gem 'rake', '~> 13.0'
|
8
|
-
gem 'reek', '~> 6.0'
|
9
|
-
gem 'rspec', '~> 3.9'
|
10
|
-
gem 'rubocop', '~> 0.83.0'
|
11
|
-
gem 'rubocop-performance', '~> 1.5'
|
12
|
-
gem 'rubocop-rspec', '~> 1.39'
|
13
|
-
gem 'simplecov', '~> 0.18.5'
|
14
|
-
gem 'simplecov-console', '~> 0.7.2'
|
data/Rakefile
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'bundler/gem_tasks'
|
2
|
-
|
3
|
-
require 'reek/rake/task'
|
4
|
-
require 'rspec/core/rake_task'
|
5
|
-
require 'rubocop/rake_task'
|
6
|
-
|
7
|
-
Reek::Rake::Task.new do |task|
|
8
|
-
task.fail_on_error = false
|
9
|
-
task.source_files = FileList['**/*.rb'].exclude('vendor/**/*.rb')
|
10
|
-
end
|
11
|
-
|
12
|
-
RSpec::Core::RakeTask.new
|
13
|
-
|
14
|
-
RuboCop::RakeTask.new do |task|
|
15
|
-
task.fail_on_error = false
|
16
|
-
end
|
17
|
-
|
18
|
-
task default: [:rubocop, :reek, :spec]
|