gretel 4.0.1 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -6
  3. data/.travis.yml +1 -1
  4. data/CHANGELOG.md +4 -0
  5. data/README.md +9 -49
  6. data/Rakefile +3 -7
  7. data/gretel.gemspec +7 -10
  8. data/lib/gretel/renderer.rb +6 -2
  9. data/lib/gretel/version.rb +1 -1
  10. metadata +12 -114
  11. data/test/dummy/Rakefile +0 -7
  12. data/test/dummy/app/assets/config/manifest.js +0 -0
  13. data/test/dummy/app/assets/javascripts/application.js +0 -15
  14. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  15. data/test/dummy/app/controllers/application_controller.rb +0 -3
  16. data/test/dummy/app/helpers/application_helper.rb +0 -5
  17. data/test/dummy/app/mailers/.gitkeep +0 -0
  18. data/test/dummy/app/models/.gitkeep +0 -0
  19. data/test/dummy/app/models/issue.rb +0 -3
  20. data/test/dummy/app/models/project.rb +0 -3
  21. data/test/dummy/app/views/breadcrumbs/site.rb +0 -3
  22. data/test/dummy/config.ru +0 -4
  23. data/test/dummy/config/application.rb +0 -14
  24. data/test/dummy/config/boot.rb +0 -10
  25. data/test/dummy/config/breadcrumbs.rb +0 -3
  26. data/test/dummy/config/breadcrumbs/test_crumbs.rb +0 -85
  27. data/test/dummy/config/database.yml +0 -25
  28. data/test/dummy/config/environment.rb +0 -5
  29. data/test/dummy/config/environments/development.rb +0 -2
  30. data/test/dummy/config/environments/production.rb +0 -2
  31. data/test/dummy/config/environments/test.rb +0 -2
  32. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  33. data/test/dummy/config/initializers/inflections.rb +0 -15
  34. data/test/dummy/config/initializers/mime_types.rb +0 -5
  35. data/test/dummy/config/initializers/secret_token.rb +0 -7
  36. data/test/dummy/config/initializers/session_store.rb +0 -8
  37. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  38. data/test/dummy/config/locales/en.yml +0 -5
  39. data/test/dummy/config/routes.rb +0 -11
  40. data/test/dummy/db/migrate/20130122163007_create_projects.rb +0 -9
  41. data/test/dummy/db/migrate/20130122163051_create_issues.rb +0 -10
  42. data/test/dummy/db/schema.rb +0 -28
  43. data/test/dummy/lib/assets/.gitkeep +0 -0
  44. data/test/dummy/log/.gitkeep +0 -0
  45. data/test/dummy/public/404.html +0 -26
  46. data/test/dummy/public/422.html +0 -26
  47. data/test/dummy/public/500.html +0 -25
  48. data/test/dummy/public/favicon.ico +0 -0
  49. data/test/dummy/script/rails +0 -6
  50. data/test/fixtures/issues.yml +0 -4
  51. data/test/fixtures/projects.yml +0 -3
  52. data/test/gretel_test.rb +0 -23
  53. data/test/helper_methods_test.rb +0 -555
  54. data/test/test_helper.rb +0 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5738580a72561b3be8158c37561fa8f2b85b6438b127bc110d70aaac60ec16a8
4
- data.tar.gz: 11cf40314f61f69ae51b1bb95c8c078ec3d35c325a3af34a75906d343163fb28
3
+ metadata.gz: 7c9acb3e1bababfdec129ddf28041956e1d9cedab4168612403bc45e6f6be2ce
4
+ data.tar.gz: 5d8a64b3af412616443a6f2fae688b3cff882cd4e39aebeb071c551a573fc2ca
5
5
  SHA512:
6
- metadata.gz: a4c29b164147c61f5f5585782a0026af9f532ac45be4ad7822a7816ebbea8949c7e7b0448fc683df7e35d6a82a38817c592fd559560b43ac043e788b5585974f
7
- data.tar.gz: c13b14cfa25d40d80e0cb615c01d90bd4d97ff68e8c08fc86245aa18818e3962abd3a111da36d6ee13908b8acd6489a45deeb11ec65406260f3114e2ba96290b
6
+ metadata.gz: dfd59117fcad2e1459647cbf42bb52fb063fc49b49070ae5a8f7372b58f4f95317036597ca474f7c00fb17dcbd1809f9d503066495cd8d52d510342db6ad95a0
7
+ data.tar.gz: 4466f946506b36678860eb17b922243fbcd4bc848f6c8fcd93ebb588dae02df4f9a78c934aa884d9a1dedf586fbc721128591696f887bafa9c88372859eb2877
data/.gitignore CHANGED
@@ -12,14 +12,14 @@ lib/bundler/man
12
12
  pkg
