Skip to content

Commit

Permalink
Merge next
Browse files Browse the repository at this point in the history
  • Loading branch information
snmaynard committed Jun 20, 2018
2 parents 6ba5dc1 + 327dd01 commit 4b4d846
Show file tree
Hide file tree
Showing 373 changed files with 8,196 additions and 153 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ vendor
# For rubinius:
#*.rbc
bin

# For Bugsnag-Maze-Runner:
maze_output
4 changes: 3 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,9 @@ Metrics/MethodLength:
# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 111
Max: 125
Exclude:
- 'lib/bugsnag/helpers.rb'

# Offense count: 11
Metrics/PerceivedComplexity:
Expand Down
40 changes: 40 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,46 @@ jobs:
- GEMSETS="test rubocop"
rvm: 2.4.1
script: bundle exec ./bin/rubocop lib/
# - stage: test
# addons:
# apt:
# packages:
# - docker-ce
# sudo: required
# sevices:
# - docker
# env:
# - BUNDLE_VERSION=1.12.0
# - GEMSETS="test maze"
# rmv: 2.4.1
# script: bundle exec bugsnag-maze-runner -c features/plain_features
# - stage: test
# addons:
# apt:
# packages:
# - docker-ce
# sudo: required
# sevices:
# - docker
# env:
# - BUNDLE_VERSION=1.12.0
# - GEMSETS="test maze"
# rmv: 2.4.1
# script: bundle exec bugsnag-maze-runner -c features/sidekiq.feature
# - stage: test
# addons:
# apt:
# packages:
# - docker-ce
# sudo: required
# sevices:
# - docker
# env:
# - BUNDLE_VERSION=1.12.0
# - GEMSETS="test maze"
# - MAX_MAZE_CONNECT_ATTEMPTS=20
# rmv: 2.4.1
# script: bundle exec bugsnag-maze-runner -c features/rails_features
- stage: deploy
env:
- BUNDLE_VERSION=1.12.0
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
=========

## 6.7.3 (18 May 2018)

### Fixes

* Apply metadata filters to HTTP referer fields
| [#460](https://github.com/bugsnag/bugsnag-ruby/pull/460)
| [Renee Balmert](https://github.com/tremlab)

## 6.7.2 (24 Apr 2018)

### Fixes
Expand Down
14 changes: 9 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source "https://rubygems.org"

group :test, optional: true do
gem 'rake', '~> 10.1.1'
gem 'rake', RUBY_VERSION <= '1.9.3' ? '~> 11.3.0' : '~> 12.3.0'
gem 'rspec'
gem 'rspec-mocks'
gem 'rdoc', '~> 5.1.0'
Expand All @@ -12,20 +12,24 @@ group :test, optional: true do
end

group :coverage, optional: true do
gem 'simplecov'
gem 'coveralls'
gem 'simplecov'
gem 'coveralls'
end

group :rubocop, optional: true do
gem 'rubocop', '~> 0.52.1'
gem 'rubocop', '~> 0.52.1'
end

group :sidekiq, optional: true do
gem 'sidekiq', '~> 5.0.4'
gem 'sidekiq', '~> 5.0.4'
end

group :doc, optional: true do
gem 'hanna-nouveau'
end

group :maze, optional: true do
gem 'bugsnag-maze-runner', git: 'https://github.com/bugsnag/maze-runner' if RUBY_VERSION >= '2.0.0'
end

gemspec
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.7.2
6.7.3
3 changes: 3 additions & 0 deletions example/rails-51/bin/bundle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env ruby
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
load Gem.bin_path('bundler', 'bundle')
4 changes: 4 additions & 0 deletions example/rails-51/bin/rails
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env ruby
APP_PATH = File.expand_path('../config/application', __dir__)
require_relative '../config/boot'
require 'rails/commands'
4 changes: 4 additions & 0 deletions example/rails-51/bin/rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env ruby
require_relative '../config/boot'
require 'rake'
Rake.application.run
38 changes: 38 additions & 0 deletions example/rails-51/bin/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env ruby
require 'pathname'
require 'fileutils'
include FileUtils

# path to your application root.
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)

def system!(*args)
system(*args) || abort("\n== Command #{args} failed ==")
end

chdir APP_ROOT do
# This script is a starting point to setup your application.
# Add necessary setup steps to this file.

puts '== Installing dependencies =='
system! 'gem install bundler --conservative'
system('bundle check') || system!('bundle install')

# Install JavaScript dependencies if using Yarn
# system('bin/yarn')


# puts "\n== Copying sample files =="
# unless File.exist?('config/database.yml')
# cp 'config/database.yml.sample', 'config/database.yml'
# end

puts "\n== Preparing database =="
system! 'bin/rails db:setup'

puts "\n== Removing old logs and tempfiles =="
system! 'bin/rails log:clear tmp:clear'

puts "\n== Restarting application server =="
system! 'bin/rails restart'
end
29 changes: 29 additions & 0 deletions example/rails-51/bin/update
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
require 'pathname'
require 'fileutils'
include FileUtils

# path to your application root.
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)

def system!(*args)
system(*args) || abort("\n== Command #{args} failed ==")
end

chdir APP_ROOT do
# This script is a way to update your development environment automatically.
# Add necessary update steps to this file.

puts '== Installing dependencies =='
system! 'gem install bundler --conservative'
system('bundle check') || system!('bundle install')

puts "\n== Updating database =="
system! 'bin/rails db:migrate'

puts "\n== Removing old logs and tempfiles =="
system! 'bin/rails log:clear tmp:clear'

puts "\n== Restarting application server =="
system! 'bin/rails restart'
end
11 changes: 11 additions & 0 deletions example/rails-51/bin/yarn
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env ruby
VENDOR_PATH = File.expand_path('..', __dir__)
Dir.chdir(VENDOR_PATH) do
begin
exec "yarnpkg #{ARGV.join(" ")}"
rescue Errno::ENOENT
$stderr.puts "Yarn executable was not detected in the system."
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
exit 1
end
end
4 changes: 1 addition & 3 deletions example/rails-51/config/initializers/bugsnag.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Bugsnag.configure do |config|
config.api_key = "12312312312312312312312312312312"
config.auto_capture_sessions = false
config.endpoint = "http://localhost:62000"
config.api_key = "YOUR_API_KEY_HERE"
end
1 change: 1 addition & 0 deletions features/fixtures/delayed_job/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Gemfile.lock
12 changes: 12 additions & 0 deletions features/fixtures/delayed_job/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ARG ruby_version
FROM ruby:$ruby_version

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY Gemfile /usr/src/app/
RUN bundle install

COPY . /usr/src/app

CMD ["bundle", "exec", "rails", "s", "-b", "0.0.0.0"]
4 changes: 4 additions & 0 deletions features/fixtures/delayed_job/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

gem 'bugsnag'
gem 'delayed_job'
Loading

0 comments on commit 4b4d846

Please sign in to comment.