http_logger 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 42d833f6603f1388a733dcc558c3a8e23004ac2e
4
+ data.tar.gz: 20d21f3e5dfa0413809092499c4769bf7aa2d303
5
+ SHA512:
6
+ metadata.gz: fef1b14a5d854fab100449356b60539ed40076f61df7a4e946fb14b1e8effc50a48ef633876f02249fa5f0e5bb47ef4809e638b7c70ba27351446702fddb59aa
7
+ data.tar.gz: 5b063e5050d9925a12d19ffa5efbe524f0fb01f27d08c2161c5b0d7cbd1dd90d2719f857ca6693b7344bd53235be25f85a7400988210a11df1ef7f4dfb9c3a5e
data/Gemfile.lock CHANGED
@@ -1,6 +1,9 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ addressable (2.3.6)
5
+ atomic (1.1.16)
6
+ builder (3.2.2)
4
7
  columnize (0.3.6)
5
8
  debugger (1.2.1)
6
9
  columnize (>= 0.3.1)
@@ -9,17 +12,50 @@ GEM
9
12
  debugger-linecache (1.1.2)
10
13
  debugger-ruby_core_source (>= 1.1.1)
11
14
  debugger-ruby_core_source (1.1.4)
15
+ descendants_tracker (0.0.4)
16
+ thread_safe (~> 0.3, >= 0.3.1)
12
17
  diff-lcs (1.1.3)
13
18
  fakeweb (1.3.0)
14
- git (1.2.5)
15
- jeweler (1.8.3)
16
- bundler (~> 1.0)
19
+ faraday (0.9.0)
20
+ multipart-post (>= 1.2, < 3)
21
+ git (1.2.6)
22
+ github_api (0.11.3)
23
+ addressable (~> 2.3)
24
+ descendants_tracker (~> 0.0.1)
25
+ faraday (~> 0.8, < 0.10)
26
+ hashie (>= 1.2)
27
+ multi_json (>= 1.7.5, < 2.0)
28
+ nokogiri (~> 1.6.0)
29
+ oauth2
30
+ hashie (2.0.5)
31
+ highline (1.6.21)
32
+ jeweler (2.0.1)
33
+ builder
34
+ bundler (>= 1.0)
17
35
  git (>= 1.2.5)
36
+ github_api
37
+ highline (>= 1.6.15)
38
+ nokogiri (>= 1.5.10)
18
39
  rake
19
40
  rdoc
20
- json (1.6.6)
21
- rake (0.9.2.2)
22
- rdoc (3.12)
41
+ json (1.8.1)
42
+ jwt (0.1.11)
43
+ multi_json (>= 1.5)
44
+ mini_portile (0.5.3)
45
+ multi_json (1.9.2)
46
+ multi_xml (0.5.5)
47
+ multipart-post (2.0.0)
48
+ nokogiri (1.6.1)
49
+ mini_portile (~> 0.5.0)
50
+ oauth2 (0.9.3)
51
+ faraday (>= 0.8, < 0.10)
52
+ jwt (~> 0.1.8)
53
+ multi_json (~> 1.3)
54
+ multi_xml (~> 0.5)
55
+ rack (~> 1.2)
56
+ rack (1.5.2)
57
+ rake (10.2.2)
58
+ rdoc (4.1.1)
23
59
  json (~> 1.4)
24
60
  rspec (2.9.0)
25
61
  rspec-core (~> 2.9.0)
@@ -29,6 +65,8 @@ GEM
29
65
  rspec-expectations (2.9.1)
30
66
  diff-lcs (~> 1.1.3)
31
67
  rspec-mocks (2.9.0)
68
+ thread_safe (0.3.1)
69
+ atomic (>= 1.1.7, < 2)
32
70
 
33
71
  PLATFORMS
34
72
  ruby
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ require 'jeweler'
15
15
  Jeweler::Tasks.new do |gem|
16
16
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
17
  gem.name = "http_logger"
18
- gem.homepage = "http://github.com/bogdan/http_logger"
18
+ gem.homepage = "http://github.com/railsware/http_logger"
19
19
  gem.license = "MIT"
20
20
  gem.summary = %Q{Log your http api calls just like SQL queries}