13
13
  rdoc
14
14
  spec/reports
15
- test/tmp
16
- test/version_tmp
15
+ spec/tmp
16
+ spec/version_tmp
17
17
  tmp
18
18
  log/*.log
19
- test/dummy/db/*.sqlite3
20
- test/dummy/log/*.log
21
- test/dummy/tmp/
22
- test/dummy/.sass-cache
19
+ spec/dummy/db/*.sqlite3
20
+ spec/dummy/log/*.log
21
+ spec/dummy/tmp/
22
+ spec/dummy/.sass-cache
23
23
  .DS_Store
24
24
 
25
25
  /coverage/index.html
@@ -9,6 +9,6 @@ env:
9
9
  - RAILS="~> '5.2.0'"
10
10
  - RAILS="~> '6.0.0'"
11
11
  before_script:
12
- - "cd test/dummy; rake db:migrate; rake db:test:prepare; cd ../.."
12
+ - "cd spec/dummy; rake db:migrate; rake db:test:prepare; cd ../.."
13
13
  notifications:
14
14
  email: false
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 4.0.2
4
+ * The return value of `breadcrumbs` is `html_safe` now (via #22)
5
+ * For the slim template engine users: You don't need to use `==` instead of `=` for `breadcrumbs`
6
+
3
7
  ## Version 4.0.1
4
8
  * Replaces data-vocabulary markup as google doesn't support it and now uses schema.org markup (via #17)
5
9
 
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- <a href="http://travis-ci.org/kzkn/gretel"><img src="https://secure.travis-ci.org/kzkn/gretel.png" alt="Build Status" /></a>
1
+ [![Gem Version](https://badge.fury.io/rb/gretel.svg)](http://badge.fury.io/rb/gretel)
2
+ [![Build Status](https://travis-ci.org/kzkn/gretel.svg?branch=master)](https://travis-ci.org/kzkn/gretel)
2
3
 
3
4
  <img src="http://i.imgur.com/CAKEaBM.png" alt="Handle breadcrumb trails... like a boss :)" />
4
5
 
@@ -104,12 +105,12 @@ These are the styles you can use with `breadcrumbs style: :xx`.
104
105
 
105
106
  Style | Description
106
107
  -------------- | -----------
107
- `:inline` | Renders each link by itself with `&rsaquo;` as the seperator.
108
+ `:inline` | Default. Renders each link by itself with `&rsaquo;` as the seperator.
108
109
  `:ol` | Renders the links in `<li>` elements contained in an outer `<ol>`.
109
110
  `:ul` | Renders the links in `<li>` elements contained in an outer `<ul>`.
110
- `:bootstrap` | Renders the links for use in [Twitter Bootstrap](http://getbootstrap.com/).
111
+ `:bootstrap` | Renders the links for use in [Bootstrap v3](https://getbootstrap.com/docs/3.4/).
111
112
  `:bootstrap4` | Renders the links for use in [Bootstrap v4](https://getbootstrap.com/).
112
- `:foundation5` | Renders the links for use in [Foundation 5](http://foundation.zurb.com/).
113
+ `:foundation5` | Renders the links for use in [Foundation 5](https://get.foundation/).
113
114
 
114
115
  Or you can build the breadcrumbs manually for full customization; see below.
115
116
 
@@ -291,56 +292,15 @@ breadcrumbs do |links|
291
292
  end
292
293
  ```
293
294
 
294
- ### Automatic reloading of breadcrumb configuration files
295
-
296
- Since Gretel version 2.1.0, the breadcrumb configuration files are now reloaded in the Rails development environment if they change. In other environments, like production, the files are loaded once, when first needed.
297
-
298
- ### Setting breadcrumb trails
299
-
300
- The [gretel-trails](https://github.com/lassebunk/gretel-trails) gem can handle adding and hiding trails from the URL automatically. This makes it possible to link back to a different breadcrumb trail than the one specified in your breadcrumb, for example if you have a
301
- store with products that have a default parent to the category breadcrumb, but when visiting from the reviews section, you want to link back to the reviews instead.
302
-
303
- You can apply trails to select links by adding a simple JS selector (`js-append-trail` or another you choose), and after each page load it hides the trail from the URL, so the server sees it but the users don't.
304
-
305
- Check out the gem [here](https://github.com/lassebunk/gretel-trails).
306
-
307
-
308
- ## Upgrading from version 2.0 or below
309
-
310
- Instead of using the initializer that in Gretel version 2.0 and below required restarting the application after breadcrumb configuration changes, the configuration of the breadcrumbs is now loaded from `config/breadcrumbs.rb` (and `config/breadcrumbs/*.rb` if you want to split your breadcrumbs configuration across multiple files).
311
- In the Rails development environment, these files are automatically reloaded when changed.
312
-
313
- Using the initializer (e.g. `config/initializers/breadcrumbs.rb`) was deprecated in Gretel version 2.1.0 and removed in version 3.0. It raises an error if you try to use it.
314
-
315
- To update to the latest version of Gretel, use `bundle update gretel`. Then remove the `Gretel::Crumbs.layout do ... end` block, so instead of:
316
-
317
- ```ruby
318
- Gretel::Crumbs.layout do
319
- crumb :root do
320
- link "Home", root_path
321
- end
322
- end
323
- ```
324
-
325
- in the initializer, you write:
326
-
327
- ```ruby
328
- crumb :root do
329
- link "Home", root_path
330
- end
331
- ```
332
-
333
- in `config/breadcrumbs.rb`.
334
-
335
295
  ## Documentation
336
296
 
337
- * [Full documentation](http://rubydoc.info/gems/gretel)
297
+ * [Full documentation](https://rubydoc.info/gems/gretel)
338
298
  * [Changelog](https://github.com/kzkn/gretel/blob/master/CHANGELOG.md)
339
- * [Tutorial on using Gretel](http://www.sitepoint.com/breadcrumbs-rails-gretel/) (Sitepoint)
299
+ * [Tutorial on using Gretel](https://www.sitepoint.com/breadcrumbs-rails-gretel/) (Sitepoint)
340
300
 
341
301
  ## Versioning
342
302
 
343
- Follows [semantic versioning](http://semver.org/).
303
+ Follows [semantic versioning](https://semver.org/).
344
304
 
345
305
  ## Contributing
346
306
 
@@ -352,7 +312,7 @@ To contribute:
352
312
  2. Create your feature branch (`git checkout -b my-new-feature`)
353
313
  3. Make your changes
354
314
  4. Add/Fix tests
355
- 5. Prepare database for testing: `cd test/dummy; rake db:migrate; rake db:test:prepare; cd ../..`
315
+ 5. Prepare database for testing: `cd spec/dummy; rake db:migrate; rake db:test:prepare; cd ../..`
356
316
  6. Run `rake` to make sure all tests pass
357
317
  7. Be sure to check in the changes to `coverage/coverage.txt`
358
318
  8. Commit your changes (`git commit -am 'Add new feature'`)
data/Rakefile CHANGED
@@ -1,10 +1,6 @@
1
- require 'rake/testtask'
2
1
  require 'bundler/gem_tasks'
2
+ require "rspec/core/rake_task"
3
3
 
4
- Rake::TestTask.new do |t|
5
- t.libs << "test"
6
- t.test_files = FileList['test/**/*_test.rb']
7
- t.verbose = true
8
- end
4
+ RSpec::Core::RakeTask.new(:spec)
9
5
 
