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 +4 -4
- data/.rubocop.yml +3 -12
- data/.travis.yml +5 -7
- data/Gemfile +2 -0
- data/excon-rails.gemspec +1 -1
- data/lib/excon/rails.rb +6 -2
- data/lib/excon/rails/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20cd4cef70a850620034c39f0fae70f0a80c4bdd
|
4
|
+
data.tar.gz: 909d5a5eac888bd8d1c62d2f9e360df3cd7e555b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea22370fb5ce1848ffb68c19f75d8f39b2d8db06d719880f93cd36d22f453554cd116f14fc3160b288405861a09ec52a091c4cf854b540fa06fcf8ced4249c45
|
7
|
+
data.tar.gz: e885304361821b12a105b287777c3c360c7d10ad6ef98e9824f114ea6a949728e21c396127047bb30475a530bf17fcb0e065845b1b4818d44c482a893d77ffb5
|
data/.rubocop.yml
CHANGED
@@ -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/
|
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/
|
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/
|
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:
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/excon-rails.gemspec
CHANGED
@@ -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
|
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'
|
data/lib/excon/rails.rb
CHANGED
@@ -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
|
-
|
55
|
-
message(event, "Excon #{type}",
|
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
|
data/lib/excon/rails/version.rb
CHANGED
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.
|
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:
|
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
|
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
|
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.
|