21
21
  gem.description = %Q{This gem keep an eye on every Net::HTTP library usage and dump all request and response data to the log file}
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
data/http_logger.gemspec CHANGED
@@ -2,14 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: http_logger 0.4.3 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "http_logger"
8
- s.version = "0.4.2"
9
+ s.version = "0.4.3"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Bogdan Gusiev"]
12
- s.date = "2013-11-22"
14
+ s.date = "2014-04-04"
13
15
  s.description = "This gem keep an eye on every Net::HTTP library usage and dump all request and response data to the log file"
14
16
  s.email = "agresso@gmail.com"
15
17
  s.extra_rdoc_files = [
@@ -32,14 +34,13 @@ Gem::Specification.new do |s|
32
34
  "spec/http_logger_spec.rb",
33
35
  "spec/spec_helper.rb"
34
36
  ]
35
- s.homepage = "http://github.com/bogdan/http_logger"
37
+ s.homepage = "http://github.com/railsware/http_logger"
36
38
  s.licenses = ["MIT"]
37
- s.require_paths = ["lib"]
38
- s.rubygems_version = "1.8.25"
39
+ s.rubygems_version = "2.2.2"
39
40
  s.summary = "Log your http api calls just like SQL queries"
40
41
 
41
42
  if s.respond_to? :specification_version then
42
- s.specification_version = 3
43
+ s.specification_version = 4
43
44
 
44
45
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
46
  s.add_development_dependency(%q<debugger>, [">= 0"])
data/lib/http_logger.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'net/http'
2
- require "uri"
2
+ require 'uri'
3
+ require 'set'
3
4
 
4
5
  # Usage:
5
6
  #
@@ -79,7 +80,7 @@ class HttpLogger
79
80
  end
80
81
  end
81
82
 
82
- HTTP_METHODS_WITH_BODY = %w(POST PUT)
83
+ HTTP_METHODS_WITH_BODY = Set.new(%w(POST PUT GET))
83
84
 
84
85
  def log_request_body(request)
85
86
  if HTTP_METHODS_WITH_BODY.include?(request.method)
metadata CHANGED
@@ -1,94 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
5
- prerelease:
4
+ version: 0.4.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Bogdan Gusiev
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-22 00:00:00.000000000 Z
11
+ date: 2014-04-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: debugger
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: bundler
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: jeweler
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: fakeweb
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  description: This gem keep an eye on every Net::HTTP library usage and dump all request
@@ -99,8 +88,8 @@ extensions: []
99
88
  extra_rdoc_files:
100
89
  - LICENSE.txt
101
90
  files:
102
- - .document
103
- - .rspec
91
+ - ".document"
92
+ - ".rspec"
104
93
  - Gemfile
105
94
  - Gemfile.lock
106
95
  - LICENSE.txt
@@ -114,32 +103,28 @@ files:
114
103
  - screenshots/solr.png
115
104
  - spec/http_logger_spec.rb
116
105
  - spec/spec_helper.rb
117
- homepage: http://github.com/bogdan/http_logger
106
+ homepage: http://github.com/railsware/http_logger
118
107
  licenses:
119
108
  - MIT
109
+ metadata: {}
120
110
  post_install_message:
121
111
  rdoc_options: []
122
112
  require_paths:
123
113
  - lib
124
114
  required_ruby_version: !ruby/object:Gem::Requirement
125
- none: false
126
115
  requirements:
127
- - - ! '>='
116
+ - - ">="
128
117
  - !ruby/object:Gem::Version
129
118
  version: '0'
130
- segments:
131
- - 0
132
- hash: -2297770745671037589
133
119
  required_rubygems_version: !ruby/object:Gem::Requirement
134
- none: false
135
120
  requirements:
136
- - - ! '>='
121
+ - - ">="
137
122
  - !ruby/object:Gem::Version
138
123
  version: '0'
139
124
  requirements: []
140
125
  rubyforge_project:
141
- rubygems_version: 1.8.25
126
+ rubygems_version: 2.2.2
142
127
  signing_key:
143
- specification_version: 3
128
+ specification_version: 4
144
129
  summary: Log your http api calls just like SQL queries
145
130
  test_files: []