10
- task default: :test
6
+ task default: :spec
@@ -1,7 +1,4 @@
1
- # -*- encoding: utf-8 -*-
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'gretel/version'
1
+ require_relative 'lib/gretel/version'
5
2
 
6
3
  Gem::Specification.new do |gem|
7
4
  gem.name = "gretel"
@@ -13,14 +10,14 @@ Gem::Specification.new do |gem|
13
10
  gem.homepage = "http://github.com/kzkn/gretel"
14
11
  gem.license = "MIT"
15
12
 
16
- gem.files = `git ls-files`.split($/)
17
- gem.test_files = gem.files.grep(%r{^test/})
13
+ gem.files = Dir.chdir(File.expand_path('..', __FILE__)) do
14
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
15
+ end
18
16
  gem.require_paths = ["lib"]
19
17
 
20
18
  gem.add_dependency "rails", ">= 5.1"
21
19
  gem.add_development_dependency "sqlite3"
22
- gem.add_development_dependency "jquery-rails"
23
- gem.add_development_dependency "test-unit", "~> 3.0"
24
- gem.add_development_dependency "simplecov", "~> 0.18.0"
25
- gem.add_development_dependency "simplecov-erb", "~> 0.1"
20
+ gem.add_development_dependency "rspec-rails"
21
+ gem.add_development_dependency "simplecov"
22
+ gem.add_development_dependency "simplecov-erb"
26
23
  end
