nexaas-async-collector 3.1.0 → 3.2.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
2
  SHA1:
3
- metadata.gz: 22260bccd9579781a6b6ca2dadc82198a30cbb01
4
- data.tar.gz: ddfe6e2396e4229904ff1f4084a498913813cd7c
3
+ metadata.gz: a6f7dddb4c3f1de985620fc046e55ad5abe09d4d
4
+ data.tar.gz: 4acb3b3d95a33a71139362f9b9b325e1c068e0be
5
5
  SHA512:
6
- metadata.gz: 9029f15e453e1c4ef0a53cbe2cfcd9a320376acb8761b7b4bedf9470abb529212b4403ba751fe5417bd7b90258a8bfbf96cdb06c6acdbb4fd11c19b03a205b4e
7
- data.tar.gz: 1b03833b73d63e95f5988681cad00ec5035a3d5dac53ab7d2f8d60579502bae2667983d48856dfaf7211d15ef8a3cd57c37f6769d49831dcf5f163069b6f87c1
6
+ metadata.gz: 706fe8b5a088ad6d737dbc1016c718ab4ae6368a772c5a7f728a4b19bba84f4f70960d457dfbd579bef90a0b0247cacfba88cb6c9bc73b1fc29c63296eb68cd7
7
+ data.tar.gz: fed0df22ab89639ee90ca666bffa506f2395be4c5cf7dc7b99d4d00a44ab05953465d2749e3ab1ed07b9dc7fa6257873f8c31a1e2d83270464cb6f3a2cdea31c
data/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  Agnostic collector and generator of async content for Rails apps. Used in production in a few [Nexaas](www.nexaas.com) systems.
9
9
 
10
- This gems is compatible with Ruby 2.3+ and Rails 3.2+.
10
+ This gems is compatible with Ruby 2.3+ (we do not ensure it works in previous versions) and Rails 3.2+.
11
11
 
12
12
  ## Prerequisites
13
13
  The prerequisites of this project are:
@@ -14,11 +14,12 @@ module Nexaas
14
14
  def content_in_json(opts)
15
15
  {
16
16
  'scope_id' => opts[:scope_id],
17
- 'content' => opts[:content],
17
+ 'content' => (opts[:content] ? Base64.encode64(opts[:content].to_s) : nil),
18
18
  'file' => opts[:file]
19
19
  }.to_json
20
20
  end
21
21
 
22
+
22
23
  def storage
23
24
  InMemoryStorage.new
24
25
  end
@@ -19,7 +19,7 @@ module Nexaas
19
19
  end
20
20
 
21
21
  def content
22
- object['content'] if content_is_ready?
22
+ Base64.decode64(object['content']) if content_is_ready?
23
23
  end
24
24
 
25
25
  def content_is_ready?
@@ -1,7 +1,7 @@
1
1
  module Nexaas
2
2
  module Async
3
3
  module Collector
4
- VERSION = '3.1.0'
4
+ VERSION = '3.2.0'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexaas-async-collector
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Hertz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-26 00:00:00.000000000 Z
11
+ date: 2017-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  requirements: []
177
177
  rubyforge_project:
178
- rubygems_version: 2.5.2
178
+ rubygems_version: 2.6.11
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: Collect and generate async content.