This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rest-client' | |
require 'json' | |
class Wave | |
def initialize(flutterwave_api_key, flutterwave_api_secret) | |
@url = "https://moneywave.herokuapp.com" | |
@flutterwave_api_key = flutterwave_api_key | |
@flutterwave_api_secret = flutterwave_api_secret | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'faraday' | |
require 'json' | |
require 'pry' | |
class RepoIssue | |
def initialize(username) | |
@username = username | |
end | |
def github_url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'faraday' | |
require 'json' | |
require 'pry' | |
class ReceivedEvent | |
def initialize(username) | |
@username = username | |
end | |
def github_url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'faraday' | |
require 'json' | |
require 'pry' | |
class UserCommits | |
def initialize(username) | |
@username = username | |
end | |
def github_url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running via Spring preloader in process 18348 | |
Loading development environment (Rails 5.0.0.1) | |
[1] pry(main)> Region.province | |
NoMethodError: undefined method `province' for Region (call 'Region.connection' to establish a connection):Class | |
from /home/kinsomicrote/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/dynamic_matchers.rb:21:in `method_missing' | |
[2] pry(main)> Region.provinces | |
NoMethodError: undefined method `provinces' for Region (call 'Region.connection' to establish a connection):Class | |
from /home/kinsomicrote/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/dynamic_matchers.rb:21:in `method_missing' | |
[3] pry(main)> Province.region | |
NoMethodError: undefined method `region' for Province (call 'Province.connection' to establish a connection):Class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "prawn" | |
Prawn::Document.generate("greeting-card2.pdf") do | |
font_families.update( | |
"Candara" => { | |
:normal => "#{Prawn::DATADIR}/fonts/Candara.ttf" | |
} | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "prawn" | |
Prawn::Document.generate("greeting-card.pdf") do | |
stroke_color "008080" | |
stroke do | |
self.line_width = 10 | |
stroke_color "FF0000" #red | |
horizontal_line 0, 550, :at => 700 | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="fzbuk-login-form-wrap"> | |
<div class="fzbuk-login-form"> | |
<h1>Login using your existing social media account</h1> | |
<p> | |
<a class="facebook" href="[facebook-login-url]">Continue with Facebook</a> | |
</p> | |
<p> | |
<a class="google" href="[twitter-login-url]">Continue with Twitter</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[509857] Puma starting in cluster mode... | |
[509857] * Version 2.11.1 (ruby 2.0.0-p353), codename: Intrepid Squirrel | |
[509857] * Min threads: 5, max threads: 5 | |
[509857] * Environment: development | |
[509857] * Process workers: 2 | |
[509857] * Preloading application | |
[509857] * Listening on tcp://127.5.177.129:8080 | |
[509857] * Listening on tcp://0.0.0.0:3000 | |
/var/lib/openshift/55bc8ff17628e1f072000025/app-root/runtime/repo/vendor/bundle/ruby/gems/puma-2.11.1/lib/puma/binder.rb:210:in `initialize': Permission denied - bind(2) (Errno::EACCES) | |
from /var/lib/openshift/55bc8ff17628e1f072000025/app-root/runtime/repo/vendor/bundle/ruby/gems/puma-2.11.1/lib/puma/binder.rb:210:in `new' |