vigilion-rails 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +33 -0
  4. data/app/controllers/vigilion/vigilion_controller.rb +21 -0
  5. data/config/routes.rb +3 -0
  6. data/lib/generators/vigilion/install_generator.rb +22 -0
  7. data/lib/generators/vigilion/scan/USAGE +7 -0
  8. data/lib/generators/vigilion/scan/scan_generator.rb +20 -0
  9. data/lib/generators/vigilion/scan/templates/add_scan_results_columns.rb.erb +5 -0
  10. data/lib/tasks/vigilion.rake +12 -0
  11. data/lib/vigilion-rails.rb +55 -0
  12. data/lib/vigilion-rails/configuration.rb +13 -0
  13. data/lib/vigilion-rails/engine.rb +10 -0
  14. data/lib/vigilion-rails/integrations/local_integration.rb +7 -0
  15. data/lib/vigilion-rails/integrations/url_integration.rb +7 -0
  16. data/lib/vigilion-rails/version.rb +3 -0
  17. data/spec/dummy/README.rdoc +28 -0
  18. data/spec/dummy/Rakefile +6 -0
  19. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  20. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  21. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  22. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  23. data/spec/dummy/app/models/agnostic_document.rb +7 -0
  24. data/spec/dummy/app/models/carrierwave_document.rb +4 -0
  25. data/spec/dummy/app/models/dragonfly_document.rb +4 -0
  26. data/spec/dummy/app/models/paperclip_document.rb +4 -0
  27. data/spec/dummy/app/uploaders/attachment_uploader.rb +50 -0
  28. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  29. data/spec/dummy/bin/bundle +3 -0
  30. data/spec/dummy/bin/rails +4 -0
  31. data/spec/dummy/bin/rake +4 -0
  32. data/spec/dummy/bin/setup +29 -0
  33. data/spec/dummy/config.ru +4 -0
  34. data/spec/dummy/config/application.rb +32 -0
  35. data/spec/dummy/config/boot.rb +5 -0
  36. data/spec/dummy/config/database.yml +25 -0
  37. data/spec/dummy/config/environment.rb +5 -0
  38. data/spec/dummy/config/environments/development.rb +41 -0
  39. data/spec/dummy/config/environments/production.rb +79 -0
  40. data/spec/dummy/config/environments/test.rb +42 -0
  41. data/spec/dummy/config/initializers/assets.rb +11 -0
  42. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  43. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  44. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  45. data/spec/dummy/config/initializers/inflections.rb +16 -0
  46. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  47. data/spec/dummy/config/initializers/session_store.rb +3 -0
  48. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  49. data/spec/dummy/config/locales/en.yml +23 -0
  50. data/spec/dummy/config/routes.rb +3 -0
  51. data/spec/dummy/config/secrets.yml +22 -0
  52. data/spec/dummy/db/migrate/20150616144220_create_carrierwave_documents.rb +8 -0
  53. data/spec/dummy/db/migrate/20150616144227_create_paperclip_documents.rb +8 -0
  54. data/spec/dummy/db/migrate/20150616144235_create_dragonfly_documents.rb +8 -0
  55. data/spec/dummy/db/migrate/20150616144544_create_agnostic_documents.rb +8 -0
  56. data/spec/dummy/db/schema.rb +61 -0
  57. data/spec/dummy/public/404.html +67 -0
  58. data/spec/dummy/public/422.html +67 -0
  59. data/spec/dummy/public/500.html +66 -0
  60. data/spec/dummy/public/favicon.ico +0 -0
  61. data/spec/helper_methods.rb +11 -0
  62. data/spec/lib/integrations/local_integration_spec.rb +13 -0
  63. data/spec/lib/vigilion_rails_spec.rb +122 -0
  64. data/spec/routing/vigilion_routing_spec.rb +9 -0
  65. data/spec/spec_helper.rb +87 -0
  66. data/spec/vigilion_rails_helper.rb +34 -0
  67. metadata +229 -0
