Skip to content

Commit

Permalink
double quote them strings
Browse files Browse the repository at this point in the history
  • Loading branch information
orien committed Mar 30, 2015
1 parent 769ca7f commit f9bec11
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 19 deletions.
10 changes: 1 addition & 9 deletions .rubocop.yml
Expand Up @@ -27,16 +27,8 @@ Style/SignalException:
Enabled: false

Style/Blocks:
Description: >-
Avoid using {...} for multi-line blocks (multiline chaining is
always ugly).
Prefer {...} over do...end for single-line blocks.
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
Enabled: true
Exclude:
- spec/**/*

Style/StringLiterals:
Description: 'Checks if uses of quotes match the configured preference.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
Enabled: false
EnforcedStyle: double_quotes
2 changes: 1 addition & 1 deletion Gemfile
@@ -1,4 +1,4 @@
source 'https://rubygems.org'
source "https://rubygems.org"

# Specify your gem's dependencies in pagerduty.gemspec
gemspec
4 changes: 2 additions & 2 deletions lib/pagerduty.rb
@@ -1,5 +1,5 @@
require 'pagerduty/version'
require 'pagerduty/http_transport'
require "pagerduty/version"
require "pagerduty/http_transport"

class PagerdutyException < StandardError
attr_reader :pagerduty_instance, :api_response
Expand Down
6 changes: 3 additions & 3 deletions lib/pagerduty/http_transport.rb
@@ -1,7 +1,7 @@
# encoding: utf-8
require 'json'
require 'net/http'
require 'net/https'
require "json"
require "net/http"
require "net/https"

# @api private
module Pagerduty::HttpTransport
Expand Down
8 changes: 4 additions & 4 deletions spec/pagerduty/http_transport_spec.rb
Expand Up @@ -13,10 +13,10 @@
describe "::send_payload" do
Given(:payload) {
{
event_type: 'trigger',
service_key: 'test-srvc-key',
description: 'test-desc',
details: { key: 'value' }
event_type: "trigger",
service_key: "test-srvc-key",
description: "test-desc",
details: { key: "value" }
}
}

Expand Down

0 comments on commit f9bec11

Please sign in to comment.