Skip to content

Commit

Permalink
Added basic gem framework
Browse files Browse the repository at this point in the history
  • Loading branch information
abrom committed Aug 22, 2018
1 parent b15b832 commit 5c23475
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.gem
Gemfile.lock
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Metrics/LineLength:
Max: 120
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
env:
global:
- CC_TEST_REPORTER_ID=5cfed40102c670b5c9e509730782b751939ddbe53fc57c317b718f635bab1ce8

language: ruby
rvm:
- 2.2
- 2.3
- 2.4
- 2.5

before_install:
- gem update bundler

install:
- bundle install --jobs=3 --retry=3
- gem install rubocop

before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build

script:
- rubocop
- bundle exec rspec

after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in grover.gemspec
gemspec
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# grover
# Grover

A Ruby gem to transform HTML into PDFs using Google Puppeteer
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env rake

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new 'spec'

task default: :spec
26 changes: 26 additions & 0 deletions grover.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'grover/version'

Gem::Specification.new do |spec|
spec.name = 'grover'
spec.version = Grover::VERSION
spec.authors = ['Andrew Bromwich']
spec.email = %w[[email protected]]
spec.description = 'A Ruby gem to transform HTML into PDFs using Google Puppeteer/Chromium'
spec.summary = 'A Ruby gem to transform HTML into PDFs wrapper the NodeJS Google Puppeteer project using Chromium'
spec.homepage = 'http://github.com/Studiosity/grover'
spec.license = 'MIT'

spec.files = `git ls-files`.split("\n")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']

spec.add_development_dependency 'bundler', '~> 1.3'
spec.add_development_dependency 'rake', '~> 12.3'
spec.add_development_dependency 'rspec', '~> 3.7'
spec.add_development_dependency 'rubocop', '~> 0.53'
spec.add_development_dependency 'simplecov', '~> 0.15'
end
3 changes: 3 additions & 0 deletions lib/grover/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Grover
VERSION = '0.0.1'.freeze
end

0 comments on commit 5c23475

Please sign in to comment.