tcell_agent 0.4.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (199) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +9 -22
  3. data/bin/tcell_agent +127 -132
  4. data/lib/tcell_agent/agent/event_processor.rb +23 -22
  5. data/lib/tcell_agent/agent/fork_pipe_manager.rb +7 -7
  6. data/lib/tcell_agent/agent/policy_manager.rb +20 -15
  7. data/lib/tcell_agent/agent/policy_types.rb +5 -11
  8. data/lib/tcell_agent/agent/static_agent.rb +5 -1
  9. data/lib/tcell_agent/agent.rb +6 -4
  10. data/lib/tcell_agent/api.rb +7 -9
  11. data/lib/tcell_agent/appsensor/meta_data.rb +11 -4
  12. data/lib/tcell_agent/authlogic.rb +3 -3
  13. data/lib/tcell_agent/cmdi.rb +6 -4
  14. data/lib/tcell_agent/config/unknown_options.rb +3 -1
  15. data/lib/tcell_agent/configuration.rb +47 -49
  16. data/lib/tcell_agent/devise.rb +2 -2
  17. data/lib/tcell_agent/hooks/login_fraud.rb +58 -29
  18. data/lib/tcell_agent/instrumentation.rb +11 -10
  19. data/lib/tcell_agent/logger.rb +2 -2
  20. data/lib/tcell_agent/patches/meta_data.rb +9 -13
  21. data/lib/tcell_agent/patches.rb +7 -10
  22. data/lib/tcell_agent/policies/clickjacking_policy.rb +4 -5
  23. data/lib/tcell_agent/policies/content_security_policy.rb +6 -12
  24. data/lib/tcell_agent/policies/dataloss_policy.rb +2 -2
  25. data/lib/tcell_agent/policies/http_redirect_policy.rb +2 -2
  26. data/lib/tcell_agent/policies/policy.rb +0 -2
  27. data/lib/tcell_agent/policies/rust_policies.rb +90 -0
  28. data/lib/tcell_agent/policies/secure_headers_policy.rb +2 -2
  29. data/lib/tcell_agent/rails/auth/authlogic.rb +42 -24
  30. data/lib/tcell_agent/rails/auth/devise.rb +44 -23
  31. data/lib/tcell_agent/rails/auth/doorkeeper.rb +33 -15
  32. data/lib/tcell_agent/rails/better_ip.rb +1 -1
  33. data/lib/tcell_agent/rails/csrf_exception.rb +2 -2
  34. data/lib/tcell_agent/rails/dlp/process_request.rb +1 -1
  35. data/lib/tcell_agent/rails/dlp.rb +6 -6
  36. data/lib/tcell_agent/rails/dlp_handler.rb +1 -1
  37. data/lib/tcell_agent/rails/js_agent_insert.rb +1 -1
  38. data/lib/tcell_agent/rails/middleware/body_filter_middleware.rb +1 -1
  39. data/lib/tcell_agent/rails/middleware/context_middleware.rb +3 -2
  40. data/lib/tcell_agent/rails/middleware/headers_middleware.rb +10 -9
  41. data/lib/tcell_agent/rails/routes/grape.rb +6 -6
  42. data/lib/tcell_agent/rails/routes.rb +8 -11
  43. data/lib/tcell_agent/rust/libtcellagent-0.11.1.dylib +0 -0
  44. data/lib/tcell_agent/rust/{libtcellagent-0.6.1.so → libtcellagent-0.11.1.so} +0 -0
  45. data/lib/tcell_agent/rust/models.rb +16 -0
  46. data/lib/tcell_agent/rust/tcellagent-0.11.1.dll +0 -0
  47. data/lib/tcell_agent/rust/whisperer.rb +119 -48
  48. data/lib/tcell_agent/sensor_events/appsensor_meta_event.rb +17 -20
  49. data/lib/tcell_agent/sensor_events/command_injection.rb +50 -5
  50. data/lib/tcell_agent/sensor_events/login_fraud.rb +34 -18
  51. data/lib/tcell_agent/sensor_events/patches.rb +21 -0
  52. data/lib/tcell_agent/sensor_events/server_agent.rb +3 -3
  53. data/lib/tcell_agent/sensor_events/util/utils.rb +4 -3
  54. data/lib/tcell_agent/servers/puma.rb +2 -2
  55. data/lib/tcell_agent/servers/unicorn.rb +1 -1
  56. data/lib/tcell_agent/utils/passwords.rb +28 -0
  57. data/lib/tcell_agent/version.rb +1 -1
  58. data/lib/tcell_agent.rb +1 -5
  59. data/spec/apps/rails-3.2/config/tcell_agent.config +15 -0
  60. data/spec/apps/rails-3.2/log/development.log +0 -0
  61. data/spec/apps/rails-3.2/log/test.log +12 -0
  62. data/spec/apps/rails-4.1/log/test.log +0 -0
  63. data/spec/lib/tcell_agent/agent/fork_pipe_manager_spec.rb +46 -45
  64. data/spec/lib/tcell_agent/agent/policy_manager_spec.rb +276 -164
  65. data/spec/lib/tcell_agent/agent/static_agent_spec.rb +44 -47
  66. data/spec/lib/tcell_agent/api/api_spec.rb +16 -16
  67. data/spec/lib/tcell_agent/appsensor/injections_reporter_spec.rb +131 -116
  68. data/spec/lib/tcell_agent/appsensor/meta_data_spec.rb +55 -51
  69. data/spec/lib/tcell_agent/cmdi_spec.rb +413 -436
  70. data/spec/lib/tcell_agent/config/unknown_options_spec.rb +145 -128
  71. data/spec/lib/tcell_agent/configuration_spec.rb +165 -169
  72. data/spec/lib/tcell_agent/hooks/login_fraud_spec.rb +144 -153
  73. data/spec/lib/tcell_agent/instrumentation_spec.rb +84 -85
  74. data/spec/lib/tcell_agent/patches_spec.rb +70 -111
  75. data/spec/lib/tcell_agent/policies/appsensor_policy_spec.rb +313 -244
  76. data/spec/lib/tcell_agent/policies/clickjacking_policy_spec.rb +28 -28
  77. data/spec/lib/tcell_agent/policies/command_injection_policy_spec.rb +643 -513
  78. data/spec/lib/tcell_agent/policies/content_security_policy_spec.rb +55 -102
  79. data/spec/lib/tcell_agent/policies/dataloss_policy_spec.rb +111 -134
  80. data/spec/lib/tcell_agent/policies/http_redirect_policy_spec.rb +141 -146
  81. data/spec/lib/tcell_agent/policies/http_tx_policy_spec.rb +8 -8
  82. data/spec/lib/tcell_agent/policies/login_policy_spec.rb +15 -17
  83. data/spec/lib/tcell_agent/policies/patches_policy_spec.rb +231 -559
  84. data/spec/lib/tcell_agent/policies/secure_headers_policy_spec.rb +27 -27
  85. data/spec/lib/tcell_agent/rails/better_ip_spec.rb +30 -34
  86. data/spec/lib/tcell_agent/rails/logger_spec.rb +50 -49
  87. data/spec/lib/tcell_agent/rails/middleware/appsensor_middleware_spec.rb +182 -199
  88. data/spec/lib/tcell_agent/rails/middleware/dlp_middleware_spec.rb +110 -84
  89. data/spec/lib/tcell_agent/rails/middleware/global_middleware_spec.rb +107 -85
  90. data/spec/lib/tcell_agent/rails/middleware/redirect_middleware_spec.rb +68 -40
  91. data/spec/lib/tcell_agent/rails/middleware/tcell_body_proxy_spec.rb +81 -67
  92. data/spec/lib/tcell_agent/rails/responses_spec.rb +33 -37
  93. data/spec/lib/tcell_agent/rails/routes/grape_spec.rb +116 -121
  94. data/spec/lib/tcell_agent/rails/routes/route_id_spec.rb +25 -28
  95. data/spec/lib/tcell_agent/rails/routes/routes_spec.rb +87 -85
  96. data/spec/lib/tcell_agent/rails_spec.rb +1 -6
  97. data/spec/lib/tcell_agent/rust/models_spec.rb +112 -0
  98. data/spec/lib/tcell_agent/rust/whisperer_spec.rb +502 -179
  99. data/spec/lib/tcell_agent/sensor_events/appsensor_meta_event_spec.rb +44 -33
  100. data/spec/lib/tcell_agent/sensor_events/dlp_spec.rb +4 -4
  101. data/spec/lib/tcell_agent/sensor_events/sessions_metric_spec.rb +183 -169
  102. data/spec/lib/tcell_agent/sensor_events/util/sanitizer_utilities_spec.rb +25 -25
  103. data/spec/lib/tcell_agent/utils/bounded_queue_spec.rb +17 -20
  104. data/spec/lib/tcell_agent/utils/params_spec.rb +28 -28
  105. data/spec/lib/tcell_agent/utils/passwords_spec.rb +143 -0
  106. data/spec/lib/tcell_agent/utils/strings_spec.rb +35 -35
  107. data/spec/lib/tcell_agent_spec.rb +8 -8
  108. data/spec/spec_helper.rb +4 -4
  109. data/spec/support/middleware_helper.rb +10 -10
  110. data/spec/support/static_agent_overrides.rb +16 -12
  111. data/tcell_agent.gemspec +17 -33
  112. metadata +43 -198
  113. data/LICENSE_libinjection +0 -32
  114. data/Readme.txt +0 -7
  115. data/ext/libinjection/extconf.rb +0 -3
  116. data/ext/libinjection/libinjection.h +0 -65
  117. data/ext/libinjection/libinjection_html5.c +0 -847
  118. data/ext/libinjection/libinjection_html5.h +0 -54
  119. data/ext/libinjection/libinjection_sqli.c +0 -2317
  120. data/ext/libinjection/libinjection_sqli.h +0 -295
  121. data/ext/libinjection/libinjection_sqli_data.h +0 -9004
  122. data/ext/libinjection/libinjection_wrap.c +0 -3525
  123. data/ext/libinjection/libinjection_xss.c +0 -531
  124. data/ext/libinjection/libinjection_xss.h +0 -21
  125. data/lib/tcell_agent/appsensor/injections_matcher.rb +0 -155
  126. data/lib/tcell_agent/appsensor/rules/appsensor_rule_manager.rb +0 -49
  127. data/lib/tcell_agent/appsensor/rules/appsensor_rule_set.rb +0 -67
  128. data/lib/tcell_agent/appsensor/rules/baserules.json +0 -467
  129. data/lib/tcell_agent/patches/block_rule.rb +0 -93
  130. data/lib/tcell_agent/patches/sensors_matcher.rb +0 -31
  131. data/lib/tcell_agent/policies/appsensor/cmdi_sensor.rb +0 -23
  132. data/lib/tcell_agent/policies/appsensor/fpt_sensor.rb +0 -23
  133. data/lib/tcell_agent/policies/appsensor/injection_sensor.rb +0 -117
  134. data/lib/tcell_agent/policies/appsensor/nullbyte_sensor.rb +0 -26
  135. data/lib/tcell_agent/policies/appsensor/retr_sensor.rb +0 -22
  136. data/lib/tcell_agent/policies/appsensor/sqli_sensor.rb +0 -34
  137. data/lib/tcell_agent/policies/appsensor/xss_sensor.rb +0 -34
  138. data/lib/tcell_agent/policies/appsensor_policy.rb +0 -49
  139. data/lib/tcell_agent/policies/command_injection_policy.rb +0 -196
  140. data/lib/tcell_agent/policies/honeytokens_policy.rb +0 -69
  141. data/lib/tcell_agent/policies/patches_policy.rb +0 -84
  142. data/lib/tcell_agent/rust/libtcellagent-0.6.1.dylib +0 -0
  143. data/lib/tcell_agent/rust/tcellagent-0.6.1.dll +0 -0
  144. data/spec/apps/rails-3.2/Gemfile +0 -25
  145. data/spec/apps/rails-3.2/Gemfile.lock +0 -126
  146. data/spec/apps/rails-3.2/Rakefile +0 -7
  147. data/spec/apps/rails-3.2/app/assets/images/rails.png +0 -0
  148. data/spec/apps/rails-3.2/app/assets/javascripts/application.js +0 -15
  149. data/spec/apps/rails-3.2/app/assets/stylesheets/application.css +0 -13
  150. data/spec/apps/rails-3.2/app/controllers/application_controller.rb +0 -3
  151. data/spec/apps/rails-3.2/app/controllers/t_cell_app_controller.rb +0 -5
  152. data/spec/apps/rails-3.2/app/helpers/application_helper.rb +0 -2
  153. data/spec/apps/rails-3.2/app/views/layouts/application.html.erb +0 -14
  154. data/spec/apps/rails-3.2/app/views/t_cell_app/index.html.erb +0 -1
  155. data/spec/apps/rails-3.2/config/application.rb +0 -63
  156. data/spec/apps/rails-3.2/config/boot.rb +0 -6
  157. data/spec/apps/rails-3.2/config/environment.rb +0 -5
  158. data/spec/apps/rails-3.2/config/environments/test.rb +0 -37
  159. data/spec/apps/rails-3.2/config/routes.rb +0 -11
  160. data/spec/apps/rails-3.2/config.ru +0 -4
  161. data/spec/apps/rails-4.1/Gemfile +0 -7
  162. data/spec/apps/rails-4.1/Gemfile.lock +0 -114
  163. data/spec/apps/rails-4.1/Rakefile +0 -6
  164. data/spec/apps/rails-4.1/app/assets/javascripts/application.js +0 -16
  165. data/spec/apps/rails-4.1/app/assets/stylesheets/application.css +0 -15
  166. data/spec/apps/rails-4.1/app/controllers/application_controller.rb +0 -5
  167. data/spec/apps/rails-4.1/app/controllers/t_cell_app_controller.rb +0 -5
  168. data/spec/apps/rails-4.1/app/helpers/application_helper.rb +0 -2
  169. data/spec/apps/rails-4.1/app/views/layouts/application.html.erb +0 -14
  170. data/spec/apps/rails-4.1/app/views/t_cell_app/index.html.erb +0 -1
  171. data/spec/apps/rails-4.1/config/application.rb +0 -24
  172. data/spec/apps/rails-4.1/config/boot.rb +0 -4
  173. data/spec/apps/rails-4.1/config/environment.rb +0 -5
  174. data/spec/apps/rails-4.1/config/environments/test.rb +0 -41
  175. data/spec/apps/rails-4.1/config/initializers/assets.rb +0 -8
  176. data/spec/apps/rails-4.1/config/initializers/backtrace_silencers.rb +0 -7
  177. data/spec/apps/rails-4.1/config/initializers/cookies_serializer.rb +0 -3
  178. data/spec/apps/rails-4.1/config/initializers/filter_parameter_logging.rb +0 -4
  179. data/spec/apps/rails-4.1/config/initializers/inflections.rb +0 -16
  180. data/spec/apps/rails-4.1/config/initializers/mime_types.rb +0 -4
  181. data/spec/apps/rails-4.1/config/initializers/session_store.rb +0 -3
  182. data/spec/apps/rails-4.1/config/initializers/wrap_parameters.rb +0 -14
  183. data/spec/apps/rails-4.1/config/locales/en.yml +0 -23
  184. data/spec/apps/rails-4.1/config/routes.rb +0 -12
  185. data/spec/apps/rails-4.1/config/secrets.yml +0 -22
  186. data/spec/apps/rails-4.1/config.ru +0 -4
  187. data/spec/controllers/application_controller.rb +0 -12
  188. data/spec/lib/tcell_agent/appsensor/injections_matcher_spec.rb +0 -522
  189. data/spec/lib/tcell_agent/appsensor/rules/appsensor_rule_manager_spec.rb +0 -23
  190. data/spec/lib/tcell_agent/appsensor/rules/appsensor_rule_set_spec.rb +0 -159
  191. data/spec/lib/tcell_agent/patches/block_rule_spec.rb +0 -458
  192. data/spec/lib/tcell_agent/patches/sensors_matcher_spec.rb +0 -35
  193. data/spec/lib/tcell_agent/policies/appsensor/cmdi_sensor_spec.rb +0 -139
  194. data/spec/lib/tcell_agent/policies/appsensor/fpt_sensor_spec.rb +0 -139
  195. data/spec/lib/tcell_agent/policies/appsensor/nullbyte_sensor_spec.rb +0 -167
  196. data/spec/lib/tcell_agent/policies/appsensor/retr_sensor_spec.rb +0 -139
  197. data/spec/lib/tcell_agent/policies/appsensor/sqli_sensor_spec.rb +0 -246
  198. data/spec/lib/tcell_agent/policies/appsensor/xss_sensor_spec.rb +0 -882
  199. data/spec/lib/tcell_agent/policies/honeytokens_policy_spec.rb +0 -22
