warder 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/features/checks_for_all_issues.feature +21 -15
- data/features/checks_for_vulnerable_gems.feature +6 -3
- data/features/step_definitions/checks_for_rails_security_issues_steps.rb +3 -1
- data/features/step_definitions/checks_for_vulnerable_gems_steps.rb +6 -7
- data/features/step_definitions/detects_code_complexity_steps.rb +5 -4
- data/features/step_definitions/detects_code_duplication_steps.rb +1 -1
- data/features/step_definitions/detects_code_smells_steps.rb +1 -1
- data/features/step_definitions/detects_magick_numbers_steps.rb +1 -1
- data/features/step_definitions/run_steps.rb +10 -0
- data/features/step_definitions/validates_style_guide_steps.rb +1 -1
- data/lib/warder/code_smells_runner.rb +1 -1
- data/lib/warder/style_guide_runner.rb +1 -1
- data/lib/warder/version.rb +1 -1
- data/spec/fixtures/invalid_rails_app/Gemfile +1 -0
- data/spec/fixtures/invalid_rails_app/Gemfile_lock +82 -0
- data/spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb +5 -1
- data/spec/fixtures/invalid_rails_app/config/application.rb +2 -1
- data/spec/fixtures/invalid_rails_app/config/environments/test.rb +1 -1
- data/spec/fixtures/invalid_rails_app/config/initializers/secret_token.rb +1 -1
- data/spec/fixtures/invalid_rails_app/lib/invalid_code_complexity.rb +13 -0
- data/spec/fixtures/invalid_rails_app/lib/invalid_code_duplication.rb +40 -0
- data/spec/fixtures/valid_rails_app/Gemfile +1 -1
- data/spec/fixtures/valid_rails_app/Gemfile_lock +80 -0
- data/spec/fixtures/valid_rails_app/Rakefile +2 -1
- data/spec/fixtures/valid_rails_app/app/controllers/application_controller.rb +1 -0
- data/spec/fixtures/valid_rails_app/config/application.rb +11 -5
- data/spec/fixtures/valid_rails_app/config/boot.rb +1 -1
- data/spec/fixtures/valid_rails_app/config/environments/development.rb +2 -1
- data/spec/fixtures/valid_rails_app/config/environments/production.rb +12 -6
- data/spec/fixtures/valid_rails_app/config/environments/test.rb +3 -2
- data/spec/fixtures/valid_rails_app/config/initializers/secret_token.rb +2 -1
- data/spec/fixtures/valid_rails_app/config/initializers/wrap_parameters.rb +2 -1
- data/warder.gemspec +16 -16
- metadata +52 -56
- data/spec/fixtures/invalid_Gemfile +0 -3
- data/spec/fixtures/invalid_Gemfile.lock +0 -14
- data/spec/fixtures/valid_Gemfile +0 -1
- data/spec/fixtures/valid_Gemfile.lock +0 -8
- data/spec/fixtures/valid_rails_app/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/fixtures/valid_rails_app/config/initializers/inflections.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b864c54097bcb93f454fc147be1e537f9576356e
|
4
|
+
data.tar.gz: af7fde372eaf74e95b8b5dab73f7c6d724685e5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cc1754aa316c2ea9172d6d6190d8681126f82ec8b8846908b2a0cf6d752ba203439b9da08b483d8aff21c3e2fe6f863b23fcaef83a06d8909bf79fae6439486
|
7
|
+
data.tar.gz: 4df26aece35d2a73f1b0f71dee59f912f69057dba4bc063a96abb73b9b0a453335ce0a45e0a01df1bdd6ef0fcd54f4a2314d21a861dab1e21969f4fd0e935bb4
|
data/.gitignore
CHANGED
@@ -3,26 +3,32 @@ Feature: checks for all issues
|
|
3
3
|
As a ruby developer
|
4
4
|
I want to run warder with --all option
|
5
5
|
|
6
|
-
@wip
|
7
6
|
Scenario: run warder with enabled all option
|
8
7
|
Given I have valid_rails_app project in directory
|
9
8
|
And I am on project directory
|
10
9
|
When I run `warder --all`
|
10
|
+
Then warder detects style guide issues
|
11
|
+
Then warder detects magick numbers issues
|
12
|
+
Then warder detects code complexity issues
|
13
|
+
Then warder detects code duplication issues
|
14
|
+
Then warder detects code smells issues
|
15
|
+
Then warder detects sandi rules violations
|
11
16
|
Then warder detects rails best practices issues
|
12
17
|
Then warder detects rails security issues
|
18
|
+
Then warder detects gem freshness issues
|
13
19
|
Then the exit status should be 0
|
14
20
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
21
|
+
Scenario: run warder with enabled rails option on invalid project
|
22
|
+
Given I have invalid_rails_app project in directory
|
23
|
+
And I am on project directory
|
24
|
+
When I run `warder --all`
|
25
|
+
Then warder detects style guide issues
|
26
|
+
Then warder detects magick numbers issues
|
27
|
+
Then warder detects code complexity issues
|
28
|
+
Then warder detects code duplication issues
|
29
|
+
Then warder detects code smells issues
|
30
|
+
Then warder detects sandi rules violations
|
31
|
+
Then warder detects rails best practices issues
|
32
|
+
Then warder detects rails security issues
|
33
|
+
Then warder detects gem freshness issues
|
34
|
+
Then the exit status should be 9
|
@@ -4,19 +4,22 @@ Feature: checks for vulnerable gems
|
|
4
4
|
I want to run warder with --bundle-audit option
|
5
5
|
|
6
6
|
Scenario: run warder with enabled bundle audit option
|
7
|
-
Given I have
|
7
|
+
Given I have valid_rails_app project in directory
|
8
|
+
And I am on project directory
|
8
9
|
When I run `warder --bundle-audit`
|
9
10
|
Then warder detects gem freshness issues
|
10
11
|
Then the exit status should be 0
|
11
12
|
|
12
13
|
Scenario: run warder with enabled bundle audit option on invalid file
|
13
|
-
Given I have
|
14
|
+
Given I have invalid_rails_app project in directory
|
15
|
+
And I am on project directory
|
14
16
|
When I run `warder --bundle-audit`
|
15
17
|
Then warder detects gem freshness issues
|
16
18
|
Then the exit status should be 1
|
17
19
|
|
18
20
|
Scenario: run warder with disabled bundle audit option on invalid file
|
19
|
-
Given I have
|
21
|
+
Given I have invalid_rails_app project in directory
|
22
|
+
And I am on project directory
|
20
23
|
When I run `warder --no-bundle-audit`
|
21
24
|
Then warder does nothing
|
22
25
|
Then the exit status should be 0
|
@@ -11,7 +11,9 @@ end
|
|
11
11
|
|
12
12
|
Given(/^I have ((in)?valid_rails_app) project in directory$/) do |name, _|
|
13
13
|
@projectname = name
|
14
|
-
FileUtils.
|
14
|
+
FileUtils.cp_r "spec/fixtures/#{@projectname}", 'tmp/aruba/'
|
15
|
+
FileUtils.mv "tmp/aruba/#{@projectname}/Gemfile_lock",
|
16
|
+
"tmp/aruba/#{@projectname}/Gemfile.lock"
|
15
17
|
expect(`ls tmp/aruba`).to match(@projectname)
|
16
18
|
end
|
17
19
|
|
@@ -3,11 +3,10 @@ def executing_gem_freshness
|
|
3
3
|
end
|
4
4
|
|
5
5
|
def gem_freshness_output
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
expect(`ls tmp/aruba`).to match('Gemfile.lock')
|
6
|
+
if @projectname
|
7
|
+
prep = "cd spec/fixtures/#{@projectname}/ && cp Gemfile_lock Gemfile.lock"
|
8
|
+
`#{prep} && bundle-audit check; rm -f Gemfile.lock`
|
9
|
+
else
|
10
|
+
fail NotImplementedError
|
11
|
+
end
|
13
12
|
end
|
@@ -3,8 +3,9 @@ def executing_code_complexity
|
|
3
3
|
end
|
4
4
|
|
5
5
|
def code_complexity_output
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
raw_output = command_output_for_project_or_file('flog -a -c -g -m')
|
7
|
+
raw_output.split("\n").reject do |line|
|
8
|
+
/total|average/.match(line) ||
|
9
|
+
Warder::CodeComplexityRunner::FLOG_SCORE > line.to_i
|
10
|
+
end.join("\n")
|
10
11
|
end
|
@@ -25,3 +25,13 @@ Then(/^warder detects (.+) (issues|violations)$/) do |what, _|
|
|
25
25
|
step "the output should contain \"#{string}\""
|
26
26
|
end
|
27
27
|
end
|
28
|
+
|
29
|
+
def command_output_for_project_or_file(cmd)
|
30
|
+
if @filename
|
31
|
+
`cd spec/fixtures/ && #{cmd} ./#{@filename}`
|
32
|
+
elsif @projectname
|
33
|
+
`cd spec/fixtures/#{@projectname} && #{cmd} ./`
|
34
|
+
else
|
35
|
+
fail NotImplementedError
|
36
|
+
end
|
37
|
+
end
|
data/lib/warder/version.rb
CHANGED
@@ -0,0 +1,82 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
actionmailer (4.0.0)
|
5
|
+
actionpack (= 4.0.0)
|
6
|
+
mail (~> 2.5.3)
|
7
|
+
actionpack (4.0.0)
|
8
|
+
activesupport (= 4.0.0)
|
9
|
+
builder (~> 3.1.0)
|
10
|
+
erubis (~> 2.7.0)
|
11
|
+
rack (~> 1.5.2)
|
12
|
+
rack-test (~> 0.6.2)
|
13
|
+
activemodel (4.0.0)
|
14
|
+
activesupport (= 4.0.0)
|
15
|
+
builder (~> 3.1.0)
|
16
|
+
activerecord (4.0.0)
|
17
|
+
activemodel (= 4.0.0)
|
18
|
+
activerecord-deprecated_finders (~> 1.0.2)
|
19
|
+
activesupport (= 4.0.0)
|
20
|
+
arel (~> 4.0.0)
|
21
|
+
activerecord-deprecated_finders (1.0.3)
|
22
|
+
activesupport (4.0.0)
|
23
|
+
i18n (~> 0.6, >= 0.6.4)
|
24
|
+
minitest (~> 4.2)
|
25
|
+
multi_json (~> 1.3)
|
26
|
+
thread_safe (~> 0.1)
|
27
|
+
tzinfo (~> 0.3.37)
|
28
|
+
arel (4.0.2)
|
29
|
+
atomic (1.1.14)
|
30
|
+
builder (3.1.4)
|
31
|
+
erubis (2.7.0)
|
32
|
+
hike (1.2.3)
|
33
|
+
i18n (0.6.9)
|
34
|
+
mail (2.5.4)
|
35
|
+
mime-types (~> 1.16)
|
36
|
+
treetop (~> 1.4.8)
|
37
|
+
memoizer (1.0.1)
|
38
|
+
mime-types (1.25.1)
|
39
|
+
minitest (4.7.5)
|
40
|
+
multi_json (1.8.4)
|
41
|
+
polyglot (0.3.3)
|
42
|
+
rack (1.5.2)
|
43
|
+
rack-test (0.6.2)
|
44
|
+
rack (>= 1.0)
|
45
|
+
rails (4.0.0)
|
46
|
+
actionmailer (= 4.0.0)
|
47
|
+
actionpack (= 4.0.0)
|
48
|
+
activerecord (= 4.0.0)
|
49
|
+
activesupport (= 4.0.0)
|
50
|
+
bundler (>= 1.3.0, < 2.0)
|
51
|
+
railties (= 4.0.0)
|
52
|
+
sprockets-rails (~> 2.0.0)
|
53
|
+
railties (4.0.0)
|
54
|
+
actionpack (= 4.0.0)
|
55
|
+
activesupport (= 4.0.0)
|
56
|
+
rake (>= 0.8.7)
|
57
|
+
thor (>= 0.18.1, < 2.0)
|
58
|
+
rake (10.1.1)
|
59
|
+
sprockets (2.10.1)
|
60
|
+
hike (~> 1.2)
|
61
|
+
multi_json (~> 1.0)
|
62
|
+
rack (~> 1.0)
|
63
|
+
tilt (~> 1.1, != 1.3.0)
|
64
|
+
sprockets-rails (2.0.1)
|
65
|
+
actionpack (>= 3.0)
|
66
|
+
activesupport (>= 3.0)
|
67
|
+
sprockets (~> 2.8)
|
68
|
+
thor (0.18.1)
|
69
|
+
thread_safe (0.1.3)
|
70
|
+
atomic
|
71
|
+
tilt (1.4.1)
|
72
|
+
treetop (1.4.15)
|
73
|
+
polyglot
|
74
|
+
polyglot (>= 0.3.1)
|
75
|
+
tzinfo (0.3.38)
|
76
|
+
|
77
|
+
PLATFORMS
|
78
|
+
ruby
|
79
|
+
|
80
|
+
DEPENDENCIES
|
81
|
+
ftpd (= 0.2.1)
|
82
|
+
rails (= 4.0.0)
|
@@ -3,13 +3,17 @@ class ApplicationController < ActionController::Base
|
|
3
3
|
# For APIs, you may want to use :null_session instead.
|
4
4
|
protect_from_forgery with: :exception
|
5
5
|
|
6
|
+
def hello
|
7
|
+
render text: 'Hello world!'
|
8
|
+
end
|
9
|
+
|
6
10
|
def welcome
|
7
11
|
@user = User.new(params[:first_name], params[:last_name], params[:email], params[:password], params[:password_confirmation])
|
8
12
|
if @user
|
9
13
|
@logged_in = true
|
10
14
|
render text: "Hello #{@user.full_name}!"
|
11
15
|
else
|
12
|
-
render text:
|
16
|
+
render text: 'Hello Anonymous!'
|
13
17
|
end
|
14
18
|
end
|
15
19
|
end
|
@@ -13,7 +13,8 @@ module Invalid
|
|
13
13
|
# -- all .rb files in that directory are automatically loaded.
|
14
14
|
|
15
15
|
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
16
|
-
# Run "rake -D time" for a list of tasks for finding time zone names.
|
16
|
+
# Run "rake -D time" for a list of tasks for finding time zone names.
|
17
|
+
# Default is UTC.
|
17
18
|
# config.time_zone = 'Central Time (US & Canada)'
|
18
19
|
|
19
20
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
@@ -14,7 +14,7 @@ Invalid::Application.configure do
|
|
14
14
|
|
15
15
|
# Configure static asset server for tests with Cache-Control for performance.
|
16
16
|
config.serve_static_assets = true
|
17
|
-
config.static_cache_control =
|
17
|
+
config.static_cache_control = 'public, max-age=3600'
|
18
18
|
|
19
19
|
# Show full error reports and disable caching.
|
20
20
|
config.consider_all_requests_local = true
|
@@ -9,4 +9,4 @@
|
|
9
9
|
|
10
10
|
# Make sure your secret_key_base is kept private
|
11
11
|
# if you're sharing your code publicly.
|
12
|
-
|
12
|
+
Valid::Application.config.secret_key_base = SecureRandom.hex(32)
|
@@ -0,0 +1,40 @@
|
|
1
|
+
##
|
2
|
+
# I am a dog.
|
3
|
+
|
4
|
+
class Dog
|
5
|
+
def x
|
6
|
+
return 1
|
7
|
+
end
|
8
|
+
|
9
|
+
def w
|
10
|
+
return 2 + q
|
11
|
+
end
|
12
|
+
|
13
|
+
private
|
14
|
+
|
15
|
+
def q
|
16
|
+
return 3
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
##
|
21
|
+
# I
|
22
|
+
# am
|
23
|
+
# a
|
24
|
+
# cat.
|
25
|
+
|
26
|
+
class Cat
|
27
|
+
def y
|
28
|
+
return 1
|
29
|
+
end
|
30
|
+
|
31
|
+
def z
|
32
|
+
return 2 + s
|
33
|
+
end
|
34
|
+
|
35
|
+
private
|
36
|
+
|
37
|
+
def s
|
38
|
+
return 3
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
actionmailer (4.0.4)
|
5
|
+
actionpack (= 4.0.4)
|
6
|
+
mail (~> 2.5.4)
|
7
|
+
actionpack (4.0.4)
|
8
|
+
activesupport (= 4.0.4)
|
9
|
+
builder (~> 3.1.0)
|
10
|
+
erubis (~> 2.7.0)
|
11
|
+
rack (~> 1.5.2)
|
12
|
+
rack-test (~> 0.6.2)
|
13
|
+
activemodel (4.0.4)
|
14
|
+
activesupport (= 4.0.4)
|
15
|
+
builder (~> 3.1.0)
|
16
|
+
activerecord (4.0.4)
|
17
|
+
activemodel (= 4.0.4)
|
18
|
+
activerecord-deprecated_finders (~> 1.0.2)
|
19
|
+
activesupport (= 4.0.4)
|
20
|
+
arel (~> 4.0.0)
|
21
|
+
activerecord-deprecated_finders (1.0.3)
|
22
|
+
activesupport (4.0.4)
|
23
|
+
i18n (~> 0.6, >= 0.6.9)
|
24
|
+
minitest (~> 4.2)
|
25
|
+
multi_json (~> 1.3)
|
26
|
+
thread_safe (~> 0.1)
|
27
|
+
tzinfo (~> 0.3.37)
|
28
|
+
arel (4.0.2)
|
29
|
+
builder (3.1.4)
|
30
|
+
erubis (2.7.0)
|
31
|
+
hike (1.2.3)
|
32
|
+
i18n (0.6.9)
|
33
|
+
mail (2.5.4)
|
34
|
+
mime-types (~> 1.16)
|
35
|
+
treetop (~> 1.4.8)
|
36
|
+
mime-types (1.25.1)
|
37
|
+
minitest (4.7.5)
|
38
|
+
multi_json (1.9.2)
|
39
|
+
polyglot (0.3.4)
|
40
|
+
rack (1.5.2)
|
41
|
+
rack-test (0.6.2)
|
42
|
+
rack (>= 1.0)
|
43
|
+
rails (4.0.4)
|
44
|
+
actionmailer (= 4.0.4)
|
45
|
+
actionpack (= 4.0.4)
|
46
|
+
activerecord (= 4.0.4)
|
47
|
+
activesupport (= 4.0.4)
|
48
|
+
bundler (>= 1.3.0, < 2.0)
|
49
|
+
railties (= 4.0.4)
|
50
|
+
sprockets-rails (~> 2.0.0)
|
51
|
+
railties (4.0.4)
|
52
|
+
actionpack (= 4.0.4)
|
53
|
+
activesupport (= 4.0.4)
|
54
|
+
rake (>= 0.8.7)
|
55
|
+
thor (>= 0.18.1, < 2.0)
|
56
|
+
rake (10.3.1)
|
57
|
+
sprockets (2.12.1)
|
58
|
+
hike (~> 1.2)
|
59
|
+
multi_json (~> 1.0)
|
60
|
+
rack (~> 1.0)
|
61
|
+
tilt (~> 1.1, != 1.3.0)
|
62
|
+
sprockets-rails (2.0.1)
|
63
|
+
actionpack (>= 3.0)
|
64
|
+
activesupport (>= 3.0)
|
65
|
+
sprockets (~> 2.8)
|
66
|
+
sqlite3 (1.3.9)
|
67
|
+
thor (0.19.1)
|
68
|
+
thread_safe (0.3.3)
|
69
|
+
tilt (1.4.1)
|
70
|
+
treetop (1.4.15)
|
71
|
+
polyglot
|
72
|
+
polyglot (>= 0.3.1)
|
73
|
+
tzinfo (0.3.39)
|
74
|
+
|
75
|
+
PLATFORMS
|
76
|
+
ruby
|
77
|
+
|
78
|
+
DEPENDENCIES
|
79
|
+
rails (~> 4.0.4)
|
80
|
+
sqlite3
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
|
-
# for example lib/tasks/capistrano.rake, and they will automatically be
|
2
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be
|
3
|
+
# available to Rake.
|
3
4
|
|
4
5
|
require File.expand_path('../config/application', __FILE__)
|
5
6
|
|
@@ -7,17 +7,23 @@ require 'rails/all'
|
|
7
7
|
Bundler.require(:default, Rails.env)
|
8
8
|
|
9
9
|
module Valid
|
10
|
+
# application config
|
10
11
|
class Application < Rails::Application
|
11
|
-
# Settings in config/environments/* take precedence over those specified
|
12
|
+
# Settings in config/environments/* take precedence over those specified
|
13
|
+
# here.
|
12
14
|
# Application configuration should go into files in config/initializers
|
13
15
|
# -- all .rb files in that directory are automatically loaded.
|
14
16
|
|
15
|
-
# Set Time.zone default to the specified zone and make Active Record
|
16
|
-
#
|
17
|
+
# Set Time.zone default to the specified zone and make Active Record
|
18
|
+
# auto-convert to this zone.
|
19
|
+
# Run "rake -D time" for a list of tasks for finding time zone names.
|
20
|
+
# Default is UTC.
|
17
21
|
# config.time_zone = 'Central Time (US & Canada)'
|
18
22
|
|
19
|
-
# The default locale is :en and all translations from
|
20
|
-
# config
|
23
|
+
# The default locale is :en and all translations from
|
24
|
+
# config/locales/*.rb,yml are auto loaded.
|
25
|
+
# config.i18n.load_path +=
|
26
|
+
# Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
21
27
|
# config.i18n.default_locale = :de
|
22
28
|
end
|
23
29
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
Valid::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in
|
2
|
+
# Settings specified here will take precedence over those in
|
3
|
+
# config/application.rb.
|
3
4
|
|
4
5
|
# In the development environment your application's code is reloaded on
|
5
6
|
# every request. This slows down response time but is perfect for development
|
@@ -1,5 +1,6 @@
|
|
1
1
|
Valid::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in
|
2
|
+
# Settings specified here will take precedence over those in
|
3
|
+
# config/application.rb.
|
3
4
|
|
4
5
|
# Code is not reloaded between requests.
|
5
6
|
config.cache_classes = true
|
@@ -16,7 +17,8 @@ Valid::Application.configure do
|
|
16
17
|
|
17
18
|
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
19
|
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
-
# For large-scale production use, consider using a caching reverse proxy like
|
20
|
+
# For large-scale production use, consider using a caching reverse proxy like
|
21
|
+
# nginx, varnish or squid.
|
20
22
|
# config.action_dispatch.rack_cache = true
|
21
23
|
|
22
24
|
# Disable Rails's static asset server (Apache or nginx will already do this).
|
@@ -39,7 +41,8 @@ Valid::Application.configure do
|
|
39
41
|
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
40
42
|
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
41
43
|
|
42
|
-
# Force all access to the app over SSL, use Strict-Transport-Security, and
|
44
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and
|
45
|
+
# use secure cookies.
|
43
46
|
# config.force_ssl = true
|
44
47
|
|
45
48
|
# Set to :debug to see everything in the log.
|
@@ -54,15 +57,18 @@ Valid::Application.configure do
|
|
54
57
|
# Use a different cache store in production.
|
55
58
|
# config.cache_store = :mem_cache_store
|
56
59
|
|
57
|
-
# Enable serving of images, stylesheets, and JavaScripts from an asset
|
60
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset
|
61
|
+
# server.
|
58
62
|
# config.action_controller.asset_host = "http://assets.example.com"
|
59
63
|
|
60
64
|
# Precompile additional assets.
|
61
|
-
# application.js, application.css, and all non-JS/CSS in app/assets folder
|
65
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder
|
66
|
+
# are already added.
|
62
67
|
# config.assets.precompile += %w( search.js )
|
63
68
|
|
64
69
|
# Ignore bad email addresses and do not raise email delivery errors.
|
65
|
-
# Set this to true and configure the email server for immediate delivery to
|
70
|
+
# Set this to true and configure the email server for immediate delivery to
|
71
|
+
# raise delivery errors.
|
66
72
|
# config.action_mailer.raise_delivery_errors = false
|
67
73
|
|
68
74
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
@@ -1,5 +1,6 @@
|
|
1
1
|
Valid::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in
|
2
|
+
# Settings specified here will take precedence over those in
|
3
|
+
# config/application.rb.
|
3
4
|
|
4
5
|
# The test environment is used exclusively to run your application's
|
5
6
|
# test suite. You never need to work with it otherwise. Remember that
|
@@ -14,7 +15,7 @@ Valid::Application.configure do
|
|
14
15
|
|
15
16
|
# Configure static asset server for tests with Cache-Control for performance.
|
16
17
|
config.serve_static_assets = true
|
17
|
-
config.static_cache_control =
|
18
|
+
config.static_cache_control = 'public, max-age=3600'
|
18
19
|
|
19
20
|
# Show full error reports and disable caching.
|
20
21
|
config.consider_all_requests_local = true
|
@@ -3,7 +3,8 @@
|
|
3
3
|
# This file contains settings for ActionController::ParamsWrapper which
|
4
4
|
# is enabled by default.
|
5
5
|
|
6
|
-
# Enable parameter wrapping for JSON. You can disable this by setting :format
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format
|
7
|
+
# to an empty array.
|
7
8
|
ActiveSupport.on_load(:action_controller) do
|
8
9
|
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
10
|
end
|
data/warder.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Warder::VERSION
|
9
9
|
spec.authors = ['Yura Tolstik']
|
10
10
|
spec.email = ['yltsrc@gmail.com']
|
11
|
-
spec.description = %q
|
12
|
-
spec.summary = %q
|
11
|
+
spec.description = %q(Warder of ruby code)
|
12
|
+
spec.summary = %q(Tool to help improve the quality of ruby code)
|
13
13
|
spec.homepage = 'https://github.com/yltsrc/warder'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
@@ -18,20 +18,20 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(/^(test|spec|features|cucumber)\//)
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency 'rubocop'
|
22
|
-
spec.add_dependency 'reek', '~> 1.3
|
23
|
-
spec.add_dependency 'flay', '~> 2.4
|
24
|
-
spec.add_dependency 'flog', '~> 4.2
|
25
|
-
spec.add_dependency 'mago', '~> 0.1
|
26
|
-
spec.add_dependency 'brakeman', '~> 2.
|
27
|
-
spec.add_dependency 'rails_best_practices', '~> 1.
|
28
|
-
spec.add_dependency 'sandi_meter', '~> 1.
|
29
|
-
spec.add_dependency 'bundler-audit', '~> 0.3
|
21
|
+
spec.add_dependency 'rubocop', '~> 0.18'
|
22
|
+
spec.add_dependency 'reek', '~> 1.3'
|
23
|
+
spec.add_dependency 'flay', '~> 2.4'
|
24
|
+
spec.add_dependency 'flog', '~> 4.2'
|
25
|
+
spec.add_dependency 'mago', '~> 0.1'
|
26
|
+
spec.add_dependency 'brakeman', '~> 2.4'
|
27
|
+
spec.add_dependency 'rails_best_practices', '~> 1.15'
|
28
|
+
spec.add_dependency 'sandi_meter', '~> 1.1'
|
29
|
+
spec.add_dependency 'bundler-audit', '~> 0.3'
|
30
30
|
|
31
31
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
32
|
-
spec.add_development_dependency 'rake'
|
33
|
-
spec.add_development_dependency 'rspec', '
|
34
|
-
spec.add_development_dependency 'cucumber'
|
35
|
-
spec.add_development_dependency 'aruba'
|
36
|
-
spec.add_development_dependency 'simplecov'
|
32
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
33
|
+
spec.add_development_dependency 'rspec', '~> 2.14'
|
34
|
+
spec.add_development_dependency 'cucumber', '~> 1.3'
|
35
|
+
spec.add_development_dependency 'aruba', '~> 0.5'
|
36
|
+
spec.add_development_dependency 'simplecov', '~> 0.8'
|
37
37
|
end
|
metadata
CHANGED
@@ -1,141 +1,141 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: warder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yura Tolstik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '0.18'
|
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: '0'
|
26
|
+
version: '0.18'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: reek
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.3
|
33
|
+
version: '1.3'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.3
|
40
|
+
version: '1.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: flay
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.4
|
47
|
+
version: '2.4'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.4
|
54
|
+
version: '2.4'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: flog
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 4.2
|
61
|
+
version: '4.2'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 4.2
|
68
|
+
version: '4.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mago
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.1
|
75
|
+
version: '0.1'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.1
|
82
|
+
version: '0.1'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: brakeman
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 2.
|
89
|
+
version: '2.4'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 2.
|
96
|
+
version: '2.4'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rails_best_practices
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: '1.15'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
110
|
+
version: '1.15'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: sandi_meter
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: '1.1'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: '1.1'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: bundler-audit
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.3
|
131
|
+
version: '0.3'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.3
|
138
|
+
version: '0.3'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: bundler
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,72 +154,72 @@ dependencies:
|
|
154
154
|
name: rake
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
159
|
+
version: '10.0'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
166
|
+
version: '10.0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: rspec
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- -
|
171
|
+
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: '2.14'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- -
|
178
|
+
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: '2.14'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: cucumber
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
185
|
+
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '
|
187
|
+
version: '1.3'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - "
|
192
|
+
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '
|
194
|
+
version: '1.3'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: aruba
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- - "
|
199
|
+
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: '0'
|
201
|
+
version: '0.5'
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- - "
|
206
|
+
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: '0'
|
208
|
+
version: '0.5'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: simplecov
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- - "
|
213
|
+
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: '0'
|
215
|
+
version: '0.8'
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- - "
|
220
|
+
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: '0'
|
222
|
+
version: '0.8'
|
223
223
|
description: Warder of ruby code
|
224
224
|
email:
|
225
225
|
- yltsrc@gmail.com
|
@@ -275,13 +275,12 @@ files:
|
|
275
275
|
- lib/warder/sandi_rules_runner.rb
|
276
276
|
- lib/warder/style_guide_runner.rb
|
277
277
|
- lib/warder/version.rb
|
278
|
-
- spec/fixtures/invalid_Gemfile
|
279
|
-
- spec/fixtures/invalid_Gemfile.lock
|
280
278
|
- spec/fixtures/invalid_code_complexity.rb
|
281
279
|
- spec/fixtures/invalid_code_duplication.rb
|
282
280
|
- spec/fixtures/invalid_code_smells.rb
|
283
281
|
- spec/fixtures/invalid_magick_numbers.rb
|
284
282
|
- spec/fixtures/invalid_rails_app/Gemfile
|
283
|
+
- spec/fixtures/invalid_rails_app/Gemfile_lock
|
285
284
|
- spec/fixtures/invalid_rails_app/Rakefile
|
286
285
|
- spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb
|
287
286
|
- spec/fixtures/invalid_rails_app/app/models/user.rb
|
@@ -303,12 +302,13 @@ files:
|
|
303
302
|
- spec/fixtures/invalid_rails_app/config/initializers/wrap_parameters.rb
|
304
303
|
- spec/fixtures/invalid_rails_app/config/locales/en.yml
|
305
304
|
- spec/fixtures/invalid_rails_app/config/routes.rb
|
305
|
+
- spec/fixtures/invalid_rails_app/lib/invalid_code_complexity.rb
|
306
|
+
- spec/fixtures/invalid_rails_app/lib/invalid_code_duplication.rb
|
306
307
|
- spec/fixtures/invalid_style_guide.rb
|
307
308
|
- spec/fixtures/strictly_invalid_style_guide.rb
|
308
309
|
- spec/fixtures/valid.rb
|
309
|
-
- spec/fixtures/valid_Gemfile
|
310
|
-
- spec/fixtures/valid_Gemfile.lock
|
311
310
|
- spec/fixtures/valid_rails_app/Gemfile
|
311
|
+
- spec/fixtures/valid_rails_app/Gemfile_lock
|
312
312
|
- spec/fixtures/valid_rails_app/Rakefile
|
313
313
|
- spec/fixtures/valid_rails_app/app/controllers/application_controller.rb
|
314
314
|
- spec/fixtures/valid_rails_app/app/views/layouts/application.html.erb
|
@@ -320,9 +320,7 @@ files:
|
|
320
320
|
- spec/fixtures/valid_rails_app/config/environments/development.rb
|
321
321
|
- spec/fixtures/valid_rails_app/config/environments/production.rb
|
322
322
|
- spec/fixtures/valid_rails_app/config/environments/test.rb
|
323
|
-
- spec/fixtures/valid_rails_app/config/initializers/backtrace_silencers.rb
|
324
323
|
- spec/fixtures/valid_rails_app/config/initializers/filter_parameter_logging.rb
|
325
|
-
- spec/fixtures/valid_rails_app/config/initializers/inflections.rb
|
326
324
|
- spec/fixtures/valid_rails_app/config/initializers/mime_types.rb
|
327
325
|
- spec/fixtures/valid_rails_app/config/initializers/secret_token.rb
|
328
326
|
- spec/fixtures/valid_rails_app/config/initializers/session_store.rb
|
@@ -351,10 +349,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
351
349
|
version: '0'
|
352
350
|
requirements: []
|
353
351
|
rubyforge_project:
|
354
|
-
rubygems_version: 2.2.
|
352
|
+
rubygems_version: 2.2.2
|
355
353
|
signing_key:
|
356
354
|
specification_version: 4
|
357
|
-
summary:
|
355
|
+
summary: Tool to help improve the quality of ruby code
|
358
356
|
test_files:
|
359
357
|
- features/checks_for_all_issues.feature
|
360
358
|
- features/checks_for_rails_best_practices.feature
|
@@ -381,13 +379,12 @@ test_files:
|
|
381
379
|
- features/step_definitions/validates_style_guide_steps.rb
|
382
380
|
- features/support/env.rb
|
383
381
|
- features/validates_style_guide.feature
|
384
|
-
- spec/fixtures/invalid_Gemfile
|
385
|
-
- spec/fixtures/invalid_Gemfile.lock
|
386
382
|
- spec/fixtures/invalid_code_complexity.rb
|
387
383
|
- spec/fixtures/invalid_code_duplication.rb
|
388
384
|
- spec/fixtures/invalid_code_smells.rb
|
389
385
|
- spec/fixtures/invalid_magick_numbers.rb
|
390
386
|
- spec/fixtures/invalid_rails_app/Gemfile
|
387
|
+
- spec/fixtures/invalid_rails_app/Gemfile_lock
|
391
388
|
- spec/fixtures/invalid_rails_app/Rakefile
|
392
389
|
- spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb
|
393
390
|
- spec/fixtures/invalid_rails_app/app/models/user.rb
|
@@ -409,12 +406,13 @@ test_files:
|
|
409
406
|
- spec/fixtures/invalid_rails_app/config/initializers/wrap_parameters.rb
|
410
407
|
- spec/fixtures/invalid_rails_app/config/locales/en.yml
|
411
408
|
- spec/fixtures/invalid_rails_app/config/routes.rb
|
409
|
+
- spec/fixtures/invalid_rails_app/lib/invalid_code_complexity.rb
|
410
|
+
- spec/fixtures/invalid_rails_app/lib/invalid_code_duplication.rb
|
412
411
|
- spec/fixtures/invalid_style_guide.rb
|
413
412
|
- spec/fixtures/strictly_invalid_style_guide.rb
|
414
413
|
- spec/fixtures/valid.rb
|
415
|
-
- spec/fixtures/valid_Gemfile
|
416
|
-
- spec/fixtures/valid_Gemfile.lock
|
417
414
|
- spec/fixtures/valid_rails_app/Gemfile
|
415
|
+
- spec/fixtures/valid_rails_app/Gemfile_lock
|
418
416
|
- spec/fixtures/valid_rails_app/Rakefile
|
419
417
|
- spec/fixtures/valid_rails_app/app/controllers/application_controller.rb
|
420
418
|
- spec/fixtures/valid_rails_app/app/views/layouts/application.html.erb
|
@@ -426,9 +424,7 @@ test_files:
|
|
426
424
|
- spec/fixtures/valid_rails_app/config/environments/development.rb
|
427
425
|
- spec/fixtures/valid_rails_app/config/environments/production.rb
|
428
426
|
- spec/fixtures/valid_rails_app/config/environments/test.rb
|
429
|
-
- spec/fixtures/valid_rails_app/config/initializers/backtrace_silencers.rb
|
430
427
|
- spec/fixtures/valid_rails_app/config/initializers/filter_parameter_logging.rb
|
431
|
-
- spec/fixtures/valid_rails_app/config/initializers/inflections.rb
|
432
428
|
- spec/fixtures/valid_rails_app/config/initializers/mime_types.rb
|
433
429
|
- spec/fixtures/valid_rails_app/config/initializers/secret_token.rb
|
434
430
|
- spec/fixtures/valid_rails_app/config/initializers/session_store.rb
|
data/spec/fixtures/valid_Gemfile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
-
|
6
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Add new inflection rules using the following format. Inflections
|
4
|
-
# are locale specific, and you may define rules for as many different
|
5
|
-
# locales as you wish. All of these examples are active by default:
|
6
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
-
# inflect.singular /^(ox)en/i, '\1'
|
9
|
-
# inflect.irregular 'person', 'people'
|
10
|
-
# inflect.uncountable %w( fish sheep )
|
11
|
-
# end
|
12
|
-
|
13
|
-
# These inflection rules are supported but not enabled by default:
|
14
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
-
# inflect.acronym 'RESTful'
|
16
|
-
# end
|