rsr_group 3.0.2 → 4.0.0

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
- SHA256:
3
- metadata.gz: 5f1ccfd958f485916952de979f88c61690c73a6f534c10324801cdfb9aef34da
4
- data.tar.gz: e596d74ed4aaed9db747f0d873844a0dae43c6e9f997def3dd536281745d2d94
2
+ SHA1:
3
+ metadata.gz: 5aace14ec4f9b85ebf09c9d61ca97486a661cf48
4
+ data.tar.gz: f34b435dd8a47cb6e6de99195f0209bc10630fa5
5
5
  SHA512:
6
- metadata.gz: 4a8123d177997c6ee26d2a498fb1bf30a1d4f99b1123b893fdd00f3485801c9bb0f10aaf4a9a93127e7b636d3b3a755ec6e529f1bbb2758dbbe05230970d19f4
7
- data.tar.gz: bf896bd6110264efcfaccb446a940bed7380ff1812db432525abd2fe82f30a6a4ea78834b5279aeafb7c958a53c6b5a59baf32ee0061445b6377eefbf189c029
6
+ metadata.gz: 7d4b0a221e8607595994d4c31a5111ba55d01c79891ebbe9604ccaf6ced549e6ff301287003d028e7632d76b115366be086d04f480e975e60e37a9e958d28790
7
+ data.tar.gz: 86ad46aae7bfeeacd9333f32ac67e8eef19d240cdcfb7c15cf9be8749787819d74a9e8d56b505152fab177660e3d3f89d465d5e7e7b506c52c800f5fc2358635
@@ -6,12 +6,14 @@ module RsrGroup
6
6
  @options = options
7
7
  end
8
8
 
9
- def self.all(options = {}, &block)
9
+ def self.all(options = {})
10
10
  requires!(options, :username, :password)
11
- new(options).all &block
11
+ new(options).all
12
12
  end
13
13
 
14
- def all(&block)
14
+ def all
15
+ items = []
16
+
15
17
  connect(@options) do |ftp|
16
18
  begin
17
19
  tempfile = Tempfile.new
@@ -32,12 +34,14 @@ module RsrGroup
32
34
  item[:quantity] = 0
33
35
  end
34
36
 
35
- yield(item)
37
+ items << item
36
38
  end
37
39
  end
38
40
 
39
41
  tempfile.unlink
40
42
  end
43
+
44
+ items
41
45
  end
42
46
 
43
47
  private
@@ -1,3 +1,3 @@
1
1
  module RsrGroup
2
- VERSION = '3.0.2'.freeze
2
+ VERSION = '4.0.0'.freeze
3
3
  end
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
 
27
27
  spec.add_runtime_dependency "smarter_csv", "~> 1.1.4"
28
28
 
29
- spec.add_development_dependency "bundler", "~> 1.12"
29
+ spec.add_development_dependency "bundler", "~> 1.15"
30
30
  spec.add_development_dependency "memory_profiler", "~> 0.9"
31
31
  spec.add_development_dependency "rake", "~> 10.0"
32
32
  spec.add_development_dependency "rspec", "~> 3.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsr_group
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Campbell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-28 00:00:00.000000000 Z
11
+ date: 2019-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: smarter_csv
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.12'
33
+ version: '1.15'
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: '1.12'
40
+ version: '1.15'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: memory_profiler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubyforge_project:
151
- rubygems_version: 2.7.7
151
+ rubygems_version: 2.6.14
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: RSR Group Ruby library