edgarj 0.01.20 → 0.01.21

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: 833876d738a4dc3b3cfee8d7efcfa9508c919dd3
4
- data.tar.gz: 07c2604cc87942816f9192f48b06cea521164c21
3
+ metadata.gz: 317f70ed3709d6a35763886431d0f77ff2ca7e3d
4
+ data.tar.gz: 14fdce26cd0837305697830c4151bf6ae9f5106c
5
5
  SHA512:
6
- metadata.gz: 23fd1a75c050a3080a00fef62a777c2af74595e6d96bb694395e8cc773515045dba4a68362b3a5ad349339056657d95bd77fe16d3844d1de1469fe12b22a16f9
7
- data.tar.gz: 411a8e75d0d93849a5447eb337ad623e40cc9e63f8f50fba16864895df36d7da13a57408e7e6c4ac883b0e97b4e67f5e88eeddaf50c1a256caa3404c978802cb
6
+ metadata.gz: 4363e3aea59fefe7e6705b9851239d0a64819ff13aaa516fc0f525d4ef2fa06d6bbd4da3dbc2351e7657e17826e38f131d7374410e6669fd463668d3cd72e552
7
+ data.tar.gz: 0a4b1b3ae101acf955e47bdae2afc3374b894bfa8f97c58a404d28a5b0b479b4b435b5a1307dcd44cb3ac820bd9d939c69194ca3179854b016e07ab326ebc869
@@ -344,6 +344,7 @@ module Edgarj
344
344
  file.write CSV.generate_line(array)
345
345
  end
346
346
  file.close
347
+ File.chmod(Settings.edgarj.csv_permission, file.path)
347
348
  send_file(file.path, {
348
349
  type: 'text/csv',
349
350
  filename: filename})
data/config/settings.yml CHANGED
@@ -3,4 +3,8 @@ edgarj:
3
3
  time_zone_for_timestamp_comparison: '9'
4
4
  work_dir: <%= Rails.root + 'tmp/edgarj' %>
5
5
  csv_dir: <%= Rails.root + 'tmp/edgarj/csv_download' %>
6
+
7
+ # After creating temporary csv download file, set the permission
8
+ # to the file. Default is that only owner read+write.
9
+ csv_permission: 0600
6
10
  _overwrite_test: 'hello'
@@ -1,3 +1,3 @@
1
1
  module Edgarj
2
- VERSION = "0.01.20"
2
+ VERSION = "0.01.21"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edgarj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.01.20
4
+ version: 0.01.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fuminori Ido