file-manager 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/file-manager.gemspec +1 -1
- data/lib/s3_file_manager.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b03659786c6c1cc6fed760a7f0ae5bfef77416c6
|
4
|
+
data.tar.gz: 7c83bd5c29d661eb819c4981438937a862a0fc89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ec927ad9316d54a91935c831cdcdd48a3a7e4d630c6e9aa83ad6e4c43eb35e4c89d697cb94d25dd5c3cad27bcd537f0316846d53d4fd8fd0abbfd696a719bdc
|
7
|
+
data.tar.gz: 2f2f76c3435fbc29cacbd32824ea0f4f627ae2b8d39ed95185640cfab79a740753b558c80ec1996787e4e67f4c446be58fac6e57cf47cc25321c28a50f5926b9
|
data/file-manager.gemspec
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = "file-manager"
|
6
|
-
spec.version = '0.0.
|
6
|
+
spec.version = '0.0.6'
|
7
7
|
spec.authors = ["Francisco Barroso / Marlus Saraiva"]
|
8
8
|
spec.email = ["franciscobarroso@grupofortes.com.br"]
|
9
9
|
spec.description = 'File manager, access S3 or local'
|
data/lib/s3_file_manager.rb
CHANGED
@@ -11,7 +11,7 @@ class S3FileManager
|
|
11
11
|
s3_service = connect_s3_service
|
12
12
|
bucket = s3_service.buckets[options[:bucket]]
|
13
13
|
|
14
|
-
print "Reading file \"#{file_name}\" from bucket \"#{:bucket}\"..."
|
14
|
+
print "Reading file \"#{file_name}\" from bucket \"#{options[:bucket]}\"..."
|
15
15
|
contents = bucket.objects[file_name].read.force_encoding('utf-8')
|
16
16
|
puts 'done.'
|
17
17
|
|
@@ -19,7 +19,7 @@ class S3FileManager
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def save_file file_name, file_contents
|
22
|
-
print "Saving file \"#{file_name}\" to bucket \"#{:bucket}\"..."
|
22
|
+
print "Saving file \"#{file_name}\" to bucket \"#{options[:bucket]}\"..."
|
23
23
|
s3_service = connect_s3_service
|
24
24
|
bucket = s3_service.buckets[options[:bucket]]
|
25
25
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: file-manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francisco Barroso / Marlus Saraiva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09
|
11
|
+
date: 2014-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
90
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.
|
91
|
+
rubygems_version: 2.1.3
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: File manager, access S3 or local
|