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
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/authorization/ability.rb
app/authorization/ability.rb
class Ability include CanCan::Ability def initialize(user = nil) # Define abilities for the passed in user here. For example: user ||= User.new # guest user (not logged in) if user.admin? can :manage, :all end can [:show, :index], Organization unless user.new_record? ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/controllers/organizations_controller.rb
app/controllers/organizations_controller.rb
class OrganizationsController < ApplicationController before_filter :authenticate_user!, :except => [:index, :show] # GET /organizations # GET /organizations.json def index authorize! :index, Organization @organizations = Organization.paginate(:page => params[:page]) @organizations = @organiza...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/controllers/reviews_controller.rb
app/controllers/reviews_controller.rb
class ReviewsController < ApplicationController before_filter :authenticate_user!, :except => [:index, :show] # GET /reviews # GET /reviews.json def index authorize! :index, Review @reviews = Review.paginate(:page => params[:page]) respond_to do |format| format.html # index.html.erb ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/controllers/pages_controller.rb
app/controllers/pages_controller.rb
class PagesController < ApplicationController before_filter :authenticate_user!, :only => [:favorites] skip_before_action :verify_authenticity_token, :only => [:bookmarklet] def about @title = "About" end def bookmarklet @title = "Bookmarklet" respond_to do |format| format.html ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/controllers/application_controller.rb
app/controllers/application_controller.rb
class ApplicationController < ActionController::Base before_filter :configure_permitted_parameters, if: :devise_controller? protect_from_forgery protected def configure_permitted_parameters devise_parameter_sanitizer.for(:sign_up) << [:login, :username, :email] end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/controllers/relationships/organization_users_controller.rb
app/controllers/relationships/organization_users_controller.rb
class Relationships::OrganizationUsersController < ApplicationController before_filter :authenticate_user! # GET /relationships/organization_users # GET /relationships/organization_users.json def index @relationships_organization_users = Relationships::OrganizationUser.paginate(:page => params[:page]) ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/controllers/api/v1/organizations_controller.rb
app/controllers/api/v1/organizations_controller.rb
class Api::V1::OrganizationsController < Api::V1::ApplicationController after_filter :track_google_analytics def index @organizations = Organization.paginate(:page => params[:page]) unless params[:category].blank? or params[:category].downcase == "all" @organizations = @organizations.where(:category...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/controllers/api/v1/pages_controller.rb
app/controllers/api/v1/pages_controller.rb
class Api::V1::PagesController < ApplicationController def documentation @title = "API Documentation" end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/controllers/api/v1/application_controller.rb
app/controllers/api/v1/application_controller.rb
class Api::V1::ApplicationController < ActionController::Base protect_from_forgery before_filter :allow_origin_multiple_origin_domains rescue_from CanCan::AccessDenied do |exception| render :text => "Access Forbidden", :status => 403, :layout => false end private def allow_origin_multiple_or...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/models/review.rb
app/models/review.rb
# == Schema Information # Schema version: 20130424042424 # # Table name: reviews # # id :integer not null, primary key # rating :integer # content :text # user_id :integer # condition_id :integer # organization_id :integer # created_at :datetime not ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/models/organization.rb
app/models/organization.rb
# == Schema Information # Schema version: 20130501180835 # # Table name: organizations # # id :integer not null, primary key # name :string(255) # url :string(255) # url_type :string(255) # latitude :float # longitude :float # created_at ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/models/user.rb
app/models/user.rb
# == Schema Information # Schema version: 20130424193539 # # Table name: users # # id :integer not null, primary key # email :string(255) default(""), not null # encrypted_password :string(255) default(""), not null # reset_password_token :string(255) # ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/models/cache/review_stat.rb
app/models/cache/review_stat.rb
# == Schema Information # Schema version: 20130501214342 # # Table name: cache_review_stats # # id :integer not null, primary key # organization_id :integer # num_reviews :integer default(0) # avg_review :float default(0.0) # condition_id :integer # created_at...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/models/relationships/organization_user.rb
app/models/relationships/organization_user.rb
# == Schema Information # Schema version: 20130423230554 # # Table name: relationships_organization_users # # id :integer not null, primary key # organization_id :integer # user_id :integer # created_at :datetime not null # updated_at :datetime not null # cl...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/namespaces/relationships.rb
app/namespaces/relationships.rb
module Relationships def self.table_name_prefix 'relationships_' end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/app/namespaces/cache.rb
app/namespaces/cache.rb
module Cache def self.table_name_prefix 'cache_' end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/db/seeds.rb
db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/db/schema.rb
db/schema.rb
# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative sou...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/db/migrate/20130501214342_create_cache_review_stats.rb
db/migrate/20130501214342_create_cache_review_stats.rb
class CreateCacheReviewStats < ActiveRecord::Migration def change create_table :cache_review_stats do |t| t.integer :organization_id t.integer :num_reviews, :default => 0 t.float :avg_review, :default => 0.0 t.integer :condition_id t.timestamps end add_index :cache_review_st...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/db/migrate/20130424214510_change_display_location_to_addresss.rb
db/migrate/20130424214510_change_display_location_to_addresss.rb
class ChangeDisplayLocationToAddresss < ActiveRecord::Migration def change rename_column :organizations, :display_location, :address end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/db/migrate/20130501180835_add_homepage_url_to_organizations.rb
db/migrate/20130501180835_add_homepage_url_to_organizations.rb
class AddHomepageUrlToOrganizations < ActiveRecord::Migration def change add_column :organizations, :homepage_url, :string end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/db/migrate/20130416210931_create_users.rb
db/migrate/20130416210931_create_users.rb
class CreateUsers < ActiveRecord::Migration def change create_table(:users) do |t| ## Database authenticatable t.string :email, :null => false, :default => "" t.string :encrypted_password, :null => false, :default => "" ## Recoverable t.string :reset_password_token ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/db/migrate/20130423222405_add_category_id_to_organizations.rb
db/migrate/20130423222405_add_category_id_to_organizations.rb
class AddCategoryIdToOrganizations < ActiveRecord::Migration def change add_column :organizations, :category_id, :integer add_index :organizations, :category_id add_column :organizations, :display_location, :string end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/db/migrate/20130424221615_add_display_location_to_organization.rb
db/migrate/20130424221615_add_display_location_to_organization.rb
class AddDisplayLocationToOrganization < ActiveRecord::Migration def change add_column :organizations, :display_location, :string end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/db/migrate/20130721085018_add_index_for_username.rb
db/migrate/20130721085018_add_index_for_username.rb
class AddIndexForUsername < ActiveRecord::Migration def change add_index :users, :username end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/db/migrate/20130417181129_create_organizations.rb
db/migrate/20130417181129_create_organizations.rb
class CreateOrganizations < ActiveRecord::Migration def change create_table :organizations do |t| t.string :name t.string :url t.string :url_type t.float :latitude t.float :longitude t.timestamps end add_index :organizations, :latitude add_index :organizations...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/db/migrate/20130423230554_create_relationships_organization_users.rb
db/migrate/20130423230554_create_relationships_organization_users.rb
class CreateRelationshipsOrganizationUsers < ActiveRecord::Migration def change create_table :relationships_organization_users do |t| t.integer :organization_id t.integer :user_id t.timestamps end add_index :relationships_organization_users, :organization_id add_index :relationships...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/db/migrate/20130424193539_add_admin_to_users.rb
db/migrate/20130424193539_add_admin_to_users.rb
class AddAdminToUsers < ActiveRecord::Migration def change add_column :users, :admin, :boolean, :default => false add_index :users, :admin end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/db/migrate/20130424042424_create_reviews.rb
db/migrate/20130424042424_create_reviews.rb
class CreateReviews < ActiveRecord::Migration def change create_table :reviews do |t| t.integer :rating t.text :content t.integer :user_id t.integer :condition_id t.integer :organization_id t.timestamps end add_index :reviews, :user_id add_index :reviews, :con...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/rails_helper.rb
spec/rails_helper.rb
# This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||= 'test' require 'spec_helper' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'webmock/rspec' require 'capybara/rspec' # Requires supporting ruby files with custom matchers and m...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/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
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/support/devise.rb
spec/support/devise.rb
RSpec.configure do |config| config.include Devise::TestHelpers, :type => :controller config.include Devise::TestHelpers, :type => :helper config.include Warden::Test::Helpers, :type => :request end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/routing/reviews_routing_spec.rb
spec/routing/reviews_routing_spec.rb
require "rails_helper" describe ReviewsController, :type => :routing do describe "routing" do it "routes to #index" do expect(get("/reviews")).to route_to("reviews#index") end it "routes to #new" do expect(get("/reviews/new")).to route_to("reviews#new") end it "routes to #show" do ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/routing/organizations_routing_spec.rb
spec/routing/organizations_routing_spec.rb
require "rails_helper" describe OrganizationsController, :type => :routing do describe "routing" do it "routes to #index" do expect(get("/organizations")).to route_to("organizations#index") end it "routes to #new" do expect(get("/organizations/new")).to route_to("organizations#new") end...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/routing/pages_routing_spec.rb
spec/routing/pages_routing_spec.rb
require "rails_helper" describe PagesController, :type => :routing do describe "routing" do it "routes to about" do expect(get("/about")).to route_to("pages#about") end it "routes to bookmarklet" do expect(get("/bookmarklet")).to route_to("pages#bookmarklet") end it "routes...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/routing/relationships/organization_users_routing_spec.rb
spec/routing/relationships/organization_users_routing_spec.rb
require "rails_helper" describe Relationships::OrganizationUsersController, :type => :routing do describe "routing" do it "routes to #index" do expect(get("/relationships/organization_users")).to route_to("relationships/organization_users#index") end it "routes to #new" do expect(get("/rela...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/routing/api/v1/organizations_routing_spec.rb
spec/routing/api/v1/organizations_routing_spec.rb
require "rails_helper" describe Api::V1::OrganizationsController, :type => :routing do describe "routing" do it "routes to #index" do expect(get("/api/v1/organizations")).to route_to("api/v1/organizations#index") end it "routes to #show" do expect(get("/api/v1/organizations/1")).to rout...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/helpers/pages_helper_spec.rb
spec/helpers/pages_helper_spec.rb
require 'rails_helper' # Specs in this file have access to a helper object that includes # the PagesHelper. For example: # # describe PagesHelper do # describe "string concat" do # it "concats two strings with spaces" do # helper.concat_strings("this","that").should == "this that" # end # end # end d...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/helpers/reviews_helper_spec.rb
spec/helpers/reviews_helper_spec.rb
require 'rails_helper' # Specs in this file have access to a helper object that includes # the ReviewsHelper. For example: # # describe ReviewsHelper do # describe "string concat" do # it "concats two strings with spaces" do # helper.concat_strings("this","that").should == "this that" # end # end # e...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/helpers/organizations_helper_spec.rb
spec/helpers/organizations_helper_spec.rb
require 'rails_helper' # Specs in this file have access to a helper object that includes # the OrganizationsHelper. For example: # # describe OrganizationsHelper do # describe "string concat" do # it "concats two strings with spaces" do # helper.concat_strings("this","that").should == "this that" # end...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/helpers/application_helper_spec.rb
spec/helpers/application_helper_spec.rb
require 'rails_helper' # Specs in this file have access to a helper object that includes # the PagesHelper. For example: # # describe PagesHelper do # describe "string concat" do # it "concats two strings with spaces" do # helper.concat_strings("this","that").should == "this that" # end # end # end d...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/helpers/relationships/organization_users_helper_spec.rb
spec/helpers/relationships/organization_users_helper_spec.rb
require 'rails_helper' # Specs in this file have access to a helper object that includes # the Relationships::OrganizationUsersHelper. For example: # # describe Relationships::OrganizationUsersHelper do # describe "string concat" do # it "concats two strings with spaces" do # helper.concat_strings("this","...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/helpers/api/v1/pages_helper_spec.rb
spec/helpers/api/v1/pages_helper_spec.rb
require 'rails_helper' # Specs in this file have access to a helper object that includes # the Api::V1::PagesHelper. For example: # # describe Api::V1::PagesHelper do # describe "string concat" do # it "concats two strings with spaces" do # helper.concat_strings("this","that").should == "this that" # e...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/helpers/api/v1/organizations_helper_spec.rb
spec/helpers/api/v1/organizations_helper_spec.rb
require 'rails_helper' # Specs in this file have access to a helper object that includes # the Api::V1::SearchHelper. For example: # # describe Api::V1::SearchHelper do # describe "string concat" do # it "concats two strings with spaces" do # helper.concat_strings("this","that").should == "this that" # ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/authorization/ability_spec.rb
spec/authorization/ability_spec.rb
require 'rails_helper' require "cancan/matchers" describe Ability do describe "admin" do before(:each) do @user = FactoryGirl.create(:user, :admin => true) @ability = Ability.new(@user) end subject { @ability } it { is_expected.to be_able_to(:manage, :all) } end describe "Revi...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/factories/users.rb
spec/factories/users.rb
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do sequence(:email) {|n| "person-#{n}@example.com" } sequence(:username) {|n| Faker::Name.first_name + "#{n}" } factory :user do email password "foobar12" use...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/factories/organizations.rb
spec/factories/organizations.rb
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do sequence(:url) {|n| "http://www.yelp.com/biz/#{n}" } factory :organization do name "MyString" url url_type "MyString" homepage_url nil address "500 college ave, Swarthmore PA 19081" latitude 1.5 ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/factories/reviews.rb
spec/factories/reviews.rb
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :review do rating 1 content "MyText" user_id 1 condition_id 1 organization_id 1 end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/factories/cache/review_stats.rb
spec/factories/cache/review_stats.rb
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :cache_review_stat, :class => 'Cache::ReviewStat' do organization_id 1 num_reviews 1 avg_review 1.5 condition_id 1 end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/factories/relationships/organization_users.rb
spec/factories/relationships/organization_users.rb
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :relationships_organization_user, :class => 'Relationships::OrganizationUser' do organization_id 1 user_id 1 end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/controllers/organizations_controller_spec.rb
spec/controllers/organizations_controller_spec.rb
require 'rails_helper' # This spec was generated by rspec-rails when you ran the scaffold generator. # It demonstrates how one might use RSpec to specify the controller code that # was generated by Rails when you ran the scaffold generator. # # It assumes that the implementation code is generated by the rails scaffold...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/controllers/reviews_controller_spec.rb
spec/controllers/reviews_controller_spec.rb
require 'rails_helper' # This spec was generated by rspec-rails when you ran the scaffold generator. # It demonstrates how one might use RSpec to specify the controller code that # was generated by Rails when you ran the scaffold generator. # # It assumes that the implementation code is generated by the rails scaffold...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/controllers/pages_controller_spec.rb
spec/controllers/pages_controller_spec.rb
require 'rails_helper' describe PagesController, :type => :controller do render_views describe "GET 'about'" do it "returns http success" do get 'about' expect(response).to be_success end end describe "GET 'bookmarklet'" do it "returns http success" do get 'bookmarklet' ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/controllers/relationships/organization_users_controller_spec.rb
spec/controllers/relationships/organization_users_controller_spec.rb
require 'rails_helper' # This spec was generated by rspec-rails when you ran the scaffold generator. # It demonstrates how one might use RSpec to specify the controller code that # was generated by Rails when you ran the scaffold generator. # # It assumes that the implementation code is generated by the rails scaffold...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/controllers/api/v1/organizations_controller_spec.rb
spec/controllers/api/v1/organizations_controller_spec.rb
require 'rails_helper' describe Api::V1::OrganizationsController, :type => :controller do render_views describe "GET 'index'" do before(:each) do @organization = FactoryGirl.create(:organization) end it "returns http success" do get 'index', :format => :json expect(response).t...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/controllers/api/v1/pages_controller_spec.rb
spec/controllers/api/v1/pages_controller_spec.rb
require 'rails_helper' describe Api::V1::PagesController, :type => :controller do render_views describe "GET 'documentation'" do it "returns http success" do get 'documentation' expect(response).to be_success end end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/models/review_spec.rb
spec/models/review_spec.rb
# == Schema Information # Schema version: 20130424042424 # # Table name: reviews # # id :integer not null, primary key # rating :integer # content :text # user_id :integer # condition_id :integer # organization_id :integer # created_at :datetime not ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/models/organization_spec.rb
spec/models/organization_spec.rb
# == Schema Information # Schema version: 20130501180835 # # Table name: organizations # # id :integer not null, primary key # name :string(255) # url :string(255) # url_type :string(255) # latitude :float # longitude :float # created_at ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/models/user_spec.rb
spec/models/user_spec.rb
# == Schema Information # Schema version: 20130424193539 # # Table name: users # # id :integer not null, primary key # email :string(255) default(""), not null # encrypted_password :string(255) default(""), not null # reset_password_token :string(255) # ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/models/cache/review_stat_spec.rb
spec/models/cache/review_stat_spec.rb
# == Schema Information # Schema version: 20130501214342 # # Table name: cache_review_stats # # id :integer not null, primary key # organization_id :integer # num_reviews :integer default(0) # avg_review :float default(0.0) # condition_id :integer # created_at...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/spec/models/relationships/organization_user_spec.rb
spec/models/relationships/organization_user_spec.rb
# == Schema Information # Schema version: 20130423230554 # # Table name: relationships_organization_users # # id :integer not null, primary key # organization_id :integer # user_id :integer # created_at :datetime not null # updated_at :datetime not null # re...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/lib/development_mail_interceptor.rb
lib/development_mail_interceptor.rb
class DevelopmentMailInterceptor def self.delivering_email(message) message.subject = "#{message.to} #{message.subject}" message.to = ENV["SMTP_DEV_EMAIL"] end end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/lib/capistrano/tasks/helper.rb
lib/capistrano/tasks/helper.rb
def template(filename) File.read(File.expand_path("../../templates/#{filename}", __FILE__)) end
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/application.rb
config/application.rb
require File.expand_path('../boot', __FILE__) # Pick the frameworks you want: require "active_record/railtie" require "action_controller/railtie" require "action_mailer/railtie" require "sprockets/railtie" # require "rails/test_unit/railtie" Bundler.require(:default, Rails.env) module RevTilt class Application < R...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/environment.rb
config/environment.rb
# Load the rails application require File.expand_path('../application', __FILE__) APP_CONFIG = YAML.load_file("#{Rails.root.to_s}/config/config.yml") # To prevent log buffering $stdout.sync = true # Initialize the rails application RevTilt::Application.initialize!
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/routes.rb
config/routes.rb
RevTilt::Application.routes.draw do root :to => "pages#about" devise_for :users get "/about" => "pages#about" get "/bookmarklet" => "pages#bookmarklet" get "/favorites" => "pages#favorites" get "/press" => "pages#press" resources :organizations resources :reviews namespace :relationships d...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/deploy.rb
config/deploy.rb
set :application, 'revtilt' set :repo_url, 'git@github.com:cyrusstoller/RevTilt.git' # ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp } set :branch, proc { ENV["REVISION"] || ENV["BRANCH_NAME"] || "master" } set :deploy_to, '/var/www/revtilt' set :scm, :git set :format, :pretty set :log_level, :debug se...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/unicorn.rb
config/unicorn.rb
if ENV["RAILS_ENV"] == "development" worker_processes 1 else worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3) end timeout 15 # recommended by Heroku https://devcenter.heroku.com/articles/rails-unicorn preload_app true before_fork do |server, worker| Signal.trap 'TERM' do puts 'Unicorn master intercept...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/boot.rb
config/boot.rb
# Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/initializers/filter_parameter_logging.rb
config/initializers/filter_parameter_logging.rb
# Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. Rails.application.config.filter_parameters += [:password, :password_confirmation]
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/initializers/geocoder.rb
config/initializers/geocoder.rb
Geocoder::Configuration.lookup = :bing Geocoder::Configuration.api_key = ENV["BING_MAPS_API_KEY"] if Rails.env.test? Geocoder.configure(:lookup => :test) Geocoder::Lookup::Test.set_default_stub( [ { 'latitude' => 40.7143528, 'longitude' => -74.0059731, 'address' => 'N...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/initializers/quiet_assets.rb
config/initializers/quiet_assets.rb
if Rails.env.development? Rails.application.assets.logger = Logger.new('/dev/null') Rails::Rack::Logger.class_eval do def call_with_quiet_assets(env) previous_level = Rails.logger.level Rails.logger.level = Logger::ERROR if env['PATH_INFO'] =~ %r{^/assets/} call_without_quiet_assets(env) e...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/initializers/session_store.rb
config/initializers/session_store.rb
# Be sure to restart your server when you modify this file. RevTilt::Application.config.session_store :cookie_store, key: '_RevTilt_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rails g...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/initializers/devise.rb
config/initializers/devise.rb
# Use this hook to configure devise mailer, warden hooks and so forth. # Many of these configuration options can be set straight in your model. Devise.setup do |config| # ==> Mailer Configuration # Configure the e-mail address which will be shown in Devise::Mailer, # note that it will be overwritten if you use yo...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/initializers/wrap_parameters.rb
config/initializers/wrap_parameters.rb
# Be sure to restart your server when you modify this file. # # This file contains settings for ActionController::ParamsWrapper which # is enabled by default. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_controller) do wrap_parameters ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/initializers/inflections.rb
config/initializers/inflections.rb
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format # (all these examples are active by default): # ActiveSupport::Inflector.inflections do |inflect| # inflect.plural /^(ox)$/i, '\1en' # inflect.singular /^(ox)en/i, '\1' # inflect.irregular 'person', ...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/initializers/setup_mail.rb
config/initializers/setup_mail.rb
require 'mail' ActionMailer::Base.smtp_settings = { :address => ENV["SMTP_ADDRESS"], :port => 587, :domain => ENV['SMTP_DOMAIN'], :authentication => :plain, :user_name => ENV['SMTP_USERNAME'], :password => ENV['SMTP_PASSWORD'], :enable_starttls_...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/initializers/backtrace_silencers.rb
config/initializers/backtrace_silencers.rb
# Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } # You can also remove all the silencers if you're trying to debug a probl...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/initializers/mime_types.rb
config/initializers/mime_types.rb
# Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf # Mime::Type.register_alias "text/html", :iphone
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/initializers/secret_token.rb
config/initializers/secret_token.rb
# Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attac...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/deploy/production.rb
config/deploy/production.rb
set :stage, :production # Simple Role Syntax # ================== # Supports bulk-adding hosts to roles, the primary # server in each group is considered to be the first # unless any hosts have the primary property set. role :app, %w{deployer@alpha.revtilt.com} role :web, %w{deployer@alpha.revtilt.com} role :db, %w{d...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/deploy/vagrant.rb
config/deploy/vagrant.rb
set :stage, :vagrant # Simple Role Syntax # ================== # Supports bulk-adding hosts to roles, the primary # server in each group is considered to be the first # unless any hosts have the primary property set. role :app, %w{deployer@192.168.33.11} role :web, %w{deployer@192.168.33.11} role :db, %w{deployer@192...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/environments/test.rb
config/environments/test.rb
RevTilt::Application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test su...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/environments/development.rb
config/environments/development.rb
RevTilt::Application.configure do # Settings specified here will take precedence over those in config/application.rb # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web se...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/environments/staging.rb
config/environments/staging.rb
RevTilt::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both thread web ser...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
cyrusstoller/RevTilt
https://github.com/cyrusstoller/RevTilt/blob/c3fd80e411c3de72e9c9479474774d6cdcab888d/config/environments/production.rb
config/environments/production.rb
RevTilt::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both thread web ser...
ruby
MIT
c3fd80e411c3de72e9c9479474774d6cdcab888d
2026-01-04T17:44:55.378213Z
false
sue445/rubicure
https://github.com/sue445/rubicure/blob/07d85d753c2572af29d9a630eb8f0af8ab9e2c3e/spec/spec_helper.rb
spec/spec_helper.rb
# This file was generated by the `rspec --init` 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 it in any files....
ruby
MIT
07d85d753c2572af29d9a630eb8f0af8ab9e2c3e
2026-01-04T17:44:56.245530Z
false
sue445/rubicure
https://github.com/sue445/rubicure/blob/07d85d753c2572af29d9a630eb8f0af8ab9e2c3e/spec/support/util/test_util.rb
spec/support/util/test_util.rb
module TestUtil def time(str) Time.zone.parse(str) end def date(str) Date.parse(str) end end
ruby
MIT
07d85d753c2572af29d9a630eb8f0af8ab9e2c3e
2026-01-04T17:44:56.245530Z
false
sue445/rubicure
https://github.com/sue445/rubicure/blob/07d85d753c2572af29d9a630eb8f0af8ab9e2c3e/spec/config/series_checker_spec.rb
spec/config/series_checker_spec.rb
describe "config/series.yml" do # rubocop:disable RSpec/DescribeClass series = Rubicure::Concerns::Util.load_yaml_file("#{spec_dir}/../config/series.yml") series.values.uniq {|attributes| attributes["series_name"] }.each do |attributes| context attributes["title"] do describe "started_date" do su...
ruby
MIT
07d85d753c2572af29d9a630eb8f0af8ab9e2c3e
2026-01-04T17:44:56.245530Z
false
sue445/rubicure
https://github.com/sue445/rubicure/blob/07d85d753c2572af29d9a630eb8f0af8ab9e2c3e/spec/config/girls_checker_spec.rb
spec/config/girls_checker_spec.rb
describe "girls_checker" do # rubocop:disable RSpec/DescribeClass config_files = Pathname.glob("#{spec_dir}/../config/girls/*.yml") config_files.each do |config_file| describe "config/girls/#{config_file.basename}" do girls = Rubicure::Concerns::Util.load_yaml_file(config_file) girls.each do |girl...
ruby
MIT
07d85d753c2572af29d9a630eb8f0af8ab9e2c3e
2026-01-04T17:44:56.245530Z
false
sue445/rubicure
https://github.com/sue445/rubicure/blob/07d85d753c2572af29d9a630eb8f0af8ab9e2c3e/spec/rubicure/cure_scarlet_spec.rb
spec/rubicure/cure_scarlet_spec.rb
describe "Cure.scarlet" do # rubocop:disable RSpec/DescribeClass describe "!" do subject { !Cure.scarlet } let(:girl) { Cure.scarlet } after do girl.rollback girl.humanize! end context "called once" do it { expect { subject }.to change { girl.name }.from("紅城トワ").to("トワイライト") }...
ruby
MIT
07d85d753c2572af29d9a630eb8f0af8ab9e2c3e
2026-01-04T17:44:56.245530Z
false
sue445/rubicure
https://github.com/sue445/rubicure/blob/07d85d753c2572af29d9a630eb8f0af8ab9e2c3e/spec/rubicure/series_spec.rb
spec/rubicure/series_spec.rb
describe Rubicure::Series do let(:series_names) do [ :unmarked, :max_heart, :splash_star, :yes, :yes_gogo, :fresh, :heart_catch, :suite, :smile, :dokidoki, :happiness_charge, :go_princess, :maho_girls, :a_la_mode, :hugtto, ...
ruby
MIT
07d85d753c2572af29d9a630eb8f0af8ab9e2c3e
2026-01-04T17:44:56.245530Z
false
sue445/rubicure
https://github.com/sue445/rubicure/blob/07d85d753c2572af29d9a630eb8f0af8ab9e2c3e/spec/rubicure/cure_cosmo_spec.rb
spec/rubicure/cure_cosmo_spec.rb
describe "Cure.cosmo" do # rubocop:disable RSpec/DescribeClass let(:girl) { Cure.cosmo } after do girl.rollback end describe "#transform!" do context "with :rainbow_perfume" do subject { girl.transform!(:rainbow_perfume) } it "change to either マオ, ブルーキャット or バケニャーン" do subject ...
ruby
MIT
07d85d753c2572af29d9a630eb8f0af8ab9e2c3e
2026-01-04T17:44:56.245530Z
false
sue445/rubicure
https://github.com/sue445/rubicure/blob/07d85d753c2572af29d9a630eb8f0af8ab9e2c3e/spec/rubicure/cure_passion_spec.rb
spec/rubicure/cure_passion_spec.rb
describe "Cure.passion" do # rubocop:disable RSpec/DescribeClass describe "!" do subject { !Cure.passion } let(:girl) { Cure.passion } after do girl.rollback girl.humanize! end context "called once" do it { expect { subject }.to change { girl.name }.from("東せつな").to("イース") } ...
ruby
MIT
07d85d753c2572af29d9a630eb8f0af8ab9e2c3e
2026-01-04T17:44:56.245530Z
false
sue445/rubicure
https://github.com/sue445/rubicure/blob/07d85d753c2572af29d9a630eb8f0af8ab9e2c3e/spec/rubicure/core_spec.rb
spec/rubicure/core_spec.rb
describe Rubicure::Core do let(:instance) { Rubicure::Core.instance } describe "#now" do subject { instance.now } context "when on air" do before do time_travel_to "2013-01-01" end its(:title) { should == "スマイルプリキュア!" } end context "when not on air" do before do ...
ruby
MIT
07d85d753c2572af29d9a630eb8f0af8ab9e2c3e
2026-01-04T17:44:56.245530Z
false
sue445/rubicure
https://github.com/sue445/rubicure/blob/07d85d753c2572af29d9a630eb8f0af8ab9e2c3e/spec/rubicure/cure_peace_spec.rb
spec/rubicure/cure_peace_spec.rb
describe "Cure.peace" do # rubocop:disable RSpec/DescribeClass describe "#pikarin_janken" do subject { girl.pikarin_janken } shared_examples :do_janken do it { should match(/ピカピカピカリン\nジャンケンポン!\n(.+)/) } end context "When peace" do let(:girl) { Cure.peace } it_behaves_like :do_jank...
ruby
MIT
07d85d753c2572af29d9a630eb8f0af8ab9e2c3e
2026-01-04T17:44:56.245530Z
false
sue445/rubicure
https://github.com/sue445/rubicure/blob/07d85d753c2572af29d9a630eb8f0af8ab9e2c3e/spec/rubicure/movie_spec.rb
spec/rubicure/movie_spec.rb
describe Rubicure::Movie do let(:movie_names) do [ :dx1, :dx2, :dx3, :ns1, :ns2, :ns3, :sc, :stmm, :dream_stars, :super_stars, :memories, :miracle_universe, :miracle_leap, :f, ] end describe "#names" do subject { Rubi...
ruby
MIT
07d85d753c2572af29d9a630eb8f0af8ab9e2c3e
2026-01-04T17:44:56.245530Z
false
sue445/rubicure
https://github.com/sue445/rubicure/blob/07d85d753c2572af29d9a630eb8f0af8ab9e2c3e/spec/rubicure/cure_beat_spec.rb
spec/rubicure/cure_beat_spec.rb
describe "Cure.beat" do # rubocop:disable RSpec/DescribeClass describe "!" do subject { !Cure.beat } let(:girl) { Cure.beat } after do girl.rollback girl.humanize! end context "called once" do it { expect { subject }.to change { girl.name }.from("黒川エレン").to("セイレーン") } end ...
ruby
MIT
07d85d753c2572af29d9a630eb8f0af8ab9e2c3e
2026-01-04T17:44:56.245530Z
false
sue445/rubicure
https://github.com/sue445/rubicure/blob/07d85d753c2572af29d9a630eb8f0af8ab9e2c3e/spec/rubicure/rubicure_spec.rb
spec/rubicure/rubicure_spec.rb
require "spec_helper" describe Rubicure do it "has a version number" do expect(Rubicure::VERSION).not_to be_nil end describe "Precure." do context "When Precure.#<title>" do where(:title) do [ [:unmarked], [:futari_wa_pretty_cure], [:max_heart], [:f...
ruby
MIT
07d85d753c2572af29d9a630eb8f0af8ab9e2c3e
2026-01-04T17:44:56.245530Z
false
sue445/rubicure
https://github.com/sue445/rubicure/blob/07d85d753c2572af29d9a630eb8f0af8ab9e2c3e/spec/rubicure/girl_spec.rb
spec/rubicure/girl_spec.rb
describe Rubicure::Girl do let(:girl) do Rubicure::Girl[ girl_name: girl_name, human_name: human_name, precure_name: precure_name, cast_name: cast_name, created_date: created_date, extra_names: extra_names, ...
ruby
MIT
07d85d753c2572af29d9a630eb8f0af8ab9e2c3e
2026-01-04T17:44:56.245530Z
false