Coder Social home page Coder Social logo

roko's Introduction

Roko

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/roko. To experiment with that code, run bin/console for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

Installation

Add this line to your application's Gemfile:

gem 'roko'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install roko

Authenticate each services

Service environment variable description
Github NETRC_FILE_PATH Path for netrc file.
Google Calendar GOOGLE_API_CREDENTIALS_PATH Path for google api credentials file.
Slack SLACK_API_TOKEN Slack API token.
Confluence CONFLUENCE_USER
CONFLUENCE_PASSWORD
CONFLUENCE_URL
User and password for confluence.

Github

Write netrc file like below.

machine api.github.com
  login your_username
  password password_or_your_api_token

Set the netrc file's path imn environment variable NETRC_FILE_PATH. Or use ~/.netrc by default.

Google Calendar

Create your service account and download a credential file.

see: https://cloud.google.com/docs/authentication/getting-started?hl=en

Set the credential file's path in environment variable GOOGLE_API_CREDENTIALS_PATH. Or use ~/credentials.json by default.

Slack

Set your slack API access token as environment variable SLACK_API_TOKEN.

Confluence

Set your user name and password as environment variable CONFLUENCE_USER, CONFLUENCE_PASSWORD.

This gem access CONFLUENCE_URL as confluence host.

Report

Event

source time type title url sub_type sub_title sub_url
Github date time of this pr is opened PR PR title PR url open
Github date time of this review is posted PR PR title PR url review comment body comment url
Github date time of this pr is closed PR PR title PR url close
Google Calendar date time of this meeting is started MTG MTG title start
Slack date time of posted channel channel name post post body
Confluence date time of this document is edited confluence document title edit
JIRA date time of this task is edited task ticket title edit

Tempalte

You can change report template to set ROKO_ONELINE_TEMPLATE. The template is looks like %{Y}/%{m}/%{d} %{H}:%{M} %{main_type} [%{main_title}](%{main_url}).

key description
source source of this event
Y year
m month
d day
H hour of the day
M minute
main_type type of this event
main_title title of this event
main_url url of main content of this event
sub_type sub type of this event
sub_title sub title of this event
sub_url url of sub content of this event

See Event section to know what main/sub keys has.

Usage

$ bundle exec ruby exec/roko help

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bundle exec rspec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/hmiyado/roko.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.