excon-rails 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48100756bf5831c584d8203b3e006ebe1d0e8bb3
4
- data.tar.gz: fcc88d97fe4dffbd7dfcb354b9af4f0e26a9f625
3
+ metadata.gz: 20cd4cef70a850620034c39f0fae70f0a80c4bdd
4
+ data.tar.gz: 909d5a5eac888bd8d1c62d2f9e360df3cd7e555b
5
5
  SHA512:
6
- metadata.gz: cb0269eb7415757e7e1158d9717f4761e37f09ad0d3ca75cd803e69fd116c24065f5b79bbaadaba49b1808b73f1bd64501e3fd94fdb758bf0d67fac740edb2b9
7
- data.tar.gz: 14ba867831abb418a57ad998a496df61d2852a97c4b50f8daf4c3473f30d95493e16c238585cd6660534e41c0dbc99a8985407d1337280ac41db1dd1fe7169f0
6
+ metadata.gz: ea22370fb5ce1848ffb68c19f75d8f39b2d8db06d719880f93cd36d22f453554cd116f14fc3160b288405861a09ec52a091c4cf854b540fa06fcf8ced4249c45
7
+ data.tar.gz: e885304361821b12a105b287777c3c360c7d10ad6ef98e9824f114ea6a949728e21c396127047bb30475a530bf17fcb0e065845b1b4818d44c482a893d77ffb5
@@ -279,7 +279,6 @@ Style/RegexpLiteral:
279
279
  characters. Use %r only for regular expressions matching more than `MaxSlashes`
280
280
  '/' character.
281
281
  Enabled: false
282
- MaxSlashes: 1
283
282
 
284
283
  Style/Semicolon:
285
284
  Enabled: true
@@ -341,7 +340,7 @@ Style/TrailingBlankLines:
341
340
  SupportedStyles:
342
341
  - final_newline
343
342
  - final_blank_line
344
- Style/TrailingComma:
343
+ Style/TrailingCommaInArguments:
345
344
  Enabled: false
346
345
  EnforcedStyleForMultiline: no_comma
347
346
  SupportedStyles:
@@ -457,8 +456,6 @@ Style/BlockComments:
457
456
  Enabled: true
458
457
  Style/BlockEndNewline:
459
458
  Enabled: true
460
- Style/Blocks:
461
- Enabled: true
462
459
  Style/CaseEquality:
463
460
  Enabled: false
464
461
  Style/CharacterLiteral:
@@ -477,8 +474,6 @@ Style/ConstantName:
477
474
  Enabled: false
478
475
  Style/DefWithParentheses:
479
476
  Enabled: true
480
- Style/DeprecatedHashMethods:
481
- Enabled: false
482
477
  Style/Documentation:
483
478
  Enabled: false
484
479
  Style/DoubleNegation:
@@ -561,13 +556,13 @@ Style/RescueModifier:
561
556
  Enabled: true
562
557
  Style/SelfAssignment:
563
558
  Enabled: false
564
- Style/SingleSpaceBeforeFirstArg:
559
+ Style/SpaceBeforeFirstArg:
565
560
  Enabled: true
566
561
  Style/SpaceAfterColon:
567
562
  Enabled: true
568
563
  Style/SpaceAfterComma:
569
564
  Enabled: true
570
- Style/SpaceAfterControlKeyword:
565
+ Style/SpaceAroundKeyword:
571
566
  Enabled: true
572
567
  Style/SpaceAfterMethodName:
573
568
  Enabled: true
@@ -583,8 +578,6 @@ Style/SpaceBeforeSemicolon:
583
578
  Enabled: true
584
579
  Style/SpaceAroundOperators:
585
580
  Enabled: true
586
- Style/SpaceBeforeModifierKeyword:
587
- Enabled: true
588
581
  Style/SpaceInsideBrackets:
589
582
  Enabled: true
590
583
  Style/SpaceInsideParens:
@@ -605,8 +598,6 @@ Style/UnneededCapitalW:
605
598
  Enabled: true
606
599
  Style/UnneededPercentQ:
607
600
  Enabled: true
608
- Style/UnneededPercentX:
609
- Enabled: true
610
601
  Style/VariableInterpolation:
611
602
  Enabled: false
612
603
  Style/WhenThen:
@@ -2,10 +2,8 @@ language: ruby
2
2
  sudo: false
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.0.0
6
- - 2.1.6
7
- - 2.2.2
8
- matrix:
9
- include:
10
- - rvm: jruby
11
- env: JRUBY_OPTS="--2.0"
5
+ - 2.1.10
6
+ - 2.2.6
7
+ - 2.3.3
8
+ - 2.4.0
9
+ - jruby-9.1.7.0
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ gem 'activesupport', '~> 4.2' if RUBY_VERSION < '2.3'
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency 'excon', '>= 0.18.0'
22
22
  spec.add_dependency 'activesupport', '>= 3.0'
23
- spec.add_dependency 'sweet_notifications', '~> 0.2'
23
+ spec.add_dependency 'sweet_notifications', '~> 1.0'
24
24
  spec.add_development_dependency 'bundler', '~> 1.6'
25
25
  spec.add_development_dependency 'rake'
26
26
  spec.add_development_dependency 'rspec', '~> 3.0'
@@ -51,8 +51,12 @@ module Excon
51
51
  url = "#{payload[:scheme]}://#{payload[:host]}#{payload[:path]}"
52
52
  url << "?#{payload[:query]}" if payload[:query]
53
53
  type = event.name.split('.').first.titleize
54
- method = event.payload[:method].try(:upcase)
55
- message(event, "Excon #{type}", [method, url].compact.join(' '))
54
+ method_and_url = [request_method(event), url].compact.join(' ')
55
+ message(event, "Excon #{type}", method_and_url)
56
+ end
57
+
58
+ def request_method(event)
59
+ event.payload[:method] ? event.payload[:method].upcase : nil
56
60
  end
57
61
  end
58
62
  end
@@ -1,5 +1,5 @@
1
1
  module Excon
2
2
  module Rails
3
- VERSION = '0.1.1'
3
+ VERSION = '1.0.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excon-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ville Lautanala
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-10 00:00:00.000000000 Z
11
+ date: 2017-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.2'
47
+ version: '1.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.2'
54
+ version: '1.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 2.4.5
155
+ rubygems_version: 2.4.5.2
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Railtie to include Excon HTTP requests in Rails logging.