ducalis 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile +0 -15
- data/Gemfile.lock +5 -21
- data/README.md +3 -0
- data/ducalis.gemspec +3 -1
- data/lib/ducalis.rb +2 -2
- data/lib/ducalis/version.rb +1 -1
- metadata +41 -4
- data/Dockerfile +0 -33
- data/bootstrap.sh +0 -9
- data/config.ru +0 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c78c0b5ad28cbd122b68f755abbbb3f1aa052700
|
|
4
|
+
data.tar.gz: 63c7074a2d5f41fe414939710ba902e4bcb116ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a091ccfd11f2fbbb626014065a2d95f9e0a79b930763d1ec9c3919b4c695ea4cd8cbb1ae301e43be979a895ce72801668a75cc49be4aa63f5d1743e3a5969ec0
|
|
7
|
+
data.tar.gz: 5e080337b542b2c56b8207ce8dff250be08e6a7cd20606553422d2ee39709d1f84d9cc9c9f6908d235c5c74b528bd3839050753b7874c857595fdee64ec3eee2
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
|
@@ -4,18 +4,3 @@ source 'https://rubygems.org'
|
|
|
4
4
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
5
5
|
|
|
6
6
|
gemspec
|
|
7
|
-
|
|
8
|
-
gem 'git'
|
|
9
|
-
gem 'policial', "0.0.4"
|
|
10
|
-
gem 'regexp-examples'
|
|
11
|
-
gem 'thor'
|
|
12
|
-
|
|
13
|
-
group :test, :development do
|
|
14
|
-
gem 'pry'
|
|
15
|
-
gem 'rspec'
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
group :production do
|
|
19
|
-
gem 'puma'
|
|
20
|
-
gem 'sinatra'
|
|
21
|
-
end
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ducalis (0.
|
|
4
|
+
ducalis (0.2.0)
|
|
5
|
+
git (~> 1.3, >= 1.3.0)
|
|
5
6
|
policial (= 0.0.4)
|
|
6
7
|
regexp-examples (~> 1.3, >= 1.3.2)
|
|
7
8
|
rubocop (~> 0.50.0)
|
|
@@ -35,7 +36,6 @@ GEM
|
|
|
35
36
|
method_source (0.9.0)
|
|
36
37
|
multi_json (1.12.2)
|
|
37
38
|
multipart-post (2.0.0)
|
|
38
|
-
mustermann (1.0.1)
|
|
39
39
|
octokit (4.7.0)
|
|
40
40
|
sawyer (~> 0.8.0, >= 0.5.3)
|
|
41
41
|
parallel (1.12.0)
|
|
@@ -51,10 +51,6 @@ GEM
|
|
|
51
51
|
coderay (~> 1.1.0)
|
|
52
52
|
method_source (~> 0.9.0)
|
|
53
53
|
public_suffix (3.0.0)
|
|
54
|
-
puma (3.10.0)
|
|
55
|
-
rack (2.0.3)
|
|
56
|
-
rack-protection (2.0.0)
|
|
57
|
-
rack
|
|
58
54
|
rainbow (2.2.2)
|
|
59
55
|
rake
|
|
60
56
|
rake (12.1.0)
|
|
@@ -83,13 +79,7 @@ GEM
|
|
|
83
79
|
sawyer (0.8.1)
|
|
84
80
|
addressable (>= 2.3.5, < 2.6)
|
|
85
81
|
faraday (~> 0.8, < 1.0)
|
|
86
|
-
sinatra (2.0.0)
|
|
87
|
-
mustermann (~> 1.0)
|
|
88
|
-
rack (~> 2.0)
|
|
89
|
-
rack-protection (= 2.0.0)
|
|
90
|
-
tilt (~> 2.0)
|
|
91
82
|
thor (0.20.0)
|
|
92
|
-
tilt (2.0.8)
|
|
93
83
|
unicode-display_width (1.3.0)
|
|
94
84
|
|
|
95
85
|
PLATFORMS
|
|
@@ -98,15 +88,9 @@ PLATFORMS
|
|
|
98
88
|
DEPENDENCIES
|
|
99
89
|
bundler (~> 1.16.a)
|
|
100
90
|
ducalis!
|
|
101
|
-
|
|
102
|
-
policial (= 0.0.4)
|
|
103
|
-
pry
|
|
104
|
-
puma
|
|
91
|
+
pry (~> 0.10, >= 0.10.0)
|
|
105
92
|
rake (~> 12.1)
|
|
106
|
-
|
|
107
|
-
rspec
|
|
108
|
-
sinatra
|
|
109
|
-
thor
|
|
93
|
+
rspec (~> 3.0)
|
|
110
94
|
|
|
111
95
|
BUNDLED WITH
|
|
112
|
-
1.16.0.pre.
|
|
96
|
+
1.16.0.pre.3
|
data/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Ducalis
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/rb/ducalis)
|
|
4
|
+
[](https://travis-ci.org/ignat-z/ducalis)
|
|
5
|
+
|
|
3
6
|
__Ducalis__ is RuboCop based static code analyzer for enterprise Rails applications.
|
|
4
7
|
|
|
5
8
|
## Installation
|
data/ducalis.gemspec
CHANGED
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
27
|
-
f.match(%r{^(test|spec|features|
|
|
27
|
+
f.match(%r{^(test|spec|features|client)/})
|
|
28
28
|
end
|
|
29
29
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
30
30
|
|
|
@@ -32,8 +32,10 @@ Gem::Specification.new do |spec|
|
|
|
32
32
|
spec.add_dependency 'rubocop', '~> 0.50.0'
|
|
33
33
|
spec.add_dependency 'regexp-examples', '~> 1.3', '>= 1.3.2'
|
|
34
34
|
spec.add_dependency 'thor', '~> 0.20.0'
|
|
35
|
+
spec.add_dependency 'git', '~> 1.3', '>= 1.3.0'
|
|
35
36
|
|
|
36
37
|
spec.add_development_dependency 'bundler', '~> 1.16.a'
|
|
37
38
|
spec.add_development_dependency 'rake', '~> 12.1'
|
|
38
39
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
40
|
+
spec.add_development_dependency 'pry', '~> 0.10', '>= 0.10.0'
|
|
39
41
|
end
|
data/lib/ducalis.rb
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
require 'parser/current'
|
|
4
4
|
require 'policial'
|
|
5
5
|
|
|
6
|
-
require 'ducalis/version'
|
|
7
|
-
|
|
8
6
|
module Ducalis
|
|
9
7
|
DOTFILE = '.ducalis.yml'
|
|
10
8
|
DUCALIS_HOME = File.realpath(File.join(File.dirname(__FILE__), '..'))
|
|
11
9
|
DEFAULT_FILE = File.join(DUCALIS_HOME, 'config', DOTFILE)
|
|
12
10
|
end
|
|
13
11
|
|
|
12
|
+
require 'ducalis/version'
|
|
13
|
+
|
|
14
14
|
require 'ducalis/adapters/base'
|
|
15
15
|
require 'ducalis/adapters/circle_ci'
|
|
16
16
|
require 'ducalis/adapters/custom'
|
data/lib/ducalis/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ducalis
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ignat Zakrevsky
|
|
@@ -72,6 +72,26 @@ dependencies:
|
|
|
72
72
|
- - "~>"
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
74
|
version: 0.20.0
|
|
75
|
+
- !ruby/object:Gem::Dependency
|
|
76
|
+
name: git
|
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - "~>"
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '1.3'
|
|
82
|
+
- - ">="
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: 1.3.0
|
|
85
|
+
type: :runtime
|
|
86
|
+
prerelease: false
|
|
87
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
88
|
+
requirements:
|
|
89
|
+
- - "~>"
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: '1.3'
|
|
92
|
+
- - ">="
|
|
93
|
+
- !ruby/object:Gem::Version
|
|
94
|
+
version: 1.3.0
|
|
75
95
|
- !ruby/object:Gem::Dependency
|
|
76
96
|
name: bundler
|
|
77
97
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -114,6 +134,26 @@ dependencies:
|
|
|
114
134
|
- - "~>"
|
|
115
135
|
- !ruby/object:Gem::Version
|
|
116
136
|
version: '3.0'
|
|
137
|
+
- !ruby/object:Gem::Dependency
|
|
138
|
+
name: pry
|
|
139
|
+
requirement: !ruby/object:Gem::Requirement
|
|
140
|
+
requirements:
|
|
141
|
+
- - "~>"
|
|
142
|
+
- !ruby/object:Gem::Version
|
|
143
|
+
version: '0.10'
|
|
144
|
+
- - ">="
|
|
145
|
+
- !ruby/object:Gem::Version
|
|
146
|
+
version: 0.10.0
|
|
147
|
+
type: :development
|
|
148
|
+
prerelease: false
|
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
150
|
+
requirements:
|
|
151
|
+
- - "~>"
|
|
152
|
+
- !ruby/object:Gem::Version
|
|
153
|
+
version: '0.10'
|
|
154
|
+
- - ">="
|
|
155
|
+
- !ruby/object:Gem::Version
|
|
156
|
+
version: 0.10.0
|
|
117
157
|
description: " Ducalis is RuboCop based static code analyzer for enterprise Rails
|
|
118
158
|
\ applications.\n"
|
|
119
159
|
email:
|
|
@@ -129,15 +169,12 @@ files:
|
|
|
129
169
|
- ".ruby-version"
|
|
130
170
|
- ".travis.yml"
|
|
131
171
|
- DOCUMENTATION.md
|
|
132
|
-
- Dockerfile
|
|
133
172
|
- Gemfile
|
|
134
173
|
- Gemfile.lock
|
|
135
174
|
- LICENSE
|
|
136
175
|
- README.md
|
|
137
176
|
- Rakefile
|
|
138
177
|
- bin/ducalis
|
|
139
|
-
- bootstrap.sh
|
|
140
|
-
- config.ru
|
|
141
178
|
- config/.ducalis.yml
|
|
142
179
|
- ducalis.gemspec
|
|
143
180
|
- lib/ducalis.rb
|
data/Dockerfile
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
FROM alpine:3.5
|
|
2
|
-
|
|
3
|
-
ARG token
|
|
4
|
-
EXPOSE 8090
|
|
5
|
-
ENV APP_ROOT /ducalis
|
|
6
|
-
ENV GITHUB_TOKEN=$token
|
|
7
|
-
|
|
8
|
-
RUN apk add --no-cache bc build-base \
|
|
9
|
-
ca-certificates \
|
|
10
|
-
git \
|
|
11
|
-
ruby \
|
|
12
|
-
ruby-dev \
|
|
13
|
-
ruby-irb \
|
|
14
|
-
ruby-rdoc \
|
|
15
|
-
ruby-io-console \
|
|
16
|
-
ruby-json \
|
|
17
|
-
ruby-rake \
|
|
18
|
-
sudo \
|
|
19
|
-
openssh \
|
|
20
|
-
nodejs
|
|
21
|
-
RUN gem install bundler
|
|
22
|
-
RUN bundle config silence_root_warning 1
|
|
23
|
-
RUN bundle config git.allow_insecure true
|
|
24
|
-
|
|
25
|
-
RUN mkdir -p "$APP_ROOT"
|
|
26
|
-
WORKDIR $APP_ROOT
|
|
27
|
-
|
|
28
|
-
COPY Gemfile $APP_ROOT
|
|
29
|
-
COPY Gemfile.lock $APP_ROOT
|
|
30
|
-
RUN bundle install
|
|
31
|
-
|
|
32
|
-
COPY . $APP_ROOT
|
|
33
|
-
CMD bundle exec puma -p 8090 -e production
|
data/bootstrap.sh
DELETED
data/config.ru
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
$LOAD_PATH.unshift("#{__dir__}/lib")
|
|
4
|
-
require 'ducalis'
|
|
5
|
-
|
|
6
|
-
require 'sinatra/base'
|
|
7
|
-
require 'sinatra'
|
|
8
|
-
require 'json'
|
|
9
|
-
|
|
10
|
-
post '/webhook' do
|
|
11
|
-
options = JSON.parse(request.body.read)
|
|
12
|
-
Thread.new do
|
|
13
|
-
Runner.new(Adapters::PullRequest.new(options)).call
|
|
14
|
-
end.abort_on_exception = true
|
|
15
|
-
code 200
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
run Sinatra::Application
|