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.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +4 -4
  4. data/Rakefile +1 -3
  5. data/lib/tuning/railtie.rb +2 -0
  6. data/lib/tuning/version.rb +1 -1
  7. metadata +15 -125
  8. data/test/controller_test.rb +0 -22
  9. data/test/dummy/Rakefile +0 -5
  10. data/test/dummy/app/assets/javascripts/application.js +0 -13
  11. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  12. data/test/dummy/app/controllers/application_controller.rb +0 -5
  13. data/test/dummy/app/controllers/users_controller.rb +0 -7
  14. data/test/dummy/app/helpers/application_helper.rb +0 -2
  15. data/test/dummy/app/mailers/user_mailer.rb +0 -7
  16. data/test/dummy/app/models/session.rb +0 -6
  17. data/test/dummy/app/models/user.rb +0 -5
  18. data/test/dummy/app/views/layouts/application.html.erb +0 -2
  19. data/test/dummy/app/views/layouts/market.html.erb +0 -3
  20. data/test/dummy/app/views/user_mailer/invite.text.erb +0 -7
  21. data/test/dummy/app/views/users/index.json.ruby +0 -3
  22. data/test/dummy/bin/bundle +0 -4
  23. data/test/dummy/bin/rails +0 -5
  24. data/test/dummy/bin/rake +0 -5
  25. data/test/dummy/bin/setup +0 -30
  26. data/test/dummy/config.ru +0 -4
  27. data/test/dummy/config/application.rb +0 -25
  28. data/test/dummy/config/boot.rb +0 -5
  29. data/test/dummy/config/database.yml +0 -10
  30. data/test/dummy/config/database.yml.travis +0 -3
  31. data/test/dummy/config/environment.rb +0 -5
  32. data/test/dummy/config/environments/development.rb +0 -41
  33. data/test/dummy/config/environments/production.rb +0 -79
  34. data/test/dummy/config/environments/test.rb +0 -42
  35. data/test/dummy/config/initializers/assets.rb +0 -11
  36. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  37. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  38. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  39. data/test/dummy/config/initializers/inflections.rb +0 -16
  40. data/test/dummy/config/initializers/mime_types.rb +0 -4
  41. data/test/dummy/config/initializers/session_store.rb +0 -3
  42. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  43. data/test/dummy/config/locales/en.yml +0 -23
  44. data/test/dummy/config/routes.rb +0 -3
  45. data/test/dummy/config/secrets.yml +0 -22
  46. data/test/dummy/db/migrate/20161020200126_create_users.rb +0 -9
  47. data/test/dummy/db/schema.rb +0 -25
  48. data/test/dummy/log/development.log +0 -63
  49. data/test/dummy/log/test.log +0 -6565
  50. data/test/dummy/public/404.html +0 -61
  51. data/test/dummy/public/422.html +0 -61
  52. data/test/dummy/public/500.html +0 -60
  53. data/test/dummy/public/favicon.ico +0 -0
  54. data/test/helper_test.rb +0 -51
  55. data/test/mailer_test.rb +0 -13
  56. data/test/record_test.rb +0 -16
  57. data/test/test_helper.rb +0 -14
  58. data/test/validation_test.rb +0 -172
  59. data/test/view_test.rb +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79882765907f92915179dc3d6ef85b6d3c1f4de3
4
- data.tar.gz: 9c9b4c01138eaaf35b7a19a4747e7ad5df416953
3
+ metadata.gz: ec88f4ec1c837b01d9448279aa384a93d28a1863
4
+ data.tar.gz: aec3025e9539fc8e6738a784359e49e3c93b0477
5
5
  SHA512:
