Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit efcd527

Browse files
committed
Add minimum Ruby version to gemspec and update yard configuration
1 parent c03407e commit efcd527

File tree

4 files changed

+29
-97
lines changed

4 files changed

+29
-97
lines changed

.gitignore

Lines changed: 14 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,35 @@
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-
## Specific to RubyMotion:
14-
.dat*
15-
.repl_history
16-
build/
17-
18-
## Documentation cache and generated files:
19-
/.yardoc/
20-
/_yardoc/
21-
/doc/
22-
/rdoc/
1+
# =========================
2+
# Generated files
3+
# =========================
234

24-
## Environment normalisation:
25-
/.bundle/
26-
/vendor/bundle
27-
/lib/bundler/man/
5+
*.gem
6+
*.db
7+
*.db-journal
8+
.yardoc/
9+
doc/
10+
coverage/
2811

29-
# for a library or gem, you might want to ignore these files since the code is
30-
# intended to run in multiple environments; otherwise, check them in:
31-
# Gemfile.lock
32-
# .ruby-version
33-
# .ruby-gemset
12+
# =========================
13+
# Environment files
14+
# =========================
3415

35-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
36-
.rvmrc
16+
Gemfile.lock
3717

3818
# =========================
3919
# Operating System Files
4020
# =========================
4121

42-
# OSX
22+
# MacOS
4323
# =========================
4424

4525
.DS_Store
4626
.AppleDouble
4727
.LSOverride
4828

49-
# Thumbnails
50-
._*
51-
52-
# Files that might appear in the root of a volume
53-
.DocumentRevisions-V100
54-
.fseventsd
55-
.Spotlight-V100
56-
.TemporaryItems
57-
.Trashes
58-
.VolumeIcon.icns
59-
60-
# Directories potentially created on remote AFP share
61-
.AppleDB
62-
.AppleDesktop
63-
Network Trash Folder
64-
Temporary Items
65-
.apdisk
66-
6729
# Windows
6830
# =========================
6931

70-
# Windows image file caches
7132
Thumbs.db
7233
ehthumbs.db
73-
74-
# Folder config file
7534
Desktop.ini
76-
77-
# Recycle Bin used on file shares
7835
$RECYCLE.BIN/
79-
80-
# Windows Installer files
81-
*.cab
82-
*.msi
83-
*.msm
84-
*.msp
85-
86-
# Windows shortcuts
87-
*.lnk
88-
89-
# Sublime Plugins
90-
sftp-config.json
91-
92-
# Atom Plugins
93-
deployment-config.json
94-
95-
# NPM
96-
node_modules/
97-
npm-debug.log
98-
99-
# TypeScript type defs
100-
typings/
101-
102-
# Compiled Angular TypeScript
103-
lib/web/public/app/**/*.js
104-
lib/web/public/app/**/*.map
105-
106-
# SQLite databases
107-
*.db
108-
*.db-journal

.yardopts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
--exclude lib/wpxf/net/typhoeus_helper.rb
22
--exclude lib/wpxf/net/http_options.rb
3-
--exclude payloads/socket_helper.rb
43
--exclude lib/wpxf/core.rb
4+
--exclude lib/wpxf/cli/**/*
5+
--exclude lib/wpxf/modules/**/*
6+
--exclude lib/wpxf/payloads/**/*
57

68
lib/wpxf/**/*.rb

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# frozen_string_literal: true
22

3+
source 'https://rubygems.org'
34
gemspec

wpxf.gemspec

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
# frozen_string_literal: true
22

33
Gem::Specification.new do |s|
4-
s.name = 'wpxf'
5-
s.version = '2.0.0a'
6-
s.date = '2018-07-12'
7-
s.summary = 'WordPress Exploit Framework'
4+
s.name = 'wpxf'
5+
s.version = '2.0.0a'
6+
s.date = '2018-07-12'
7+
s.summary = 'WordPress Exploit Framework'
88
s.description = 'A Ruby framework designed to aid in the penetration testing of WordPress systems'
9-
s.authors = ['rastating']
10-
s.email = '[email protected]'
11-
s.files = Dir['**/*']
12-
s.homepage = 'https://github.com/rastating/wordpress-exploit-framework'
13-
s.license = 'GPL-3.0'
9+
s.authors = ['rastating']
10+
s.email = '[email protected]'
11+
s.files = %w[lib db data bin].map { |d| Dir["#{d}/**/*"] }.flatten + ['wpxf.gemspec']
12+
s.homepage = 'https://github.com/rastating/wordpress-exploit-framework'
13+
s.license = 'GPL-3.0'
1414
s.executables << 'wpxf'
15+
s.required_ruby_version = '>= 2.4.4'
1516

1617
s.add_dependency 'colorize', '~> 0.8'
1718
s.add_dependency 'mime-types', '~> 3.1'
@@ -28,4 +29,5 @@ Gem::Specification.new do |s|
2829
s.add_development_dependency 'database_cleaner', '~> 1.7'
2930
s.add_development_dependency 'rspec', '~> 3.7'
3031
s.add_development_dependency 'rspec_sequel_matchers', '~> 0.5'
32+
s.add_development_dependency 'yard', '~> 0.9'
3133
end

0 commit comments

Comments
 (0)