@@ -195,8 +195,7 @@ module Gretel
195
195
  else
196
196
  content_tag(options[:container_tag], html, id: options[:id], class: options[:class])
197
197
  end
198
-
199
- end
198
+ end
200
199
 
201
200
  alias :to_s :render
202
201
 
@@ -253,6 +252,11 @@ module Gretel
253
252
  def method_missing(method, *args, &block)
254
253
  context.send(method, *args, &block)
255
254
  end
255
+
256
+ # Avoid unnecessary html escaping by template engines.
257
+ def html_safe?
258
+ true
259
+ end
256
260
  end
257
261
  end
258
262
  end
@@ -1,3 +1,3 @@
1
1
  module Gretel
2
- VERSION = "4.0.1"
2
+ VERSION = "4.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gretel
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lasse Bunk
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-08-14 00:00:00.000000000 Z
12
+ date: 2020-08-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -40,7 +40,7 @@ dependencies:
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
- name: jquery-rails
43
+ name: rspec-rails
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - ">="
@@ -53,48 +53,34 @@ dependencies:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
- - !ruby/object:Gem::Dependency
57
- name: test-unit
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - "~>"
61
- - !ruby/object:Gem::Version
62
- version: '3.0'
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '3.0'
70
56
  - !ruby/object:Gem::Dependency
71
57
  name: simplecov
72
58
  requirement: !ruby/object:Gem::Requirement
73
59
  requirements:
74
- - - "~>"
60
+ - - ">="
75
61
  - !ruby/object:Gem::Version
76
- version: 0.18.0
62
+ version: '0'
77
63
  type: :development
78
64
  prerelease: false
79
65
  version_requirements: !ruby/object:Gem::Requirement
80
66
  requirements:
81
- - - "~>"
67
+ - - ">="
82
68
  - !ruby/object:Gem::Version
83
- version: 0.18.0
69
+ version: '0'
84
70
  - !ruby/object:Gem::Dependency
85
71
  name: simplecov-erb
86
72
  requirement: !ruby/object:Gem::Requirement
87
73
  requirements:
88
- - - "~>"
74
+ - - ">="
89
75
  - !ruby/object:Gem::Version
90
- version: '0.1'
76
+ version: '0'
91
77
  type: :development
92
78
  prerelease: false
93
79
  version_requirements: !ruby/object:Gem::Requirement
94
80
  requirements:
95
- - - "~>"
81
+ - - ">="
96
82
  - !ruby/object:Gem::Version
97
- version: '0.1'
83
+ version: '0'
98
84
  description: Gretel is a Ruby on Rails plugin that makes it easy yet flexible to create
99
85
  breadcrumbs.
100
86
  email:
@@ -123,50 +109,6 @@ files:
123
109
  - lib/gretel/resettable.rb
124
110
  - lib/gretel/version.rb
125
111
  - lib/gretel/view_helpers.rb
126
- - test/dummy/Rakefile
127
- - test/dummy/app/assets/config/manifest.js
128
- - test/dummy/app/assets/javascripts/application.js
129
- - test/dummy/app/assets/stylesheets/application.css
130
- - test/dummy/app/controllers/application_controller.rb
131
- - test/dummy/app/helpers/application_helper.rb
132
- - test/dummy/app/mailers/.gitkeep
133
- - test/dummy/app/models/.gitkeep
134
- - test/dummy/app/models/issue.rb
135
- - test/dummy/app/models/project.rb
136
- - test/dummy/app/views/breadcrumbs/site.rb
137
- - test/dummy/config.ru
138
- - test/dummy/config/application.rb
139
- - test/dummy/config/boot.rb
140
- - test/dummy/config/breadcrumbs.rb
141
- - test/dummy/config/breadcrumbs/test_crumbs.rb
142
- - test/dummy/config/database.yml
143
- - test/dummy/config/environment.rb
144
- - test/dummy/config/environments/development.rb
145
- - test/dummy/config/environments/production.rb
146
- - test/dummy/config/environments/test.rb
147
- - test/dummy/config/initializers/backtrace_silencers.rb
148
- - test/dummy/config/initializers/inflections.rb
149
- - test/dummy/config/initializers/mime_types.rb
150
- - test/dummy/config/initializers/secret_token.rb
151
- - test/dummy/config/initializers/session_store.rb
152
- - test/dummy/config/initializers/wrap_parameters.rb
153
- - test/dummy/config/locales/en.yml
154
- - test/dummy/config/routes.rb
155
- - test/dummy/db/migrate/20130122163007_create_projects.rb
156
- - test/dummy/db/migrate/20130122163051_create_issues.rb
157
- - test/dummy/db/schema.rb
158
- - test/dummy/lib/assets/.gitkeep
159
- - test/dummy/log/.gitkeep
160
- - test/dummy/public/404.html
161
- - test/dummy/public/422.html
162
- - test/dummy/public/500.html
163
- - test/dummy/public/favicon.ico
164
- - test/dummy/script/rails
165
- - test/fixtures/issues.yml
166
- - test/fixtures/projects.yml
167
- - test/gretel_test.rb
168
- - test/helper_methods_test.rb
169
- - test/test_helper.rb
170
112
  homepage: http://github.com/kzkn/gretel
