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 |
|---|---|---|---|---|---|---|---|---|
adammck/ruby-icloud | https://github.com/adammck/ruby-icloud/blob/8a9418a4260dc4faf9dd0b23599cab341443e5ef/lib/icloud/helpers/date_helpers.rb | lib/icloud/helpers/date_helpers.rb | #!/usr/bin/env ruby
# vim: et ts=2 sw=2
require "date"
module ICloud
def self.date_from_icloud obj
_, year, month, mday, hour, minute, _ = obj
DateTime.new year, month, mday, hour, minute
end
def self.date_to_icloud dt
[
# The Y/M/D concatenated into an int.
# I have no idea what this i... | ruby | MIT | 8a9418a4260dc4faf9dd0b23599cab341443e5ef | 2026-01-04T17:52:21.382901Z | false |
adammck/ruby-icloud | https://github.com/adammck/ruby-icloud/blob/8a9418a4260dc4faf9dd0b23599cab341443e5ef/lib/icloud/helpers/proxy.rb | lib/icloud/helpers/proxy.rb | #!/usr/bin/env ruby
# vim: et ts=2 sw=2
module ICloud
module Proxy
#
# Public: Returns a URI containing the current proxy server, as set by the
# environment, or nil if no proxy is set.
#
def proxy
if proxies.any?
URI(proxies.first)
else
nil
end
end
#
... | ruby | MIT | 8a9418a4260dc4faf9dd0b23599cab341443e5ef | 2026-01-04T17:52:21.382901Z | false |
adammck/ruby-icloud | https://github.com/adammck/ruby-icloud/blob/8a9418a4260dc4faf9dd0b23599cab341443e5ef/lib/icloud/helpers/inflections.rb | lib/icloud/helpers/inflections.rb | #!/usr/bin/env ruby
# vim: et ts=2 sw=2
module ICloud
# Internal: Convert a snake_cased string to camelCase.
def self.camel_case str
str.gsub /_([a-z])/ do
$1.upcase
end
end
# Internal: Convert a camelCased string to snake_case.
def self.snake_case str
str.gsub /(.)([A-Z])/ do
"#{$1... | ruby | MIT | 8a9418a4260dc4faf9dd0b23599cab341443e5ef | 2026-01-04T17:52:21.382901Z | false |
adammck/ruby-icloud | https://github.com/adammck/ruby-icloud/blob/8a9418a4260dc4faf9dd0b23599cab341443e5ef/lib/icloud/helpers/guid.rb | lib/icloud/helpers/guid.rb | #!/usr/bin/env ruby
# vim: et ts=2 sw=2
require "uuidtools"
module ICloud
# Public: Returns a random GUID.
def self.guid
UUIDTools::UUID.random_create.to_s.upcase
end
end
| ruby | MIT | 8a9418a4260dc4faf9dd0b23599cab341443e5ef | 2026-01-04T17:52:21.382901Z | false |
adammck/ruby-icloud | https://github.com/adammck/ruby-icloud/blob/8a9418a4260dc4faf9dd0b23599cab341443e5ef/lib/icloud/core_ext/array.rb | lib/icloud/core_ext/array.rb | #!/usr/bin/env ruby
# vim: et ts=2 sw=2
class Array
def to_icloud
map do |item|
item.to_icloud
end
end
end
| ruby | MIT | 8a9418a4260dc4faf9dd0b23599cab341443e5ef | 2026-01-04T17:52:21.382901Z | false |
adammck/ruby-icloud | https://github.com/adammck/ruby-icloud/blob/8a9418a4260dc4faf9dd0b23599cab341443e5ef/lib/icloud/core_ext/object.rb | lib/icloud/core_ext/object.rb | #!/usr/bin/env ruby
# vim: et ts=2 sw=2
class Object
def to_icloud
self
end
end
| ruby | MIT | 8a9418a4260dc4faf9dd0b23599cab341443e5ef | 2026-01-04T17:52:21.382901Z | false |
adammck/ruby-icloud | https://github.com/adammck/ruby-icloud/blob/8a9418a4260dc4faf9dd0b23599cab341443e5ef/lib/icloud/core_ext/date_time.rb | lib/icloud/core_ext/date_time.rb | #!/usr/bin/env ruby
# vim: et ts=2 sw=2
require 'date'
class DateTime
def to_icloud
ICloud.date_to_icloud(self)
end
end
| ruby | MIT | 8a9418a4260dc4faf9dd0b23599cab341443e5ef | 2026-01-04T17:52:21.382901Z | false |
adammck/ruby-icloud | https://github.com/adammck/ruby-icloud/blob/8a9418a4260dc4faf9dd0b23599cab341443e5ef/lib/icloud/records/collection.rb | lib/icloud/records/collection.rb | #!/usr/bin/env ruby
# vim: et ts=2 sw=2
module ICloud
module Records
class Collection
include Record
has_fields(
:ctag,
:title,
:created_date_extended,
:completed_count,
:participants,
:collection_share_type,
:created_date,
:guid,
... | ruby | MIT | 8a9418a4260dc4faf9dd0b23599cab341443e5ef | 2026-01-04T17:52:21.382901Z | false |
adammck/ruby-icloud | https://github.com/adammck/ruby-icloud/blob/8a9418a4260dc4faf9dd0b23599cab341443e5ef/lib/icloud/records/alarm.rb | lib/icloud/records/alarm.rb | #!/usr/bin/env ruby
# vim: et ts=2 sw=2
module ICloud
module Records
#
# Note: Alarms can only be added to existing reminders. Reminders cannot be
# created with alarms.
#
class Alarm
include Record
has_fields(
:description,
:guid,
:is_location_based,
:... | ruby | MIT | 8a9418a4260dc4faf9dd0b23599cab341443e5ef | 2026-01-04T17:52:21.382901Z | false |
adammck/ruby-icloud | https://github.com/adammck/ruby-icloud/blob/8a9418a4260dc4faf9dd0b23599cab341443e5ef/lib/icloud/records/dsinfo.rb | lib/icloud/records/dsinfo.rb | #!/usr/bin/env ruby
# vim: et ts=2 sw=2
module ICloud
module Records
#
# Public: An iCloud user's info. This is returned at login, and isn't (as far
# as I'm aware) editable.
#
class DsInfo
include Record
has_fields(
:primary_email_verified,
:last_name,
:iclou... | ruby | MIT | 8a9418a4260dc4faf9dd0b23599cab341443e5ef | 2026-01-04T17:52:21.382901Z | false |
adammck/ruby-icloud | https://github.com/adammck/ruby-icloud/blob/8a9418a4260dc4faf9dd0b23599cab341443e5ef/lib/icloud/records/reminder.rb | lib/icloud/records/reminder.rb | #!/usr/bin/env ruby
# vim: et ts=2 sw=2
module ICloud
module Records
class Reminder
include Record
has_fields(
:alarms,
:completed_date,
:created_date_extended,
:created_date,
:description,
:due_date,
:due_date_is_all_day,
:etag,
... | ruby | MIT | 8a9418a4260dc4faf9dd0b23599cab341443e5ef | 2026-01-04T17:52:21.382901Z | false |
cllns/material_design_lite-rails | https://github.com/cllns/material_design_lite-rails/blob/d9dc875b935bb7b360d7bcbfa02a5cd512e94917/lib/material_design_lite/rails.rb | lib/material_design_lite/rails.rb | require "material_design_lite/rails/version"
module MaterialDesignLite
module Rails
class Engine < ::Rails::Engine
end
end
end
| ruby | MIT | d9dc875b935bb7b360d7bcbfa02a5cd512e94917 | 2026-01-04T17:52:22.530212Z | false |
cllns/material_design_lite-rails | https://github.com/cllns/material_design_lite-rails/blob/d9dc875b935bb7b360d7bcbfa02a5cd512e94917/lib/material_design_lite/rails/version.rb | lib/material_design_lite/rails/version.rb | module MaterialDesignLite
module Rails
VERSION = "1.3.0"
end
end
| ruby | MIT | d9dc875b935bb7b360d7bcbfa02a5cd512e94917 | 2026-01-04T17:52:22.530212Z | false |
square/cocoapods-check | https://github.com/square/cocoapods-check/blob/ba5f196deaa5f921c2d4a64aa7fea680f0bf4a75/spec/check_spec.rb | spec/check_spec.rb | require 'cocoapods'
require 'tempfile'
require_relative '../lib/pod/command/check'
describe Pod::Command::Check do
it 'detects no differences' do
check = Pod::Command::Check.new(CLAide::ARGV.new([]))
config = create_config({ :pod_one => '1.0', :pod_two => '2.0' }, { :pod_one => '1.0', :pod_two => '2.0' })
... | ruby | Apache-2.0 | ba5f196deaa5f921c2d4a64aa7fea680f0bf4a75 | 2026-01-04T17:52:25.800169Z | false |
square/cocoapods-check | https://github.com/square/cocoapods-check/blob/ba5f196deaa5f921c2d4a64aa7fea680f0bf4a75/lib/cocoapods_check.rb | lib/cocoapods_check.rb | module CocoapodsCheck
VERSION = '1.1.0'
end
| ruby | Apache-2.0 | ba5f196deaa5f921c2d4a64aa7fea680f0bf4a75 | 2026-01-04T17:52:25.800169Z | false |
square/cocoapods-check | https://github.com/square/cocoapods-check/blob/ba5f196deaa5f921c2d4a64aa7fea680f0bf4a75/lib/cocoapods_plugin.rb | lib/cocoapods_plugin.rb | require 'pod/command/check'
| ruby | Apache-2.0 | ba5f196deaa5f921c2d4a64aa7fea680f0bf4a75 | 2026-01-04T17:52:25.800169Z | false |
square/cocoapods-check | https://github.com/square/cocoapods-check/blob/ba5f196deaa5f921c2d4a64aa7fea680f0bf4a75/lib/pod/command/check.rb | lib/pod/command/check.rb | # The CocoaPods check command.
# The CocoaPods namespace
module Pod
class Command
class Check < Command
self.summary = <<-SUMMARY
Displays which Pods would be changed by running `pod install`
SUMMARY
self.description = <<-DESC
Compares the Pod lockfile with the manifest loc... | ruby | Apache-2.0 | ba5f196deaa5f921c2d4a64aa7fea680f0bf4a75 | 2026-01-04T17:52:25.800169Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/jobs/chaskiq/mail_sender_job.rb | app/jobs/chaskiq/mail_sender_job.rb | module Chaskiq
class MailSenderJob < ActiveJob::Base
queue_as :default
#send to all list with state passive & subscribed
def perform(campaign)
campaign.apply_premailer
campaign.list.subscriptions.availables.each do |s|
campaign.push_notification(s)
end
end
end
end | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/jobs/chaskiq/sns_receiver_job.rb | app/jobs/chaskiq/sns_receiver_job.rb | module Chaskiq
class SnsReceiverJob < ActiveJob::Base
queue_as :default
#Receive hook
def perform(track_type, m, referrer)
data = m["mail"]["messageId"]
metric = Chaskiq::Metric.find_by(data:parsed_message_id(m))
return if metric.blank?
campaign = metric.campaign
#subscr... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/jobs/chaskiq/list_importer_job.rb | app/jobs/chaskiq/list_importer_job.rb | module Chaskiq
class ListImporterJob < ActiveJob::Base
queue_as :default
#send to all list with state passive & subscribed
def perform(list, file)
list.import_csv(file)
end
end
end | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/jobs/chaskiq/ses_sender_job.rb | app/jobs/chaskiq/ses_sender_job.rb | module Chaskiq
class SesSenderJob < ActiveJob::Base
queue_as :mailers
#send to ses
def perform(campaign, subscription)
subscriber = subscription.subscriber
return if subscriber.blank?
mailer = campaign.prepare_mail_to(subscription)
response = mailer.deliver
message... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/uploaders/chaskiq/image_uploader.rb | app/uploaders/chaskiq/image_uploader.rb | # encoding: utf-8
# encoding: utf-8
module Chaskiq
class ImageUploader < CarrierWave::Uploader::Base
# Include RMagick or MiniMagick support:
# include CarrierWave::RMagick
# include CarrierWave::MiniMagick
# Choose what kind of storage to use for this uploader:
storage :fog
# storage :fog
... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/uploaders/chaskiq/campaign_logo_uploader.rb | app/uploaders/chaskiq/campaign_logo_uploader.rb | # encoding: utf-8
module Chaskiq
class CampaignLogoUploader < CarrierWave::Uploader::Base
# Include RMagick or MiniMagick support:
# include CarrierWave::RMagick
include CarrierWave::MiniMagick
# Choose what kind of storage to use for this uploader:
#storage :file
storage :fog
# Overrid... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/helpers/chaskiq/dashboard_helper.rb | app/helpers/chaskiq/dashboard_helper.rb | module Chaskiq
module DashboardHelper
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/helpers/chaskiq/hooks_helper.rb | app/helpers/chaskiq/hooks_helper.rb | module Chaskiq
module HooksHelper
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/helpers/chaskiq/subscribers_helper.rb | app/helpers/chaskiq/subscribers_helper.rb | module Chaskiq
module SubscribersHelper
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/helpers/chaskiq/tracks_helper.rb | app/helpers/chaskiq/tracks_helper.rb | module Chaskiq
module TracksHelper
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/helpers/chaskiq/campaigns_helper.rb | app/helpers/chaskiq/campaigns_helper.rb | module Chaskiq
module CampaignsHelper
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/helpers/chaskiq/application_helper.rb | app/helpers/chaskiq/application_helper.rb | module Chaskiq
module ApplicationHelper
def paginate objects, options = {}
options.reverse_merge!( theme: 'twitter-bootstrap-3' )
super( objects, options )
end
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/helpers/chaskiq/manage/campain_wizard_helper.rb | app/helpers/chaskiq/manage/campain_wizard_helper.rb | module Chaskiq
module Manage::CampainWizardHelper
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/helpers/chaskiq/manage/lists_helper.rb | app/helpers/chaskiq/manage/lists_helper.rb | module Chaskiq
module Manage::ListsHelper
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/helpers/chaskiq/manage/metrics_helper.rb | app/helpers/chaskiq/manage/metrics_helper.rb | module Chaskiq
module Manage::MetricsHelper
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/helpers/chaskiq/manage/attachments_helper.rb | app/helpers/chaskiq/manage/attachments_helper.rb | module Chaskiq
module Manage::AttachmentsHelper
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/helpers/chaskiq/manage/campaigns_helper.rb | app/helpers/chaskiq/manage/campaigns_helper.rb | module Chaskiq
module Manage::CampaignsHelper
def metric_action_class(metric)
case metric.action
when "deliver"
"plain"
when "open"
"info"
when "click"
"primary"
when "bounce"
"warning"
when "spam"
"danger"
end
end
def me... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/helpers/chaskiq/manage/templates_helper.rb | app/helpers/chaskiq/manage/templates_helper.rb | module Chaskiq
module Manage::TemplatesHelper
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/controllers/chaskiq/campaigns_controller.rb | app/controllers/chaskiq/campaigns_controller.rb | require_dependency "chaskiq/application_controller"
module Chaskiq
class CampaignsController < ApplicationController
layout "chaskiq/empty"
before_filter :find_campaign
def show
end
def find_campaign
@campaign = Chaskiq::Campaign.find(params[:id])
end
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/controllers/chaskiq/hooks_controller.rb | app/controllers/chaskiq/hooks_controller.rb | require_dependency "chaskiq/application_controller"
require "open-uri"
module Chaskiq
class HooksController < ApplicationController
layout false
def create
# get amazon message type and topic
amz_message_type = request.headers['x-amz-sns-message-type']
amz_sns_topic = request.headers['x-a... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/controllers/chaskiq/dashboard_controller.rb | app/controllers/chaskiq/dashboard_controller.rb | require_dependency "chaskiq/application_controller"
module Chaskiq
class DashboardController < Chaskiq::ApplicationController
before_filter :authentication_method
def show
@campaigns_count = Chaskiq::Campaign.count
@sends_count = Chaskiq::Metric.deliveries.size
@daily_metrics = Chaskiq::Me... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/controllers/chaskiq/subscribers_controller.rb | app/controllers/chaskiq/subscribers_controller.rb | require_dependency "chaskiq/application_controller"
module Chaskiq
class SubscribersController < ApplicationController
before_filter :find_base_models
layout "chaskiq/empty"
def show
#TODO, we should obfustate code
find_subscriber
render "edit"
end
def new
@subscriber ... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/controllers/chaskiq/lists_controller.rb | app/controllers/chaskiq/lists_controller.rb | require_dependency "chaskiq/application_controller"
module Chaskiq
class ListsController < ApplicationController
protected
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/controllers/chaskiq/application_controller.rb | app/controllers/chaskiq/application_controller.rb | require "wicked"
module Chaskiq
class ApplicationController < ActionController::Base
def get_referrer
ip = request.ip
ip = env['HTTP_X_FORWARDED_FOR'].split(",").first if Rails.env.production?
end
def authentication_method
if meth = Chaskiq::Config.authentication_method
self.s... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/controllers/chaskiq/tracks_controller.rb | app/controllers/chaskiq/tracks_controller.rb | require_dependency "chaskiq/application_controller"
module Chaskiq
class TracksController < ApplicationController
before_filter :find_campaign
#http://localhost:3000/chaskiq/campaigns/1/tracks/1/[click|open|bounce|spam].gif
%w[open bounce spam].each do |action|
define_method(action) do
fi... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/controllers/chaskiq/manage/templates_controller.rb | app/controllers/chaskiq/manage/templates_controller.rb | require_dependency "chaskiq/application_controller"
module Chaskiq
class Manage::TemplatesController < ApplicationController
before_filter :authentication_method
def index
@templates = Chaskiq::Template.all
end
def show
@template = Chaskiq::Template.find(params[:id])
end
def ... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/controllers/chaskiq/manage/campaigns_controller.rb | app/controllers/chaskiq/manage/campaigns_controller.rb | require_dependency "chaskiq/application_controller"
module Chaskiq
class Manage::CampaignsController < ApplicationController
before_filter :authentication_method, except: [:preview, :premailer_preview]
before_filter :find_campaign, except: [:index, :create, :new]
helper Chaskiq::Manage::CampaignsHelper
... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/controllers/chaskiq/manage/metrics_controller.rb | app/controllers/chaskiq/manage/metrics_controller.rb | require_dependency "chaskiq/application_controller"
module Chaskiq
class Manage::MetricsController < ApplicationController
before_filter :authentication_method
before_filter :find_campaign
def index
@q = @campaign.metrics.ransack(params[:q])
@metrics = @q.result
.includes... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/controllers/chaskiq/manage/campaign_wizard_controller.rb | app/controllers/chaskiq/manage/campaign_wizard_controller.rb | require_dependency "chaskiq/application_controller"
require "wicked"
module Chaskiq
class Manage::CampaignWizardController < ApplicationController
before_filter :authentication_method
before_filter :find_campaign , except: [:create]
include Wicked::Wizard
steps :list, :setup, :template, :design, :... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/controllers/chaskiq/manage/attachments_controller.rb | app/controllers/chaskiq/manage/attachments_controller.rb | require_dependency "chaskiq/application_controller"
module Chaskiq
class Manage::AttachmentsController < ApplicationController
before_filter :authentication_method
before_filter :find_campaign
def index
@attachments = @campaign.attachments.page(params[:page]).per(50)
respond_to do |format|
... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/controllers/chaskiq/manage/lists_controller.rb | app/controllers/chaskiq/manage/lists_controller.rb | require_dependency "chaskiq/application_controller"
module Chaskiq
class Manage::ListsController < ApplicationController
before_filter :authentication_method
def index
@q = Chaskiq::List.ransack(params[:q])
@lists = @q.result
.page(params[:page])
.per(8)
end
def show
... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/models/chaskiq/subscription.rb | app/models/chaskiq/subscription.rb | require "aasm"
module Chaskiq
class Subscription < ActiveRecord::Base
belongs_to :subscriber
belongs_to :list
has_many :campaigns, through: :list
has_many :metrics , as: :trackable
delegate :name, :last_name, :email, to: :subscriber
scope :availables, ->{ where(["chaskiq_subscriptions.state... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/models/chaskiq/attachment.rb | app/models/chaskiq/attachment.rb | module Chaskiq
class Attachment < ActiveRecord::Base
belongs_to :campaign
mount_uploader :image, ImageUploader
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/models/chaskiq/subscriber.rb | app/models/chaskiq/subscriber.rb |
module Chaskiq
class Subscriber < ActiveRecord::Base
has_many :subscriptions
has_many :lists, through: :subscriptions, class_name: "Chaskiq::List"
has_many :metrics , as: :trackable
has_many :campaigns, through: :lists, class_name: "Chaskiq::Campaign"
validates :email , presence: true
... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/models/chaskiq/template.rb | app/models/chaskiq/template.rb | module Chaskiq
class Template < ActiveRecord::Base
has_many :campaigns
validates :body, presence: true
validates :name, presence: true
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/models/chaskiq/list.rb | app/models/chaskiq/list.rb | module Chaskiq
class List < ActiveRecord::Base
has_many :subscriptions #, dependent: :destroy
has_many :subscribers, through: :subscriptions
has_many :campaigns
accepts_nested_attributes_for :subscribers
attr_accessor :upload_file
def subscription_progress
return 0 if subscribers.wher... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/models/chaskiq/setting.rb | app/models/chaskiq/setting.rb | module Chaskiq
class Setting < ActiveRecord::Base
belongs_to :campaign
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/models/chaskiq/metric.rb | app/models/chaskiq/metric.rb | module Chaskiq
class Metric < ActiveRecord::Base
belongs_to :campaign
belongs_to :trackable, polymorphic: true, required: true
#belongs_to :subscription, ->{ where("chaskiq_metrics.trackable_type =?", "Chaskiq::Subscription")}, foreign_key: :trackable_id
belongs_to :subscription, foreign_key: :trackab... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/models/chaskiq/campaign.rb | app/models/chaskiq/campaign.rb | require 'net/http'
module Chaskiq
class Campaign < ActiveRecord::Base
belongs_to :parent, class_name: "Chaskiq::Campaign"
belongs_to :list
has_many :subscribers, through: :list
has_many :subscriptions, through: :subscribers
has_many :attachments
has_many :metrics
belongs_to :template, cl... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/inputs/date_time_picker_input.rb | app/inputs/date_time_picker_input.rb | ## app/inputs/date_time_picker_input.rb
class DateTimePickerInput < SimpleForm::Inputs::Base
def input
template.content_tag(:div, class: 'form-group') do
template.content_tag(:div, class: 'input-group date') do
template.concat span_calendar
template.concat @builder.text_field(attribute_name... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/mailers/application_mailer.rb | app/mailers/application_mailer.rb | require 'mustache'
class ApplicationMailer < ActionMailer::Base
def tryme
campaign = Chaskiq::Campaign.first
mail( from: "#{campaign.from_name}<#{campaign.from_email}>",
to: "miguelmichelson@gmail.com",
subject: "campaign.subject",
body: "campaign.reply_email",
content_ty... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/app/mailers/chaskiq/campaign_mailer.rb | app/mailers/chaskiq/campaign_mailer.rb | module Chaskiq
class CampaignMailer < ApplicationMailer
layout 'mailer'
#default delivery_method: :ses
def newsletter(campaign, subscription)
subscriber = subscription.subscriber
return if subscriber.blank?
content_type = "text/html"
attrs = subscriber.attributes
@camp... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/db/seeds.rb | db/seeds.rb | name = 'Default theme'
body = '<table id=\"bodyTable\" height=\"100%\" align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tbody>
<tr>
<td id=\"bodyCell\" align=\"center\" valign=\"top\">
<!-- BEGIN TEMPLATE // -->
<table id=\"templateC... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/db/migrate/20150321205815_create_chaskiq_settings.rb | db/migrate/20150321205815_create_chaskiq_settings.rb | class CreateChaskiqSettings < ActiveRecord::Migration
def change
create_table :chaskiq_settings do |t|
t.text :config
t.references :campaign, index: true
t.timestamps null: false
end
#add_foreign_key :chaskiq_settings, :campaign
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/db/migrate/20150318021239_create_chaskiq_templates.rb | db/migrate/20150318021239_create_chaskiq_templates.rb | class CreateChaskiqTemplates < ActiveRecord::Migration
def change
create_table :chaskiq_templates do |t|
t.string :name
t.text :body
t.text :html_content
t.string :screenshot
t.timestamps null: false
end
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/db/migrate/20150318022506_create_chaskiq_subscribers.rb | db/migrate/20150318022506_create_chaskiq_subscribers.rb | class CreateChaskiqSubscribers < ActiveRecord::Migration
def change
create_table :chaskiq_subscribers do |t|
t.string :name
t.string :email
t.string :state
t.string :last_name
t.references :list, index: true
t.timestamps null: false
end
#add_foreign_key :chaskiq_subsc... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/db/migrate/20150402201729_create_chaskiq_subscriptions.rb | db/migrate/20150402201729_create_chaskiq_subscriptions.rb | class CreateChaskiqSubscriptions < ActiveRecord::Migration
def change
create_table :chaskiq_subscriptions do |t|
t.string :state
t.references :campaign, index: true
t.references :subscriber, index: true
t.references :list, index: true
t.timestamps null: false
end
#add_foreign... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/db/migrate/20150331022602_add_css_to_campaign.rb | db/migrate/20150331022602_add_css_to_campaign.rb | class AddCssToCampaign < ActiveRecord::Migration
def change
add_column :chaskiq_campaigns, :css, :text
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/db/migrate/20150320031404_create_chaskiq_metrics.rb | db/migrate/20150320031404_create_chaskiq_metrics.rb | class CreateChaskiqMetrics < ActiveRecord::Migration
def change
create_table :chaskiq_metrics do |t|
t.references :trackable, polymorphic: true, index: true, null: false
t.references :campaign, index: true
t.string :action
t.string :host
t.string :data
t.timestamps null: false... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/db/migrate/20150318021006_create_chaskiq_campaigns.rb | db/migrate/20150318021006_create_chaskiq_campaigns.rb | class CreateChaskiqCampaigns < ActiveRecord::Migration
def change
create_table :chaskiq_campaigns do |t|
t.string :subject
t.string :from_name
t.string :from_email
t.string :reply_email
t.text :plain_content
t.text :html_content
t.text :premailer
t.text :description... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/db/migrate/20150331025829_add_css_to_chaskiq_template.rb | db/migrate/20150331025829_add_css_to_chaskiq_template.rb | class AddCssToChaskiqTemplate < ActiveRecord::Migration
def change
add_column :chaskiq_templates, :css, :text
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/db/migrate/20150318023136_create_chaskiq_attachments.rb | db/migrate/20150318023136_create_chaskiq_attachments.rb | class CreateChaskiqAttachments < ActiveRecord::Migration
def change
create_table :chaskiq_attachments do |t|
t.string :image
t.string :content_type
t.integer :size
t.string :name
t.references :campaign, index: true
t.timestamps null: false
end
#add_foreign_key :chaskiq... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/db/migrate/20150318021424_create_chaskiq_lists.rb | db/migrate/20150318021424_create_chaskiq_lists.rb | class CreateChaskiqLists < ActiveRecord::Migration
def change
create_table :chaskiq_lists do |t|
t.string :name
t.string :state
t.integer :unsubscribe_count
t.integer :bounced
t.integer :active_count
t.timestamps null: false
end
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/rails_helper.rb | spec/rails_helper.rb | require "spec_helper.rb" | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/spec_helper.rb | spec/spec_helper.rb | # This file was generated by the `rails generate rspec:install` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause
# this file to always be loaded, without a need to explicitly require ... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/helpers/chaskiq/hooks_helper_spec.rb | spec/helpers/chaskiq/hooks_helper_spec.rb | require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the HooksHelper. For example:
#
# describe HooksHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# end
# end
# ... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/helpers/chaskiq/subscribers_helper_spec.rb | spec/helpers/chaskiq/subscribers_helper_spec.rb | require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the SubscribersHelper. For example:
#
# describe SubscribersHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# en... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/helpers/chaskiq/campaigns_helper_spec.rb | spec/helpers/chaskiq/campaigns_helper_spec.rb | require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the CampaignsHelper. For example:
#
# describe CampaignsHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# end
# ... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/helpers/chaskiq/tracks_helper_spec.rb | spec/helpers/chaskiq/tracks_helper_spec.rb | require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the TracksHelper. For example:
#
# describe TracksHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# end
# end
... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/helpers/chaskiq/dashboard_helper_spec.rb | spec/helpers/chaskiq/dashboard_helper_spec.rb | require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the DashboardHelper. For example:
#
# describe DashboardHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# end
# ... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/helpers/chaskiq/manage/lists_helper_spec.rb | spec/helpers/chaskiq/manage/lists_helper_spec.rb | require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the Manage::ListsHelper. For example:
#
# describe Manage::ListsHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# ... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/helpers/chaskiq/manage/templates_helper_spec.rb | spec/helpers/chaskiq/manage/templates_helper_spec.rb | require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the Manage::TemplatesHelper. For example:
#
# describe Manage::TemplatesHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this tha... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/helpers/chaskiq/manage/metrics_helper_spec.rb | spec/helpers/chaskiq/manage/metrics_helper_spec.rb | require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the Manage::MetricsHelper. For example:
#
# describe Manage::MetricsHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/helpers/chaskiq/manage/campaigns_helper_spec.rb | spec/helpers/chaskiq/manage/campaigns_helper_spec.rb | require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the Manage::CampaignsHelper. For example:
#
# describe Manage::CampaignsHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this tha... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/helpers/chaskiq/manage/attachments_helper_spec.rb | spec/helpers/chaskiq/manage/attachments_helper_spec.rb | require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the Manage::AttachmentsHelper. For example:
#
# describe Manage::AttachmentsHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/helpers/chaskiq/manage/campain_wizard_helper_spec.rb | spec/helpers/chaskiq/manage/campain_wizard_helper_spec.rb | require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the Manage::CampainWizardHelper. For example:
#
# describe Manage::CampainWizardHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/factories/chaskiq_lists.rb | spec/factories/chaskiq_lists.rb | # Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :chaskiq_list, :class => 'Chaskiq::List' do
name "MyString"
#state "MyString"
#unsubscribe_count 1
#bounced 1
#active_count 1
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/factories/chaskiq_settings.rb | spec/factories/chaskiq_settings.rb | # Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :chaskiq_setting, :class => 'Setting' do
config "MyText"
campaign nil
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/factories/chaskiq_subscriptions.rb | spec/factories/chaskiq_subscriptions.rb | # Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :chaskiq_subscription, :class => 'Subscription' do
state "MyString"
campaign nil
subscriber nil
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/factories/chaskiq_subscribers.rb | spec/factories/chaskiq_subscribers.rb | # Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :chaskiq_subscriber, :class => 'Chaskiq::Subscriber' do
sequence :email do |n|
"person#{n}@example.com"
end
sequence :name do |n|
"person #{n}"
end
sequence :last_name do |n|
"#... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/factories/chaskiq_attachments.rb | spec/factories/chaskiq_attachments.rb | # Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :chaskiq_attachment, :class => 'Chaskiq::Attachment' do
image "MyString"
content_type "MyString"
size 1
name "MyString"
campaign nil
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/factories/chaskiq_campaigns.rb | spec/factories/chaskiq_campaigns.rb | # Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :chaskiq_campaign, :class => 'Chaskiq::Campaign' do
name "some Campaign"
subject "Hello"
from_name "Me"
from_email "me@me.com"
reply_email "reply-me@me.com"
#plain_content "hi this is the plain ... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/factories/chaskiq_metrics.rb | spec/factories/chaskiq_metrics.rb | # Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :chaskiq_metric, :class => 'Chaskiq::Metric' do
trackable nil
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/factories/chaskiq_templates.rb | spec/factories/chaskiq_templates.rb | # Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :chaskiq_template, :class => 'Chaskiq::Template' do
name "MyString"
body "<p>this is the template</p>"
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/controllers/chaskiq/subscribers_controller_spec.rb | spec/controllers/chaskiq/subscribers_controller_spec.rb | require 'rails_helper'
module Chaskiq
RSpec.describe SubscribersController, type: :controller do
render_views
routes { Chaskiq::Engine.routes }
let(:list){ FactoryGirl.create(:chaskiq_list) }
let(:subscriber){
list.create_subscriber FactoryGirl.attributes_for(:chaskiq_subscriber)
}
let(... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/controllers/chaskiq/hooks_controller_spec.rb | spec/controllers/chaskiq/hooks_controller_spec.rb | require 'rails_helper'
def send_data(params)
@request.env['RAW_POST_DATA'] = params.to_json
post :create
end
module Chaskiq
RSpec.describe HooksController, type: :controller do
routes { Chaskiq::Engine.routes }
let(:list){ FactoryGirl.create(:chaskiq_list) }
let(:subscriber){
list.create_subs... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/controllers/chaskiq/campaigns_controller_spec.rb | spec/controllers/chaskiq/campaigns_controller_spec.rb | require 'rails_helper'
module Chaskiq
RSpec.describe CampaignsController, type: :controller do
render_views
routes { Chaskiq::Engine.routes }
let(:list){ FactoryGirl.create(:chaskiq_list) }
let(:subscriber){
list.create_subscriber FactoryGirl.attributes_for(:chaskiq_subscriber)
}
let(:... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/controllers/chaskiq/dashboard_controller_spec.rb | spec/controllers/chaskiq/dashboard_controller_spec.rb | require 'rails_helper'
module Chaskiq
RSpec.describe DashboardController, type: :controller do
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/controllers/chaskiq/tracks_controller_spec.rb | spec/controllers/chaskiq/tracks_controller_spec.rb | require 'rails_helper'
module Chaskiq
RSpec.describe TracksController, type: :controller do
routes { Chaskiq::Engine.routes }
let(:list){ FactoryGirl.create(:chaskiq_list) }
let(:subscriber){
list.create_subscriber FactoryGirl.attributes_for(:chaskiq_subscriber)
}
let(:campaign){ FactoryGi... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/controllers/chaskiq/manage/attachments_controller_spec.rb | spec/controllers/chaskiq/manage/attachments_controller_spec.rb | require 'rails_helper'
module Chaskiq
RSpec.describe Manage::AttachmentsController, type: :controller do
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/controllers/chaskiq/manage/campaigns_controller_spec.rb | spec/controllers/chaskiq/manage/campaigns_controller_spec.rb | require 'rails_helper'
module Chaskiq
RSpec.describe Manage::CampaignsController, type: :controller do
routes { Chaskiq::Engine.routes }
let(:campaign){ FactoryGirl.create(:chaskiq_campaign) }
before do
campaign
end
it "will render index" do
response = get :index
expect(respo... | ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/controllers/chaskiq/manage/campaign_wizard_controller_spec.rb | spec/controllers/chaskiq/manage/campaign_wizard_controller_spec.rb | require 'rails_helper'
module Chaskiq
RSpec.describe Manage::CampaignWizardController, type: :controller do
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
michelson/chaskiq-newsletters | https://github.com/michelson/chaskiq-newsletters/blob/1f0d0e6cf7f198e888d421471619bdfdedffa1d2/spec/controllers/chaskiq/manage/lists_controller_spec.rb | spec/controllers/chaskiq/manage/lists_controller_spec.rb | require 'rails_helper'
module Chaskiq
RSpec.describe Manage::ListsController, type: :controller do
end
end
| ruby | MIT | 1f0d0e6cf7f198e888d421471619bdfdedffa1d2 | 2026-01-04T17:52:24.705458Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.