source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/mdi-icon-inline.rb | Ruby | mit | 19 | main | 1,152 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/mdi-icon-inline.rb
# Asciidoctor extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: https://... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/twitter-emoji-inline.rb | Ruby | mit | 19 | main | 1,299 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/twitter-emoji-inline.rb
# Asciidoctor extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: htt... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/amplitude-block.rb | Ruby | mit | 19 | main | 1,744 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/amplitude-block.rb
# Asciidoctor extension for J1 Amplitude (Audio)
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# S... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/vimeo-block.rb | Ruby | mit | 19 | main | 5,288 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/vimeo-block.rb
# Asciidoctor extension for Vimeo Video
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: https://g... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/conum.rb | Ruby | mit | 19 | main | 1,058 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/conum.rb
# Asciidoctor extension for conums
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: https://github.com/j... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/carousel-block.rb | Ruby | mit | 19 | main | 1,477 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/carousel-block.rb
# Asciidoctor extension for J1 Carousel (Owl Carousel)
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/fab-icon-inline.rb | Ruby | mit | 19 | main | 1,179 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/fas-icon-inline.rb
# Asciidoctor extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: https://... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/admonition-block-answer.rb | Ruby | mit | 19 | main | 1,190 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/admonition-block-question.rb
# Asciidoctor extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/masonry-block.rb | Ruby | mit | 19 | main | 1,666 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/slick-block.rb
# Asciidoctor extension for J1 Slick (Carousel)
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: h... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/iconify-icon-inline.rb | Ruby | mit | 19 | main | 1,232 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/mdi-icon-inline.rb
# Asciidoctor extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: https://... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/gemini-ui-block.rb | Ruby | mit | 19 | main | 1,186 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/gemini-ui-block.rb
# Asciidoctor extension for the J1 Gemini module
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# S... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/lightbox-block.rb | Ruby | mit | 19 | main | 3,322 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/image-block.rb
# Asciidoctor extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# For details, see:... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/range-slider-block.rb | Ruby | mit | 19 | main | 1,293 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/range-slider-block.rb
# Asciidoctor extension for J1 range-slider (Owl range-slider)
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/youtube-block.rb | Ruby | mit | 19 | main | 15,816 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/youtube-block.rb
# Asciidoctor extension for YouTube Videos
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: http... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/lorem_inline.rb | Ruby | mit | 19 | main | 9,508 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/lorem_inline.rb
# Asciidoctor extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
# Copyright (C) 2022 Travis Dunn
#
# J1 Template is licensed under th... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/admonition-block-question.rb | Ruby | mit | 19 | main | 1,220 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/admonition-block-question.rb
# Asciidoctor extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/swiper-block.rb | Ruby | mit | 19 | main | 1,651 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/swiper-block.rb
# Asciidoctor extension for J1 Swiper (Slider)
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: h... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/textbook-block.rb | Ruby | mit | 19 | main | 1,375 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/nodebook-block.rb
# Asciidoctor extension for J1 Jupyter Notebooks
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# Se... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/masterslider-block.rb | Ruby | mit | 19 | main | 1,696 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/masterslider-block.rb
# Asciidoctor extension for J1 Masterslider
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/fas-icon-inline.rb | Ruby | mit | 19 | main | 1,179 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/fas-icon-inline.rb
# Asciidoctor extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: https://... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/lightbox3-block.rb | Ruby | mit | 19 | main | 3,331 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/lightbox3-block.rb
# Asciidoctor extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# For details, ... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/iframe-block.rb | Ruby | mit | 19 | main | 1,236 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/iframe-block.rb
# Asciidoctor extension for the J1 iFramer module
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/shout-block.rb | Ruby | mit | 19 | main | 1,141 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/shout-block.rb
# Asciidoctor extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: https://gith... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/mdil-icon-inline.rb | Ruby | mit | 19 | main | 1,331 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/mdil-icon-inline.rb
# Asciidoctor extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: https:/... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/google-ad-block.rb | Ruby | mit | 19 | main | 1,450 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/google-adsense-block.rb
# Asciidoctor extension for J1 Ads (Google Adsense)
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT Lice... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/slim-select-block.rb | Ruby | mit | 19 | main | 1,230 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/slim-select-block.rb
# Asciidoctor extension for the J1 slimSelect module
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT Licens... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/videojs-block.rb | Ruby | mit | 19 | main | 14,365 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/videojs-block.rb
# Asciidoctor extension for local HTML5 Video over VideoJS
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT Lice... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/panel.rb | Ruby | mit | 19 | main | 1,175 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/banner.rb
# Asciidoctor extension for J1 Banner blocks
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: https://g... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/flag-icon-inline.rb | Ruby | mit | 19 | main | 1,514 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/flag-icon-inline.rb
# Asciidoctor flag icon extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# Se... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/gallery-block.rb | Ruby | mit | 19 | main | 1,455 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/gallery-block.rb
# Asciidoctor extension for J1 Galleries
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: https:... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/mdib-icon-inline.rb | Ruby | mit | 19 | main | 1,331 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/mdib-icon-inline.rb
# Asciidoctor extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: https:/... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/placeholder-inline.rb | Ruby | mit | 19 | main | 1,345 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/placeholder-inline.rb
# Asciidoctor extension for placeholder images generated by "placehold.it"
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licens... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/callout.rb | Ruby | mit | 19 | main | 1,543 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/callout-block.rb
# Asciidoctor extension for callouts as a (HTML-)block
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/dailymotion-block.rb | Ruby | mit | 19 | main | 15,129 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/dailymotion-block.rb
# Asciidoctor extension for J1 Dailymotion Video
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
#... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/gist-block.rb | Ruby | mit | 19 | main | 1,505 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/gist-block.rb
# Asciidoctor extension for J1 Theme
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: https://githu... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/asciidoctor/slick-block.rb | Ruby | mit | 19 | main | 1,782 | # ------------------------------------------------------------------------------
# ~/_plugins/asciidoctor-extensions/slick-block.rb
# Asciidoctor extension for J1 Slick (Carousel)
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: h... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/i18n/date.rb | Ruby | mit | 19 | main | 1,962 | # Taken from https://github.com/uwolf/jekyll-i18n-date
# ------------------------------------------------------------------------------
# ~/_plugins/date-i18n.rb
# Plugin for DateTime Localization in Jekyll
#
# Product/Info:
# http://jekyll.one
#
# Copyright (C) 2023-2026 Juergen Adams
# Copyright (c) 2018 Ulrich Wolf... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/seo/j1-sitemap.rb | Ruby | mit | 19 | main | 4,759 | # ------------------------------------------------------------------------------
# ~/_plugins/j1-sitemap.rb
# Generate Sitemap Files of a site
#
# Product/Info:
# http://jekyll.one
#
# Copyright (C) 2022 Ben Balter and Contributors
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT Licens... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/seo/j1-seo-tags.rb | Ruby | mit | 19 | main | 20,403 | # ------------------------------------------------------------------------------
# ~/_plugins/j1-seo-tags.rb
# Generate SEO tags for posts and pages of a site
#
# Product/Info:
# http://jekyll.one
#
# Copyright (C) 2022 Ben Balter and Contributors
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed unde... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/seo/j1-feed.rb | Ruby | mit | 19 | main | 9,087 | # ------------------------------------------------------------------------------
# ~/_plugins/j1-feed.rb
# Generate RSS feeds for all posts of a site
#
# Product/Info:
# http://jekyll.one
#
# Copyright (C) 2022 Ben Balter and Contributors
# Copyright (C) 2023-2026 Juergen Adams
#
# J1 Template is licensed under the MIT... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _plugins/helper/symlink_watcher.rb | Ruby | mit | 19 | main | 1,843 | # ------------------------------------------------------------------------------
# ~/_plugins/symlink_watcher
# jekyll-watch extension to listen for changes in symlinked folders
#
# Product/Info:
# https://github.com/willnorris/willnorris.com/tree/master/src/_plugins/
# https://jekyll.one
#
# Copyright (C) 2002-2014 Wi... |
github | jekyll-one/j1-template-starter | https://github.com/jekyll-one/j1-template-starter | _data/puma/config.rb | Ruby | mit | 19 | main | 288 | # Puma configuration (file)
# ------------------------------------------------------------------------------
# start puma
#
bind 'tcp://' + ENV["INTERFACE"] + ':' + ENV["PORT"]
# Code to run after puma is booted
#
after_booted do
# configuration here
# puts 'After booting ...'
end |
github | noraj/ADAssault | https://github.com/noraj/ADAssault | Gemfile | Ruby | mit | 19 | master | 1,188 | # frozen_string_literal: true
source 'https://rubygems.org'
# Specify your gem's dependencies in .gemspec
gemspec
# Needed for the CLI only
group :runtime, :cli do
gem 'gli', '~> 2.22' # for argument parsing
gem 'paint', '~> 2.3' # for colorized ouput
end
# Needed for runtime (all cases: CLI & library)
group :r... |
github | noraj/ADAssault | https://github.com/noraj/ADAssault | adassault.gemspec | Ruby | mit | 19 | master | 1,674 | # frozen_string_literal: true
require_relative 'lib/adassault/version'
Gem::Specification.new do |s|
s.name = 'adassault'
s.version = ADAssault::VERSION
s.platform = Gem::Platform::RUBY
s.summary = 'Dominate the Active Directory game'
s.description = 'An Active Directory environm... |
github | noraj/ADAssault | https://github.com/noraj/ADAssault | lib/adassault/cli.rb | Ruby | mit | 19 | master | 1,013 | # frozen_string_literal: true
require 'adassault/version'
require 'adassault/cli/dns'
require 'gli'
require 'paint'
module ADAssault
# Class containing all commands and sub-commands for the CLI,
# mapping CLI commands with library classes.
# @since 0.0.1
class CLI
extend GLI::App
program_desc 'ADAsa... |
github | noraj/ADAssault | https://github.com/noraj/ADAssault | lib/adassault/cli/dns.rb | Ruby | mit | 19 | master | 1,374 | # frozen_string_literal: true
require 'adassault/cli/dns/duzdu'
require 'gli'
module ADAssault
class CLI
extend GLI::App
# dns
# since 0.0.1
desc 'DNS related commands'
command :dns do |dns|
dns.flag %i[d domain], desc: 'Active Directory domain.', type: String, required: true, arg_name: '... |
github | noraj/ADAssault | https://github.com/noraj/ADAssault | lib/adassault/cli/dns/duzdu.rb | Ruby | mit | 19 | master | 417 | # frozen_string_literal: true
# AD Assault CLI: DUZDU sub-commands
require 'adassault/cli/dns/duzdu/add'
require 'adassault/cli/dns/duzdu/check'
require 'adassault/cli/dns/duzdu/delete'
require 'adassault/cli/dns/duzdu/get'
require 'adassault/cli/dns/duzdu/replace'
module ADAssault
class CLI
# command: `ada dns... |
github | noraj/ADAssault | https://github.com/noraj/ADAssault | lib/adassault/cli/dns/duzdu/add.rb | Ruby | mit | 19 | master | 816 | # frozen_string_literal: true
require 'adassault/cli/dns/duzdu/baseaction'
module ADAssault
class CLI
module DNS
module DUZDU
# command: `ada dns duzdu add`
class Add < BaseAction
def run(args)
res = @duz.addv4(args[0], args[1])
@duz.display(res, self.clas... |
github | noraj/ADAssault | https://github.com/noraj/ADAssault | lib/adassault/cli/dns/duzdu/replace.rb | Ruby | mit | 19 | master | 854 | # frozen_string_literal: true
require 'adassault/cli/dns/duzdu/baseaction'
module ADAssault
class CLI
module DNS
module DUZDU
# command: `ada dns duzdu replace`
class Replace < BaseAction
def run(args)
res = @duz.replacev4(args[0], args[1])
@duz.display(re... |
github | noraj/ADAssault | https://github.com/noraj/ADAssault | lib/adassault/cli/dns/duzdu/check.rb | Ruby | mit | 19 | master | 658 | # frozen_string_literal: true
require 'adassault/cli/dns/duzdu/baseaction'
module ADAssault
class CLI
module DNS
module DUZDU
# command: `ada dns duzdu check`
class Check < BaseAction
def run(_args)
res = @duz.checkv4
@duz.display(res, self.class.command_n... |
github | noraj/ADAssault | https://github.com/noraj/ADAssault | lib/adassault/cli/dns/duzdu/baseaction.rb | Ruby | mit | 19 | master | 1,818 | # frozen_string_literal: true
# AD Assault lib
require 'adassault/dns'
# options / arguments parsing lib
require 'gli'
module ADAssault
class CLI
extend GLI::App
module DNS
module DUZDU
# stuff common to all duzdu's sub-commands
class BaseAction
def initialize(options)
... |
github | noraj/ADAssault | https://github.com/noraj/ADAssault | lib/adassault/cli/dns/duzdu/get.rb | Ruby | mit | 19 | master | 787 | # frozen_string_literal: true
require 'adassault/cli/dns/duzdu/baseaction'
module ADAssault
class CLI
module DNS
module DUZDU
# command: `ada dns duzdu get`
class Get < BaseAction
def run(args)
name = args.first
res = @duz.getv4(name)
@duz.disp... |
github | noraj/ADAssault | https://github.com/noraj/ADAssault | lib/adassault/cli/dns/duzdu/delete.rb | Ruby | mit | 19 | master | 772 | # frozen_string_literal: true
require 'adassault/cli/dns/duzdu/baseaction'
module ADAssault
class CLI
module DNS
module DUZDU
# command: `ada dns duzdu delete`
class Delete < BaseAction
def run(args)
res = @duz.deletev4(args[0])
@duz.display(res, self.clas... |
github | noraj/ADAssault | https://github.com/noraj/ADAssault | lib/adassault/dns/duzdu.rb | Ruby | mit | 19 | master | 9,032 | # frozen_string_literal: true
require 'ipaddr'
require 'random/formatter'
require 'dnsruby'
require 'paint'
module ADAssault
module DNS
# **DNS unsecure zone dynamic update (DUZDU).**
#
# On a misconfigured MS DNS zone, one can abuse dynamic updates to perform MiTM attacks in a very stealth way.
#
... |
github | noraj/ADAssault | https://github.com/noraj/ADAssault | lib/adassault/dns/find_dcs.rb | Ruby | mit | 19 | master | 4,680 | # frozen_string_literal: true
require 'resolv'
require 'paint'
module ADAssault
# @since 0.0.1
module DNS
# Spot all domain controllers in a Microsoft Active Directory environment
# @since 0.0.1
class FindDCs
# Hash containing all DCs.
# Cached result of {fetch_dcs}.
# @return [Hash]... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | open_dota_api.gemspec | Ruby | mit | 19 | master | 1,054 | $LOAD_PATH.push File.expand_path('lib', __dir__)
# Maintain your gem's version:
require 'open_dota_api/version'
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = 'open_dota_api'
s.version = OpenDotaApi::VERSION
s.authors = ['YaroslavO']
s.email = ['o... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | spec/spec_helper.rb | Ruby | mit | 19 | master | 618 | ENV['RAILS_ENV'] ||= 'test'
require 'webmock/rspec'
require 'simplecov'
SimpleCov.start
require 'open_dota_api'
ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), '../')
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.join(ENGINE_RAILS_RO... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | spec/lib/open_dota_api_spec.rb | Ruby | mit | 19 | master | 238 | require 'spec_helper'
describe OpenDotaApi do
it 'returns a version number' do
expect(OpenDotaApi::VERSION).not_to be nil
end
it 'respond to the client' do
expect(OpenDotaApi.client).to be_a(OpenDotaApi::Client)
end
end |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | spec/lib/open_dota_api/client_spec.rb | Ruby | mit | 19 | master | 7,086 | require 'spec_helper'
describe OpenDotaApi::Client do
let(:endpoint) {}
let(:match_id) { 3_149_215_336 }
let(:steam_32_id) { 65366604 }
let(:league_id) { 5401 }
let(:leagues_file) { File.read('spec/data/leagues.json') }
let(:teams_file) { File.read('spec/data/teams.json') }
let(:match_file) { File.read('... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | spec/lib/open_dota_api/match_spec.rb | Ruby | mit | 19 | master | 5,708 | require 'spec_helper'
describe OpenDotaApi::Match do
context 'official match' do
let(:match_id) { 3_149_215_336 }
let(:start_time) { 1_493_566_333 }
let(:duration) { 2109 }
let(:series_id) { 135_248 }
let(:series_type) { 2 }
let(:radiant_team_id) { 2_586_976 }
let(:dire_team_id) { 1_883_5... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | spec/lib/open_dota_api/hero_spec.rb | Ruby | mit | 19 | master | 1,351 | require 'spec_helper'
describe OpenDotaApi::Hero do
let(:id) { 1 }
let(:name) { 'npc_dota_hero_antimage' }
let(:localized_name) { 'Anti-Mage' }
let(:primary_attr) { 'agi' }
let(:attack_type) { 'Melee' }
let(:roles) { %w[Carry Escape Nuker] }
let(:legs) { 2 }
let(:heroes_file) { File.read('spec/data/he... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | spec/lib/open_dota_api/pro_player_spec.rb | Ruby | mit | 19 | master | 3,923 | require 'spec_helper'
describe OpenDotaApi::ProPlayer do
let(:account_id) { 1_296_625 }
let(:steam_id) { '76561197961562353' }
let(:avatar) { 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/95/951e9165740fda890651d8475fc50f5368a847bb.jpg' }
let(:avatar_medium) { 'https://steamcdn-a.akamai... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | spec/lib/open_dota_api/explorer_spec.rb | Ruby | mit | 19 | master | 8,886 | require 'spec_helper'
describe OpenDotaApi::Explorer do
let(:explorer_file) { File.read('spec/data/explorer.json') }
let(:response_json) { JSON.parse(explorer_file) }
let(:explorer) { OpenDotaApi::Explorer.new(response_json) }
let(:match_ids) do
[3_274_329_415, 3_274_330_770, 3_274_393_974, 3_274_394_099,... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | spec/lib/open_dota_api/league_spec.rb | Ruby | mit | 19 | master | 1,182 | require 'spec_helper'
describe OpenDotaApi::League do
let(:league_id) { 1415 }
let(:ticket) { 'econ/leagues/subscriptions_cebu' }
let(:banner) { 'econ/leagues/subscriptions_cebu_ingame' }
let(:tier) { 'amateur' }
let(:name) { 'Dota 2 Cebu League Season 5' }
let(:leagues_file) { File.read('spec/data/league... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | spec/lib/open_dota_api/connection_spec.rb | Ruby | mit | 19 | master | 748 | require 'spec_helper'
describe OpenDotaApi::Connection do
describe 'default attributes' do
let(:pathname) { '/' }
it 'includes httparty methods' do
allow(OpenDotaApi::Connection).to receive(:get)
end
it 'returns response object' do
stub_request(:get, 'http://api.opendota.com/')
... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | spec/lib/open_dota_api/player_spec.rb | Ruby | mit | 19 | master | 2,656 | require 'spec_helper'
describe OpenDotaApi::Player do
let(:account_id) { 65366604 }
let(:steam_id) { '76561198025632332' }
let(:avatar) { "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/40/4097bbe60170972397ee8cbe5694632ec339a9cc.jpg" }
let(:avatar_medium) { "https://steamcdn-a.akamaihd.n... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | spec/lib/open_dota_api/team_spec.rb | Ruby | mit | 19 | master | 1,292 | require 'spec_helper'
describe OpenDotaApi::Team do
let(:team_id) { 2163 }
let(:rating) { 1550.24 }
let(:wins) { 539 }
let(:losses) { 355 }
let(:last_match_time) { 1_500_684_592 }
let(:name) { 'Team Liquid' }
let(:tag) { 'Liquid' }
let(:teams_file) { File.read('spec/data/teams.json') }
let(:response... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | spec/lib/open_dota_api/entity_spec.rb | Ruby | mit | 19 | master | 2,433 | require 'spec_helper'
class ChildEntity < OpenDotaApi::Entity
def a
"special datum"
end
end
describe OpenDotaApi::Entity do
let(:data) { { "prime" => "datum" } }
subject { described_class.new(data) }
describe "initializing with a hash adds instance methods to the Entity" do
it { is_expected.to r... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | spec/lib/open_dota_api/matches/player_spec.rb | Ruby | mit | 19 | master | 3,423 | require 'spec_helper'
describe OpenDotaApi::Matches::Player do
let(:match_id) { 3_149_215_336 }
let(:player_slot) { 0 }
let(:account_id) { 94_155_156 }
let(:assists) { 13 }
let(:camps_stacked) { 4 }
let(:deaths) { 7 }
let(:denies) { 1 }
let(:gold_per_min) { 329 }
let(:hero_id) { 110 }
let(:kills) {... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | spec/lib/open_dota_api/entities/instantiable_spec.rb | Ruby | mit | 19 | master | 939 | require 'spec_helper'
class InstantiableClass
include OpenDotaApi::Entities::Instantiatable
attr_accessor :data
def initialize(data)
@data = data
end
end
describe InstantiableClass do
it { expect(described_class).to respond_to(:instantiate) }
describe ".instantiate" do
let(:data) { {"a" => "b" ... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | lib/open_dota_api.rb | Ruby | mit | 19 | master | 322 | require 'open_dota_api/client'
require 'open_dota_api/version'
module OpenDotaApi
extend SingleForwardable
def_delegators :client, :limits, :leagues, :teams, :matches, :heroes, :pro_players, :players, :explorer
def self.client
@client ||= Client.new
end
class << self
attr_accessor :api_key
end
en... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | lib/open_dota_api/connection.rb | Ruby | mit | 19 | master | 206 | require 'httparty'
module OpenDotaApi
class Connection
include HTTParty
base_uri 'api.opendota.com'
def get(pathname, options = {})
self.class.get(pathname, options)
end
end
end |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | lib/open_dota_api/client.rb | Ruby | mit | 19 | master | 2,162 | require 'open_dota_api/connection'
require 'open_dota_api/health'
require 'open_dota_api/league'
require 'open_dota_api/team'
require 'open_dota_api/match'
require 'open_dota_api/hero'
require 'open_dota_api/pro_player'
require 'open_dota_api/player'
require 'open_dota_api/explorer'
module OpenDotaApi
class Client
... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | lib/open_dota_api/explorer.rb | Ruby | mit | 19 | master | 470 | require 'open_dota_api/entity'
module OpenDotaApi
class Explorer < Entity
ENDPOINT = 'explorer'.freeze
def self.instantiate(_ = nil)
raise NotImplementedError
end
def self.query_params(league_id)
{
sql: "SELECT matches.match_id FROM matches WHERE matches.leagueid = #{league_id} ... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | lib/open_dota_api/player.rb | Ruby | mit | 19 | master | 1,281 | require 'open_dota_api/entity'
module OpenDotaApi
class Player < Entity
ENDPOINT = 'players'.freeze
define_adder(%w[tracked_until rank_tier competitive_rank solo_competitive_rank leaderboard_rank])
def self.instantiate(_ = nil)
raise NotImplementedError
end
def mmr_estimate
data&.d... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | lib/open_dota_api/pro_player.rb | Ruby | mit | 19 | master | 1,329 | require 'open_dota_api/entity'
module OpenDotaApi
class ProPlayer < Entity
ENDPOINT = 'proPlayers'.freeze
def account_id
data['account_id']
end
def steam_id
data['steamid']
end
def avatar
data['avatar']
end
def avatar_medium
data['avatarmedium']
end
... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | lib/open_dota_api/entity.rb | Ruby | mit | 19 | master | 831 | require 'open_dota_api/entities/instantiable'
require 'hashable'
module OpenDotaApi
class Entity
include Entities::Instantiatable
include ::Hashable
def self.define_adder(attributes)
attributes.each do |attribute|
define_method(attribute) { data[attribute] } unless method_defined?(attribut... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | lib/open_dota_api/match.rb | Ruby | mit | 19 | master | 558 | require 'open_dota_api/entity'
require 'open_dota_api/matches/player'
require 'open_dota_api/matches/pick_ban'
module OpenDotaApi
class Match < Entity
ENDPOINT = 'matches'.freeze
define_child_entity Matches::PickBan, 'picks_bans'
define_child_entity Matches::Player, 'players'
def radiant_team_id
... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | lib/open_dota_api/league.rb | Ruby | mit | 19 | master | 339 | require 'open_dota_api/entity'
module OpenDotaApi
class League < Entity
ENDPOINT = 'leagues'.freeze
def league_id
data['leagueid']
end
def ticket
data['ticket']
end
def banner
data['banner']
end
def tier
data['tier']
end
def name
data['name']... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | lib/open_dota_api/entities/instantiable.rb | Ruby | mit | 19 | master | 468 | module OpenDotaApi
module Entities
module Instantiatable
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def instantiate(data)
return new(data) if data.respond_to?(:keys)
return data.map { |data_instance| new(data_instance) } if dat... |
github | vergilet/open_dota_api | https://github.com/vergilet/open_dota_api | lib/open_dota_api/matches/pick_ban.rb | Ruby | mit | 19 | master | 244 | module OpenDotaApi
module Matches
class PickBan < Entity
def pick?
data['is_pick']
end
def ban?
!pick?
end
def team
data['team'].zero? ? :radiant : :dire
end
end
end
end |
github | directededge/redsnapper | https://github.com/directededge/redsnapper | redsnapper.gemspec | Ruby | mit | 19 | master | 2,003 | # Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
# stub: redsnapper 0.5.0 ruby lib
Gem::Specification.new do |s|
s.name = "redsnapper".freeze
s.version = "0.5.0"
s.required_rubygems_version = Gem::Requirement.new... |
github | directededge/redsnapper | https://github.com/directededge/redsnapper | Rakefile | Ruby | mit | 19 | master | 1,393 | # encoding: utf-8
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'
require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is... |
github | directededge/redsnapper | https://github.com/directededge/redsnapper | lib/redsnapper.rb | Ruby | mit | 19 | master | 3,372 | require 'thread/pool'
require 'open3'
require 'set'
require 'date'
class RedSnapper
TARSNAP = 'tarsnap'
THREAD_POOL_DEFAULT_SIZE = 10
EXIT_ERROR = "tarsnap: Error exit delayed from previous errors.\n"
NOT_OLDER_ERROR = "File on disk is not older; skipping.\n"
GLOB_CHARS = '*?[]{}'
@@output_mutex = Mutex... |
github | steverandy/concen | https://github.com/steverandy/concen | Rakefile | Ruby | mit | 19 | master | 615 | # encoding: UTF-8
require "rubygems"
begin
require "bundler/setup"
rescue LoadError
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
end
require "rake"
require "rdoc/task"
require "rake/testtask"
Rake::TestTask.new(:test) do |t|
t.libs << "lib"
t.libs << "test"
t.test_files = Dir... |
github | steverandy/concen | https://github.com/steverandy/concen | Gemfile | Ruby | mit | 19 | master | 532 | source "http://rubygems.org"
gem "rails", ">= 3.1.0"
gem "sass-rails", "~> 3.1.3"
# gemspec.
gem "mustache", "~> 0.99.4"
gem "redcarpet", "~> 2.2.0"
gem "mongoid", "~> 2.2"
gem "mongo", "~> 1.3"
gem "bson_ext", "~> 1.4.0"
gem "mongo-rails-instrumentation", "~> 0.2.4"
gem "rack-gridfs", "~> 0.4.1"
gem "chronic", "~> 0... |
github | steverandy/concen | https://github.com/steverandy/concen | concen.gemspec | Ruby | mit | 19 | master | 1,362 | # encoding: utf-8
$:.push File.expand_path("../lib", __FILE__)
require "concen/version"
Gem::Specification.new do |s|
s.name = "concen"
s.version = Concen::VERSION
s.authors = ["Steve Randy Tantra"]
s.email = ["steve.randy@gmail.com"]
s.homepage = "https://github.com/steverandy/concen"
s.summary = "Contr... |
github | steverandy/concen | https://github.com/steverandy/concen | app/controllers/concen/pages_controller.rb | Ruby | mit | 19 | master | 2,684 | module Concen
class PagesController < Concen::ApplicationController
before_filter :authenticate_concen_user
def index
@page_title = "Pages"
@page = Page.where(:level => 0).first
end
def new
if params[:parent_id]
@page = Page.find(params[:parent_id]).children.build
els... |
github | steverandy/concen | https://github.com/steverandy/concen | app/controllers/concen/grid_files_controller.rb | Ruby | mit | 19 | master | 2,369 | module Concen
class GridFilesController < Concen::ApplicationController
def new
@page = Page.find(params[:page_id])
@grid_file = @page.grid_files.build
end
def create
@page = Page.find(params[:page_id])
@grid_file = @page.grid_files.build
filename = params[:filename]
i... |
github | steverandy/concen | https://github.com/steverandy/concen | app/controllers/concen/users_controller.rb | Ruby | mit | 19 | master | 3,689 | module Concen
class UsersController < Concen::ApplicationController
before_filter :authenticate_concen_user, :except => [:new, :edit, :update, :create, :new_reset_password, :reset_password]
def index
@page_title = "Users"
@users = User.all
end
def new
if User.all.any?
redir... |
github | steverandy/concen | https://github.com/steverandy/concen | app/controllers/concen/statuses_controller.rb | Ruby | mit | 19 | master | 2,092 | module Concen
class StatusesController < Concen::ApplicationController
before_filter :authenticate_concen_user
def show
@page_title = "Status"
render
end
def counts
respond_to do |format|
format.json {
render :json => {:pages => Page.count, :users => User.count}
... |
github | steverandy/concen | https://github.com/steverandy/concen | app/controllers/concen/visits_controller.rb | Ruby | mit | 19 | master | 1,341 | require "domainatrix"
module Concen
class VisitsController < Concen::ApplicationController
def visit_recorder_js
if cookies[:visitor_id].blank?
cookies[:visitor_id] = {:value => SecureRandom.uuid, :expires => 20.years.from_now}
end
render :layout => false, :mime_type => "text/javascript... |
github | steverandy/concen | https://github.com/steverandy/concen | app/controllers/concen/traffics_controller.rb | Ruby | mit | 19 | master | 1,229 | module Concen
class TrafficsController < Concen::ApplicationController
before_filter :authenticate_concen_user
# Supports OS X and Linux, require top command.
# @current_month_visits = Statistic.visits_for_current :month
# Real time visits
# Historical statistics
# Month: visits
def sho... |
github | steverandy/concen | https://github.com/steverandy/concen | app/controllers/concen/performances_controller.rb | Ruby | mit | 19 | master | 1,315 | module Concen
class PerformancesController < Concen::ApplicationController
def show
@page_title = "Performance"
end
def responses
@stats = {}
@stats[:total_runtime] = Response.where(:created_at.gte => Time.now - 1.hour).asc(:created_at).map do |response|
[(response.created_at.ut... |
github | steverandy/concen | https://github.com/steverandy/concen | app/controllers/concen/sessions_controller.rb | Ruby | mit | 19 | master | 722 | module Concen
class SessionsController < Concen::ApplicationController
def new
if User.all.any?
render
else
redirect_to new_concen_user_path
end
end
def create
user = User.where(:username => /#{params[:username]}/i).first
if user && user.authenticate(params[... |
github | steverandy/concen | https://github.com/steverandy/concen | app/controllers/concen/application_controller.rb | Ruby | mit | 19 | master | 518 | module Concen
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :set_concen
helper_method :current_concen_user, :authenticate_concen_user
protected
def set_concen
@concen = true
end
def current_concen_user
@current_concen_user ||= User... |
github | steverandy/concen | https://github.com/steverandy/concen | app/models/concen/user.rb | Ruby | mit | 19 | master | 2,788 | require "bcrypt"
module Concen
class User
include Mongoid::Document
include Mongoid::Timestamps
store_in self.name.underscore.gsub("/", ".").pluralize
field :full_name, :type => String
field :username, :type => String
field :email, :type => String
field :password_digest, :type => String... |
github | steverandy/concen | https://github.com/steverandy/concen | app/models/concen/grid_file.rb | Ruby | mit | 19 | master | 2,468 | module Concen
class GridFile
include Mongoid::Document
include Mongoid::Timestamps
embedded_in :page, :class_name => "Concen::Page"
field :filename, :type => String
field :original_filename, :type => String
field :private, :type => Boolean
field :grid_id, :type => BSON::ObjectId
val... |
github | steverandy/concen | https://github.com/steverandy/concen | app/models/concen/page.rb | Ruby | mit | 19 | master | 12,654 | require "yaml"
require "redcarpet"
require "mustache"
require "chronic"
module Concen
class Page
include Mongoid::Document
include Mongoid::Timestamps
store_in self.name.underscore.gsub("/", ".").pluralize
references_many :children, :class_name => "Concen::Page", :foreign_key => :parent_id, :invers... |
github | steverandy/concen | https://github.com/steverandy/concen | app/models/concen/response.rb | Ruby | mit | 19 | master | 1,506 | module Concen
class Response
include Mongoid::Document
include Mongoid::Timestamps
field :controller, :type => String
field :action, :type => String
field :format, :type => Symbol
field :method, :type => String
field :path, :type => String
field :status, :type => Integer
field :vi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.