Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci Use executors Nov 11, 2018
bin
img
lib
.env.example
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md [ci skip] update doc Oct 26, 2018
Rakefile Use dotenv in rake Oct 21, 2018

README.md

Tweet pixels

Tweet pixels

CircleCI

Features

  • Regularly update the graph of tweet count. (daily and hourly)

Requirements

Usage

1. Register Pixela and create graph

e.g)

cp .env.example .env
vi .env
bundle install --path=vendor/bundle

./bin/console
# register
@client.create_user(agree_terms_of_service: true, not_minor: true)

# create graph
@graph.create(name: "Daily tweets", unit: "Tweets", type: "int", color: "sora")

2. Register Environment Variables to CircleCI

  • TWITTER_ID
  • PIXELA_USERNAME
  • PIXELA_TOKEN
  • PIXELA_GRAPH_ID

CircleCI

3. Register a GitHub cache url (optional)

Register a GitHub cache url (e.g. https://camo.githubusercontent.com/xxxxxxxxxx) after paste a badge to GitHub

e.g)

@graph.update(purge_cache_urls: "https://camo.githubusercontent.com/xxxxxxxxxx")

see https://github.com/a-know/Pixela/releases/tag/v1.1.0