em-files 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/Gemfile.lock +0 -4
- data/VERSION +1 -1
- data/em-files.gemspec +2 -5
- data/lib/em-files.rb +2 -5
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a41d210c723b3845771a326984c4426da7cce7f9
|
4
|
+
data.tar.gz: 5c1b199c853b6a29c3a21cd1f0975e0f31b7b4fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a836d08720d3205317d3405d2e1298369d7d480d241dea7ed52cdc9af0807492f7385c0f9bc25263d0e2aa338a5e3ee3f032d992881f549a7c3495d16cf9edfc
|
7
|
+
data.tar.gz: f522ea8ac445019c00509095c4b1405a9c1917085d084e7be54e5616ddfb47ce39ee24ff4f492ebe40c4e2bcedb80c5a503b55f4190ff1871fc1c1da05162f67
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -17,8 +17,6 @@ GEM
|
|
17
17
|
multi_json (>= 1.7.5, < 2.0)
|
18
18
|
nokogiri (~> 1.6.3)
|
19
19
|
oauth2
|
20
|
-
hash-utils (2.2.0)
|
21
|
-
ruby-version (>= 0.4.0)
|
22
20
|
hashie (3.4.2)
|
23
21
|
highline (1.7.2)
|
24
22
|
jeweler (2.0.1)
|
@@ -49,7 +47,6 @@ GEM
|
|
49
47
|
riot (0.12.7)
|
50
48
|
rr
|
51
49
|
rr (1.1.2)
|
52
|
-
ruby-version (0.4.3)
|
53
50
|
thread_safe (0.3.5)
|
54
51
|
|
55
52
|
PLATFORMS
|
@@ -58,7 +55,6 @@ PLATFORMS
|
|
58
55
|
DEPENDENCIES
|
59
56
|
bundler (>= 1.0.0)
|
60
57
|
eventmachine
|
61
|
-
hash-utils (>= 0.14.0)
|
62
58
|
jeweler (>= 1.5.2)
|
63
59
|
riot (>= 0.12.1)
|
64
60
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/em-files.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
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: em-files 0.2.
|
5
|
+
# stub: em-files 0.2.4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "em-files"
|
9
|
-
s.version = "0.2.
|
9
|
+
s.version = "0.2.4"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
@@ -39,20 +39,17 @@ Gem::Specification.new do |s|
|
|
39
39
|
|
40
40
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
41
41
|
s.add_runtime_dependency(%q<eventmachine>, [">= 0"])
|
42
|
-
s.add_runtime_dependency(%q<hash-utils>, [">= 0.14.0"])
|
43
42
|
s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
|
44
43
|
s.add_development_dependency(%q<jeweler>, [">= 1.5.2"])
|
45
44
|
s.add_development_dependency(%q<riot>, [">= 0.12.1"])
|
46
45
|
else
|
47
46
|
s.add_dependency(%q<eventmachine>, [">= 0"])
|
48
|
-
s.add_dependency(%q<hash-utils>, [">= 0.14.0"])
|
49
47
|
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
50
48
|
s.add_dependency(%q<jeweler>, [">= 1.5.2"])
|
51
49
|
s.add_dependency(%q<riot>, [">= 0.12.1"])
|
52
50
|
end
|
53
51
|
else
|
54
52
|
s.add_dependency(%q<eventmachine>, [">= 0"])
|
55
|
-
s.add_dependency(%q<hash-utils>, [">= 0.14.0"])
|
56
53
|
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
57
54
|
s.add_dependency(%q<jeweler>, [">= 1.5.2"])
|
58
55
|
s.add_dependency(%q<riot>, [">= 0.12.1"])
|
data/lib/em-files.rb
CHANGED
@@ -3,9 +3,6 @@
|
|
3
3
|
|
4
4
|
require "eventmachine"
|
5
5
|
require "stringio"
|
6
|
-
require "hash-utils/io" # >= 0.14.0
|
7
|
-
require "hash-utils/stringio"
|
8
|
-
require "hash-utils/object"
|
9
6
|
|
10
7
|
##
|
11
8
|
# Main EventMachine module.
|
@@ -146,7 +143,7 @@ module EM
|
|
146
143
|
rwsize = self::RWSIZE if rwsize.nil?
|
147
144
|
|
148
145
|
# If filepath is directly IO, uses it
|
149
|
-
if filepath.
|
146
|
+
if filepath.kind_of? IO
|
150
147
|
@native = filepath
|
151
148
|
else
|
152
149
|
@native = ::File::open(filepath, mode)
|
@@ -257,7 +254,7 @@ module EM
|
|
257
254
|
def write(data, filter = nil, &block)
|
258
255
|
pos = 0
|
259
256
|
|
260
|
-
if data.
|
257
|
+
if data.kind_of? IO
|
261
258
|
io = data
|
262
259
|
else
|
263
260
|
io = StringIO::new(data)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: em-files
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Poljak
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: hash-utils
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.14.0
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.14.0
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: bundler
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|