6
- metadata.gz: dc0a003d4a1efcf21cd705c5b37734348c4fca1835a8c3942b0cd57b72bbd042c45509e46df30ddf380823742a7a59a9fff8097d101ce4e4348f413e0056748d
7
- data.tar.gz: ad3d0d0c3f4d21f70b4305c283f62dfba42d00a91a2d073aa772639036ec692d26a22b5508038cf50bb8fa2b0cb88d0892e6679e603eda2d6e985d3c350b7842
6
+ metadata.gz: eec54bc9c6e847bb606ce22bfcb59d2c7e39b8a657032cd10276a0ae103fe15fe66c4e90e7a68ab52d848ae5a1563217229cd9ed8e7d2a0cddb17732764a549c
7
+ data.tar.gz: a2bdeb9522583671a6641e624eec54a30a59a5bc2de58fd83afaaee48d155da9c1b55603d890b9dfd0ec611b7892bacfb408dd7531480c5983016e5edb84dcc3
@@ -1,4 +1,4 @@
1
- Copyright 2016 Mathías Montossi
1
+ Copyright 2017 Mathías Montossi
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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/mmontossi/tuning/badges/gpa.svg)](https://codeclimate.com/github/mmontossi/tuning)
3
- [![Build Status](https://travis-ci.org/mmontossi/tuning.svg)](https://travis-ci.org/mmontossi/tuning)
4
- [![Dependency Status](https://gemnasium.com/mmontossi/tuning.svg)](https://gemnasium.com/mmontossi/tuning)
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 PostgreSQL, AWS, Redis, Elasticsearch, FreeBSD and Memcached. 
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
- Bundler::GemHelper.install_tasks
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
@@ -47,9 +47,11 @@ module Tuning
47
47
  end
48
48
  end
49
49
 
50
+ =begin
50
51
  initializer 'tuning.i18n' do
51
52
  I18n.load_path += Dir[File.expand_path('../locales/*.yml', __FILE__)]
52
53
  end
54
+ =end
53
55
 
54
56
  end
55
57
  end
@@ -1,5 +1,5 @@
1
1
  module Tuning
2
2
 
3
- VERSION = '4.0.1.2'
3
+ VERSION = '5.1.0'
4
4
 
5
5
  end
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.0.1.2
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: 2016-12-15 00:00:00.000000000 Z
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: 4.3.0
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: 4.3.0
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.18'
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.18'
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.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.1'
54
+ version: '1.2'
61
55
  description: Common tools used in rails extracted into a gem.
62
56
  email:
63
- - mmontossi@gmail.com
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
- - test/controller_test.rb
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: 2.0.0
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.5.1
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: []
@@ -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
@@ -1,5 +0,0 @@
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 available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
- Rails.application.load_tasks
@@ -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
- */
@@ -1,5 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
@@ -1,7 +0,0 @@
1
- class UsersController < ApplicationController
2
-
3
- def index
4
- @users = User.all
5
- end
6
-
7
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,7 +0,0 @@
1
- class UserMailer < ActionMailer::Base
2
-
3
- def invite(recipient)
4
- mail to: recipient
5
- end
6
-
7
- end
@@ -1,6 +0,0 @@
1
- class Session
2
- include ActiveModel::Model
3
-
4
- attr_accessor :list, :password, :created_at, :updated_at
5
-
6
- end
@@ -1,5 +0,0 @@
1
- class User < ActiveRecord::Base
2
-
3
- attr_accessor :password, :list
4
-
5
- end
@@ -1,2 +0,0 @@
1
- <!DOCTYPE html>
2
- <%= yield %>
@@ -1,3 +0,0 @@
1
- <%= extending :application do %>
2
- <p>content</p>
3
- <% end %>
@@ -1,7 +0,0 @@
1
- Hi there,
2
-
3
- Please come check our website!
4
-
5
-
6
-
7
- -- Signature
@@ -1,3 +0,0 @@
1
- @users.map do |user|
2
- user.slice :name
3
- end
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
4
- load Gem.bin_path('bundler', 'bundle')
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- APP_PATH = File.expand_path('../../config/application', __FILE__)
4
- require_relative '../config/boot'
5
- require 'rails/commands'
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require_relative '../config/boot'
4
- require 'rake'
5
- Rake.application.run
@@ -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