repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/reset_spec.rb
spec/input_responders/reset_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger' require 'puppet-debugger/plugin_test_helper' describe :reset do include_examples 'plugin_tests' let(:args) { [] } it 'can process a file' do debugger_output = /Puppet::Type::File/ debugger.handle_input("file{'/tmp/reset': ens...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/krt_spec.rb
spec/input_responders/krt_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger/plugin_test_helper' describe :krt do include_examples 'plugin_tests' let(:args) { [] } it 'works' do expect(plugin.run(args)).to match(/hostclasses/) end end
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/set_spec.rb
spec/input_responders/set_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger' require 'puppet-debugger/plugin_test_helper' describe 'set' do include_examples 'plugin_tests' let(:input) do ':set loglevel debug' end it 'should set the loglevel' do debugger_output = /loglevel debug is set/ debugger....
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/play_spec.rb
spec/input_responders/play_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger/plugin_test_helper' describe :play do include_examples 'plugin_tests' describe 'convert url' do describe 'unsupported' do let(:url) { 'https://bitbuck.com/master/lib/log_helper.rb' } let(:converted) { 'https://bitbuck.co...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/facterdb_filter_spec.rb
spec/input_responders/facterdb_filter_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger' require 'puppet-debugger/plugin_test_helper' describe :facterdb_filter do include_examples 'plugin_tests' let(:args) { [] } it 'outputs filter' do expect(plugin.run(args)).to match(/facterversion/) end end
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/facts_spec.rb
spec/input_responders/facts_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger' require 'puppet-debugger/plugin_test_helper' describe :facts do include_examples 'plugin_tests' let(:args) { ['$::fqdn', 'facts'] } it 'should be able to resolve fqdn' do debugger_output = /foo\.example\.com/ output = plugin....
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/commands_spec.rb
spec/input_responders/commands_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger' require 'puppet-debugger/plugin_test_helper' describe :commands do include_examples 'plugin_tests' let(:args) { [] } it do expect(plugin.run(args)).to match(/environment/) end it 'run a plugin command' do debugger.handle...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/classes_spec.rb
spec/input_responders/classes_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger' require 'puppet-debugger/plugin_test_helper' describe :classes do include_examples 'plugin_tests' let(:input) do 'classes' end it 'should be able to print classes' do expect(plugin.run([])).to match(/settings/) end it ...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/help_spec.rb
spec/input_responders/help_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger/plugin_test_helper' describe :help do include_examples 'plugin_tests' let(:args) { [] } let(:help_output) do plugin.run(args) end it 'can show the help screen' do expected_debugger_output = /Type \"commands\" for a list o...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/resources_spec.rb
spec/input_responders/resources_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger' require 'puppet-debugger/plugin_test_helper' describe :resources do include_examples 'plugin_tests' let(:args) {} it 'should be able to print resources' do debugger_output = /main/ expect(plugin.run(args)).to match(debugger_o...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/vars_spec.rb
spec/input_responders/vars_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger' require 'puppet-debugger/plugin_test_helper' require 'pluginator' describe :vars do include_examples 'plugin_tests' let(:args) { [] } it 'display facts variable' do debugger_output = /facts/ output = plugin.run(args) expe...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/benchmark_spec.rb
spec/input_responders/benchmark_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger' require 'puppet-debugger/plugin_test_helper' describe :benchmark do include_examples 'plugin_tests' let(:args) { ['benchmark', "md5('12345')"] } describe 'mode' do before(:each) do debugger.handle_input('benchmark') # enabl...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/functions_spec.rb
spec/input_responders/functions_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger' require 'puppet-debugger/plugin_test_helper' describe :functions do include_examples 'plugin_tests' let(:input) do "md5('hello')" end let(:mod_dir) do File.join(fixtures_dir, 'modules', 'extlib') end it 'runs' do ...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/datatypes_spec.rb
spec/input_responders/datatypes_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger' require 'puppet-debugger/plugin_test_helper' describe :datatypes do include_examples 'plugin_tests' let(:args) { [] } it 'handle datatypes' do output = plugin.run(args) if Gem::Version.new(Puppet.version) < Gem::Version.new('...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/input_responders/environment_spec.rb
spec/input_responders/environment_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger' require 'puppet-debugger/plugin_test_helper' describe :environment do include_examples 'plugin_tests' let(:args) { [''] } it 'can display itself' do output = plugin.run(args) expect(output).to eq("Puppet Environment: #{debugg...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/awesome_print/ext/awesome_puppet_spec.rb
spec/awesome_print/ext/awesome_puppet_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'awesome_print' require 'awesome_print/ext/awesome_puppet' RSpec.describe do let(:output) do StringIO.new end let(:debugger) do PuppetDebugger::Cli.new(options) end let(:options) do { out_buffer: output } end let(:input...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/spec/puppet/application/debugger_spec.rb
spec/puppet/application/debugger_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'puppet/application/debugger' describe Puppet::Application::Debugger do let(:debugger) do Puppet::Application::Debugger.new(command_line) end # ideally, we should only be providing args in stead of mocking the options # however during a text, th...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger.rb
lib/puppet-debugger.rb
# frozen_string_literal: true require 'puppet-debugger/cli' require 'puppet-debugger/version' require 'awesome_print' require 'awesome_print/ext/awesome_puppet' require 'puppet-debugger/trollop' require 'puppet/util/log' require 'puppet-debugger/debugger_code' require 'puppet-debugger/support/errors' require 'plugins/...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/version.rb
lib/puppet-debugger/version.rb
# frozen_string_literal: true module PuppetDebugger VERSION = '1.2.0' end
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/monkey_patches.rb
lib/puppet-debugger/monkey_patches.rb
# frozen_string_literal: true # monkey patch in some color effects string methods class String def red "\033[31m#{self}\033[0m" end def bold "\033[1m#{self}\033[22m" end def black "\033[30m#{self}\033[0m" end def green "\033[32m#{self}\033[0m" end def cyan "\033[36m#{self}\033...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/hooks.rb
lib/puppet-debugger/hooks.rb
# frozen_string_literal: true require 'puppet-debugger/support/errors' module PuppetDebugger # This code was borrowed from Pry hooks file # Implements a hooks system for Puppet Debugger. A hook is a callable that is associated # with an event. A number of events are currently provided by Pry, these # include:...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/trollop.rb
lib/puppet-debugger/trollop.rb
# frozen_string_literal: true # lib/trollop.rb -- trollop command-line processing library # Copyright (c) 2008-2014 William Morgan. # Copyright (c) 2014 Red Hat, Inc. # trollop is licensed under the MIT license. require 'date' module Trollop # note: this is duplicated in gemspec # please change over there too ...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/input_responder_plugin.rb
lib/puppet-debugger/input_responder_plugin.rb
# frozen_string_literal: true require 'singleton' require 'puppet-debugger/support/errors' require 'forwardable' module PuppetDebugger class InputResponderPlugin include Singleton extend Forwardable attr_accessor :debugger def_delegators :debugger, :scope, :node, :environment, :loaders, :puppet_envi...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/plugin_test_helper.rb
lib/puppet-debugger/plugin_test_helper.rb
# frozen_string_literal: true # https://relishapp.com/rspec/rspec-core/v/3-6/docs/example-groups/shared-examples RSpec.shared_examples 'plugin_tests' do |_parameter| let(:plugin) do instance = PuppetDebugger::InputResponders::Commands.plugin_from_command(subject.to_s).instance instance.debugger = debugger ...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/debugger_code.rb
lib/puppet-debugger/debugger_code.rb
# frozen_string_literal: true require 'puppet-debugger/code/loc' require 'puppet-debugger/code/code_range' require 'puppet-debugger/code/code_file' # `Pry::Code` is a class that encapsulates lines of source code and their # line numbers and formats them for terminal output. It can read from a file # or method definit...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/cli.rb
lib/puppet-debugger/cli.rb
# frozen_string_literal: true require 'puppet' require 'readline' require 'json' require 'puppet-debugger/support' require 'pluginator' require 'puppet-debugger/hooks' require 'forwardable' require 'plugins/puppet-debugger/input_responders/functions' require 'plugins/puppet-debugger/input_responders/datatypes' require...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/support.rb
lib/puppet-debugger/support.rb
# frozen_string_literal: true require 'puppet/pops' require 'facterdb' require 'tempfile' # load all the generators found in the generators directory Dir.glob(File.join(File.dirname(__FILE__), 'support', '*.rb')).each do |file| require_relative File.join('support', File.basename(file, '.rb')) end module PuppetDebu...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/support/compiler.rb
lib/puppet-debugger/support/compiler.rb
# frozen_string_literal: true require 'tempfile' module PuppetDebugger module Support module Compilier def create_compiler(node) Puppet::Parser::Compiler.new(node) end def compiler @compiler ||= create_compiler(node) end def set_compiler(value) @compiler =...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/support/environment.rb
lib/puppet-debugger/support/environment.rb
# frozen_string_literal: true module PuppetDebugger module Support module Environment # creates a puppet environment given a module path and environment name # this is cached def puppet_environment @puppet_environment ||= create_environment end alias environment puppet_envir...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/support/errors.rb
lib/puppet-debugger/support/errors.rb
# frozen_string_literal: true module PuppetDebugger module Exception class Error < StandardError attr_accessor :data def initialize(data = {}) @data = data end end class FatalError < Error end class InvalidCommand < Error def message data[:message] ...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/support/node.rb
lib/puppet-debugger/support/node.rb
# frozen_string_literal: true require 'puppet/indirector/node/rest' module PuppetDebugger module Support module Node # creates a node object using defaults or gets the remote node # object if the remote_node_name is defined def create_node if remote_node_name # refetch ...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/support/loader.rb
lib/puppet-debugger/support/loader.rb
# frozen_string_literal: true module PuppetDebugger module Support # the Loader module wraps a few puppet loader functions module Loader def create_loader(environment) Puppet::Pops::Loaders.new(environment) end def loaders @loaders ||= create_loader(puppet_environment) ...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/support/facts.rb
lib/puppet-debugger/support/facts.rb
# frozen_string_literal: true module PuppetDebugger module Support module Facts # in the future we will want to grab real facts from real systems via puppetdb # or enc data # allow the user to specify the facterdb filter def dynamic_facterdb_filter ENV['DEBUGGER_FACTERDB_FILTER']...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/support/scope.rb
lib/puppet-debugger/support/scope.rb
# frozen_string_literal: true module PuppetDebugger module Support module Scope # @param [Puppet::Pops::Scope] - Scope object or nil def set_scope(value) @scope = value end def catalog @catalog || scope.compiler.catalog end def get_catalog_text(catalog) ...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/code/code_file.rb
lib/puppet-debugger/code/code_file.rb
# frozen_string_literal: true class CodeFile class SourceNotFound < RuntimeError end DEFAULT_EXT = '.pp' # List of all supported languages. # @return [Hash] EXTENSIONS = { %w[.py] => :python, %w[.js] => :javascript, %w[.pp] => :puppet, %w[.css] => :css, %w[.xml] => :xml, %w[.php] ...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/code/code_range.rb
lib/puppet-debugger/code/code_range.rb
# frozen_string_literal: true class DebuggerCode # Represents a range of lines in a code listing. # # @api private class CodeRange # @param [Integer] start_line # @param [Integer?] end_line def initialize(start_line, end_line = nil) @start_line = start_line @end_line = end_line ...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet-debugger/code/loc.rb
lib/puppet-debugger/code/loc.rb
# frozen_string_literal: true class DebuggerCode # Represents a line of code. A line of code is a tuple, which consists of a # line and a line number. A `LOC` object's state (namely, the line # parameter) can be changed via instance methods. `Pry::Code` heavily uses # this class. # # @api private # @exam...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/vars.rb
lib/plugins/puppet-debugger/input_responders/vars.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Vars < InputResponderPlugin COMMAND_WORDS = %w[vars ls].freeze SUMMARY = 'List all the variables in the current scopes.' COMMAND_GROUP = :scope def run(args =...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/whereami.rb
lib/plugins/puppet-debugger/input_responders/whereami.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Whereami < InputResponderPlugin COMMAND_WORDS = %w[whereami].freeze SUMMARY = 'Show code surrounding the current context.' COMMAND_GROUP = :context # source_f...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/stacktrace.rb
lib/plugins/puppet-debugger/input_responders/stacktrace.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Stacktrace < InputResponderPlugin COMMAND_WORDS = %w[stacktrace].freeze SUMMARY = 'Show the stacktrace for how we got here' COMMAND_GROUP = :tools # @return [...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/environment.rb
lib/plugins/puppet-debugger/input_responders/environment.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Environment < InputResponderPlugin COMMAND_WORDS = %w[environment].freeze SUMMARY = 'Show the current environment name' COMMAND_GROUP = :context def run(_args...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/datatypes.rb
lib/plugins/puppet-debugger/input_responders/datatypes.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Datatypes < InputResponderPlugin COMMAND_WORDS = %w[datatypes].freeze SUMMARY = 'List all the datatypes available in the environment.' COMMAND_GROUP = :environment ...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/benchmark.rb
lib/plugins/puppet-debugger/input_responders/benchmark.rb
# frozen_string_literal: true require 'benchmark' require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Benchmark < InputResponderPlugin COMMAND_WORDS = %w[benchmark bm].freeze SUMMARY = 'Benchmark your Puppet code.' COMMAND_GROUP = :tools de...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/resources.rb
lib/plugins/puppet-debugger/input_responders/resources.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Resources < InputResponderPlugin COMMAND_WORDS = %w[resources].freeze SUMMARY = 'List all the resources current in the catalog.' COMMAND_GROUP = :scope def ru...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/set.rb
lib/plugins/puppet-debugger/input_responders/set.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Set < InputResponderPlugin COMMAND_WORDS = %w[set :set].freeze SUMMARY = 'Set the a puppet debugger config' COMMAND_GROUP = :scope KEYWORDS = %w[node loglevel]...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/classification.rb
lib/plugins/puppet-debugger/input_responders/classification.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Classification < InputResponderPlugin COMMAND_WORDS = %w[classification].freeze SUMMARY = 'Show the classification details of the node.' COMMAND_GROUP = :node ...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/krt.rb
lib/plugins/puppet-debugger/input_responders/krt.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Krt < InputResponderPlugin COMMAND_WORDS = %w[krt].freeze SUMMARY = 'List all the known resource types.' COMMAND_GROUP = :scope def run(_args = []) de...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/classes.rb
lib/plugins/puppet-debugger/input_responders/classes.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Classes < InputResponderPlugin COMMAND_WORDS = %w[classes].freeze SUMMARY = 'List all the classes current in the catalog.' COMMAND_GROUP = :scope def run(args...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/help.rb
lib/plugins/puppet-debugger/input_responders/help.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Help < InputResponderPlugin COMMAND_WORDS = %w[help].freeze SUMMARY = 'Show the help screen with version information.' COMMAND_GROUP = :help def run(_args = [...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/play.rb
lib/plugins/puppet-debugger/input_responders/play.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Play < InputResponderPlugin COMMAND_WORDS = %w[play].freeze SUMMARY = 'Playback a file or URL as input.' COMMAND_GROUP = :editing def run(args = []) c...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/facterdb_filter.rb
lib/plugins/puppet-debugger/input_responders/facterdb_filter.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class FacterdbFilter < InputResponderPlugin COMMAND_WORDS = %w[facterdb_filter ff].freeze SUMMARY = 'Set the facterdb filter' COMMAND_GROUP = :node # displays the f...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/facts.rb
lib/plugins/puppet-debugger/input_responders/facts.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Facts < InputResponderPlugin COMMAND_WORDS = %w[facts].freeze SUMMARY = 'List all the facts associated with the node.' COMMAND_GROUP = :node def run(_args = [...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/exit.rb
lib/plugins/puppet-debugger/input_responders/exit.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Exit < InputResponderPlugin COMMAND_WORDS = %w[exit].freeze SUMMARY = 'Quit Puppet Debugger, or use control-d' COMMAND_GROUP = :help def run(_args = []) ...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/types.rb
lib/plugins/puppet-debugger/input_responders/types.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Types < InputResponderPlugin COMMAND_WORDS = %w[types].freeze SUMMARY = 'List all the types available in the environment.' COMMAND_GROUP = :environment # @ret...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/commands.rb
lib/plugins/puppet-debugger/input_responders/commands.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Commands < InputResponderPlugin COMMAND_WORDS = %w[commands].freeze SUMMARY = 'List all available commands, aka. this screen' COMMAND_GROUP = :help def run(_a...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/functions.rb
lib/plugins/puppet-debugger/input_responders/functions.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' require 'table_print' require 'fileutils' require 'bundler' module PuppetDebugger module InputResponders class Functions < InputResponderPlugin COMMAND_WORDS = %w[functions].freeze SUMMARY = 'List all the functions availa...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/plugins/puppet-debugger/input_responders/reset.rb
lib/plugins/puppet-debugger/input_responders/reset.rb
# frozen_string_literal: true require 'puppet-debugger/input_responder_plugin' module PuppetDebugger module InputResponders class Reset < InputResponderPlugin COMMAND_WORDS = %w[reset].freeze SUMMARY = 'Reset the debugger to a clean state.' COMMAND_GROUP = :context def run(_args = []) ...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/awesome_print/ext/awesome_puppet.rb
lib/awesome_print/ext/awesome_puppet.rb
# frozen_string_literal: true module Kernel class Hash def to_h hash = extra_hash_attributes.dup self.class.hash_attribute_names.each do |name| hash[name] = __send__(name) end hash end end end module AwesomePrint module Puppet def self.included(base) base.send...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
nwops/puppet-debugger
https://github.com/nwops/puppet-debugger/blob/d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb/lib/puppet/application/debugger.rb
lib/puppet/application/debugger.rb
# frozen_string_literal: true require 'puppet/application' require 'optparse' require 'puppet/util/command_line' class Puppet::Application::Debugger < Puppet::Application attr_reader :use_stdin option('--execute EXECUTE', '-e') do |arg| options[:code] = arg end option('--facterdb-filter FILTER') do |arg...
ruby
MIT
d2ed9e3cd0b775956d8b0d6ed78e9a4a4b9a9fbb
2026-01-04T17:57:09.425774Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/app/helpers/messaging/application_helper.rb
app/helpers/messaging/application_helper.rb
module Messaging module ApplicationHelper end end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/app/controllers/messaging/messages_controller.rb
app/controllers/messaging/messages_controller.rb
module Messaging class MessagesController < Messaging::ApplicationController def index @box = params[:box] || 'inbox' @messages = current_user.mailbox.inbox if @box == 'inbox' @messages = current_user.mailbox.sentbox if @box == 'sent' @messages = current_user.mailbox.trash if @box == 'tras...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/app/controllers/messaging/application_controller.rb
app/controllers/messaging/application_controller.rb
module Messaging class ApplicationController < ActionController::Base before_filter :authenticate_messaging_user! def current_user current_messaging_user end end end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/app/models/messaging/message.rb
app/models/messaging/message.rb
module Messaging class Message include ActiveModel::Validations include ActiveModel::Conversion extend ActiveModel::Naming attr_accessor :recipients, :subject, :body, :conversation_id, :attachment validates :recipients, presence: true validates :subject, presence: true validates :body, p...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/test_helper.rb
test/test_helper.rb
# Configure Rails Environment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" Rails.backtrace_cleaner.remove_silencers! # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/messaging_test.rb
test/messaging_test.rb
require 'test_helper' class MessagingTest < ActiveSupport::TestCase test "truth" do assert_kind_of Module, Messaging end end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/integration/navigation_test.rb
test/integration/navigation_test.rb
require 'test_helper' class NavigationTest < ActionDispatch::IntegrationTest fixtures :all # test "the truth" do # assert true # end end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/app/helpers/application_helper.rb
test/dummy/app/helpers/application_helper.rb
module ApplicationHelper end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/app/controllers/home_controller.rb
test/dummy/app/controllers/home_controller.rb
class HomeController < ApplicationController def index if user_signed_in? redirect_to messaging_path else redirect_to new_user_session_path end end end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/app/controllers/application_controller.rb
test/dummy/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base protect_from_forgery end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/app/models/messaging_user.rb
test/dummy/app/models/messaging_user.rb
class MessagingUser < ActiveRecord::Base # Include default devise modules. Others available are: # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable # Setu...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/app/models/user.rb
test/dummy/app/models/user.rb
class User < ActiveRecord::Base # Include default devise modules. Others available are: # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable # Setup accessi...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/db/schema.rb
test/dummy/db/schema.rb
# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative sou...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/db/migrate/20111213052240_devise_create_messaging_users.rb
test/dummy/db/migrate/20111213052240_devise_create_messaging_users.rb
class DeviseCreateMessagingUsers < ActiveRecord::Migration def change create_table(:messaging_users) do |t| t.database_authenticatable :null => false t.recoverable t.rememberable t.trackable # t.encryptable # t.confirmable # t.lockable :lock_strategy => :failed_attempts,...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/db/migrate/20111204041734_devise_create_users.rb
test/dummy/db/migrate/20111204041734_devise_create_users.rb
class DeviseCreateUsers < ActiveRecord::Migration def change create_table(:users) do |t| t.database_authenticatable :null => false t.recoverable t.rememberable t.trackable # t.encryptable # t.confirmable # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy =...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/db/migrate/20111204042609_create_mailboxer.rb
test/dummy/db/migrate/20111204042609_create_mailboxer.rb
class CreateMailboxer < ActiveRecord::Migration def self.up #Tables #Conversations create_table :conversations do |t| t.column :subject, :string, :default => "" t.column :created_at, :datetime, :null => false t.column :updated_at, :datetime, :null => false end #Receipts c...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/db/migrate/20111204042610_add_notified_object.rb
test/dummy/db/migrate/20111204042610_add_notified_object.rb
class AddNotifiedObject < ActiveRecord::Migration def self.up change_table :notifications do |t| t.references :notified_object, :polymorphic => true t.remove :object_id t.remove :object_type end end def self.down change_table :notifications do |t| t.remove :notified_object_id ...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/db/migrate/20111205020919_add_attachments.rb
test/dummy/db/migrate/20111205020919_add_attachments.rb
class AddAttachments < ActiveRecord::Migration def change add_column :notifications, :attachment, :string end end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/db/migrate/20111204042611_add_notification_code.rb
test/dummy/db/migrate/20111204042611_add_notification_code.rb
class AddNotificationCode < ActiveRecord::Migration def self.up change_table :notifications do |t| t.string :notification_code, :default => nil end end def self.down change_table :notifications do |t| t.remove :notification_code end end end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/test/unit/user_test.rb
test/dummy/test/unit/user_test.rb
require 'test_helper' class UserTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/test/unit/messaging_user_test.rb
test/dummy/test/unit/messaging_user_test.rb
require 'test_helper' class MessagingUserTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/application.rb
test/dummy/config/application.rb
require File.expand_path('../boot', __FILE__) require 'rails/all' Bundler.require require "messaging" module Dummy class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers ...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/environment.rb
test/dummy/config/environment.rb
# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application Dummy::Application.initialize!
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/routes.rb
test/dummy/config/routes.rb
Rails.application.routes.draw do devise_for :messaging_users devise_for :users mount Messaging::Engine => "/messaging" root to: 'home#index' end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/boot.rb
test/dummy/config/boot.rb
require 'rubygems' gemfile = File.expand_path('../../../../Gemfile', __FILE__) if File.exist?(gemfile) ENV['BUNDLE_GEMFILE'] = gemfile require 'bundler' Bundler.setup end $:.unshift File.expand_path('../../../../lib', __FILE__)
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/initializers/session_store.rb
test/dummy/config/initializers/session_store.rb
# Be sure to restart your server when you modify this file. Dummy::Application.config.session_store :cookie_store, key: '_dummy_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rails gener...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/initializers/devise.rb
test/dummy/config/initializers/devise.rb
# Use this hook to configure devise mailer, warden hooks and so forth. # Many of these configuration options can be set straight in your model. Devise.setup do |config| # ==> Mailer Configuration # Configure the e-mail address which will be shown in Devise::Mailer, # note that it will be overwritten if you use yo...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/initializers/wrap_parameters.rb
test/dummy/config/initializers/wrap_parameters.rb
# Be sure to restart your server when you modify this file. # # This file contains settings for ActionController::ParamsWrapper which # is enabled by default. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_controller) do wrap_parameters ...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/initializers/inflections.rb
test/dummy/config/initializers/inflections.rb
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format # (all these examples are active by default): # ActiveSupport::Inflector.inflections do |inflect| # inflect.plural /^(ox)$/i, '\1en' # inflect.singular /^(ox)en/i, '\1' # inflect.irregular 'person', ...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/initializers/mailboxer.rb
test/dummy/config/initializers/mailboxer.rb
Mailboxer.setup do |config| #Configures if you applications uses or no the email sending for Notifications and Messages config.uses_emails = true #Configures the default from for the email sent for Messages and Notifications of Mailboxer config.default_from = "no-reply@mailboxer.com" #Configures the ...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/initializers/backtrace_silencers.rb
test/dummy/config/initializers/backtrace_silencers.rb
# Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } # You can also remove all the silencers if you're trying to debug a probl...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/initializers/mime_types.rb
test/dummy/config/initializers/mime_types.rb
# Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf # Mime::Type.register_alias "text/html", :iphone
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/initializers/secret_token.rb
test/dummy/config/initializers/secret_token.rb
# Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attac...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/environments/test.rb
test/dummy/config/environments/test.rb
Dummy::Application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test su...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/environments/development.rb
test/dummy/config/environments/development.rb
Dummy::Application.configure do # Settings specified here will take precedence over those in config/application.rb # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web ser...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/test/dummy/config/environments/production.rb
test/dummy/config/environments/production.rb
Dummy::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests config.cache_classes = true # Full error reports are disabled and caching is turned on config.consider_all_requests_local = false config.action_c...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/lib/messaging.rb
lib/messaging.rb
require "messaging/engine" require 'devise' require 'haml' require 'carrierwave' require 'sunspot_rails' require 'simple_form' module Messaging end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/lib/generators/messaging/devise/devise_generator.rb
lib/generators/messaging/devise/devise_generator.rb
module Messaging module Generators class DeviseGenerator < Rails::Generators::NamedBase desc "Uses Devise for authentication" argument :name, :type => :string, :default => "MessagingUser" def self.source_root @_messaging_source_root ||= File.expand_path("../templates", __FILE__) ...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/lib/generators/messaging/install/install_generator.rb
lib/generators/messaging/install/install_generator.rb
class Messaging::InstallGenerator < Rails::Generators::Base #:nodoc: hook_for :users, :default => "devise", :desc => "User generator to run. Skip with --skip-users" def create_migration_file generate 'mailboxer:install' end def add_messaging_routes route 'mount Messaging::Engine => "/messaging"' en...
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/lib/messaging/version.rb
lib/messaging/version.rb
module Messaging VERSION = "0.0.1" end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false
frodefi/rails-messaging
https://github.com/frodefi/rails-messaging/blob/b840f344dbc3af141c124b5f2df0ea9947fe6493/lib/messaging/engine.rb
lib/messaging/engine.rb
module Messaging class Engine < Rails::Engine isolate_namespace Messaging end end
ruby
MIT
b840f344dbc3af141c124b5f2df0ea9947fe6493
2026-01-04T17:57:44.259159Z
false