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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 305b61b6b2f6c909472c5f1884e199002fbf99e3
4
- data.tar.gz: 4ecc07ef8b55b0f359d636cfc0fde7dca9182388
3
+ metadata.gz: b03659786c6c1cc6fed760a7f0ae5bfef77416c6
4
+ data.tar.gz: 7c83bd5c29d661eb819c4981438937a862a0fc89
5
5
  SHA512:
6
- metadata.gz: 3697ce6f9588206dd1a4dccacb155d92afe9aa580e9841361b46f724519bd08345a1127566877931ce3138ccdf6f284d9bd1ada6a7660577fee14adc3e020aec
7
- data.tar.gz: d0b5b12c4d728bd5de204be2af69fced14ab6848957eec261d84e5bd01d935a42cffcf580406e977b5e2fdf4474d830311d254a4421489abf7163de38eba9937
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.5'
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'
@@ -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.5
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-29 00:00:00.000000000 Z
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.0.7
91
+ rubygems_version: 2.1.3
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: File manager, access S3 or local