@@ -0,0 +1,34 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV['RAILS_ENV'] ||= 'test'
3
+ require 'spec_helper'
4
+ require File.expand_path('../dummy/config/environment', __FILE__)
5
+ require 'rspec/rails'
6
+ require 'helper_methods'
7
+
8
+ ActiveRecord::Migration.maintain_test_schema!
9
+
10
+ RSpec.configure do |config|
11
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
12
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
13
+
14
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
15
+ # examples within a transaction, remove the following line or assign false
16
+ # instead of true.
17
+ config.use_transactional_fixtures = true
18
+
19
+ # RSpec Rails can automatically mix in different behaviours to your tests
20
+ # based on their file location, for example enabling you to call `get` and
21
+ # `post` in specs under `spec/controllers`.
22
+ #
23
+ # You can disable this behaviour by removing the line below, and instead
24
+ # explicitly tag your specs with their type, e.g.:
25
+ #
26
+ # RSpec.describe UsersController, :type => :controller do
27
+ # # ...
28
+ # end
29
+ #
30
+ # The different available types are documented in the features, such as in
31
+ # https://relishapp.com/rspec/rspec-rails/docs
32
+ config.infer_spec_type_from_file_location!
33
+ config.extend VigilionRails::HelperMethods
34
+ end
metadata ADDED
@@ -0,0 +1,229 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vigilion-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Bit Zesty Ltd
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 4.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: vigilion
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.0.3
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.0.3
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: factory_girl_rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sqlite3
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Rails engine for Vigilion Anti-Virus & Malware file scanning service.
84
+ email:
85
+ - help@vigilion.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - MIT-LICENSE
91
+ - Rakefile
92
+ - app/controllers/vigilion/vigilion_controller.rb
93
+ - config/routes.rb
94
+ - lib/generators/vigilion/install_generator.rb
95
+ - lib/generators/vigilion/scan/USAGE
96
+ - lib/generators/vigilion/scan/scan_generator.rb
97
+ - lib/generators/vigilion/scan/templates/add_scan_results_columns.rb.erb
98
+ - lib/tasks/vigilion.rake
99
+ - lib/vigilion-rails.rb
100
+ - lib/vigilion-rails/configuration.rb
101
+ - lib/vigilion-rails/engine.rb
102
+ - lib/vigilion-rails/integrations/local_integration.rb
103
+ - lib/vigilion-rails/integrations/url_integration.rb
104
+ - lib/vigilion-rails/version.rb
105
+ - spec/dummy/README.rdoc
106
+ - spec/dummy/Rakefile
107
+ - spec/dummy/app/assets/javascripts/application.js
108
+ - spec/dummy/app/assets/stylesheets/application.css
109
+ - spec/dummy/app/controllers/application_controller.rb
110
+ - spec/dummy/app/helpers/application_helper.rb
111
+ - spec/dummy/app/models/agnostic_document.rb
112
+ - spec/dummy/app/models/carrierwave_document.rb
113
+ - spec/dummy/app/models/dragonfly_document.rb
114
+ - spec/dummy/app/models/paperclip_document.rb
115
+ - spec/dummy/app/uploaders/attachment_uploader.rb
116
+ - spec/dummy/app/views/layouts/application.html.erb
117
+ - spec/dummy/bin/bundle
118
+ - spec/dummy/bin/rails
119
+ - spec/dummy/bin/rake
120
+ - spec/dummy/bin/setup
121
+ - spec/dummy/config.ru
122
+ - spec/dummy/config/application.rb
123
+ - spec/dummy/config/boot.rb
124
+ - spec/dummy/config/database.yml
125
+ - spec/dummy/config/environment.rb
126
+ - spec/dummy/config/environments/development.rb
127
+ - spec/dummy/config/environments/production.rb
128
+ - spec/dummy/config/environments/test.rb
129
+ - spec/dummy/config/initializers/assets.rb
130
+ - spec/dummy/config/initializers/backtrace_silencers.rb
131
+ - spec/dummy/config/initializers/cookies_serializer.rb
132
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
133
+ - spec/dummy/config/initializers/inflections.rb
134
+ - spec/dummy/config/initializers/mime_types.rb
135
+ - spec/dummy/config/initializers/session_store.rb
136
+ - spec/dummy/config/initializers/wrap_parameters.rb
137
+ - spec/dummy/config/locales/en.yml
138
+ - spec/dummy/config/routes.rb
139
+ - spec/dummy/config/secrets.yml
140
+ - spec/dummy/db/migrate/20150616144220_create_carrierwave_documents.rb
141
+ - spec/dummy/db/migrate/20150616144227_create_paperclip_documents.rb
142
+ - spec/dummy/db/migrate/20150616144235_create_dragonfly_documents.rb
143
+ - spec/dummy/db/migrate/20150616144544_create_agnostic_documents.rb
144
+ - spec/dummy/db/schema.rb
145
+ - spec/dummy/public/404.html
146
+ - spec/dummy/public/422.html
147
+ - spec/dummy/public/500.html
148
+ - spec/dummy/public/favicon.ico
149
+ - spec/helper_methods.rb
150
+ - spec/lib/integrations/local_integration_spec.rb
151
+ - spec/lib/vigilion_rails_spec.rb
152
+ - spec/routing/vigilion_routing_spec.rb
153
+ - spec/spec_helper.rb
154
+ - spec/vigilion_rails_helper.rb
155
+ homepage: https://github.com/vigilion/vigilion-rails
156
+ licenses:
157
+ - MIT
158
+ metadata: {}
159
+ post_install_message:
160
+ rdoc_options: []
161
+ require_paths:
162
+ - lib
163
+ required_ruby_version: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ required_rubygems_version: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
173
+ requirements: []
174
+ rubyforge_project:
175
+ rubygems_version: 2.4.5
176
+ signing_key:
177
+ specification_version: 4
178
+ summary: Rails engine for Vigilion Anti-Virus & Malware file scanning service.
179
+ test_files:
180
+ - spec/dummy/app/assets/javascripts/application.js
181
+ - spec/dummy/app/assets/stylesheets/application.css
182
+ - spec/dummy/app/controllers/application_controller.rb
183
+ - spec/dummy/app/helpers/application_helper.rb
184
+ - spec/dummy/app/models/agnostic_document.rb
185
+ - spec/dummy/app/models/carrierwave_document.rb
186
+ - spec/dummy/app/models/dragonfly_document.rb
187
+ - spec/dummy/app/models/paperclip_document.rb
188
+ - spec/dummy/app/uploaders/attachment_uploader.rb
189
+ - spec/dummy/app/views/layouts/application.html.erb
190
+ - spec/dummy/bin/bundle
191
+ - spec/dummy/bin/rails
192
+ - spec/dummy/bin/rake
193
+ - spec/dummy/bin/setup
194
+ - spec/dummy/config/application.rb
195
+ - spec/dummy/config/boot.rb
196
+ - spec/dummy/config/database.yml
197
+ - spec/dummy/config/environment.rb
198
+ - spec/dummy/config/environments/development.rb
199
+ - spec/dummy/config/environments/production.rb
200
+ - spec/dummy/config/environments/test.rb
201
+ - spec/dummy/config/initializers/assets.rb
202
+ - spec/dummy/config/initializers/backtrace_silencers.rb
203
+ - spec/dummy/config/initializers/cookies_serializer.rb
204
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
205
+ - spec/dummy/config/initializers/inflections.rb
206
+ - spec/dummy/config/initializers/mime_types.rb
207
+ - spec/dummy/config/initializers/session_store.rb
208
+ - spec/dummy/config/initializers/wrap_parameters.rb
209
+ - spec/dummy/config/locales/en.yml
210
+ - spec/dummy/config/routes.rb
211
+ - spec/dummy/config/secrets.yml
212
+ - spec/dummy/config.ru
213
+ - spec/dummy/db/migrate/20150616144220_create_carrierwave_documents.rb
214
+ - spec/dummy/db/migrate/20150616144227_create_paperclip_documents.rb
215
+ - spec/dummy/db/migrate/20150616144235_create_dragonfly_documents.rb
216
+ - spec/dummy/db/migrate/20150616144544_create_agnostic_documents.rb
217
+ - spec/dummy/db/schema.rb
218
+ - spec/dummy/public/404.html
219
+ - spec/dummy/public/422.html
220
+ - spec/dummy/public/500.html
221
+ - spec/dummy/public/favicon.ico
222
+ - spec/dummy/Rakefile
223
+ - spec/dummy/README.rdoc
224
+ - spec/helper_methods.rb
225
+ - spec/lib/integrations/local_integration_spec.rb
226
+ - spec/lib/vigilion_rails_spec.rb
227
+ - spec/routing/vigilion_routing_spec.rb
228
+ - spec/spec_helper.rb
229
+ - spec/vigilion_rails_helper.rb