@@ -1,84 +0,0 @@
1
- require 'tcell_agent/appsensor/injections_matcher'
2
- require 'tcell_agent/patches/block_rule'
3
- require 'tcell_agent/patches/sensors_matcher'
4
- require 'tcell_agent/policies/policy'
5
-
6
-
7
- module TCellAgent
8
- module Policies
9
-
10
- class PatchesPolicy < Policy
11
- attr_accessor :policy_id, :version, :enabled, :block_rules
12
-
13
- def initialize
14
- @policy_id = nil
15
- @version = nil
16
- @enabled = false
17
- @block_rules = []
18
- end
19
-
20
- def apply(meta_data)
21
- return false unless @enabled
22
-
23
- @block_rules.each do |block_rule|
24
- if block_rule.block?(meta_data)
25
- return block_rule.resp
26
- end
27
- end
28
-
29
- return false
30
- end
31
-
32
- def self.from_json(policy_json)
33
- return nil unless policy_json
34
- policy_json = policy_json.deep_dup
35
-
36
- policy_id = policy_json["policy_id"]
37
-
38
- raise "Policy ID missing" unless policy_id
39
-
40
- patches_policy = PatchesPolicy.new
41
- patches_policy.policy_id = policy_id
42
- patches_policy.version = policy_json["version"]
43
-
44
- if 1 != patches_policy.version
45
- TCellAgent.logger.error("Patches Policy not supported: #{patches_policy.version}")
46
- return patches_policy
47
- end
48
-
49
- data = policy_json["data"]
50
- if data
51
- if data.has_key?("blocked_ips")
52
- blocked_ips = data.fetch("blocked_ips", []).map do |ip_info|
53
- ip_info["ip"]
54
- end
55
-
56
- if blocked_ips.size > 0
57
- block_rule = TCellAgent::Patches::BlockRule.from_json( {
58
- "ips" => blocked_ips
59
- })
60
-
61
- if block_rule
62
- patches_policy.block_rules.push(block_rule)
63
- end
64
- end
65
- end
66
-
67
- if data.has_key?("block_rules")
68
- block_rules_json = data.fetch("block_rules", [])
69
-
70
- block_rules = block_rules_json.map do |block_rule_json|
71
- TCellAgent::Patches::BlockRule.from_json(block_rule_json)
72
- end.reject(&:nil?)
73
-
74
- patches_policy.block_rules.concat(block_rules)
75
- end
76
- end
77
-
78
- patches_policy.enabled = patches_policy.block_rules.size > 0
79
- patches_policy
80
- end
81
- end
82
-
83
- end
84
- end
@@ -1,25 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'rails', '3.2.14'
4
-
5
- # Bundle edge Rails instead:
6
- # gem 'rails', :git => 'git://github.com/rails/rails.git'
7
-
8
- gem 'rspec-rails', '>= 2.0.0'
9
- #gem 'jquery-rails'
10
- gem 'tcell_agent', :path => '../..'
11
-
12
- # To use ActiveModel has_secure_password
13
- # gem 'bcrypt-ruby', '~> 3.0.0'
14
-
15
- # To use Jbuilder templates for JSON
16
- # gem 'jbuilder'
17
-
18
- # Use unicorn as the app server
19
- # gem 'unicorn'
20
-
21
- # Deploy with Capistrano
22
- # gem 'capistrano'
23
-
24
- # To use debugger
25
- # gem 'debugger'
@@ -1,126 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- tcell_agent (0.0.11)
5
- json (>= 1.8)
6
- pbkdf2 (>= 0.1)
7
- rest-client (>= 1.6)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actionmailer (3.2.14)
13
- actionpack (= 3.2.14)
14
- mail (~> 2.5.4)
15
- actionpack (3.2.14)
16
- activemodel (= 3.2.14)
17
- activesupport (= 3.2.14)
18
- builder (~> 3.0.0)
19
- erubis (~> 2.7.0)
20
- journey (~> 1.0.4)
21
- rack (~> 1.4.5)
22
- rack-cache (~> 1.2)
23
- rack-test (~> 0.6.1)
24
- sprockets (~> 2.2.1)
25
- activemodel (3.2.14)
26
- activesupport (= 3.2.14)
27
- builder (~> 3.0.0)
28
- activerecord (3.2.14)
29
- activemodel (= 3.2.14)
30
- activesupport (= 3.2.14)
31
- arel (~> 3.0.2)
32
- tzinfo (~> 0.3.29)
33
- activeresource (3.2.14)
34
- activemodel (= 3.2.14)
35
- activesupport (= 3.2.14)
36
- activesupport (3.2.14)
37
- i18n (~> 0.6, >= 0.6.4)
38
- multi_json (~> 1.0)
39
- arel (3.0.3)
40
- builder (3.0.4)
41
- diff-lcs (1.2.5)
42
- domain_name (0.5.25)
43
- unf (>= 0.0.5, < 1.0.0)
44
- erubis (2.7.0)
45
- hike (1.2.3)
46
- http-cookie (1.0.2)
47
- domain_name (~> 0.5)
48
- i18n (0.7.0)
49
- journey (1.0.4)
50
- json (1.8.3)
51
- mail (2.5.4)
52
- mime-types (~> 1.16)
53
- treetop (~> 1.4.8)
54
- mime-types (1.25.1)
55
- multi_json (1.11.2)
56
- netrc (0.10.3)
57
- pbkdf2 (0.1.0)
58
- polyglot (0.3.5)
59
- rack (1.4.7)
60
- rack-cache (1.2)
61
- rack (>= 0.4)
62
- rack-ssl (1.3.4)
63
- rack
64
- rack-test (0.6.3)
65
- rack (>= 1.0)
66
- rails (3.2.14)
67
- actionmailer (= 3.2.14)
68
- actionpack (= 3.2.14)
69
- activerecord (= 3.2.14)
70
- activeresource (= 3.2.14)
71
- activesupport (= 3.2.14)
72
- bundler (~> 1.0)
73
- railties (= 3.2.14)
74
- railties (3.2.14)
75
- actionpack (= 3.2.14)
76
- activesupport (= 3.2.14)
77
- rack-ssl (~> 1.3.2)
78
- rake (>= 0.8.7)
79
- rdoc (~> 3.4)
80
- thor (>= 0.14.6, < 2.0)
81
- rake (10.4.2)
82
- rdoc (3.12.2)
83
- json (~> 1.4)
84
- rest-client (1.8.0)
85
- http-cookie (>= 1.0.2, < 2.0)
86
- mime-types (>= 1.16, < 3.0)
87
- netrc (~> 0.7)
88
- rspec-core (3.3.2)
89
- rspec-support (~> 3.3.0)
90
- rspec-expectations (3.3.1)
91
- diff-lcs (>= 1.2.0, < 2.0)
92
- rspec-support (~> 3.3.0)
93
- rspec-mocks (3.3.2)
94
- diff-lcs (>= 1.2.0, < 2.0)
95
- rspec-support (~> 3.3.0)
96
- rspec-rails (3.3.3)
97
- actionpack (>= 3.0, < 4.3)
98
- activesupport (>= 3.0, < 4.3)
99
- railties (>= 3.0, < 4.3)
100
- rspec-core (~> 3.3.0)
101
- rspec-expectations (~> 3.3.0)
102
- rspec-mocks (~> 3.3.0)
103
- rspec-support (~> 3.3.0)
104
- rspec-support (3.3.0)
105
- sprockets (2.2.3)
106
- hike (~> 1.2)
107
- multi_json (~> 1.0)
108
- rack (~> 1.0)
109
- tilt (~> 1.1, != 1.3.0)
110
- thor (0.19.1)
111
- tilt (1.4.1)
112
- treetop (1.4.15)
113
- polyglot
114
- polyglot (>= 0.3.1)
115
- tzinfo (0.3.44)
116
- unf (0.1.4)
117
- unf_ext
118
- unf_ext (0.0.7.1)
119
-
120
- PLATFORMS
121
- ruby
122
-
123
- DEPENDENCIES
124
- rails (= 3.2.14)
125
- rspec-rails (>= 2.0.0)
126
- tcell_agent!
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env rake
2
- # Add your own tasks in files placed in lib/tasks ending in .rake,
3
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
-
5
- require File.expand_path('../config/application', __FILE__)
6
-
7
- TcellApp::Application.load_tasks
@@ -1,15 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // the compiled file.
9
- //
10
- // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
- // GO AFTER THE REQUIRES BELOW.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //= require_tree .
@@ -1,13 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require_self
12
- *= require_tree .
13
- */
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,5 +0,0 @@
1
- class TCellAppController < ApplicationController
2
- def index
3
-
4
- end
5
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>TcellApp</title>
5
- <%= stylesheet_link_tag "application", :media => "all" %>
6
- <%= javascript_include_tag "application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1 +0,0 @@
1
- t_cell_app
@@ -1,63 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require "action_controller/railtie"
4
- require "sprockets/railtie"
5
-
6
- if defined?(Bundler)
7
- # If you precompile assets before deploying to production, use this line
8
- Bundler.require(*Rails.groups(:assets => %w(development test)))
9
- # If you want your assets lazily compiled in production, use this line
10
- # Bundler.require(:default, :assets, Rails.env)
11
- end
12
-
13
- module TcellApp
14
- class Application < Rails::Application
15
- # Settings in config/environments/* take precedence over those specified here.
16
- # Application configuration should go into files in config/initializers
17
- # -- all .rb files in that directory are automatically loaded.
18
-
19
- # Custom directories with classes and modules you want to be autoloadable.
20
- # config.autoload_paths += %W(#{config.root}/extras)
21
-
22
- # Only load the plugins named here, in the order given (default is alphabetical).
23
- # :all can be used as a placeholder for all plugins not explicitly named.
24
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
25
-
26
- # Activate observers that should always be running.
27
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
28
-
29
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
30
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
31
- # config.time_zone = 'Central Time (US & Canada)'
32
-
33
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
34
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
35
- # config.i18n.default_locale = :de
36
-
37
- # Configure the default encoding used in templates for Ruby 1.9.
38
- #config.encoding = "utf-8"
39
-
40
- # Configure sensitive parameters which will be filtered from the log file.
41
- #config.filter_parameters += [:password]
42
-
43
- # Enable escaping HTML in JSON.
44
- #config.active_support.escape_html_entities_in_json = true
45
-
46
- # Use SQL instead of Active Record's schema dumper when creating the database.
47
- # This is necessary if your schema can't be completely dumped by the schema dumper,
48
- # like if you have constraints or database-specific column types
49
- # config.active_record.schema_format = :sql
50
-
51
- # Enforce whitelist mode for mass assignment.
52
- # This will create an empty whitelist of attributes available for mass-assignment for all models
53
- # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
54
- # parameters by using an attr_accessible or attr_protected declaration.
55
- #config.active_record.whitelist_attributes = true
56
-
57
- # Enable the asset pipeline
58
- #config.assets.enabled = true
59
-
60
- # Version of your assets, change this if you want to expire all your assets
61
- #config.assets.version = '1.0'
62
- end
63
- end
@@ -1,6 +0,0 @@
1
- require 'rubygems'
2
-
3
- # Set up gems listed in the Gemfile.
4
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
-
6
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- TcellApp::Application.initialize!
@@ -1,37 +0,0 @@
1
- TcellApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Configure static asset server for tests with Cache-Control for performance
11
- config.serve_static_assets = true
12
- config.static_cache_control = "public, max-age=3600"
13
-
14
- # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
16
-
17
- # Show full error reports and disable caching
18
- config.consider_all_requests_local = true
19
- config.action_controller.perform_caching = false
20
-
21
- # Raise exceptions instead of rendering exception templates
22
- config.action_dispatch.show_exceptions = false
23
-
24
- # Disable request forgery protection in test environment
25
- config.action_controller.allow_forgery_protection = false
26
-
27
- # Tell Action Mailer not to deliver emails to the real world.
28
- # The :test delivery method accumulates sent emails in the
29
- # ActionMailer::Base.deliveries array.
30
- # config.action_mailer.delivery_method = :test
31
-
32
- # Raise exception on mass assignment protection for Active Record models
33
- # config.active_record.mass_assignment_sanitizer = :strict
34
-
35
- # Print deprecation notices to the stderr
36
- config.active_support.deprecation = :stderr
37
- end
@@ -1,11 +0,0 @@
1
- TcellApp::Application.routes.draw do
2
-
3
- resources :tcellapp
4
- match ':controller(/:action(/:id))(.:format)'
5
-
6
- (1..43).each do |x|
7
-
8
- get "/#{x}", controller: :t_cell_app, action: :index
9
-
10
- end
11
- end
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run TcellApp::Application
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
-
4
- gem 'rails', '4.1.8'
5
- gem 'rspec-rails', '>= 2.0.0'
6
- gem 'tcell_agent', :path => '../..'
7
-
@@ -1,114 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- tcell_agent (0.0.11)
5
- json (>= 1.8)
6
- pbkdf2 (>= 0.1)
7
- rest-client (>= 1.6)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actionmailer (4.1.8)
13
- actionpack (= 4.1.8)
14
- actionview (= 4.1.8)
15
- mail (~> 2.5, >= 2.5.4)
16
- actionpack (4.1.8)
17
- actionview (= 4.1.8)
18
- activesupport (= 4.1.8)
19
- rack (~> 1.5.2)
20
- rack-test (~> 0.6.2)
21
- actionview (4.1.8)
22
- activesupport (= 4.1.8)
23
- builder (~> 3.1)
24
- erubis (~> 2.7.0)
25
- activemodel (4.1.8)
26
- activesupport (= 4.1.8)
27
- builder (~> 3.1)
28
- activerecord (4.1.8)
29
- activemodel (= 4.1.8)
30
- activesupport (= 4.1.8)
31
- arel (~> 5.0.0)
32
- activesupport (4.1.8)
33
- i18n (~> 0.6, >= 0.6.9)
34
- json (~> 1.7, >= 1.7.7)
35
- minitest (~> 5.1)
36
- thread_safe (~> 0.1)
37
- tzinfo (~> 1.1)
38
- arel (5.0.1.20140414130214)
39
- builder (3.2.2)
40
- diff-lcs (1.2.5)
41
- domain_name (0.5.25)
42
- unf (>= 0.0.5, < 1.0.0)
43
- erubis (2.7.0)
44
- http-cookie (1.0.2)
45
- domain_name (~> 0.5)
46
- i18n (0.7.0)
47
- json (1.8.3)
48
- mail (2.6.3)
49
- mime-types (>= 1.16, < 3)
50
- mime-types (2.6.1)
51
- minitest (5.8.0)
52
- netrc (0.10.3)
53
- pbkdf2 (0.1.0)
54
- rack (1.5.5)
55
- rack-test (0.6.3)
56
- rack (>= 1.0)
57
- rails (4.1.8)
58
- actionmailer (= 4.1.8)
59
- actionpack (= 4.1.8)
60
- actionview (= 4.1.8)
61
- activemodel (= 4.1.8)
62
- activerecord (= 4.1.8)
63
- activesupport (= 4.1.8)
64
- bundler (>= 1.3.0, < 2.0)
65
- railties (= 4.1.8)
66
- sprockets-rails (~> 2.0)
67
- railties (4.1.8)
68
- actionpack (= 4.1.8)
69
- activesupport (= 4.1.8)
70
- rake (>= 0.8.7)
71
- thor (>= 0.18.1, < 2.0)
72
- rake (10.4.2)
73
- rest-client (1.8.0)
74
- http-cookie (>= 1.0.2, < 2.0)
75
- mime-types (>= 1.16, < 3.0)
76
- netrc (~> 0.7)
77
- rspec-core (3.3.2)
78
- rspec-support (~> 3.3.0)
79
- rspec-expectations (3.3.1)
80
- diff-lcs (>= 1.2.0, < 2.0)
81
- rspec-support (~> 3.3.0)
82
- rspec-mocks (3.3.2)
83
- diff-lcs (>= 1.2.0, < 2.0)
84
- rspec-support (~> 3.3.0)
85
- rspec-rails (3.3.3)
86
- actionpack (>= 3.0, < 4.3)
87
- activesupport (>= 3.0, < 4.3)
88
- railties (>= 3.0, < 4.3)
89
- rspec-core (~> 3.3.0)
90
- rspec-expectations (~> 3.3.0)
91
- rspec-mocks (~> 3.3.0)
92
- rspec-support (~> 3.3.0)
93
- rspec-support (3.3.0)
94
- sprockets (3.3.3)
95
- rack (~> 1.0)
96
- sprockets-rails (2.3.2)
97
- actionpack (>= 3.0)
98
- activesupport (>= 3.0)
99
- sprockets (>= 2.8, < 4.0)
100
- thor (0.19.1)
101
- thread_safe (0.3.5)
102
- tzinfo (1.2.2)
103
- thread_safe (~> 0.1)
104
- unf (0.1.4)
105
- unf_ext
106
- unf_ext (0.0.7.1)
107
-
108
- PLATFORMS
109
- ruby
110
-
111
- DEPENDENCIES
112
- rails (= 4.1.8)
113
- rspec-rails (>= 2.0.0)
114
- tcell_agent!
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
@@ -1,16 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //= require turbolinks
16
- //= require_tree .
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,5 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
@@ -1,5 +0,0 @@
1
- class TCellAppController < ApplicationController
2
- def index
3
-
4
- end
5
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>TcellApp</title>
5
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1 +0,0 @@
1
- t_cell_app