See https://medium.com/it-me/deprecating-methods-in-ruby-e679c45ceeef#.etzmkdgn6 on "Deprecating methods in ruby"
View error_message_component.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
class Form::ErrorMessageComponent < ViewComponent::Form::FieldComponent | |
def call | |
tag.p messages, class: 'mt-0.5 text-sm text-red-600' | |
end | |
def render? | |
method_errors? | |
end |
View cancancan_issue_507.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Related issue: https://github.com/CanCanCommunity/cancancan/issues/507 | |
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do |
View ether-rinkeby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x9DA3Ff6fa502e51Cd934122Ed2f1dD961a46C876 |
View response.rdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<doi_records> | |
<doi_record owner="10.1145" timestamp="2007-09-26 13:18:52"> | |
<crossref> | |
<journal> | |
<journal_metadata language="en"> | |
<full_title>ACM Transactions on Modeling and Computer Simulation</full_title> | |
<abbrev_title>ACM Trans. Model. Comput. Simul.</abbrev_title> | |
<abbrev_title>TOMACS</abbrev_title> | |
<issn media_type="print">10493301</issn> |
View custom_plan.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'zeus/rails' | |
class CustomPlan < Zeus::Rails | |
def sidekiq | |
# Based on bin/sidekiq | |
require 'sidekiq/cli' | |
begin | |
cli = Sidekiq::CLI.instance | |
cli.parse |
View datenschutzerklaerung.md
Einwilligung in die Erhebung, Nutzung und Verarbeitung von Daten
Der Schutz Ihrer Daten ist für BauCloud GmbH, Denninger Straße 136, 81927 München, Deutschland ("BauCloud"), ein Anliegen mit allerhöchster Priorität.
Im Rahmen der Erbringung der BauCloud-Services werden nur solche nichtpersonenbezogenen und personenbezogenen Daten erhoben, verarbeitet und genutzt, die für die Erbringung der BauCloud-Services notwendig sind oder zu deren Erhebung, Verarbeitung oder Nutzung Sie durch Bestätigung dieser Datenschutzerklärung unter [Ziffer 4][4)] unten einwilligen.
1) Erhebung, Nutzung und Verarbeitung Ihrer Daten durch BauCloud und Weitergabe an Dritte
BauCloud wird insbesondere folgende Daten von Ihnen erheben:
View bootstrap_topbar_list.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Renders an ItemContainer as a <ul> element and its containing items as <li> elements. | |
# Prepared to use inside the topbar of Twitter Bootstrap http://twitter.github.com/bootstrap/#navigation | |
# | |
# Register the renderer and use following code in your view: | |
# render_navigation(level: 1..2, renderer: :bootstrap_topbar_list, expand_all: true) | |
class BootstrapTopbarList < SimpleNavigation::Renderer::Base | |
def render(item_container) | |
if options[:is_subnavigation] | |
ul_class = "dropdown-menu" |
View console_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
noname:SampleApp tobiasmaier$ rm log/* | |
noname:SampleApp tobiasmaier$ bin/rspec spec/requests/tasks_spec.rb | |
Run filtered including {:focus=>true} | |
F | |
Failures: | |
1) Tasks GET /projects/12345/tasks/12345/edit edit | |
Failure/Error: page.should have_content "2010-08-01" | |
expected there to be content "2010-08-01" in "\n\nProjects > Mein Projekt 1 > Tasks > Kellergeschoss\n\nTask was successfully updated.\nKellergeschoss\nDetails\nA001\nKellergeschoss\nMein Projekt 1\nTarget Values\n\n2010-01-01 00:00:00 +0100\n2010-01-10 00:00:00 +0100\n\nWork Breakdown Structure\nErdgeschoss\nObergeschoss\nEdit\n|\nBack\n\n" |