Giter VIP home page Giter VIP logo

inspiry's Introduction

Deploy

inspiry

Posts one inspirational quote to slack channel every day.

Setup Instructions:

Only three things to do really,

  1. Deploy your app to heroku.
  2. Create an incoming webhook with the channel of your choice (ignore the username and icon, we'll take care of it here) and save that token in environment variables as SLACK_WEBHOOK
  3. In the Heroku's scheduler addon, add a job with command line ruby bin/inspiry.rb and schedule it Daily. I'm saying dailly because it uses the quote of the day and it doesn't make sense to post the same message every hour.

Sample message,

example_img

(optional) If you'd like to have a custom image as icon of the message, add it to env var as IMAGE_URL. The current default is

image

Quote source - TheySaidSo

inspiry's People

Contributors

avinoth avatar nelsonam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

inspiry's Issues

Error during deployment in Heroku

-----> Ruby app detected
-----> Compiling Ruby
-----> Using Ruby version: ruby-2.5.3
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/.............
Fetching version metadata from https://rubygems.org/.
Using bundler 1.15.2
Fetching json 1.8.3
Fetching multi_xml 0.5.5
Installing multi_xml 0.5.5
Installing json 1.8.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

   current directory:
   /tmp/build_716e2c940330b6e6503ae6d8c2e4bb0e/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
   /tmp/build_716e2c940330b6e6503ae6d8c2e4bb0e/vendor/ruby-2.5.3/bin/ruby -r
   ./siteconf20190611-214-2p82jr.rb extconf.rb
   creating Makefile
   
   current directory:
   /tmp/build_716e2c940330b6e6503ae6d8c2e4bb0e/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
   make "DESTDIR=" clean
   
   current directory:
   /tmp/build_716e2c940330b6e6503ae6d8c2e4bb0e/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
   make "DESTDIR="
   compiling generator.c
   generator.c: In function ‘generate_json’:
   generator.c:861:25: error: ‘rb_cFixnum’ undeclared (first use in this function);
   did you mean ‘mFixnum’?
        } else if (klass == rb_cFixnum) {
                            ^~~~~~~~~~
                            mFixnum
   generator.c:861:25: note: each undeclared identifier is reported only once for
   each function it appears in
   generator.c:863:25: error: ‘rb_cBignum’ undeclared (first use in this function);
   did you mean ‘rb_cFixnum’?
        } else if (klass == rb_cBignum) {
                            ^~~~~~~~~~
                            rb_cFixnum
   generator.c: At top level:
   cc1: warning: unrecognized command line option ‘-Wno-self-assign’
   cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
   cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
   Makefile:241: recipe for target 'generator.o' failed
   make: *** [generator.o] Error 1
   
   make failed, exit code 2
   
   Gem files will remain installed in
   /tmp/build_716e2c940330b6e6503ae6d8c2e4bb0e/vendor/bundle/ruby/2.5.0/gems/json-1.8.3
   for inspection.
   Results logged to
   /tmp/build_716e2c940330b6e6503ae6d8c2e4bb0e/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/json-1.8.3/gem_make.out
   
   An error occurred while installing json (1.8.3), and Bundler cannot continue.
   Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
   
   In Gemfile:
     httparty was resolved to 0.13.5, which depends on
       json
   Bundler Output: Fetching gem metadata from https://rubygems.org/.............
   Fetching version metadata from https://rubygems.org/.
   Using bundler 1.15.2
   Fetching json 1.8.3
   Fetching multi_xml 0.5.5
   Installing multi_xml 0.5.5
   Installing json 1.8.3 with native extensions
   Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
   
   current directory:
   /tmp/build_716e2c940330b6e6503ae6d8c2e4bb0e/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
   /tmp/build_716e2c940330b6e6503ae6d8c2e4bb0e/vendor/ruby-2.5.3/bin/ruby -r
   ./siteconf20190611-214-2p82jr.rb extconf.rb
   creating Makefile
   
   current directory:
   /tmp/build_716e2c940330b6e6503ae6d8c2e4bb0e/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
   make "DESTDIR=" clean
   
   current directory:
   /tmp/build_716e2c940330b6e6503ae6d8c2e4bb0e/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
   make "DESTDIR="
   compiling generator.c
   generator.c: In function ‘generate_json’:
   generator.c:861:25: error: ‘rb_cFixnum’ undeclared (first use in this function);
   did you mean ‘mFixnum’?
        } else if (klass == rb_cFixnum) {
                            ^~~~~~~~~~
                            mFixnum
   generator.c:861:25: note: each undeclared identifier is reported only once for
   each function it appears in
   generator.c:863:25: error: ‘rb_cBignum’ undeclared (first use in this function);
   did you mean ‘rb_cFixnum’?
        } else if (klass == rb_cBignum) {
                            ^~~~~~~~~~
                            rb_cFixnum
   generator.c: At top level:
   cc1: warning: unrecognized command line option ‘-Wno-self-assign’
   cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
   cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
   Makefile:241: recipe for target 'generator.o' failed
   make: *** [generator.o] Error 1
   
   make failed, exit code 2
   
   Gem files will remain installed in
   /tmp/build_716e2c940330b6e6503ae6d8c2e4bb0e/vendor/bundle/ruby/2.5.0/gems/json-1.8.3
   for inspection.
   Results logged to
   /tmp/build_716e2c940330b6e6503ae6d8c2e4bb0e/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/json-1.8.3/gem_make.out
   
   An error occurred while installing json (1.8.3), and Bundler cannot continue.
   Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
   
   In Gemfile:
     httparty was resolved to 0.13.5, which depends on
       json

!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app.
! Push failed

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.