Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
New dependency requirement architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj committed Jul 22, 2021
1 parent c9eadf8 commit 17a4ec7
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 24 deletions.
36 changes: 36 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,39 @@ source 'https://rubygems.org'

# Specify your gem's dependencies in .gemspec
gemspec

# Needed for the CLI only
group :runtime, :cli do
gem 'docopt', '~> 0.6' # for argument parsing
gem 'paint', '~> 2.2' # for colorized ouput
end

# Needed for the CLI & library
group :runtime, :all do
gem 'rexml', '~> 3.2' # XML parser
end

# Needed to install dependencies
group :development, :install do
gem 'bundler', ['>= 2.1.0', '< 2.3']
end

# Needed to run tests
group :development, :test do
gem 'minitest', '~> 5.12'
gem 'minitest-skip', '~> 0.0' # skip dummy tests
gem 'rake', '~> 13.0'
end

# Needed for linting
group :development, :lint do
gem 'rubocop', '~> 1.10'
end

group :development, :docs do
gem 'commonmarker', '~> 0.21' # for GMF support in YARD
gem 'github-markup', '~> 4.0' # for GMF support in YARD
gem 'redcarpet', '~> 3.5' # for GMF support in YARD
gem 'webrick', '~> 1.7' # for server support in YARD
gem 'yard', '~> 0.9'
end
23 changes: 10 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,32 @@ GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
commonmarker (0.21.2)
ruby-enum (~> 0.5)
concurrent-ruby (1.1.8)
commonmarker (0.22.0)
docopt (0.6.1)
github-markup (4.0.0)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
minitest (5.14.4)
minitest-skip (0.0.3)
minitest (~> 5.0)
paint (2.2.1)
parallel (1.20.1)
parser (3.0.1.0)
parser (3.0.2.0)
ast (~> 2.4.1)
rainbow (3.0.0)
rake (13.0.3)
rake (13.0.6)
redcarpet (3.5.1)
regexp_parser (2.1.1)
rexml (3.2.5)
rubocop (1.13.0)
rubocop (1.18.3)
parallel (~> 1.10)
parser (>= 3.0.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.2.0, < 2.0)
rubocop-ast (>= 1.7.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.4.1)
parser (>= 2.7.1.5)
ruby-enum (0.9.0)
i18n
rubocop-ast (1.8.0)
parser (>= 3.0.1.1)
ruby-progressbar (1.11.0)
unicode-display_width (2.0.0)
webrick (1.7.0)
Expand All @@ -53,11 +47,14 @@ PLATFORMS
DEPENDENCIES
bundler (>= 2.1.0, < 2.3)
commonmarker (~> 0.21)
docopt (~> 0.6)
github-markup (~> 4.0)
minitest (~> 5.12)
minitest-skip (~> 0.0)
paint (~> 2.2)
rake (~> 13.0)
redcarpet (~> 3.5)
rexml (~> 3.2)
rubocop (~> 1.10)
tls-map!
webrick (~> 1.7)
Expand Down
5 changes: 5 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Additions:

- add `helper()` method to `TLSmap::App::Extractor` so it will display a useful error message when the wrong format is provided.

Chore:

- New dependency requirement architecture: runtime dependencies are set both in `.gemspec` + `Gemfile` while development ones are set in `Gemfile` only.
- `Gemfile` dependencies are categorized in groups. So it's now possible to exclude the _docs_ group while installing in a CI while keeping _test_ and _lint_. `.gempsec` is only able to create _runtime_ and _development_ but not custom groups.

## [1.3.1]

Fixes:
Expand Down
11 changes: 0 additions & 11 deletions tls-map.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,4 @@ Gem::Specification.new do |s|
s.add_runtime_dependency('docopt', '~> 0.6') # for argument parsing
s.add_runtime_dependency('paint', '~> 2.2') # for colorized ouput
s.add_runtime_dependency('rexml', '~> 3.2') # XML parser

s.add_development_dependency('bundler', ['>= 2.1.0', '< 2.3'])
s.add_development_dependency('commonmarker', '~> 0.21') # for GMF support in YARD
s.add_development_dependency('github-markup', '~> 4.0') # for GMF support in YARD
s.add_development_dependency('minitest', '~> 5.12') # unit tests
s.add_development_dependency('minitest-skip', '~> 0.0') # skip dummy tests
s.add_development_dependency('rake', '~> 13.0') # used to run tests
s.add_development_dependency('redcarpet', '~> 3.5') # for GMF support in YARD
s.add_development_dependency('rubocop', '~> 1.10') # lint
s.add_development_dependency('webrick', '~> 1.7') # for server support in YARD
s.add_development_dependency('yard', '~> 0.9')
end

0 comments on commit 17a4ec7

Please sign in to comment.