Advertisement
Dan42

Possibly requiring kwargs upgrade

Sep 10th, 2019
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.14 KB | None | 0 0
  1. gems/newrelic_rpm-6.6.0.358/test/agent_helper.rb
  2. def assert_block(*msgs)
  3. assert yield, *msgs
  4. gems/erubis-2.7.0/benchmark/bench.rb
  5. def print(*args)
  6. $stderr.print(*args)
  7. gems/erubis-2.7.0/benchmark/bench.rb
  8. def print(*args)
  9. $stderr.print(*args)
  10. gems/launchy-2.4.3/tasks/this.rb
  11. def project_path( *relative_path )
  12. project_root.join( *relative_path )
  13. gems/yard-0.9.20/spec/code_objects/macro_object_spec.rb
  14. def create(*args)
  15. MacroObject.create(*args) end
  16. gems/yard-0.9.20/spec/handlers/legacy_base_spec.rb
  17. def tokval(code, *types)
  18. @handler.send(:tokval, TokenList.new(code).first, *types)
  19. gems/yard-0.9.20/spec/handlers/legacy_base_spec.rb
  20. def tokval_list(code, *types)
  21. @handler.send(:tokval_list, TokenList.new(code), *types)
  22. gems/yard-0.9.20/spec/templates/engine_spec.rb
  23. def loads_template(*args)
  24. expect(Engine).to receive(:template).with(*args).and_return(@template)
  25. gems/yard-0.9.20/spec/cli/server_spec.rb
  26. def run(*args)
  27. @cli.run(*args.flatten)
  28. gems/yard-0.9.20/spec/cli/config_spec.rb
  29. def run(*args)
  30. @config.run(*args)
  31. gems/tins-1.21.1/examples/turing.rb
  32. def step(*tapes)
  33. run(*tapes)
  34. gems/tins-1.21.1/examples/turing.rb
  35. def run(*tape)
  36. @tape = Tape.new(*tape)
  37. gems/tins-1.21.1/examples/recipe.rb
  38. def method_missing(name, *args)
  39. @ingredients << Object.const_get(name).new(*args)
  40. gems/raindrops-0.19.0/setup.rb
  41. def command(*args)
  42. system(*args) or raise RuntimeError,
  43. gems/raindrops-0.19.0/setup.rb
  44. def ruby(*args)
  45. command config('rubyprog'), *args
  46. gems/httpclient-2.8.3/test/test_auth.rb
  47. def self.decode_utf16le(*arg)
  48. EncodeUtil.decode_utf16le(*arg)
  49. gems/redis-activesupport-5.2.0/test/active_support/cache/redis_store_test.rb
  50. def instantiate_store(*addresses)
  51. ActiveSupport::Cache::RedisStore.new(*addresses).instance_variable_get(:@data)
  52. gems/declarative-option-0.1.0/test/option_test.rb
  53. def Option(*args)
  54. Declarative::Option(*args)
  55. gems/oj-3.9.1/test/json_gem/json_addition_test.rb
  56. def to_json(*args)
  57. }.to_json(*args)
  58. gems/oj-3.9.1/test/json_gem/json_addition_test.rb
  59. def to_json(*args)
  60. }.to_json(*args)
  61. gems/oj-3.9.1/test/json_gem/json_addition_test.rb
  62. def to_json(*args)
  63. }.to_json(*args)
  64. gems/oj-3.9.1/test/json_gem/json_addition_test.rb
  65. def to_json(*args)
  66. }.to_json(*args)
  67. gems/oj-3.9.1/test/json_gem/json_parser_test.rb
  68. def to_json(*a)
  69. }.to_json(*a)
  70. gems/oj-3.9.1/test/json_gem/json_parser_test.rb
  71. def to_json(*a)
  72. }.merge(self).to_json(*a)
  73. gems/bootstrap-sass-3.4.1/tasks/converter/char_string_scanner.rb
  74. def initialize(*args)
  75. @s = StringScanner.new(*args)
  76. gems/bootstrap-sass-3.4.1/tasks/converter/logger.rb
  77. def puts(*args)
  78. STDERR.puts *args unless @silence
  79. gems/cliver-0.3.2/spec/spec_helper.rb
  80. def public_send(method, *args, &block)
  81. send(method, *args, &block)
  82. gems/htmlentities-4.3.4/test/encoding_test.rb
  83. def assert_encode(expected, input, *args)
  84. assert_equal expected, coder.encode(input, *args)
  85. gems/simple_form-4.1.0/test/support/misc_helpers.rb
  86. def custom_form_for(object, *args, &block)
  87. simple_form_for(object, *args, { builder: CustomFormBuilder }, &block)
  88. gems/simple_form-4.1.0/test/support/misc_helpers.rb
  89. def custom_mapping_form_for(object, *args, &block)
  90. simple_form_for(object, *args, { builder: CustomMapTypeFormBuilder }, &block)
  91. gems/simple_form-4.1.0/test/support/misc_helpers.rb
  92. def with_concat_form_for(*args, &block)
  93. concat simple_form_for(*args, &(block || proc {}))
  94. gems/simple_form-4.1.0/test/support/misc_helpers.rb
  95. def with_concat_fields_for(*args, &block)
  96. concat simple_fields_for(*args, &block)
  97. gems/simple_form-4.1.0/test/support/misc_helpers.rb
  98. def with_concat_custom_form_for(*args, &block)
  99. concat custom_form_for(*args, &block)
  100. gems/simple_form-4.1.0/test/support/misc_helpers.rb
  101. def with_concat_custom_mapping_form_for(*args, &block)
  102. concat custom_mapping_form_for(*args, &block)
  103. gems/simple_form-4.1.0/test/support/misc_helpers.rb
  104. def with_form_for(object, *args, &block)
  105. f.input(*args, &block)
  106. gems/simple_form-4.1.0/test/support/misc_helpers.rb
  107. def with_input_field_for(object, *args)
  108. f.input_field(*args)
  109. gems/simple_form-4.1.0/test/support/misc_helpers.rb
  110. def input(attribute_name, *args, &block)
  111. super(attribute_name, *args, { input_html: { class: 'custom' } }, &block)
  112. gems/simple_form-4.1.0/test/form_builder/general_test.rb
  113. def with_custom_form_for(object, *args, &block)
  114. f.input(*args, &block)
  115. gems/simple_form-4.1.0/test/form_builder/hint_test.rb
  116. def with_hint_for(object, *args)
  117. f.hint(*args)
  118. gems/simple_form-4.1.0/test/form_builder/label_test.rb
  119. def with_label_for(object, *args, &block)
  120. f.label(*args, &block)
  121. gems/simple_form-4.1.0/test/form_builder/error_test.rb
  122. def with_error_for(object, *args)
  123. f.error(*args)
  124. gems/simple_form-4.1.0/test/form_builder/error_test.rb
  125. def with_full_error_for(object, *args)
  126. f.full_error(*args)
  127. gems/simple_form-4.1.0/test/form_builder/button_test.rb
  128. def with_button_for(object, *args)
  129. f.button(*args)
  130. gems/simple_form-4.1.0/test/form_builder/association_test.rb
  131. def with_association_for(object, *args)
  132. f.association(*args)
  133. gems/commander-fastlane-4.4.6/spec/spec_helper.rb
  134. def run(*args)
  135. new_command_runner(*args) do
  136. gems/sequel-5.24.0/spec/core_extensions_spec.rb
  137. def l(*args, &block)
  138. literal(filter_expr(*args, &block))
  139. gems/sequel-5.24.0/spec/core_extensions_spec.rb
  140. def lit(*args)
  141. literal(*args)
  142. gems/sequel-5.24.0/spec/core_extensions_spec.rb
  143. def l(*args, &block)
  144. literal(filter_expr(*args, &block))
  145. gems/sequel-5.24.0/spec/extensions/prepared_statements_spec.rb
  146. def insert_select_sql(*v)
  147. insert_sql(*v) << " RETURNING #{(opts[:returning] && !opts[:returning].empty?) ? opts[:returning].map{|c| literal(c)}.join(', ') : '*'}"
  148. gems/sequel-5.24.0/spec/extensions/prepared_statements_spec.rb
  149. def insert_select_sql(*v)
  150. insert_sql(*v) << " RETURNING #{(opts[:returning] && !opts[:returning].empty?) ? opts[:returning].map{|c| literal(c)}.join(', ') : '*'}"
  151. gems/sequel-5.24.0/spec/extensions/insert_returning_select_spec.rb
  152. def insert_select(*v)
  153. with_sql_first("#{insert_sql(*v)} RETURNING #{opts[:returning].map{|x| literal(x)}.join(', ')}") end
  154. gems/sequel-5.24.0/spec/extensions/spec_helper.rb
  155. def columns(*cols)
  156. def_column_accessor(*cols)
  157. gems/sequel-5.24.0/spec/extensions/core_refinements_spec.rb
  158. def l(*args, &block)
  159. literal(filter_expr(*args, &block))
  160. gems/sequel-5.24.0/spec/extensions/core_refinements_spec.rb
  161. def lit(*args)
  162. literal(*args)
  163. gems/sequel-5.24.0/spec/guards_helper.rb
  164. def cspecify(message, *checked, &block)
  165. if pending = Sequel.guarded?(*checked)
  166. gems/sequel-5.24.0/spec/model/plugins_spec.rb
  167. def self.configure(model, *args, &block)
  168. @args << [block, *args]
  169. gems/sequel-5.24.0/spec/model/spec_helper.rb
  170. def columns(*cols)
  171. def_column_accessor(*cols)
  172. gems/sequel-5.24.0/spec/core/expression_filters_spec.rb
  173. def l(*args, &block)
  174. literal(filter_expr(*args, &block))
  175. gems/sequel-5.24.0/spec/core/expression_filters_spec.rb
  176. def lit(*args)
  177. literal(*args)
  178. gems/sequel-5.24.0/spec/core/expression_filters_spec.rb
  179. def l(*args, &block)
  180. literal(filter_expr(*args, &block))
  181. gems/sequel-5.24.0/spec/core/database_spec.rb
  182. def select(*a, &block)
  183. super.order(*a, &block) end
  184. gems/sequel-5.24.0/spec/core/mock_adapter_spec.rb
  185. def a.method_missing(m, *x)
  186. push(*x) end
  187. gems/font-awesome-rails-4.7.0.5/test/icon_helper_test.rb
  188. def assert_icon(expected, *args)
  189. assert_dom_equal expected, fa_icon(*args), message
  190. gems/font-awesome-rails-4.7.0.5/test/icon_helper_test.rb
  191. def assert_stacked_icon(expected, *args)
  192. assert_dom_equal expected, fa_stacked_icon(*args), message
  193. gems/savon-2.12.0/spec/support/integration.rb
  194. def call_and_fail_gracefully(client, *args, &block)
  195. client.call(*args, &block)
  196. gems/savon-2.12.0/spec/savon/log_message_spec.rb
  197. def log_message(*args)
  198. Savon::LogMessage.new(*args)
  199. gems/slim-4.0.1/test/sinatra/helper.rb
  200. def method_missing(name, *args, &block)
  201. response.send(name, *args, &block)
  202. gems/slim-4.0.1/test/core/test_commands.rb
  203. def prepare_common_test(content, *args)
  204. out, err = exec_slimrb(*args, '--stdin') do |i|
  205. gems/slim-4.0.1/test/core/test_commands.rb
  206. def exec_slimrb(*args)
  207. Open3.popen3 'ruby', 'bin/slimrb', *args do |i,o,e,t|
  208. gems/slim-4.0.1/test/core/helper.rb
  209. def call_macro(name, *args)
  210. @macro[name.to_s].call(*args)
  211. gems/rack-cors-1.0.3/test/unit/cors_test.rb
  212. def successful_cors_request(*args)
  213. cors_request(*args)
  214. gems/net-sftp-2.1.2/test/test_session.rb
  215. def assert_not_implemented(server_version, command, *args)
  216. assert_raises(NotImplementedError) { sftp.send(command, *args) }
  217. gems/net-sftp-2.1.2/test/test_session.rb
  218. def assert_command_with_callback(command, *args)
  219. sftp.send(command, *args) do |response|
  220. gems/net-sftp-2.1.2/test/test_session.rb
  221. def assert_synchronous_command(command, *args)
  222. result = sftp.send(command, *args) do |response|
  223. gems/net-sftp-2.1.2/test/test_session.rb
  224. def assert_successful_open(*args)
  225. assert_command_with_callback(:open, *args) do |response|
  226. gems/net-sftp-2.1.2/test/common.rb
  227. def raw(*args)
  228. Net::SSH::Buffer.from(*args).to_s
  229. gems/net-sftp-2.1.2/test/common.rb
  230. def gets_packet(type, *args)
  231. gets_data(sftp_packet(type, *args))
  232. gems/net-sftp-2.1.2/test/common.rb
  233. def gets_packet_in_two(fragment_len, type, *args)
  234. whole_packet = sftp_packet(type, *args)
  235. gems/net-sftp-2.1.2/test/common.rb
  236. def sends_packet(type, *args)
  237. sends_data(sftp_packet(type, *args))
  238. gems/net-sftp-2.1.2/test/common.rb
  239. def sftp_packet(type, *args)
  240. data = Net::SSH::Buffer.from(*args)
  241. gems/net-sftp-2.1.2/test/common.rb
  242. def on_open(*args)
  243. @progress << [:open, *args]
  244. gems/net-sftp-2.1.2/test/common.rb
  245. def on_put(*args)
  246. @progress << [:put, *args]
  247. gems/net-sftp-2.1.2/test/common.rb
  248. def on_close(*args)
  249. @progress << [:close, *args]
  250. gems/net-sftp-2.1.2/test/common.rb
  251. def on_finish(*args)
  252. @progress << [:finish, *args]
  253. gems/jbuilder-2.9.1/test/jbuilder_template_test.rb
  254. def render(*args)
  255. JSON.load render_without_parsing(*args)
  256. gems/jbuilder-2.9.1/test/jbuilder_test.rb
  257. def jbuild(*args, &block)
  258. Jbuilder.new(*args, &block).attributes!
  259. gems/jbuilder-2.9.1/test/jbuilder_test.rb
  260. def method_missing(name, *args, &block)
  261. @thing.send name, *args, &block
  262. gems/method_source-0.9.2/spec/spec_helper.rb
  263. def hello_#{name}(*args)
  264. send_mesg(:#{name}, *args)
  265. gems/method_source-0.9.2/spec/spec_helper.rb
  266. def hello_#{name}(*args)
  267. send_mesg(:#{name}, *args)
  268. gems/guard-rspec-4.7.3/spec/lib/guard/rspec_formatter_spec.rb
  269. def rspec_summary_args(*args)
  270. [n.new(*args)]
  271. gems/guard-rspec-4.7.3/spec/spec_helper.rb
  272. def instance_double(*args)
  273. double(*args)
  274. gems/representable-3.0.4/test/test_helper.rb
  275. def render(object, *args)
  276. AssertableDocument.new(object.send("to_#{format}", *args), format)
  277. gems/representable-3.0.4/test/test_helper.rb
  278. def parse(object, input, *args)
  279. object.send("from_#{format}", input, *args)
  280. gems/representable-3.0.4/test/test_helper.rb
  281. def must_equal_document(*args)
  282. return document.must_equal_xml(*args) if @format == :xml
  283. gems/representable-3.0.4/test/representable_test.rb
  284. def from_hash(hsh, *args); replace hsh.upcase; end # DISCUSS: from_hash must return self.
  285. def from_hash(hsh, *args); replace hsh.downcase; end
  286. gems/redis-rack-2.0.5/test/rack/session/redis_test.rb
  287. def with_pool_management(*args)
  288. yield simple(*args)
  289. gems/json-1.8.6/tests/test_json.rb
  290. def to_json(*a)
  291. }.to_json(*a)
  292. gems/json-1.8.6/tests/test_json.rb
  293. def to_json(*a)
  294. }.merge(self).to_json(*a)
  295. gems/json-1.8.6/tests/test_json_addition.rb
  296. def to_json(*args)
  297. }.to_json(*args)
  298. gems/json-1.8.6/tests/test_json_addition.rb
  299. def to_json(*args)
  300. }.to_json(*args)
  301. gems/json-1.8.6/tests/test_json_addition.rb
  302. def to_json(*args)
  303. }.to_json(*args)
  304. gems/json-1.8.6/tests/test_json_addition.rb
  305. def to_json(*args)
  306. }.to_json(*args)
  307. gems/rb-inotify-0.10.0/spec/notifier_spec.rb
  308. def recording(dir, *flags, callback: nil)
  309. @notifier.watch(dir.to_s, *flags) do |event|
  310. gems/sass-3.4.25/vendor/listen/lib/listen/listener.rb
  311. def ignore(*regexps)
  312. directories_records.each { |r| r.ignore(*regexps) }
  313. gems/sass-3.4.25/vendor/listen/lib/listen/listener.rb
  314. def ignore!(*regexps)
  315. directories_records.each { |r| r.ignore!(*regexps) }
  316. gems/sass-3.4.25/vendor/listen/lib/listen/listener.rb
  317. def filter(*regexps)
  318. directories_records.each { |r| r.filter(*regexps) }
  319. gems/sass-3.4.25/vendor/listen/lib/listen/listener.rb
  320. def filter!(*regexps)
  321. directories_records.each { |r| r.filter!(*regexps) }
  322. gems/sass-3.4.25/vendor/listen/lib/listen.rb
  323. def self.to(*args, &block)
  324. listener = _init_listener(*args, &block)
  325. gems/sass-3.4.25/vendor/listen/lib/listen.rb
  326. def self.to!(*args, &block)
  327. _init_listener(*args, &block).start!
  328. gems/sass-3.4.25/vendor/listen/lib/listen.rb
  329. def self._init_listener(*args, &block)
  330. Listener.new(*args, &block)
  331. gems/sass-3.4.25/test/sass/plugin_test.rb
  332. def assert_callbacks(*args)
  333. assert_callback(*args.pop) {assert_callbacks(*args)}
  334. gems/sass-3.4.25/test/sass/plugin_test.rb
  335. def assert_no_callbacks(*args)
  336. assert_no_callback(*args.pop) {assert_no_callbacks(*args)}
  337. gems/sass-3.4.25/test/sass/plugin_test.rb
  338. def assert_needs_update(*args)
  339. assert(Sass::Plugin::StalenessChecker.stylesheet_needs_update?(tempfile_loc(*args), template_loc(*args)),
  340. gems/sass-3.4.25/test/sass/plugin_test.rb
  341. def assert_doesnt_need_update(*args)
  342. assert(!Sass::Plugin::StalenessChecker.stylesheet_needs_update?(tempfile_loc(*args), template_loc(*args)),
  343. gems/sass-3.4.25/test/sass/plugin_test.rb
  344. def touch(*args)
  345. FileUtils.touch(template_loc(*args))
  346. gems/sass-3.4.25/test/sass/exec_test.rb
  347. def exec(script, *args)
  348. system(ruby, script, *args)
  349. gems/sass-3.4.25/test/sass/compiler_test.rb
  350. def create_listener(*args, &on_filesystem_event)
  351. @fake_listener = FakeListener.new(*args, &on_filesystem_event)
  352. gems/crass-1.0.4/test/test_parse_properties.rb
  353. def parse(*args)
  354. CP.parse_properties(*args)
  355. gems/crass-1.0.4/test/test_parse_stylesheet.rb
  356. def parse(*args)
  357. CP.parse_stylesheet(*args)
  358. gems/crass-1.0.4/test/test_parse_rules.rb
  359. def parse(*args)
  360. CP.parse_rules(*args)
  361. gems/mongo-2.10.1/spec/support/client_registry.rb
  362. def with(*args)
  363. with_without_registry(*args).tap do |client|
  364. gems/mongo-2.10.1/spec/support/client_registry.rb
  365. def new_local_client(*args)
  366. Mongo::Client.new(*args).tap do |client|
  367. gems/chef-config-15.2.20/spec/unit/config_spec.rb
  368. def to_platform(*args)
  369. ChefConfig::Config.platform_specific_path(*args)
  370. gems/facter-2.5.6/spec/unit/util/confine_spec.rb
  371. def confined(fact_value, *confines)
  372. Facter::Util::Confine.new("yay", *confines).true?
  373. gems/facter-2.5.6/spec/puppetlabs_spec/fixtures.rb
  374. def fixtures(*rest)
  375. File.join(PuppetlabsSpec::FIXTURE_DIR, *rest)
  376. gems/trollop-2.9.9/test/trollop/version_needed_test.rb
  377. def vn(*args)
  378. VersionNeeded.new(*args)
  379. gems/trollop-2.9.9/test/trollop/command_line_error_test.rb
  380. def cle(*args)
  381. CommandlineError.new(*args)
  382. gems/trollop-2.9.9/test/trollop/help_needed_test.rb
  383. def hn(*args)
  384. HelpNeeded.new(*args)
  385. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/filters.rb
  386. def internal_compile(*args)
  387. compile(*args)
  388. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb
  389. def render_with_haml(*args, &block)
  390. return non_haml { render_without_haml(*args, &block) }
  391. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb
  392. def capture_with_haml(*args, &block)
  393. str = capture_haml(*args, &block)
  394. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb
  395. def content_tag_with_haml(name, *args, &block)
  396. return content_tag_without_haml(name, *args, &block) unless is_haml?
  397. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb
  398. def content_tag(*args, &block)
  399. html_tag = content_tag_with_haml(*args, &block)
  400. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb
  401. def form_tag_with_haml(url_for_options = {}, options = {}, *parameters_for_url, &proc)
  402. res = form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc) + "\n"
  403. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb
  404. def form_for_with_haml(object_name, *args, &proc)
  405. res = form_for_without_haml(object_name, *args, &proc)
  406. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/action_view_xss_mods.rb
  407. def with_output_buffer_with_haml_xss(*args, &block)
  408. res = with_output_buffer_without_haml_xss(*args, &block)
  409. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/action_view_xss_mods.rb
  410. def form_tag_with_haml_xss(*args, &block)
  411. res = form_tag_without_haml_xss(*args, &block)
  412. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/action_view_xss_mods.rb
  413. def form_for_with_haml_xss(*args, &block)
  414. res = form_for_without_haml_xss(*args, &block)
  415. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb
  416. def find_and_preserve_with_haml_xss(*args, &block)
  417. Haml::Util.html_safe(find_and_preserve_without_haml_xss(*args, &block))
  418. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb
  419. def preserve_with_haml_xss(*args, &block)
  420. Haml::Util.html_safe(preserve_without_haml_xss(*args, &block))
  421. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb
  422. def list_of_with_haml_xss(*args, &block)
  423. Haml::Util.html_safe(list_of_without_haml_xss(*args, &block))
  424. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb
  425. def capture_haml_with_haml_xss(*args, &block)
  426. Haml::Util.html_safe(capture_haml_without_haml_xss(*args, &block))
  427. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb
  428. def haml_tag_with_haml_xss(name, *rest, &block)
  429. with_raw_haml_concat {haml_tag_without_haml_xss(name, *rest, &block)}
  430. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb
  431. def escape_once_with_haml_xss(*args)
  432. Haml::Util.html_safe(escape_once_without_haml_xss(*args))
  433. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/exec.rb
  434. def puts(*args)
  435. Kernel.puts(*args)
  436. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/parser.rb
  437. def balance(*args)
  438. res = Haml::Util.balance(*args)
  439. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/util.rb
  440. def def_static_method(klass, name, args, *vars)
  441. def #{static_method_name(name, *vars.map {|v| set.include?(v)})}(#{args.join(', ')})
  442. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/helpers.rb
  443. def capture_haml(*args, &block)
  444. value = block.call(*args)
  445. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/erubis-2.7.0/lib/erubis/helpers/rails_form_helper.rb
  446. def pp_form_tag(url_for_options={}, options={}, *parameters_for_url, &block)
  447. return form_tag(url_for_options, options, *parameters_for_url, &block)
  448. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/unicode-display_width-1.6.0/lib/unicode/display_width/string_ext.rb
  449. def display_size(*args)
  450. display_width(*args)
  451. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/unicode-display_width-1.6.0/lib/unicode/display_width/string_ext.rb
  452. def display_length(*args)
  453. display_width(*args)
  454. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/slim-4.0.1/lib/slim/embedded.rb
  455. def register(name, klass, *option_filter)
  456. define_options(name, *option_filter)
  457. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/slim-4.0.1/lib/slim/code_attributes.rb
  458. def on_html_attrs(*attrs)
  459. [:multi, *attrs.map {|a| compile(a) }]
  460. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/tilt-2.0.9/lib/tilt.rb
  461. def self.register(template_class, *extensions)
  462. default_mapping.register(template_class, *extensions)
  463. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/tilt-2.0.9/lib/tilt.rb
  464. def self.register_lazy(class_name, file, *extensions)
  465. default_mapping.register_lazy(class_name, file, *extensions)
  466. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/tilt-2.0.9/lib/tilt.rb
  467. def self.prefer(template_class, *extensions)
  468. register(template_class, *extensions)
  469. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml.rb
  470. def self.safe_load(*args)
  471. SafeYAML.load(*args)
  472. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml.rb
  473. def self.safe_load_file(*args)
  474. SafeYAML.load_file(*args)
  475. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/ruby_parser-3.13.1/lib/ruby_parser_extras.rb
  476. def s(*args)
  477. result = Sexp.new(*args)
  478. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/temple-0.8.1/lib/temple/mixins/dispatcher.rb
  479. def on_if(condition, *cases)
  480. [:if, condition, *cases.compact.map {|e| compile(e) }]
  481. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/temple-0.8.1/lib/temple/mixins/dispatcher.rb
  482. def on_case(arg, *cases)
  483. [:case, arg, *cases.map {|condition, exp| [condition, compile(exp)] }]
  484. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/temple-0.8.1/lib/temple/mixins/dispatcher.rb
  485. def on_cond(*cases)
  486. [:cond, *cases.map {|condition, exp| [condition, compile(exp)] }]
  487. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/temple-0.8.1/lib/temple/map.rb
  488. def initialize(*map)
  489. super({}, *map)
  490. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/temple-0.8.1/lib/temple/map.rb
  491. def initialize(*map, &block)
  492. super(*map)
  493. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/temple-0.8.1/lib/temple/filters/control_flow.rb
  494. def on_cond(*cases)
  495. on_case(nil, *cases)
  496. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/temple-0.8.1/lib/temple/erb/trimming.rb
  497. def on_multi(*exps)
  498. [:multi, *exps]
  499. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/temple-0.8.1/lib/temple/templates/tilt.rb
  500. def self.register_as(*names)
  501. ::Tilt.register(self, *names.map(&:to_s))
  502. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/temple-0.8.1/lib/temple/html/attribute_merger.rb
  503. def on_html_attrs(*attrs)
  504. [:html, :attrs, *attrs]
  505. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/temple-0.8.1/lib/temple/html/dispatcher.rb
  506. def on_html_attrs(*attrs)
  507. [:html, :attrs, *attrs.map {|a| compile(a) }]
  508. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/temple-0.8.1/lib/temple/html/attribute_remover.rb
  509. def on_html_attrs(*attrs)
  510. [:multi, *attrs.map {|attr| compile(attr) }]
  511. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/temple-0.8.1/lib/temple/html/attribute_sorter.rb
  512. def on_html_attrs(*attrs)
  513. [:html, :attrs, *attrs.sort_by do |attr|
  514. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/temple-0.8.1/lib/temple/html/fast.rb
  515. def on_html_attrs(*attrs)
  516. [:multi, *attrs.map {|attr| compile(attr) }]
  517. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser_extras.rb
  518. def s(*args)
  519. result = Sexp.new(*args)
  520. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/sexp_processor-4.12.1/lib/sexp.rb
  521. def s *args, &blk
  522. Sexp.new(*args)
  523. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/sexp_processor-4.12.1/lib/sexp.rb
  524. def self.s *args
  525. Matcher.new(*args)
  526. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/sexp_processor-4.12.1/lib/sexp.rb
  527. def self.any *args
  528. Any.new(*args)
  529. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/sexp_processor-4.12.1/lib/sexp.rb
  530. def self.all *args
  531. All.new(*args)
  532. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/highline-2.0.2/lib/highline.rb
  533. def choose(*items, &details)
  534. menu.choices(*items) unless items.empty?
  535. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/highline-2.0.2/lib/highline.rb
  536. def color(string, *colors)
  537. HighLine.Style(*colors).color(string)
  538. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/highline-2.0.2/lib/highline.rb
  539. def color_code(*colors)
  540. HighLine.Style(*colors).code
  541. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/highline-2.0.2/lib/highline.rb
  542. def puts(*args)
  543. @output.puts(*args)
  544. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/highline-2.0.2/lib/highline/menu.rb
  545. def build_item(*args)
  546. Menu::Item.new(*args)
  547. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/highline-2.0.2/lib/highline/style.rb
  548. def self.Style(*args)
  549. find_or_create_style_list(*args)
  550. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/highline-2.0.2/lib/highline/style.rb
  551. def self.rgb(*colors)
  552. hex = rgb_hex(*colors)
  553. gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/highline-2.0.2/lib/highline/import.rb
  554. def or_ask(*args, &details)
  555. ask(*args) do |question|
  556. gems/elasticsearch-api-7.3.0/test/test_helper.rb
  557. def assert_block(*msgs)
  558. assert yield, *msgs
  559. gems/unicorn-5.5.1/setup.rb
  560. def command(*args)
  561. system(*args) or raise RuntimeError,
  562. gems/unicorn-5.5.1/setup.rb
  563. def ruby(*args)
  564. command config('rubyprog'), *args
  565. gems/unicorn-5.5.1/test/test_helper.rb
  566. def chunked_spawn(stdout, *cmd)
  567. exec(*cmd)
  568. gems/elasticsearch-transport-7.3.0/test/test_helper.rb
  569. def assert_block(*msgs)
  570. assert yield, *msgs
  571. gems/virtus-1.0.5/spec/integration/custom_collection_attributes_spec.rb
  572. def initialize(*args)
  573. @array = Array[*args]
  574. gems/virtus-1.0.5/spec/integration/custom_collection_attributes_spec.rb
  575. def self.[](*args)
  576. new(*args)
  577. gems/vegas-0.1.11/test/test_helper.rb
  578. def vegas(*args, &block)
  579. @vegas = Vegas::Runner.new(*args, &block)
  580. gems/gyoku-1.3.1/spec/gyoku/array_spec.rb
  581. def to_xml(*args)
  582. Gyoku::Array.to_xml *args
  583. gems/rack-2.0.7/test/spec_cascade.rb
  584. def cascade(*args)
  585. Rack::Lint.new Rack::Cascade.new(*args)
  586. gems/rack-2.0.7/test/spec_file.rb
  587. def file(*args)
  588. Rack::Lint.new Rack::File.new(*args)
  589. gems/rack-2.0.7/test/spec_lint.rb
  590. def env(*args)
  591. Rack::MockRequest.env_for("/", *args)
  592. gems/rack-2.0.7/test/spec_lint.rb
  593. def assert_lint(*args)
  594. env["rack.input"].send(:read, *args)
  595. gems/rack-2.0.7/test/spec_runtime.rb
  596. def runtime_app(app, *args)
  597. Rack::Lint.new Rack::Runtime.new(app, *args)
  598. gems/rack-2.0.7/test/spec_static.rb
  599. def static(app, *args)
  600. Rack::Lint.new Rack::Static.new(app, *args)
  601. gems/rack-2.0.7/test/spec_content_type.rb
  602. def content_type(app, *args)
  603. Rack::Lint.new Rack::ContentType.new(app, *args)
  604. gems/rack-2.0.7/test/spec_etag.rb
  605. def etag(app, *args)
  606. Rack::Lint.new Rack::ETag.new(app, *args)
  607. gems/systemu-2.6.5/test/testing.rb
  608. def Testing(*args, &block)
  609. def context(*args, &block)
  610. gems/rubygems-update-3.0.6/bundler/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb
  611. def gsub_file(path, flag, *args, &block)
  612. content.gsub!(flag, *args, &block)
  613. gems/rubygems-update-3.0.6/bundler/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb
  614. def uncomment_lines(path, flag, *args)
  615. gsub_file(path, /^(\s*)#[[:blank:]]*(.*#{flag})/, '\1\2', *args)
  616. gems/rubygems-update-3.0.6/bundler/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb
  617. def comment_lines(path, flag, *args)
  618. gsub_file(path, /^(\s*)([^#|\n]*#{flag})/, '\1# \2', *args)
  619. gems/rubygems-update-3.0.6/bundler/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb
  620. def capture(*args)
  621. with_output_buffer { yield(*args) }
  622. gems/rubygems-update-3.0.6/bundler/lib/bundler/vendor/thor/lib/thor/shell/basic.rb
  623. def prepare_message(message, *color)
  624. spaces + set_color(message.to_s, *color)
  625. gems/rubygems-update-3.0.6/bundler/lib/bundler/vendor/thor/lib/thor/invocation.rb
  626. def invoke_command(command, *args) #:nodoc:
  627. command.run(self, *args)
  628. gems/rubygems-update-3.0.6/bundler/lib/bundler/vendor/thor/lib/thor/invocation.rb
  629. def invoke_with_padding(*args)
  630. with_padding { invoke(*args) }
  631. gems/rubygems-update-3.0.6/bundler/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb
  632. def fetch(key, *args)
  633. super(convert_key(key), *args)
  634. gems/rubygems-update-3.0.6/bundler/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb
  635. def binread(file, *args)
  636. f.read(*args)
  637. gems/rubygems-update-3.0.6/bundler/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb
  638. def self.parse(*args)
  639. new(*args).parse(to_parse)
  640. gems/rubygems-update-3.0.6/bundler/lib/bundler/vendor/thor/lib/thor/group.rb
  641. def _invoke_for_class_method(klass, command = nil, *args, &block) #:nodoc:
  642. invoke klass, command, *args
  643. gems/rubygems-update-3.0.6/bundler/lib/bundler/lazy_specification.rb
  644. def respond_to?(*args)
  645. super || @specification ? @specification.respond_to?(*args) : nil
  646. gems/rubygems-update-3.0.6/bundler/lib/bundler/lazy_specification.rb
  647. def method_missing(method, *args, &blk)
  648. @specification.send(method, *args, &blk)
  649. gems/rubygems-update-3.0.6/bundler/lib/bundler/plugin.rb
  650. def hook(event, *args, &arg_blk)
  651. @hooks_by_event[event].each {|blk| blk.call(*args, &arg_blk) }
  652. gems/rubygems-update-3.0.6/bundler/lib/bundler/shared_helpers.rb
  653. def find_file(*names)
  654. search_up(*names) do |filename|
  655. gems/rubygems-update-3.0.6/bundler/lib/bundler/shared_helpers.rb
  656. def find_directory(*names)
  657. search_up(*names) do |dirname|
  658. gems/rubygems-update-3.0.6/bundler/lib/bundler/rubygems_gem_installer.rb
  659. def self.at(*args)
  660. new(*args)
  661. gems/rubygems-update-3.0.6/bundler/lib/bundler/cli.rb
  662. def self.deprecated_option(*args, &blk)
  663. method_option(*args, &blk)
  664. gems/rubygems-update-3.0.6/bundler/lib/bundler/plugin/api.rb
  665. def tmp(*names)
  666. Bundler.tmp(["plugin", *names].join("-"))
  667. gems/rubygems-update-3.0.6/bundler/lib/bundler/plugin/api.rb
  668. def method_missing(name, *args, &blk)
  669. return Bundler.send(name, *args, &blk) if Bundler.respond_to?(name)
  670. gems/rubygems-update-3.0.6/bundler/lib/bundler/plugin/dsl.rb
  671. def plugin(name, *args)
  672. _gem(name, *args)
  673. gems/rubygems-update-3.0.6/bundler/lib/bundler/dep_proxy.rb
  674. def method_missing(*args, &blk)
  675. @dep.send(*args, &blk)
  676. gems/rubygems-update-3.0.6/bundler/lib/bundler/installer/parallel_installer.rb
  677. def self.call(*args)
  678. new(*args).call
  679. gems/rubygems-update-3.0.6/bundler/lib/bundler/cli/exec.rb
  680. def kernel_exec(*args)
  681. Kernel.exec(*args)
  682. gems/rubygems-update-3.0.6/bundler/lib/bundler/remote_specification.rb
  683. def method_missing(method, *args, &blk)
  684. _remote_specification.send(method, *args, &blk)
  685. gems/rubygems-update-3.0.6/bundler/lib/bundler/ui/shell.rb
  686. def add_color(string, *color)
  687. @shell.set_color(string, *color)
  688. gems/rubygems-update-3.0.6/bundler/lib/bundler.rb
  689. def setup(*groups)
  690. load.setup(*groups)
  691. gems/rubygems-update-3.0.6/bundler/lib/bundler.rb
  692. def require(*groups)
  693. setup(*groups).require(*groups)
  694. gems/rubygems-update-3.0.6/bundler/lib/bundler.rb
  695. def clean_system(*args)
  696. with_clean_env { Kernel.system(*args) }
  697. gems/rubygems-update-3.0.6/bundler/lib/bundler.rb
  698. def clean_exec(*args)
  699. with_clean_env { Kernel.exec(*args) }
  700. gems/rubygems-update-3.0.6/test/rubygems/test_gem_resolver.rb
  701. def make_dep(name, *req)
  702. Gem::Dependency.new(name, *req)
  703. gems/rubygems-update-3.0.6/test/rubygems/test_gem_spec_fetcher.rb
  704. def tuple(*args)
  705. Gem::NameTuple.new(*args)
  706. gems/rubygems-update-3.0.6/test/rubygems/test_gem_source.rb
  707. def tuple(*args)
  708. Gem::NameTuple.new(*args)
  709. gems/rubygems-update-3.0.6/util/patch_with_prs.rb
  710. def sh(*cmd)
  711. return if system(*cmd)
  712. gems/specinfra-2.81.0/spec/spec_helper.rb
  713. def get_command(method, *args)
  714. Specinfra.command.get(method, *args)
  715. gems/compass-1.0.3/test/helpers/command_line.rb
  716. def compass(*arguments)
  717. execute *arguments
  718. gems/ruby_parser-3.13.1/test/test_ruby_lexer.rb
  719. def assert_lex3 input, exp_sexp, *args, &block
  720. assert_lex(input, exp_sexp, *args, &block)
  721. gems/ruby_parser-3.13.1/test/test_ruby_lexer.rb
  722. def refute_lex input, *args # TODO: re-sort
  723. assert_lex(input, nil, *args)
  724. gems/amq-protocol-2.3.0/generate.rb
  725. def sh(*args)
  726. system(*args)
  727. gems/mono_logger-1.1.0/test/mri_logger_test.rb
  728. def log(logger, msg_id, *arg, &block)
  729. Log.new(log_raw(logger, msg_id, *arg, &block))
  730. gems/mono_logger-1.1.0/test/mri_logger_test.rb
  731. def log_raw(logger, msg_id, *arg, &block)
  732. logger.__send__(msg_id, *arg, &block)
  733. gems/wasabi-3.5.0/spec/support/fixture.rb
  734. def fixture(*args)
  735. Fixture.new(*args)
  736. gems/connection_pool-2.2.2/test/test_connection_pool.rb
  737. def respond_to?(method_id, *args)
  738. method_id == :do_magic || super(method_id, *args)
  739. gems/temple-0.8.1/test/mixins/test_dispatcher.rb
  740. def on_a_b(*arg)
  741. [:on_ab, *arg]
  742. gems/temple-0.8.1/test/mixins/test_dispatcher.rb
  743. def on(*args)
  744. [:on_zero, *args]
  745. gems/slop-4.7.0/test/option_test.rb
  746. def option(*args)
  747. Slop::Option.new(*args)
  748. gems/celluloid-0.17.4/spec/support/crash_checking.rb
  749. def debug(*args)
  750. @real_logger.debug(*args)
  751. gems/celluloid-0.17.4/spec/support/crash_checking.rb
  752. def warn(*args)
  753. @real_logger.warn(*args)
  754. gems/hitimes-1.3.1/tasks/this.rb
  755. def project_path( *relative_path )
  756. project_root.join( *relative_path )
  757. gems/devise-4.7.1/app/controllers/devise_controller.rb
  758. def respond_with_navigational(*args, &block)
  759. respond_with(*args) do |format|
  760. gems/parser-2.6.4.0/test/test_lexer.rb
  761. def refute_scanned(s, *args)
  762. assert_scanned(s, *args)
  763. gems/elasticsearch-7.3.0/test/test_helper.rb
  764. def assert_block(*msgs)
  765. assert yield, *msgs
  766. gems/childprocess-2.0.0/spec/spec_helper.rb
  767. def ruby_process(*args)
  768. @process = ChildProcess.build(RUBY , *args)
  769. gems/childprocess-2.0.0/spec/spec_helper.rb
  770. def windows_process(*args)
  771. @process = ChildProcess.build("powershell", *args)
  772. gems/childprocess-2.0.0/spec/spec_helper.rb
  773. def write_argv(path, *args)
  774. ruby_process(tmp_script(code), *args)
  775. gems/kgio-2.11.2/setup.rb
  776. def command(*args)
  777. system(*args) or raise RuntimeError,
  778. gems/kgio-2.11.2/setup.rb
  779. def ruby(*args)
  780. command config('rubyprog'), *args
  781. gems/webmock-3.7.2/minitest/test_helper.rb
  782. def assert_raise(*exp, &block)
  783. assert_raises(*exp, &block)
  784. gems/webmock-3.7.2/spec/support/my_rack_app.rb
  785. def each(*args, &blk)
  786. ["This is not in an array!"].each(*args, &blk)
  787. gems/json-2.2.0/tests/json_addition_test.rb
  788. def to_json(*args)
  789. }.to_json(*args)
  790. gems/json-2.2.0/tests/json_addition_test.rb
  791. def to_json(*args)
  792. }.to_json(*args)
  793. gems/json-2.2.0/tests/json_addition_test.rb
  794. def to_json(*args)
  795. }.to_json(*args)
  796. gems/json-2.2.0/tests/json_addition_test.rb
  797. def to_json(*args)
  798. }.to_json(*args)
  799. gems/json-2.2.0/tests/json_parser_test.rb
  800. def to_json(*a)
  801. }.to_json(*a)
  802. gems/json-2.2.0/tests/json_parser_test.rb
  803. def to_json(*a)
  804. }.merge(self).to_json(*a)
  805. gems/json_pure-2.2.0/tests/json_addition_test.rb
  806. def to_json(*args)
  807. }.to_json(*args)
  808. gems/json_pure-2.2.0/tests/json_addition_test.rb
  809. def to_json(*args)
  810. }.to_json(*args)
  811. gems/json_pure-2.2.0/tests/json_addition_test.rb
  812. def to_json(*args)
  813. }.to_json(*args)
  814. gems/json_pure-2.2.0/tests/json_addition_test.rb
  815. def to_json(*args)
  816. }.to_json(*args)
  817. gems/json_pure-2.2.0/tests/json_parser_test.rb
  818. def to_json(*a)
  819. }.to_json(*a)
  820. gems/json_pure-2.2.0/tests/json_parser_test.rb
  821. def to_json(*a)
  822. }.merge(self).to_json(*a)
  823. gems/thread_safe-0.3.6/spec/thread_safe/cache_spec.rb
  824. def expect_handles_return_lambda(method, key, *args)
  825. @cache.send(method, key, *args) { return :direct_return }
  826. gems/thread_safe-0.3.6/spec/thread_safe/cache_spec.rb
  827. def expect_handles_exception(method, key, *args)
  828. expect { @cache.send(method, key, *args) { raise TestException, '' } }.
  829.  
  830. 256 matches in 167 files of 63 gems
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement