caseblocks_bucket_extractor 0.0.10 → 0.0.11

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: 19cdabd20e7d7276f24c7ae042c9480f59ec6196
4
+ data.tar.gz: 0257f0d5f4105e86449537ec2c73a20ad32b1d04
5
+ SHA512:
6
+ metadata.gz: acc06ae75580605a3b97200e6700bb6e89791ebb514a5d81a5f2a1b40bd2c25d3183dbf7f7d32b9a693cbe652967860cd785e3e776451e710bc77cce12875879
7
+ data.tar.gz: c6c602ead6f7d518b447e2627791c9ee08755fd13eb6e79be38f1c612cc3aa8f933ea962494e3b9b30d50fbb44d148c2a3b5add4c18be7e9c31eb2ccc4978db0
@@ -37,7 +37,7 @@ if opts[:casetype] && opts[:bucket] && opts[:path] && opts[:token]
37
37
  puts "Creating Bucket Extractor... "
38
38
  bucket_extractor = CaseblocksBucketExtractor.new(url, opts[:token], {:retry_limit => retry_limit,:time_between_retries => 60})
39
39
 
40
- file_path = opts[:path] + "/"+ DateTime.now.strftime("%y-%m-%d-%M-%H") + "_" + bucket_name + ".csv"
40
+ file_path = opts[:path] + "/"+ DateTime.now.strftime("%y-%m-%d-%H-%M") + "_" + bucket_name + ".csv"
41
41
 
42
42
  file_options = [{:path => file_path, :name => "#{relation_type}.csv"}]
43
43
 
@@ -80,7 +80,7 @@ class CaseblocksBucketExtractor
80
80
  def download_file(file_location,s3_link)
81
81
  File.open(file_location, "wb") do |saved_file|
82
82
  open(s3_link, 'rb') do |read_file|
83
- saved_file.write(read_file.read)
83
+ IO.copy_stream(read_file, saved_file)
84
84
  end
85
85
  end
86
86
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caseblocks_bucket_extractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
5
- prerelease:
4
+ version: 0.0.11
6
5
  platform: ruby
7
6
  authors:
8
7
  - Charlie Quinn, Stewart McKee, Colin Gemmell
@@ -13,26 +12,32 @@ date: 2013-06-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: httparty
16
- requirement: &70266227419340 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.11.0
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70266227419340
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.11.0
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: slop
27
- requirement: &70266227418940 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *70266227418940
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  description: A simple hello world gem
37
42
  email: development@emergeadapt.com
38
43
  executables:
@@ -44,26 +49,25 @@ files:
44
49
  - bin/bucket_downloader
45
50
  homepage: http://rubygems.org/gems/caseblocks_bucket_extractor
46
51
  licenses: []
52
+ metadata: {}
47
53
  post_install_message:
48
54
  rdoc_options: []
49
55
  require_paths:
50
56
  - lib
51
57
  required_ruby_version: !ruby/object:Gem::Requirement
52
- none: false
53
58
  requirements:
54
- - - ! '>='
59
+ - - '>='
55
60
  - !ruby/object:Gem::Version
56
61
  version: '0'
57
62
  required_rubygems_version: !ruby/object:Gem::Requirement
58
- none: false
59
63
  requirements:
60
- - - ! '>='
64
+ - - '>='
61
65
  - !ruby/object:Gem::Version
62
66
  version: '0'
63
67
  requirements: []
64
68
  rubyforge_project:
65
- rubygems_version: 1.8.15
69
+ rubygems_version: 2.0.2
66
70
  signing_key:
67
- specification_version: 3
71
+ specification_version: 4
68
72
  summary: Gem to kick off, poll and save bucket downloads from CaseBlocks
69
73
  test_files: []