meta_description 0.0.3 → 0.0.4
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/app/helpers/meta_description/description_helper.rb +2 -0
- data/lib/meta_description/version.rb +1 -1
- data/test/dummy/app/controllers/blah_controller.rb +8 -0
- data/test/dummy/app/views/blah/index.html.erb +1 -0
- data/test/dummy/config/meta_descriptions.yml +2 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/log/development.log +83 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- metadata +6 -12
- data/test/dummy/app/assets/javascripts/home.js +0 -2
- data/test/dummy/app/assets/stylesheets/home.css +0 -4
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/helpers/home_helper.rb +0 -2
- data/test/dummy/test/controllers/home_controller_test.rb +0 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 613935d83c6dd8f40edf9ae3aa2b571bc50cb454
|
|
4
|
+
data.tar.gz: d75b2494795e3b8099bf38b2a2795fb2e3a9832e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8da653b32887d10b354f388f1b388faee0a2f1a3104248fc6b3576d120d7d4c32b3d7bb7cc01bd78bbac5b61794dccd972606764bae03d0fe857e0ec748e3629
|
|
7
|
+
data.tar.gz: 3a663b8337cd8d10500d0230bacb33d4bc01764284700464c321311daffb7ca706c78ba4cf0380d66bb82a6b70f13bcf3a8a53e8a1cc407e7d6d067606addbb5
|
|
@@ -7,6 +7,8 @@ module MetaDescription
|
|
|
7
7
|
def description_text
|
|
8
8
|
if controllers_descriptions.present? && actions_description.present?
|
|
9
9
|
actions_description
|
|
10
|
+
elsif controllers_descriptions.present? && controllers_descriptions['all'].present?
|
|
11
|
+
controllers_descriptions['all']
|
|
10
12
|
else
|
|
11
13
|
default_description
|
|
12
14
|
end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<h3>this page uses an 'all' description</h3>
|
data/test/dummy/config/routes.rb
CHANGED
|
@@ -1267,3 +1267,86 @@ Started GET "/assets/application-4bd47aa5304440469cdae59cbeafed2c.css?body=1" fo
|
|
|
1267
1267
|
|
|
1268
1268
|
|
|
1269
1269
|
Started GET "/assets/application-5443590960d4ffbddd98865912808a33.js?body=1" for 127.0.0.1 at 2015-04-03 17:13:35 -0700
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
Started GET "/" for 127.0.0.1 at 2015-04-06 11:02:26 -0700
|
|
1273
|
+
Processing by HomeController#index as HTML
|
|
1274
|
+
Rendered home/index.html.erb within layouts/application (1.3ms)
|
|
1275
|
+
Completed 200 OK in 36ms (Views: 35.6ms | ActiveRecord: 0.0ms)
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for 127.0.0.1 at 2015-04-06 11:02:26 -0700
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
Started GET "/assets/application-5239015df4ee7c66e1719761a86bff3c.js?body=1" for 127.0.0.1 at 2015-04-06 11:02:26 -0700
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
Started GET "/blah" for 127.0.0.1 at 2015-04-06 11:02:33 -0700
|
|
1285
|
+
|
|
1286
|
+
ActionController::RoutingError (No route matches [GET] "/blah"):
|
|
1287
|
+
actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
|
1288
|
+
actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
|
1289
|
+
railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app'
|
|
1290
|
+
railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call'
|
|
1291
|
+
activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
|
1292
|
+
activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged'
|
|
1293
|
+
activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged'
|
|
1294
|
+
railties (4.2.1) lib/rails/rack/logger.rb:20:in `call'
|
|
1295
|
+
actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
|
1296
|
+
rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
|
|
1297
|
+
rack (1.6.0) lib/rack/runtime.rb:18:in `call'
|
|
1298
|
+
activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
|
1299
|
+
rack (1.6.0) lib/rack/lock.rb:17:in `call'
|
|
1300
|
+
actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call'
|
|
1301
|
+
rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
|
|
1302
|
+
railties (4.2.1) lib/rails/engine.rb:518:in `call'
|
|
1303
|
+
railties (4.2.1) lib/rails/application.rb:164:in `call'
|
|
1304
|
+
rack (1.6.0) lib/rack/lock.rb:17:in `call'
|
|
1305
|
+
rack (1.6.0) lib/rack/content_length.rb:15:in `call'
|
|
1306
|
+
rack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'
|
|
1307
|
+
/Users/ylhert/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
|
|
1308
|
+
/Users/ylhert/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
|
|
1309
|
+
/Users/ylhert/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
Rendered /Users/ylhert/.rvm/gems/ruby-2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms)
|
|
1313
|
+
Rendered /Users/ylhert/.rvm/gems/ruby-2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
|
|
1314
|
+
Rendered /Users/ylhert/.rvm/gems/ruby-2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (6.7ms)
|
|
1315
|
+
Rendered /Users/ylhert/.rvm/gems/ruby-2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
|
|
1316
|
+
Rendered /Users/ylhert/.rvm/gems/ruby-2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (29.4ms)
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
Started GET "/blah" for 127.0.0.1 at 2015-04-06 11:02:58 -0700
|
|
1320
|
+
Processing by BlahController#index as HTML
|
|
1321
|
+
Rendered blah/index.html.erb within layouts/application (0.2ms)
|
|
1322
|
+
Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for 127.0.0.1 at 2015-04-06 11:02:58 -0700
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
Started GET "/assets/application-5239015df4ee7c66e1719761a86bff3c.js?body=1" for 127.0.0.1 at 2015-04-06 11:02:58 -0700
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
Started GET "/blah" for 127.0.0.1 at 2015-04-06 11:04:01 -0700
|
|
1332
|
+
Processing by BlahController#index as HTML
|
|
1333
|
+
Rendered blah/index.html.erb within layouts/application (0.2ms)
|
|
1334
|
+
Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for 127.0.0.1 at 2015-04-06 11:04:01 -0700
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
Started GET "/assets/application-5239015df4ee7c66e1719761a86bff3c.js?body=1" for 127.0.0.1 at 2015-04-06 11:04:01 -0700
|
|
1341
|
+
|
|
1342
|
+
|
|
1343
|
+
Started GET "/blah" for 127.0.0.1 at 2015-04-06 11:04:21 -0700
|
|
1344
|
+
Processing by BlahController#index as HTML
|
|
1345
|
+
Rendered blah/index.html.erb within layouts/application (0.7ms)
|
|
1346
|
+
Completed 200 OK in 21ms (Views: 21.2ms | ActiveRecord: 0.0ms)
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
Started GET "/blah1" for 127.0.0.1 at 2015-04-06 11:04:26 -0700
|
|
1350
|
+
Processing by BlahController#blah1 as HTML
|
|
1351
|
+
Rendered blah/index.html.erb within layouts/application (0.0ms)
|
|
1352
|
+
Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: meta_description
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yan Lhert
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -62,13 +62,11 @@ files:
|
|
|
62
62
|
- test/dummy/README.rdoc
|
|
63
63
|
- test/dummy/Rakefile
|
|
64
64
|
- test/dummy/app/assets/javascripts/application.js
|
|
65
|
-
- test/dummy/app/assets/javascripts/home.js
|
|
66
65
|
- test/dummy/app/assets/stylesheets/application.css
|
|
67
|
-
- test/dummy/app/assets/stylesheets/home.css
|
|
68
66
|
- test/dummy/app/controllers/application_controller.rb
|
|
67
|
+
- test/dummy/app/controllers/blah_controller.rb
|
|
69
68
|
- test/dummy/app/controllers/home_controller.rb
|
|
70
|
-
- test/dummy/app/
|
|
71
|
-
- test/dummy/app/helpers/home_helper.rb
|
|
69
|
+
- test/dummy/app/views/blah/index.html.erb
|
|
72
70
|
- test/dummy/app/views/home/index.html.erb
|
|
73
71
|
- test/dummy/app/views/home/no_description.erb
|
|
74
72
|
- test/dummy/app/views/layouts/application.html.erb
|
|
@@ -103,7 +101,6 @@ files:
|
|
|
103
101
|
- test/dummy/public/422.html
|
|
104
102
|
- test/dummy/public/500.html
|
|
105
103
|
- test/dummy/public/favicon.ico
|
|
106
|
-
- test/dummy/test/controllers/home_controller_test.rb
|
|
107
104
|
- test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
|
108
105
|
- test/dummy/tmp/cache/assets/development/sprockets/1c9faaf28d05409b88ad3113374d613c
|
|
109
106
|
- test/dummy/tmp/cache/assets/development/sprockets/2822de3b22c28bd5e718c9bf500457b2
|
|
@@ -144,13 +141,11 @@ specification_version: 4
|
|
|
144
141
|
summary: Metadescription management
|
|
145
142
|
test_files:
|
|
146
143
|
- test/dummy/app/assets/javascripts/application.js
|
|
147
|
-
- test/dummy/app/assets/javascripts/home.js
|
|
148
144
|
- test/dummy/app/assets/stylesheets/application.css
|
|
149
|
-
- test/dummy/app/assets/stylesheets/home.css
|
|
150
145
|
- test/dummy/app/controllers/application_controller.rb
|
|
146
|
+
- test/dummy/app/controllers/blah_controller.rb
|
|
151
147
|
- test/dummy/app/controllers/home_controller.rb
|
|
152
|
-
- test/dummy/app/
|
|
153
|
-
- test/dummy/app/helpers/home_helper.rb
|
|
148
|
+
- test/dummy/app/views/blah/index.html.erb
|
|
154
149
|
- test/dummy/app/views/home/index.html.erb
|
|
155
150
|
- test/dummy/app/views/home/no_description.erb
|
|
156
151
|
- test/dummy/app/views/layouts/application.html.erb
|
|
@@ -187,7 +182,6 @@ test_files:
|
|
|
187
182
|
- test/dummy/public/favicon.ico
|
|
188
183
|
- test/dummy/Rakefile
|
|
189
184
|
- test/dummy/README.rdoc
|
|
190
|
-
- test/dummy/test/controllers/home_controller_test.rb
|
|
191
185
|
- test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
|
192
186
|
- test/dummy/tmp/cache/assets/development/sprockets/1c9faaf28d05409b88ad3113374d613c
|
|
193
187
|
- test/dummy/tmp/cache/assets/development/sprockets/2822de3b22c28bd5e718c9bf500457b2
|