tuning 4.0.0.1 → 4.0.1.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/README.md +9 -0
- data/lib/tuning/extensions/action_view/handlers.rb +30 -0
- data/lib/tuning/railtie.rb +10 -0
- data/lib/tuning/version.rb +1 -1
- data/lib/tuning.rb +1 -0
- data/test/dummy/app/controllers/users_controller.rb +7 -0
- data/test/dummy/app/views/users/index.json.ruby +3 -0
- data/test/dummy/app/views/users/index.xml.ruby +3 -0
- data/test/dummy/config/routes.rb +1 -54
- data/test/dummy/log/test.log +2317 -0
- data/test/view_test.rb +17 -0
- metadata +11 -2
data/test/view_test.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class ViewTest < ActionDispatch::IntegrationTest
|
4
|
+
|
5
|
+
test 'handler' do
|
6
|
+
users = %w(mario juan).map do |name|
|
7
|
+
User.create(name: name).slice :name
|
8
|
+
end
|
9
|
+
|
10
|
+
get '/users.json'
|
11
|
+
assert_equal users.to_json, response.body
|
12
|
+
|
13
|
+
get '/users.xml'
|
14
|
+
assert_equal users.to_xml, response.body
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tuning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0
|
4
|
+
version: 4.0.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-
|
11
|
+
date: 2016-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -72,6 +72,7 @@ files:
|
|
72
72
|
- lib/tuning/extensions/action_controller/base.rb
|
73
73
|
- lib/tuning/extensions/action_mailer/base.rb
|
74
74
|
- lib/tuning/extensions/action_view/base.rb
|
75
|
+
- lib/tuning/extensions/action_view/handlers.rb
|
75
76
|
- lib/tuning/extensions/active_record/base.rb
|
76
77
|
- lib/tuning/locales/en.yml
|
77
78
|
- lib/tuning/locales/es.yml
|
@@ -85,6 +86,7 @@ files:
|
|
85
86
|
- test/dummy/app/assets/javascripts/application.js
|
86
87
|
- test/dummy/app/assets/stylesheets/application.css
|
87
88
|
- test/dummy/app/controllers/application_controller.rb
|
89
|
+
- test/dummy/app/controllers/users_controller.rb
|
88
90
|
- test/dummy/app/helpers/application_helper.rb
|
89
91
|
- test/dummy/app/mailers/user_mailer.rb
|
90
92
|
- test/dummy/app/models/session.rb
|
@@ -92,6 +94,8 @@ files:
|
|
92
94
|
- test/dummy/app/views/layouts/application.html.erb
|
93
95
|
- test/dummy/app/views/layouts/market.html.erb
|
94
96
|
- test/dummy/app/views/user_mailer/invite.text.erb
|
97
|
+
- test/dummy/app/views/users/index.json.ruby
|
98
|
+
- test/dummy/app/views/users/index.xml.ruby
|
95
99
|
- test/dummy/bin/bundle
|
96
100
|
- test/dummy/bin/rails
|
97
101
|
- test/dummy/bin/rake
|
@@ -129,6 +133,7 @@ files:
|
|
129
133
|
- test/record_test.rb
|
130
134
|
- test/test_helper.rb
|
131
135
|
- test/validation_test.rb
|
136
|
+
- test/view_test.rb
|
132
137
|
homepage: https://github.com/mmontossi/tuning
|
133
138
|
licenses:
|
134
139
|
- MIT
|
@@ -158,6 +163,7 @@ test_files:
|
|
158
163
|
- test/dummy/app/assets/javascripts/application.js
|
159
164
|
- test/dummy/app/assets/stylesheets/application.css
|
160
165
|
- test/dummy/app/controllers/application_controller.rb
|
166
|
+
- test/dummy/app/controllers/users_controller.rb
|
161
167
|
- test/dummy/app/helpers/application_helper.rb
|
162
168
|
- test/dummy/app/mailers/user_mailer.rb
|
163
169
|
- test/dummy/app/models/session.rb
|
@@ -165,6 +171,8 @@ test_files:
|
|
165
171
|
- test/dummy/app/views/layouts/application.html.erb
|
166
172
|
- test/dummy/app/views/layouts/market.html.erb
|
167
173
|
- test/dummy/app/views/user_mailer/invite.text.erb
|
174
|
+
- test/dummy/app/views/users/index.json.ruby
|
175
|
+
- test/dummy/app/views/users/index.xml.ruby
|
168
176
|
- test/dummy/bin/bundle
|
169
177
|
- test/dummy/bin/rails
|
170
178
|
- test/dummy/bin/rake
|
@@ -203,3 +211,4 @@ test_files:
|
|
203
211
|
- test/record_test.rb
|
204
212
|
- test/test_helper.rb
|
205
213
|
- test/validation_test.rb
|
214
|
+
- test/view_test.rb
|