View ruboty-pepabo-kokugo.gemspec
Gem::Specification.new do |spec|
spec.name = "ruboty-pepabo-kokugo"
spec.version = "0.0.4"
spec.authors = ["Jun OHWADA"]
spec.email = ["june29.jp@gmail.com"]
spec.summary = "Pepabo Kokugo"
spec.files = ["ruboty-pepabo-kokugo.rb"]
spec.require_path = "."
spec.add_development_dependency "pepabo-kokugo"
end
View ldr.css
#header, #menu, #subs_toolbar, #control {
display: none;
}
.item_body .body img {
max-width: 100%;
}
View case1.rb
Rails.application.routes.draw do
resources :users do
get '/image' => 'users#image', as: :image
end
end
=begin
user_image GET /users/:user_id/image(.:format) users#image
users GET /users(.:format) users#index
POST /users(.:format) users#create
View ruboty-drone.gemspec
Gem::Specification.new do |spec|
spec.name = "ruboty-drone"
spec.version = "0.0.1"
spec.authors = ["Jun OHWADA"]
spec.email = ["june29.jp@gmail.com"]
spec.summary = "Access to Drone.io"
spec.files = ["ruboty-drone.rb"]
spec.require_path = "."
spec.add_dependency "drone-ruby"
end
View ruboty-clock.rb
require "time"
module Ruboty
module Handlers
class Clock < Base
on(
/clock\z/i,
name: "clock",
description: "Say current time"
)
View ruboty-pull-requests.gemspec
Gem::Specification.new do |spec|
spec.name = "ruboty-pull-requests"
spec.version = "0.0.1"
spec.authors = ["Jun OHWADA"]
spec.email = ["june29.jp@gmail.com"]
spec.summary = "Access to pull requests"
spec.files = ["ruboty-pull-requests.rb"]
spec.require_path = "."
spec.add_dependency "octokit"
end
View ruboty-totsuzenno.gemspec
Gem::Specification.new do |spec|
spec.name = "ruboty-totsuzenno"
spec.version = "0.0.2"
spec.authors = ["Jun OHWADA"]
spec.email = ["june29.jp@gmail.com"]
spec.summary = "Totsuzen no Shi"
spec.files = ["ruboty-totsuzenno.rb"]
spec.require_path = "."
end
View ruboty-omikuji.gemspec
Gem::Specification.new do |spec|
spec.name = "ruboty-omikuji"
spec.version = "0.0.2"
spec.authors = ["Jun OHWADA"]
spec.email = ["june29.jp@gmail.com"]
spec.summary = "Omikuji"
spec.files = ["ruboty-omikuji.rb"]
spec.require_path = "."
end
View gems-rails.json
{
"name": "rails",
"downloads": 34516789,
"version": "4.1.0",
"version_downloads": 116577,
"platform": "ruby",
"authors": "David Heinemeier Hansson",
"info": "Ruby on Rails is a full-stack web framework (略)",
"licenses": [ "MIT" ],
"project_uri": "http://rubygems.org/gems/rails",
View gomi_youbi.rb
# -*- coding: utf-8 -*-
require "date"
class Date
(1..5).each { |n|
define_method("#{n}?") { (self.day.to_f / 7.to_f).ceil == n }
}
%w(日 月 火 水 木 金 土).each_with_index { |曜日, index|