mongo_http_sync 0.3.0 → 0.3.1

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: d7577fa07921f970382f96c1441d662a4d4d15ba
4
- data.tar.gz: ce199bafe2291c6566c8cf3a3d1cabe9f1949666
3
+ metadata.gz: 12e8896fbf1dc65ce082427c55a089fd466e2511
4
+ data.tar.gz: b4198a50fe6568227513354bad6f0195050137ce
5
5
  SHA512:
6
- metadata.gz: e77eb4731b00282bdd87afc33f6b20e118d3a6fb81af99c6aa5bf9508ede7c9f93d9bdc66116f442b1357865c58945b7769b483a572410fd464fd0cd9d84b6bb
7
- data.tar.gz: e0314114dd6114b29e4df52d2f21a70362e0a0fa2993f6efa6629b04864be73b32fb9622eefc9b48e23b33c67b940da416890b3af222e24964b992d36e39a60f
6
+ metadata.gz: f1842eae5c23f7dcf115280b01f76591d3fb1e034a05573a78dbaeeeaa6f70bc68eb625483aaac25ea7cfa0ee58e19e0df642761bbd9e463b22f7a2a57006cf9
7
+ data.tar.gz: 289a938c918b1fa4f2d71048be5dc33a90fe7dfe9c4c7a8ab56bfa05e08a908768fdc27ec76b027611bc0ef9a3cb4875e2a709e16c677e4420b37af119581cc1
@@ -4,7 +4,7 @@ module MongoHTTPSync
4
4
  class Parser
5
5
  def self.parse(io, &block)
6
6
  handler = Handler.new(block)
7
- Oj.sc_parse(handler, ReadpartialWorkaround.new(io))
7
+ Oj.sc_parse(handler, io)
8
8
  handler.ndocs
9
9
  end
10
10
  class Handler < ::Oj::ScHandler
@@ -46,23 +46,5 @@ module MongoHTTPSync
46
46
  throw "#{message} (line: #{line}, column: #{column})"
47
47
  end
48
48
  end
49
- class ReadpartialWorkaround
50
- def initialize(target)
51
- @target = target
52
- end
53
- def readpartial(maxlen)
54
- if @buffer and @buffer.length > 0
55
- buff = @buffer[0..maxlen-1]
56
- @buffer = @buffer[maxlen..-1]
57
- return buff
58
- end
59
- r = @target.readpartial(maxlen)
60
- if r.dup.bytesize > maxlen
61
- @buffer = r[maxlen..-1]
62
- r = r[0..maxlen-1]
63
- end
64
- r
65
- end
66
- end
67
49
  end
68
50
  end
@@ -1,3 +1,3 @@
1
1
  module MongoHTTPSync
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -21,14 +21,13 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.13"
25
- spec.add_development_dependency "rake", "~> 10.0"
26
- spec.add_development_dependency "rspec", "~> 3.0"
27
- spec.add_development_dependency "pry"
24
+ spec.add_development_dependency "bundler"
25
+ spec.add_development_dependency "rake"
26
+ spec.add_development_dependency "rspec"
28
27
  spec.add_development_dependency "guard-rspec"
29
28
  spec.add_development_dependency "webmock"
30
29
  spec.add_dependency "mongoid"
31
30
  spec.add_dependency "oj"
32
- spec.add_dependency "http"
31
+ spec.add_dependency "http", '>= 4.0.0'
33
32
  spec.add_dependency "grape-entity"
34
33
  end
metadata CHANGED
@@ -1,59 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo_http_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Aizim Kelmanson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-07 00:00:00.000000000 Z
11
+ date: 2019-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.13'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.13'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '3.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '3.0'
55
- - !ruby/object:Gem::Dependency
56
- name: pry
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - ">="
@@ -128,14 +114,14 @@ dependencies:
128
114
  requirements:
129
115
  - - ">="
130
116
  - !ruby/object:Gem::Version
131
- version: '0'
117
+ version: 4.0.0
132
118
  type: :runtime
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - ">="
137
123
  - !ruby/object:Gem::Version
138
- version: '0'
124
+ version: 4.0.0
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: grape-entity
141
127
  requirement: !ruby/object:Gem::Requirement
@@ -197,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
183
  version: '0'
198
184
  requirements: []
199
185
  rubyforge_project:
200
- rubygems_version: 2.4.8
186
+ rubygems_version: 2.5.2.3
201
187
  signing_key:
202
188
  specification_version: 4
203
189
  summary: MongoDB HTTP Synchronizer