tuning 4.0.1.2 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +4 -4
- data/Rakefile +1 -3
- data/lib/tuning/railtie.rb +2 -0
- data/lib/tuning/version.rb +1 -1
- metadata +15 -125
- data/test/controller_test.rb +0 -22
- data/test/dummy/Rakefile +0 -5
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/controllers/users_controller.rb +0 -7
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/mailers/user_mailer.rb +0 -7
- data/test/dummy/app/models/session.rb +0 -6
- data/test/dummy/app/models/user.rb +0 -5
- data/test/dummy/app/views/layouts/application.html.erb +0 -2
- data/test/dummy/app/views/layouts/market.html.erb +0 -3
- data/test/dummy/app/views/user_mailer/invite.text.erb +0 -7
- data/test/dummy/app/views/users/index.json.ruby +0 -3
- data/test/dummy/bin/bundle +0 -4
- data/test/dummy/bin/rails +0 -5
- data/test/dummy/bin/rake +0 -5
- data/test/dummy/bin/setup +0 -30
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -25
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/database.yml +0 -10
- data/test/dummy/config/database.yml.travis +0 -3
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -41
- data/test/dummy/config/environments/production.rb +0 -79
- data/test/dummy/config/environments/test.rb +0 -42
- data/test/dummy/config/initializers/assets.rb +0 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/routes.rb +0 -3
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/db/migrate/20161020200126_create_users.rb +0 -9
- data/test/dummy/db/schema.rb +0 -25
- data/test/dummy/log/development.log +0 -63
- data/test/dummy/log/test.log +0 -6565
- data/test/dummy/public/404.html +0 -61
- data/test/dummy/public/422.html +0 -61
- data/test/dummy/public/500.html +0 -60
- data/test/dummy/public/favicon.ico +0 -0
- data/test/helper_test.rb +0 -51
- data/test/mailer_test.rb +0 -13
- data/test/record_test.rb +0 -16
- data/test/test_helper.rb +0 -14
- data/test/validation_test.rb +0 -172
- data/test/view_test.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec88f4ec1c837b01d9448279aa384a93d28a1863
|
4
|
+
data.tar.gz: aec3025e9539fc8e6738a784359e49e3c93b0477
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eec54bc9c6e847bb606ce22bfcb59d2c7e39b8a657032cd10276a0ae103fe15fe66c4e90e7a68ab52d848ae5a1563217229cd9ed8e7d2a0cddb17732764a549c
|
7
|
+
data.tar.gz: a2bdeb9522583671a6641e624eec54a30a59a5bc2de58fd83afaaee48d155da9c1b55603d890b9dfd0ec611b7892bacfb408dd7531480c5983016e5edb84dcc3
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/tuning.svg)](http://badge.fury.io/rb/tuning)
|
2
|
-
[![Code Climate](https://codeclimate.com/github/
|
3
|
-
[![Build Status](https://travis-ci.org/
|
4
|
-
[![Dependency Status](https://gemnasium.com/
|
2
|
+
[![Code Climate](https://codeclimate.com/github/museways/tuning/badges/gpa.svg)](https://codeclimate.com/github/museways/tuning)
|
3
|
+
[![Build Status](https://travis-ci.org/museways/tuning.svg)](https://travis-ci.org/museways/tuning)
|
4
|
+
[![Dependency Status](https://gemnasium.com/museways/tuning.svg)](https://gemnasium.com/museways/tuning)
|
5
5
|
|
6
6
|
# Tuning
|
7
7
|
|
@@ -145,7 +145,7 @@ NOTE: Take a look at lib/tuning/locales to know the i18n keys.
|
|
145
145
|
|
146
146
|
Any issue, pull request, comment of any kind is more than welcome!
|
147
147
|
|
148
|
-
I will mainly ensure compatibility to
|
148
|
+
I will mainly ensure compatibility to Rails, AWS, PostgreSQL, Redis, Elasticsearch and FreeBSD
|
149
149
|
|
150
150
|
## Credits
|
151
151
|
|
data/Rakefile
CHANGED
@@ -4,16 +4,14 @@ rescue LoadError
|
|
4
4
|
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
5
|
end
|
6
6
|
|
7
|
-
|
7
|
+
require 'bundler/gem_tasks'
|
8
8
|
|
9
9
|
require 'rake/testtask'
|
10
10
|
|
11
11
|
Rake::TestTask.new(:test) do |t|
|
12
|
-
t.libs << 'lib'
|
13
12
|
t.libs << 'test'
|
14
13
|
t.pattern = 'test/**/*_test.rb'
|
15
14
|
t.verbose = false
|
16
|
-
t.warning = false
|
17
15
|
end
|
18
16
|
|
19
17
|
task default: :test
|
data/lib/tuning/railtie.rb
CHANGED
data/lib/tuning/version.rb
CHANGED
metadata
CHANGED
@@ -1,66 +1,60 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tuning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mmontossi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 4.2.0
|
20
|
-
- - "<"
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
19
|
+
version: '5.1'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 4.2.0
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
26
|
+
version: '5.1'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: pg
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
33
|
+
version: '0.21'
|
40
34
|
type: :development
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
38
|
- - "~>"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0.
|
40
|
+
version: '0.21'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: mocha
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
45
|
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1.
|
47
|
+
version: '1.2'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
51
|
requirements:
|
58
52
|
- - "~>"
|
59
53
|
- !ruby/object:Gem::Version
|
60
|
-
version: '1.
|
54
|
+
version: '1.2'
|
61
55
|
description: Common tools used in rails extracted into a gem.
|
62
56
|
email:
|
63
|
-
-
|
57
|
+
- hi@museways.com
|
64
58
|
executables: []
|
65
59
|
extensions: []
|
66
60
|
extra_rdoc_files: []
|
@@ -81,59 +75,7 @@ files:
|
|
81
75
|
- lib/tuning/validations/count.rb
|
82
76
|
- lib/tuning/validations/time.rb
|
83
77
|
- lib/tuning/version.rb
|
84
|
-
|
85
|
-
- test/dummy/Rakefile
|
86
|
-
- test/dummy/app/assets/javascripts/application.js
|
87
|
-
- test/dummy/app/assets/stylesheets/application.css
|
88
|
-
- test/dummy/app/controllers/application_controller.rb
|
89
|
-
- test/dummy/app/controllers/users_controller.rb
|
90
|
-
- test/dummy/app/helpers/application_helper.rb
|
91
|
-
- test/dummy/app/mailers/user_mailer.rb
|
92
|
-
- test/dummy/app/models/session.rb
|
93
|
-
- test/dummy/app/models/user.rb
|
94
|
-
- test/dummy/app/views/layouts/application.html.erb
|
95
|
-
- test/dummy/app/views/layouts/market.html.erb
|
96
|
-
- test/dummy/app/views/user_mailer/invite.text.erb
|
97
|
-
- test/dummy/app/views/users/index.json.ruby
|
98
|
-
- test/dummy/bin/bundle
|
99
|
-
- test/dummy/bin/rails
|
100
|
-
- test/dummy/bin/rake
|
101
|
-
- test/dummy/bin/setup
|
102
|
-
- test/dummy/config.ru
|
103
|
-
- test/dummy/config/application.rb
|
104
|
-
- test/dummy/config/boot.rb
|
105
|
-
- test/dummy/config/database.yml
|
106
|
-
- test/dummy/config/database.yml.travis
|
107
|
-
- test/dummy/config/environment.rb
|
108
|
-
- test/dummy/config/environments/development.rb
|
109
|
-
- test/dummy/config/environments/production.rb
|
110
|
-
- test/dummy/config/environments/test.rb
|
111
|
-
- test/dummy/config/initializers/assets.rb
|
112
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
113
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
114
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
115
|
-
- test/dummy/config/initializers/inflections.rb
|
116
|
-
- test/dummy/config/initializers/mime_types.rb
|
117
|
-
- test/dummy/config/initializers/session_store.rb
|
118
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
119
|
-
- test/dummy/config/locales/en.yml
|
120
|
-
- test/dummy/config/routes.rb
|
121
|
-
- test/dummy/config/secrets.yml
|
122
|
-
- test/dummy/db/migrate/20161020200126_create_users.rb
|
123
|
-
- test/dummy/db/schema.rb
|
124
|
-
- test/dummy/log/development.log
|
125
|
-
- test/dummy/log/test.log
|
126
|
-
- test/dummy/public/404.html
|
127
|
-
- test/dummy/public/422.html
|
128
|
-
- test/dummy/public/500.html
|
129
|
-
- test/dummy/public/favicon.ico
|
130
|
-
- test/helper_test.rb
|
131
|
-
- test/mailer_test.rb
|
132
|
-
- test/record_test.rb
|
133
|
-
- test/test_helper.rb
|
134
|
-
- test/validation_test.rb
|
135
|
-
- test/view_test.rb
|
136
|
-
homepage: https://github.com/mmontossi/tuning
|
78
|
+
homepage: https://github.com/museways/tuning
|
137
79
|
licenses:
|
138
80
|
- MIT
|
139
81
|
metadata: {}
|
@@ -145,7 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
87
|
requirements:
|
146
88
|
- - ">="
|
147
89
|
- !ruby/object:Gem::Version
|
148
|
-
version:
|
90
|
+
version: '0'
|
149
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
92
|
requirements:
|
151
93
|
- - ">="
|
@@ -153,60 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
95
|
version: '0'
|
154
96
|
requirements: []
|
155
97
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.6.13
|
157
99
|
signing_key:
|
158
100
|
specification_version: 4
|
159
101
|
summary: Tuning for rails.
|
160
|
-
test_files:
|
161
|
-
- test/controller_test.rb
|
162
|
-
- test/dummy/app/assets/javascripts/application.js
|
163
|
-
- test/dummy/app/assets/stylesheets/application.css
|
164
|
-
- test/dummy/app/controllers/application_controller.rb
|
165
|
-
- test/dummy/app/controllers/users_controller.rb
|
166
|
-
- test/dummy/app/helpers/application_helper.rb
|
167
|
-
- test/dummy/app/mailers/user_mailer.rb
|
168
|
-
- test/dummy/app/models/session.rb
|
169
|
-
- test/dummy/app/models/user.rb
|
170
|
-
- test/dummy/app/views/layouts/application.html.erb
|
171
|
-
- test/dummy/app/views/layouts/market.html.erb
|
172
|
-
- test/dummy/app/views/user_mailer/invite.text.erb
|
173
|
-
- test/dummy/app/views/users/index.json.ruby
|
174
|
-
- test/dummy/bin/bundle
|
175
|
-
- test/dummy/bin/rails
|
176
|
-
- test/dummy/bin/rake
|
177
|
-
- test/dummy/bin/setup
|
178
|
-
- test/dummy/config/application.rb
|
179
|
-
- test/dummy/config/boot.rb
|
180
|
-
- test/dummy/config/database.yml
|
181
|
-
- test/dummy/config/database.yml.travis
|
182
|
-
- test/dummy/config/environment.rb
|
183
|
-
- test/dummy/config/environments/development.rb
|
184
|
-
- test/dummy/config/environments/production.rb
|
185
|
-
- test/dummy/config/environments/test.rb
|
186
|
-
- test/dummy/config/initializers/assets.rb
|
187
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
188
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
189
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
190
|
-
- test/dummy/config/initializers/inflections.rb
|
191
|
-
- test/dummy/config/initializers/mime_types.rb
|
192
|
-
- test/dummy/config/initializers/session_store.rb
|
193
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
194
|
-
- test/dummy/config/locales/en.yml
|
195
|
-
- test/dummy/config/routes.rb
|
196
|
-
- test/dummy/config/secrets.yml
|
197
|
-
- test/dummy/config.ru
|
198
|
-
- test/dummy/db/migrate/20161020200126_create_users.rb
|
199
|
-
- test/dummy/db/schema.rb
|
200
|
-
- test/dummy/log/development.log
|
201
|
-
- test/dummy/log/test.log
|
202
|
-
- test/dummy/public/404.html
|
203
|
-
- test/dummy/public/422.html
|
204
|
-
- test/dummy/public/500.html
|
205
|
-
- test/dummy/public/favicon.ico
|
206
|
-
- test/dummy/Rakefile
|
207
|
-
- test/helper_test.rb
|
208
|
-
- test/mailer_test.rb
|
209
|
-
- test/record_test.rb
|
210
|
-
- test/test_helper.rb
|
211
|
-
- test/validation_test.rb
|
212
|
-
- test/view_test.rb
|
102
|
+
test_files: []
|
data/test/controller_test.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class ControllerTest < ActiveSupport::TestCase
|
4
|
-
|
5
|
-
test 'render' do
|
6
|
-
controller = ActionController::Base.new
|
7
|
-
controller.expects(:run_callbacks).with(:render)
|
8
|
-
controller.render
|
9
|
-
end
|
10
|
-
|
11
|
-
test 'callbacks' do
|
12
|
-
controller = ActionController::Base
|
13
|
-
%w(before after around).each do |callback|
|
14
|
-
['', 'append_', 'prepend_', 'skip_'].each do |prefix|
|
15
|
-
assert_nothing_raised do
|
16
|
-
controller.send "#{prefix}#{callback}_render", :foo
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
end
|
data/test/dummy/Rakefile
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require_tree .
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
-
* file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
data/test/dummy/bin/bundle
DELETED
data/test/dummy/bin/rails
DELETED
data/test/dummy/bin/rake
DELETED
data/test/dummy/bin/setup
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'pathname'
|
4
|
-
|
5
|
-
# path to your application root.
|
6
|
-
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
7
|
-
|
8
|
-
Dir.chdir APP_ROOT do
|
9
|
-
# This script is a starting point to setup your application.
|
10
|
-
# Add necessary setup steps to this file:
|
11
|
-
|
12
|
-
puts '== Installing dependencies =='
|
13
|
-
system 'gem install bundler --conservative'
|
14
|
-
system 'bundle check || bundle install'
|
15
|
-
|
16
|
-
# puts "\n== Copying sample files =="
|
17
|
-
# unless File.exist?('config/database.yml')
|
18
|
-
# system 'cp config/database.yml.sample config/database.yml'
|
19
|
-
# end
|
20
|
-
|
21
|
-
puts "\n== Preparing database =="
|
22
|
-
system 'bin/rake db:setup'
|
23
|
-
|
24
|
-
puts "\n== Removing old logs and tempfiles =="
|
25
|
-
system 'rm -f log/*'
|
26
|
-
system 'rm -rf tmp/cache'
|
27
|
-
|
28
|
-
puts "\n== Restarting application server =="
|
29
|
-
system 'touch tmp/restart.txt'
|
30
|
-
end
|