Skip to content

Commit

Permalink
v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj committed Jul 13, 2020
1 parent c5dc93a commit e2fd4b5
Show file tree
Hide file tree
Showing 26 changed files with 235 additions and 183 deletions.
55 changes: 48 additions & 7 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,80 @@
# Metrics
AllCops:
TargetRubyVersion: 2.4
TargetRubyVersion: 2.7

# ~~~ Layout ~~~
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/HashAlignment:
Include:
- 'lib/**/*.rb'
Layout/LineLength:
Include:
- 'lib/**/*.rb'
Layout/SpaceAroundMethodCallOperator:
Enabled: true
# ~~~ Lint ~~~
Lint/DeprecatedOpenSSLConstant:
Enabled: true
Lint/DuplicateElsifCondition:
Enabled: true
Lint/MixedRegexpCaptureTypes:
Enabled: true
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Lint/StructNewOverride :
Enabled: true
# ~~~ Metrics ~~~
Metrics/AbcSize:
Enabled: false
Metrics/BlockNesting:
Exclude:
- 'bin/*'
Metrics/ClassLength:
Max: 200
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/BlockNesting:
Exclude:
- 'bin/*'
Metrics/MethodLength:
Max: 25
Max: 30
Metrics/PerceivedComplexity:
Max: 10
# ~~~ Style ~~~
Style/AccessorGrouping:
Enabled: false # for yard
Style/ArrayCoercion:
Enabled: true
Style/BisectedAttrAccessor:
Enabled: false # for yard
Style/CaseLikeIf:
Enabled: true
Style/ClassVars:
Enabled: false
Style/Documentation:
Enabled: false
Style/ExponentialNotation:
Enabled: true
Style/FormatStringToken:
Enabled: false # https://github.com/rubocop-hq/rubocop/issues/7944
Style/HashAsLastArrayItem:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashLikeCase:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/RedundantAssignment:
Enabled: true
Style/RedundantFetchBlock:
Enabled: true
Style/RedundantFileExtensionInRequire:
Enabled: true
Style/RedundantRegexpCharacterClass:
Enabled: true
Style/RedundantRegexpEscape:
Enabled: true
Style/RedundantReturn:
Enabled: false
Style/SlicingWithRange:
Enabled: true
1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 2.7.1
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ctf-party (1.2.0)
ctf-party (1.2.1)

GEM
remote: https://rubygems.org/
Expand Down
3 changes: 2 additions & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
The MIT License (MIT)

Copyright (c) 2019 Alexandre ZANNI
Copyright (c) 2020-2020 Alexandre ZANNI
Copyright (c) 2019-2020 Alexandre ZANNI at Orange Cyberdefense

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# ctf-party