171
113
  licenses:
172
114
  - MIT
@@ -190,48 +132,4 @@ rubygems_version: 3.0.3
190
132
  signing_key:
191
133
  specification_version: 4
192
134
  summary: Flexible Ruby on Rails breadcrumbs plugin.
193
- test_files:
194
- - test/dummy/Rakefile
195
- - test/dummy/app/assets/config/manifest.js
196
- - test/dummy/app/assets/javascripts/application.js
197
- - test/dummy/app/assets/stylesheets/application.css
198
- - test/dummy/app/controllers/application_controller.rb
199
- - test/dummy/app/helpers/application_helper.rb
200
- - test/dummy/app/mailers/.gitkeep
201
- - test/dummy/app/models/.gitkeep
202
- - test/dummy/app/models/issue.rb
203
- - test/dummy/app/models/project.rb
204
- - test/dummy/app/views/breadcrumbs/site.rb
205
- - test/dummy/config.ru
206
- - test/dummy/config/application.rb
207
- - test/dummy/config/boot.rb
208
- - test/dummy/config/breadcrumbs.rb
209
- - test/dummy/config/breadcrumbs/test_crumbs.rb
210
- - test/dummy/config/database.yml
211
- - test/dummy/config/environment.rb
212
- - test/dummy/config/environments/development.rb
213
- - test/dummy/config/environments/production.rb
214
- - test/dummy/config/environments/test.rb
215
- - test/dummy/config/initializers/backtrace_silencers.rb
216
- - test/dummy/config/initializers/inflections.rb
217
- - test/dummy/config/initializers/mime_types.rb
218
- - test/dummy/config/initializers/secret_token.rb
219
- - test/dummy/config/initializers/session_store.rb
220
- - test/dummy/config/initializers/wrap_parameters.rb
221
- - test/dummy/config/locales/en.yml
222
- - test/dummy/config/routes.rb
223
- - test/dummy/db/migrate/20130122163007_create_projects.rb
224
- - test/dummy/db/migrate/20130122163051_create_issues.rb
225
- - test/dummy/db/schema.rb
226
- - test/dummy/lib/assets/.gitkeep
227
- - test/dummy/log/.gitkeep
228
- - test/dummy/public/404.html
229
- - test/dummy/public/422.html
230
- - test/dummy/public/500.html
231
- - test/dummy/public/favicon.ico
232
- - test/dummy/script/rails
233
- - test/fixtures/issues.yml
234
- - test/fixtures/projects.yml
235
- - test/gretel_test.rb
236
- - test/helper_methods_test.rb
237
- - test/test_helper.rb
135
+ test_files: []
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env rake
2
- # Add your own tasks in files placed in lib/tasks ending in .rake,
3
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
-
5
- require File.expand_path('../config/application', __FILE__)
6
-
7
- Dummy::Application.load_tasks
File without changes
@@ -1,15 +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 vendor/assets/javascripts of plugins, if any, 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
- // the compiled file.
9
- //
10
- // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
- // GO AFTER THE REQUIRES BELOW.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //= require_tree .
@@ -1,13 +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 vendor/assets/stylesheets of plugins, if any, 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 top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require_self
12
- *= require_tree .
13
- */
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,5 +0,0 @@
1
- module ApplicationHelper
2
- def times_two(text)
3
- text * 2
4
- end
5
- end