clark_kent 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/clark_kent/report.rb +3 -3
  3. data/app/models/clark_kent/report_email.rb +1 -1
  4. data/lib/clark_kent/version.rb +1 -1
  5. data/test/dummy/db/test.sqlite3 +0 -0
  6. data/test/dummy/log/test.log +3674 -0
  7. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/1dmI5Zo2mcXAfKVp6s6Y3ITZex2nf6M6ba87fZW3-HE.cache +1 -0
  8. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/2VXuw1t1XOVi5kuVjvemRwSnlQWo0cZP_Ial5evYROc.cache +1 -0
  9. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/5k7OtUEslUWi1MkCA5Kmc7rHAU0hWPFaSUcq7j8-doc.cache +1 -0
  10. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/7cvHRyXeQa3tRwdNOGrBZHOjELOJ4kopXU9eCd4GvVE.cache +0 -0
  11. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/9xZnfP3LysRg28xPYEclacGlxgUrof8V_jYLmG4iJko.cache +1 -0
  12. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/HuyKNAYEnPs4OFAHZ6YQZ3VSrTaxZe0Ra_fNZLbeXDw.cache +1 -0
  13. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/IwcHpmWHtyrIj83pFTlHGdyK5GSO3M0FtJd09CB88uE.cache +0 -0
  14. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/JbcAACpMmVlknG104wCtLY73aNeelGB5NNPiF4uDf5s.cache +2 -0
  15. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Mcau95NHKdhNbIQcmeAMI9dpJu0QmBrXgYBMR7dosQI.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/O8akbUwAbmIKY-AhITimq-JDQ6IgsO3Hvq2v5etufFw.cache +2 -0
  17. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/UwMFS8rJmeOVTOPUAsy5rBsPqe-mwJgvTSCg-8xwSK8.cache +3 -0
  18. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/YyF0e1zDQF3_KsNy35VwTXCAZDObuR--UKKjiH9Ugs4.cache +0 -0
  19. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/c0fZzpmetAbdlEG8jam5O6N3N3wiVzKXR_lCIY6kCTA.cache +0 -0
  20. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/gbQ-9rbnxd-XmF785qDyhZk5H-HJvNbffkuHrzAos-I.cache +1 -0
  21. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/gfx6mgjf1Gygt3bclLKW8zeiMIdAUtlfAzmOraiAO0c.cache +1 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hWadad6CRv-QW0lZ5DKckYD_umPsy2_WbigRqL3bjv0.cache +1 -0
  23. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hj8Ir9wcVSy1KYrnWu9bpD24vDhCG3tvt-nKbNxb1Wg.cache +3 -0
  24. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/jQKNn92UMva5Q4nbPoJ_zjf7-gS2Z6_8IArZpjm90UA.cache +0 -0
  25. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/oCsZTGZyV4kH8Y4OeSDUdrwfkJFPzTODZjuBKZB8oGQ.cache +2 -0
  26. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/tPF6H9NRpGO3whu2y5_e_R_1EACKdCwu5437D83qJT0.cache +3 -0
  27. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/x1pNHYQUCVLQm2-2eBri2T7gxgLTBDez3d7ao8etFX4.cache +0 -0
  28. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ye0s0eVe7TGf1M78y4llhk6PqlHaHZQIJ-_GeKxHvCE.cache +0 -0
  29. data/test/test_helper.rb +1 -0
  30. metadata +89 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cb58aa7c0c39e94a8bb57a5fbc5df2351420cb3
4
- data.tar.gz: 4f36f628610e450f3d1824e100d10b403835af88
3
+ metadata.gz: 1602aef2a067c09bd335e26d9e81044e7aab0d9e
4
+ data.tar.gz: 86c09aa7f1519452e5eb73c9e898ce16a616cf8b
5
5
  SHA512:
6
- metadata.gz: fe33d161c4aa0ff8c4c7ed80d248c08b348a10a85d4aa68979b2600348f1ec7e7c62ac6df97f0b51357832ef3ca745ba73e1b71dd0caf90533733b04a015cce4
7
- data.tar.gz: 6a5702faa3e7bb849974c887829b11776227fcdad45866398f33b820233097a9f33259210e54584c69b228c28cb0a0b920613e2151c091eb8c927b6d83ed0600
6
+ metadata.gz: 5a07ab29841ddfbd24bcba27e3f89bc95c906123768c090fe2250f2b7c40635f7bf4658877d826d7d8ff19ba295c80cadecd90e9dca095f58f9ae7cfa4718e6c
7
+ data.tar.gz: c1b02256030c39ee13716f5c3b3457dc6e9fa97bd45f7124fbf206a3f7613d2fba1508d940b888c6637503a2de26714b1772726f18d6b80ae1e7336487b6859a
@@ -20,14 +20,14 @@ module ClarkKent
20
20
  validates :sharing_scope_id, presence: true, if: ->(r) { r.sharing_scope_type.present? }
21
21
 
22
22
  def self.send_report_to_s3(report_id, params)
23
- report_class = params['report_class'].constantize if params['report_class']
23
+ report_class = params[:report_class].constantize if params[:report_class]
24
24
  report_class ||= ::ClarkKent::Report
25
25
  reportable = report_class.find(report_id)
26
26
  report = ('ClarkKent::ReportEmail' == report_class.name) ? reportable.report : reportable
27
27
  query = reportable.get_query(params)
28
28
  row_count = reportable.get_query(params, true)
29
29
  bucket = AWS::S3::Bucket.new(ClarkKent::ReportUploaderBucketName)
30
- report_destination = bucket.objects[params['report_result_name']]
30
+ report_destination = bucket.objects[params[:report_result_name]]
31
31
  byte_count = 0
32
32
  temp_buffer = report.headers.to_csv
33
33
  offset = 0
@@ -64,7 +64,7 @@ module ClarkKent
64
64
  expires: 60*60*24*30 #good for 30 days
65
65
  )
66
66
  if 'ClarkKent::Report' == report_class.name
67
- ForeignOffice.publish(channel: params['report_result_name'], object: {report_result_url: report_result_url.to_s} )
67
+ ForeignOffice.publish(channel: params[:report_result_name], object: {report_result_url: report_result_url.to_s} )
68
68
  end
69
69
  report_result_url.to_s
70
70
  end
@@ -39,7 +39,7 @@ module ClarkKent
39
39
 
40
40
  def send_email(user_id)
41
41
  user = ClarkKent.user_class.find(user_id)
42
- params = {'report_result_name' => "report-#{self.id}-user-#{user_id}-#{Time.now.to_formatted_s(:number)}", 'report_class' => 'ClarkKent::ReportEmail'}
42
+ params = {report_result_name: "report-#{self.id}-user-#{user_id}-#{Time.now.to_formatted_s(:number)}", report_class: 'ClarkKent::ReportEmail'}
43
43
  SharingScopeKind.custom.each do |sharing_scope_kind|
44
44
  unless report.report_filters.map(&:filter_name).include? sharing_scope_kind.basic_association_id_collection_name.to_s
45
45
  associations = sharing_scope_kind.associated_containers_for(user)
@@ -1,3 +1,3 @@
1
1
  module ClarkKent
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
Binary file