[![Gem Version](https://badge.fury.io/rb/ctf-party.svg)](https://badge.fury.io/rb/ctf-party)
![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/Orange-Cyberdefense/ctf-party)
[![GitHub forks](https://img.shields.io/github/forks/Orange-Cyberdefense/ctf-party)](https://github.com/Orange-Cyberdefense/ctf-party/network)
[![GitHub stars](https://img.shields.io/github/stars/Orange-Cyberdefense/ctf-party)](https://github.com/Orange-Cyberdefense/ctf-party/stargazers)
[![GitHub license](https://img.shields.io/github/license/Orange-Cyberdefense/ctf-party)](https://github.com/Orange-Cyberdefense/ctf-party/blob/master/LICENSE.txt)
![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/noraj/ctf-party)
[![GitHub forks](https://img.shields.io/github/forks/noraj/ctf-party)](https://github.com/noraj/ctf-party/network)
[![GitHub stars](https://img.shields.io/github/stars/noraj/ctf-party)](https://github.com/noraj/ctf-party/stargazers)
[![GitHub license](https://img.shields.io/github/license/noraj/ctf-party)](https://github.com/noraj/ctf-party/blob/master/LICENSE.txt)
[![Rawsec's CyberSecurity Inventory](https://inventory.rawsec.ml/img/badges/Rawsec-inventoried-FF5050_flat.svg)](https://inventory.rawsec.ml/tools.html#ctf-party)

[![Packaging status](https://repology.org/badge/vertical-allrepos/ruby:ctf-party.svg)](https://repology.org/project/ruby:ctf-party/versions)

![](https://orange-cyberdefense.github.io/ctf-party/_media/logo.png)
![](https://noraj.github.io/ctf-party/_media/logo.png)


## What it is
Expand Down Expand Up @@ -51,8 +51,8 @@ myvar.to_b64!

## References

Homepage / Documentation: https://orange-cyberdefense.github.io/ctf-party/
Homepage / Documentation: https://noraj.github.io/ctf-party/

## Author

Made by Alexandre ZANNI ([@noraj](https://github.com/noraj)), pentester from Orange Cyberdefense.
Made by Alexandre ZANNI ([@noraj](https://pwn.by/noraj/)).
16 changes: 8 additions & 8 deletions ctf_party.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.name = 'ctf-party'
s.version = Version::VERSION
s.platform = Gem::Platform::RUBY
s.date = '2020-02-03'
s.date = '2020-07-13'
s.summary = 'A library to enhance and speed up script/exploit writing'\
' for CTF players'
s.description = 'A library to enhance and speed up script/exploit writing'\
Expand All @@ -16,7 +16,7 @@ Gem::Specification.new do |s|
' code patterns.'
s.authors = ['Alexandre ZANNI']
s.email = 'alexandre.zanni@engineer.com'
s.homepage = 'https://orange-cyberdefense.github.io/ctf-party/'
s.homepage = 'https://noraj.github.io/ctf-party/'
s.license = 'MIT'

s.files = Dir['lib/**/*.rb'] + Dir['bin/*'] + ['LICENSE.txt']
Expand All @@ -26,14 +26,14 @@ Gem::Specification.new do |s|

s.metadata = {
'yard.run' => 'yard',
'bug_tracker_uri' => 'https://github.com/Orange-Cyberdefense/ctf-party/issues',
'changelog_uri' => 'https://github.com/Orange-Cyberdefense/ctf-party/blob/master/docs/CHANGELOG.md',
'documentation_uri' => 'https://orange-cyberdefense.github.io/ctf-party/',
'homepage_uri' => 'https://orange-cyberdefense.github.io/ctf-party/',
'source_code_uri' => 'https://github.com/Orange-Cyberdefense/ctf-party/'
'bug_tracker_uri' => 'https://github.com/noraj/ctf-party/issues',
'changelog_uri' => 'https://github.com/noraj/ctf-party/blob/master/docs/CHANGELOG.md',
'documentation_uri' => 'https://noraj.github.io/ctf-party/',
'homepage_uri' => 'https://noraj.github.io/ctf-party/',
'source_code_uri' => 'https://github.com/noraj/ctf-party/'
}

s.required_ruby_version = '~> 2.4'
s.required_ruby_version = '~> 2.7'

s.add_development_dependency('bundler', '~> 2.1')
s.add_development_dependency('commonmarker', '~> 0.20') # for GMF support in YARD
Expand Down
8 changes: 8 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [1.2.1]

- lib: code lint
- repo: From from [Orange-Cyberdefense/rabid](https://github.com/Orange-Cyberdefense/rabid) to [noraj/rabid](https://github.com/noraj/rabid/)
- dependencies: update
- rubocop: new rules for new cops
- deprecation: now requires ruby 2.7+ instead of 2.4+

## [1.2.0]

- new hexadecimal methods:
Expand Down
12 changes: 6 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# ctf-party

[![Gem Version](https://badge.fury.io/rb/ctf-party.svg)](https://badge.fury.io/rb/ctf-party)
![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/Orange-Cyberdefense/ctf-party)
[![GitHub forks](https://img.shields.io/github/forks/Orange-Cyberdefense/ctf-party)](https://github.com/Orange-Cyberdefense/ctf-party/network)
[![GitHub stars](https://img.shields.io/github/stars/Orange-Cyberdefense/ctf-party)](https://github.com/Orange-Cyberdefense/ctf-party/stargazers)
[![GitHub license](https://img.shields.io/github/license/Orange-Cyberdefense/ctf-party)](https://github.com/Orange-Cyberdefense/ctf-party/blob/master/LICENSE.txt)
![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/noraj/ctf-party)
[![GitHub forks](https://img.shields.io/github/forks/noraj/ctf-party)](https://github.com/noraj/ctf-party/network)
[![GitHub stars](https://img.shields.io/github/stars/noraj/ctf-party)](https://github.com/noraj/ctf-party/stargazers)
[![GitHub license](https://img.shields.io/github/license/noraj/ctf-party)](https://github.com/noraj/ctf-party/blob/master/LICENSE.txt)
[![Rawsec's CyberSecurity Inventory](https://inventory.rawsec.ml/img/badges/Rawsec-inventoried-FF5050_flat.svg)](https://inventory.rawsec.ml/tools.html#ctf-party)

## What it is
Expand Down Expand Up @@ -46,8 +46,8 @@ myvar.to_b64!

## References

Homepage / Documentation: https://orange-cyberdefense.github.io/ctf-party/
Homepage / Documentation: https://noraj.github.io/ctf-party/

## Author

Made by Alexandre ZANNI ([@noraj](https://github.com/noraj)), pentester from Orange Cyberdefense.
Made by Alexandre ZANNI ([@noraj](https://pwn.by/noraj/)).
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A Ruby library to enhance and speed up script/exploit writing for CTF players.

[GitHub](https://github.com/Orange-Cyberdefense/ctf-party/)
[GitHub](https://github.com/noraj/ctf-party/)
[Get Started](pages/quick-start?id=quick-start)

![color](#ffffff)
4 changes: 2 additions & 2 deletions docs/_navbar.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- [Home](/)
- [Doc](https://orange-cyberdefense.github.io/ctf-party/yard/)
- [Source](https://github.com/Orange-Cyberdefense/ctf-party/)
- [Doc](https://noraj.github.io/ctf-party/yard/)
- [Source](https://github.com/noraj/ctf-party/)
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<script>
window.$docsify = {
name: 'ctf-party',
repo: 'https://github.com/Orange-Cyberdefense/ctf-party/',
repo: 'https://github.com/noraj/ctf-party/',
loadSidebar: true,
subMaxLevel: 2,
loadNavbar: true,
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $ docsify serve docs

The output directory of the library documentation will be `docs/yard`.

You can consult it online [here](https://orange-cyberdefense.github.io/ctf-party/yard/).
You can consult it online [here](https://noraj.github.io/ctf-party/yard/).

### Building locally: for library users

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ $ gem install --development ctf-party
Just replace `x.x.x` with the gem version you see after `gem build`.

```
$ git clone https://github.com/Orange-Cyberdefense/ctf-party.git ctf-party
$ git clone https://github.com/noraj/ctf-party.git ctf-party
$ cd ctf-party
$ gem install bundler
$ bundler install
Expand Down
Loading

0 comments on commit e2fd4b5

Please sign in to comment.