cogy 0.5.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +25 -5
  4. data/Rakefile +5 -1
  5. data/app/controllers/cogy/application_controller.rb +4 -2
  6. data/app/controllers/cogy/cogy_controller.rb +4 -4
  7. data/lib/cogy/version.rb +1 -1
  8. data/test/{dummy → dummies/4.2}/README.rdoc +0 -0
  9. data/test/{dummy → dummies/4.2}/Rakefile +0 -0
  10. data/test/{dummy → dummies/4.2}/app/controllers/application_controller.rb +0 -0
  11. data/test/{dummy → dummies/4.2}/app/helpers/application_helper.rb +0 -0
  12. data/test/{dummy → dummies/4.2}/app/views/layouts/application.html.erb +0 -0
  13. data/test/{dummy → dummies/4.2}/bin/bundle +0 -0
  14. data/test/{dummy → dummies/4.2}/bin/rails +0 -0
  15. data/test/{dummy → dummies/4.2}/bin/rake +0 -0
  16. data/test/{dummy → dummies/4.2}/bin/setup +0 -0
  17. data/test/{dummy → dummies/4.2}/config.ru +0 -0
  18. data/test/{dummy → dummies/4.2}/config/application.rb +0 -0
  19. data/test/{dummy → dummies/4.2}/config/boot.rb +0 -0
  20. data/test/{dummy → dummies/4.2}/config/database.yml +0 -0
  21. data/test/{dummy → dummies/4.2}/config/environment.rb +0 -0
  22. data/test/{dummy → dummies/4.2}/config/environments/development.rb +0 -0
  23. data/test/{dummy → dummies/4.2}/config/environments/production.rb +0 -0
  24. data/test/{dummy → dummies/4.2}/config/environments/test.rb +0 -0
  25. data/test/{dummy → dummies/4.2}/config/initializers/assets.rb +0 -0
  26. data/test/{dummy → dummies/4.2}/config/initializers/backtrace_silencers.rb +0 -0
  27. data/test/{dummy → dummies/4.2}/config/initializers/cogy.rb +1 -1
  28. data/test/{dummy → dummies/4.2}/config/initializers/cookies_serializer.rb +0 -0
  29. data/test/{dummy → dummies/4.2}/config/initializers/filter_parameter_logging.rb +0 -0
  30. data/test/{dummy → dummies/4.2}/config/initializers/inflections.rb +0 -0
  31. data/test/{dummy → dummies/4.2}/config/initializers/mime_types.rb +0 -0
  32. data/test/{dummy → dummies/4.2}/config/initializers/session_store.rb +0 -0
  33. data/test/{dummy → dummies/4.2}/config/initializers/wrap_parameters.rb +0 -0
  34. data/test/{dummy → dummies/4.2}/config/locales/en.yml +0 -0
  35. data/test/{dummy → dummies/4.2}/config/routes.rb +0 -0
  36. data/test/{dummy → dummies/4.2}/config/secrets.yml +0 -0
  37. data/test/dummies/4.2/log/test.log +555 -0
  38. data/test/{dummy → dummies/4.2}/public/404.html +0 -0
  39. data/test/{dummy → dummies/4.2}/public/422.html +0 -0
  40. data/test/{dummy → dummies/4.2}/public/500.html +0 -0
  41. data/test/{dummy → dummies/4.2}/public/favicon.ico +0 -0
  42. data/test/dummies/5.0/Rakefile +6 -0
  43. data/test/dummies/5.0/app/controllers/application_controller.rb +3 -0
  44. data/test/dummies/5.0/app/views/layouts/application.html.erb +14 -0
  45. data/test/dummies/5.0/config.ru +5 -0
  46. data/test/dummies/5.0/config/application.rb +15 -0
  47. data/test/dummies/5.0/config/boot.rb +3 -0
  48. data/test/dummies/5.0/config/database.yml +25 -0
  49. data/test/dummies/5.0/config/environment.rb +5 -0
  50. data/test/dummies/5.0/config/environments/test.rb +42 -0
  51. data/test/dummies/5.0/config/initializers/application_controller_renderer.rb +6 -0
  52. data/test/dummies/5.0/config/initializers/assets.rb +11 -0
  53. data/test/dummies/5.0/config/initializers/backtrace_silencers.rb +7 -0
  54. data/test/dummies/5.0/config/initializers/cogy.rb +14 -0
  55. data/test/dummies/5.0/config/initializers/cookies_serializer.rb +5 -0
  56. data/test/dummies/5.0/config/initializers/filter_parameter_logging.rb +4 -0
  57. data/test/dummies/5.0/config/initializers/inflections.rb +16 -0
  58. data/test/dummies/5.0/config/initializers/mime_types.rb +4 -0
  59. data/test/dummies/5.0/config/initializers/new_framework_defaults.rb +26 -0
  60. data/test/dummies/5.0/config/initializers/session_store.rb +3 -0
  61. data/test/dummies/5.0/config/initializers/wrap_parameters.rb +14 -0
  62. data/test/dummies/5.0/config/locales/en.yml +23 -0
  63. data/test/dummies/5.0/config/routes.rb +5 -0
  64. data/test/dummies/5.0/config/secrets.yml +22 -0
  65. data/test/dummies/5.0/db/seeds.rb +7 -0
  66. data/test/dummies/5.0/db/test.sqlite3 +0 -0
  67. data/test/dummies/5.0/log/test.log +514 -0
  68. data/test/dummies/5.0/public/404.html +67 -0
  69. data/test/dummies/5.0/public/422.html +67 -0
  70. data/test/dummies/5.0/public/500.html +66 -0
  71. data/test/dummies/5.0/public/apple-touch-icon-precomposed.png +0 -0
  72. data/test/dummies/5.0/public/apple-touch-icon.png +0 -0
  73. data/test/dummies/5.0/public/favicon.ico +0 -0
  74. data/test/dummies/5.0/public/robots.txt +5 -0
  75. data/test/dummies/5.1/Rakefile +6 -0
  76. data/test/dummies/5.1/app/controllers/application_controller.rb +3 -0
  77. data/test/dummies/5.1/app/views/layouts/application.html.erb +14 -0
  78. data/test/dummies/5.1/config.ru +5 -0
  79. data/test/dummies/5.1/config/application.rb +18 -0
  80. data/test/dummies/5.1/config/boot.rb +5 -0
  81. data/test/dummies/5.1/config/database.yml +25 -0
  82. data/test/dummies/5.1/config/environment.rb +5 -0
  83. data/test/dummies/5.1/config/environments/test.rb +42 -0
  84. data/test/dummies/5.1/config/initializers/application_controller_renderer.rb +6 -0
  85. data/test/dummies/5.1/config/initializers/assets.rb +14 -0
  86. data/test/dummies/5.1/config/initializers/backtrace_silencers.rb +7 -0
  87. data/test/dummies/5.1/config/initializers/cogy.rb +14 -0
  88. data/test/dummies/5.1/config/initializers/cookies_serializer.rb +5 -0
  89. data/test/dummies/5.1/config/initializers/filter_parameter_logging.rb +4 -0
  90. data/test/dummies/5.1/config/initializers/inflections.rb +16 -0
  91. data/test/dummies/5.1/config/initializers/mime_types.rb +4 -0
  92. data/test/dummies/5.1/config/initializers/wrap_parameters.rb +14 -0
  93. data/test/dummies/5.1/config/locales/en.yml +33 -0
  94. data/test/dummies/5.1/config/routes.rb +5 -0
  95. data/test/dummies/5.1/config/secrets.yml +22 -0
  96. data/test/dummies/5.1/db/test.sqlite3 +0 -0
  97. data/test/dummies/5.1/log/test.log +1028 -0
  98. data/test/dummies/5.1/public/404.html +67 -0
  99. data/test/dummies/5.1/public/422.html +67 -0
  100. data/test/dummies/5.1/public/500.html +66 -0
  101. data/test/dummies/5.1/public/apple-touch-icon-precomposed.png +0 -0
  102. data/test/dummies/5.1/public/apple-touch-icon.png +0 -0
  103. data/test/dummies/5.1/public/favicon.ico +0 -0
  104. data/test/{dummy → dummies}/cogy/builtin_helpers.rb +0 -0
  105. data/test/{dummy → dummies}/cogy/foo.rb +0 -0
  106. data/test/{dummy → dummies}/cogy/fully_fledged.rb +0 -0
  107. data/test/{dummy → dummies}/cogy/json_response.rb +0 -0
  108. data/test/{dummy → dummies}/cogy/templates/pretty-command +0 -0
  109. data/test/support/helpers.rb +7 -1
  110. data/test/test_helper.rb +2 -1
  111. metadata +227 -85
  112. data/test/dummy/log/development.log +0 -84
  113. data/test/dummy/log/test.log +0 -40417
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4006ab505e21f8e9391ecf4857c05f13732aeb8
4
- data.tar.gz: 2caca33ba16986c1e05616b2be76bf0395e92cce
3
+ metadata.gz: a76b144c977332bf814ea5af0b79bad44272c33b
4
+ data.tar.gz: ec4653077cb44da4a3a37837941f97d533386c39
5
5
  SHA512:
6
- metadata.gz: 5eb1b1e6dcbbe37e36276ee91e6dadc70ea48c2e0ef2f9bed793e25a12c3cf4a1949c3f3f1865077efa9eed7d5796dc4b1f1aeece805df8b2976de6124e0c207
7
- data.tar.gz: ee94f4cf397f3171ee676924bdbe2af41d0eaa382e1c5b5c741ea983d05e32fb2ded571cfa97a78d0e7117acca186ddc5ef87b86839a38836227608dee9daf81
6
+ metadata.gz: 5f31f6e405e2873f56eb331e1a2773e1e084a42b94c9145c1efc83338add17e9c19e4687b8cb4c99e10c3a5e894b1e9b4fa123484207c3c329da768bc1af09d6
7
+ data.tar.gz: 3eb3d6df7c654faaff812bd97c9f198e3e363902125b4e7d6ce295d9a3e715dac7ef634ff251e4ee1ed38a68d3a958542e2cffe2dc67e925cf3fa617b2a31bdd
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
+ ## 0.6.0 (2017-05-31)
6
+
7
+ This is a backwards-compatible release.
8
+
9
+ ### Added
10
+
11
+ - Support for Rails 5. ([#63](https://github.com/skroutz/cogy/pull/63))
12
+
5
13
  ## 0.5.2 (2017-01-25)
6
14
 
7
15
  This is a bug fix release due to Cog 1.0.0.beta2. It is backwards-compatible
data/README.md CHANGED
@@ -75,7 +75,7 @@ Take a look at the relevant [diagrams](diagrams/) for a detailed illustration.
75
75
  * Cog 1.0.0.beta2 or later
76
76
  * [cogy bundle](https://github.com/skroutz/cogy-bundle) 0.4.0 or later
77
77
  * Ruby 2.1 or later
78
- * Rails 4.2 (support for Rails 5 is on the way)
78
+ * Rails 4.2 or later
79
79
 
80
80
  ## Status
81
81
 
@@ -259,7 +259,7 @@ Cogy.configure do |config|
259
259
  # Default: "0.0.1"
260
260
  version: "0.0.1",
261
261
 
262
- # if you used a callable object, it will be evaluated each time the inventory
262
+ # If you used a callable object, it will be evaluated each time the inventory
263
263
  # is called. This can be useful if you want the version to change
264
264
  # automatically.
265
265
  #
@@ -357,10 +357,17 @@ It can be overriden in the application by creating a view in
357
357
  ## Testing commands
358
358
 
359
359
  We don't yet provide means to write tests for the commands, but you can easily
360
- test them by executing a request to your development server:
360
+ test them by executing a request to your development server. For example,
361
+ if you mounted the engine like so:
362
+
363
+ ```ruby
364
+ mount Cogy::Engine, at: "cogy"
365
+ ```
366
+
367
+ you can test a `foo` command like this:
361
368
 
362
369
  ```shell
363
- $ curl -XPOST --data "COG_ARGV_0=foo" http://localhost:3000/cogy/foo
370
+ $ curl -XPOST --data "COG_ARGV_0=foo" http://localhost:3000/cogy/cmd/foo
364
371
  ```
365
372
 
366
373
  In the request body you may pass the complete or any part of the
@@ -450,7 +457,7 @@ invoked.
450
457
 
451
458
  ## Development
452
459
 
453
- Running the tests and RuboCop:
460
+ Running the tests and RuboCop for the latest Rails version:
454
461
 
455
462
  ```shell
456
463
  $ rake
@@ -474,6 +481,19 @@ Generating documentation:
474
481
  $ rake yard
475
482
  ```
476
483
 
484
+ Running the tests for all the supported Rails versions:
485
+
486
+
487
+ ```shell
488
+ $ appraisal rake
489
+ ```
490
+
491
+ Or for a specific version:
492
+
493
+ ```shell
494
+ $ appraisal 4.2 rake test
495
+ ```
496
+
477
497
  ## Authors
478
498
 
479
499
  * [Agis Anastasopoulos](https://github.com/agis-)
data/Rakefile CHANGED
@@ -4,7 +4,11 @@ rescue LoadError
4
4
  puts "You must `gem install bundler` and `bundle install` to run rake tasks"
5
5
  end
6
6
 
7
- APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
7
+ gemfile_name = File.basename(ENV["BUNDLE_GEMFILE"], ".gemfile")
8
+ rails_version = gemfile_name == "Gemfile" ? "5.1" : gemfile_name
9
+ ENV["COGY_DUMMY_APP_PATH"] = File.expand_path("../test/dummies/#{rails_version}", __FILE__)
10
+
11
+ APP_RAKEFILE = "#{ENV['COGY_DUMMY_APP_PATH']}/Rakefile".freeze
8
12
  load "rails/tasks/engine.rake"
9
13
  load "rails/tasks/statistics.rake"
10
14
 
@@ -1,6 +1,8 @@
1
1
  module Cogy
2
2
  class ApplicationController < ActionController::Base
3
- # @todo https://github.com/skroutz/cogy/issues/43
4
- skip_before_action :verify_authenticity_token
3
+ if Rails::VERSION::MAJOR < 5
4
+ # @todo https://github.com/skroutz/cogy/issues/43
5
+ skip_before_action :verify_authenticity_token
6
+ end
5
7
  end
6
8
  end
@@ -11,7 +11,7 @@ module Cogy
11
11
  # Executes the requested {Command} and returns the result.
12
12
  def command
13
13
  cmd = params[:cmd]
14
- args = params.select { |k, _| k.start_with?("COG_ARGV_") }
14
+ args = params.select { |k, _| k.start_with?("COG_ARGV_") }.to_unsafe_h
15
15
  .sort_by { |k, _| k.match(/\d+\z/)[0] }.to_h.values
16
16
  opts = params.select { |k, _| k.start_with?("COG_OPT_") }
17
17
  .transform_keys { |k| k.sub("COG_OPT_", "").downcase }
@@ -26,9 +26,9 @@ module Cogy
26
26
  "JSON\n" \
27
27
  "#{result.to_json}"
28
28
  end
29
- render text: result
29
+ render plain: result
30
30
  else
31
- render status: 404, text: "The command '#{cmd}' does not exist."
31
+ render status: 404, plain: "The command '#{cmd}' does not exist."
32
32
  end
33
33
  rescue => e
34
34
  @user = user
@@ -47,7 +47,7 @@ module Cogy
47
47
  # Returns the bundle config in YAML format, which is installable by Cog.
48
48
  # It is typically hit by `cogy:install` (https://github.com/skroutz/cogy-bundle).
49
49
  def inventory
50
- render text: Cogy.bundle_config.to_yaml, content_type: "application/x-yaml"
50
+ render body: Cogy.bundle_config.to_yaml, content_type: "application/x-yaml"
51
51
  end
52
52
  end
53
53
  end
@@ -1,3 +1,3 @@
1
1
  module Cogy
2
- VERSION = "0.5.2".freeze
2
+ VERSION = "0.6.0".freeze
3
3
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -6,7 +6,7 @@ Cogy.configure do |c|
6
6
  cogy_executable: "/usr/bin/foo"
7
7
  }
8
8
 
9
- c.command_load_paths = ["cogy"]
9
+ c.command_load_paths = ["../cogy"]
10
10
  c.cogy_endpoint = "http://www.example.com/cogy"
11
11
 
12
12
  c.helper(:foo) { env["cog_foo"] }
@@ -0,0 +1,555 @@
1
+ ----------------------------------------------------
2
+ Cogy::HelpersTest: test_custom_helper_with_arguments
3
+ ----------------------------------------------------
4
+ Started POST "/cogy/cmd/titleize" for 127.0.0.1 at 2017-05-31 14:34:38 +0300
5
+ Processing by Cogy::CogyController#command as HTML
6
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"titleize"}
7
+ Rendered text template (0.0ms)
8
+ Completed 200 OK in 8ms (Views: 7.5ms)
9
+ -----------------------------------------------------------------
10
+ Cogy::HelpersTest: test_custom_helpers_can_access_default_helpers
11
+ -----------------------------------------------------------------
12
+ Started POST "/cogy/cmd/foohelper" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
13
+ Processing by Cogy::CogyController#command as HTML
14
+ Parameters: {"cog_foo"=>"bar", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"foohelper"}
15
+ Rendered text template (0.0ms)
16
+ Completed 200 OK in 0ms (Views: 0.2ms)
17
+ -------------------------------------------------------------
18
+ Cogy::JsonResponseTest: test_json_output_and_default_template
19
+ -------------------------------------------------------------
20
+ Started POST "/cogy/cmd/simple_json" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
21
+ Processing by Cogy::CogyController#command as HTML
22
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"simple_json"}
23
+ Rendered text template (0.0ms)
24
+ Completed 200 OK in 1ms (Views: 0.3ms)
25
+ --------------------------------------------
26
+ Cogy::JsonResponseTest: test_custom_template
27
+ --------------------------------------------
28
+ Started POST "/cogy/cmd/custom_template" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
29
+ Processing by Cogy::CogyController#command as HTML
30
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"custom_template"}
31
+ Rendered text template (0.0ms)
32
+ Completed 200 OK in 0ms (Views: 0.2ms)
33
+ --------------------------------------
34
+ Cogy::InventoryTest: test_content_type
35
+ --------------------------------------
36
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
37
+ Processing by Cogy::CogyController#inventory as HTML
38
+ Rendered text template (0.0ms)
39
+ Completed 200 OK in 4ms (Views: 0.3ms)
40
+ ------------------------------------------
41
+ Cogy::InventoryTest: test_commands_section
42
+ ------------------------------------------
43
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
44
+ Processing by Cogy::CogyController#inventory as HTML
45
+ Rendered text template (0.1ms)
46
+ Completed 200 OK in 4ms (Views: 0.9ms)
47
+ --------------------------------------------
48
+ Cogy::InventoryTest: test_cog_bundle_version
49
+ --------------------------------------------
50
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
51
+ Processing by Cogy::CogyController#inventory as HTML
52
+ Rendered text template (0.0ms)
53
+ Completed 200 OK in 3ms (Views: 0.2ms)
54
+ -----------------------------------------------
55
+ Cogy::InventoryTest: test_bundle_version_lambda
56
+ -----------------------------------------------
57
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
58
+ Processing by Cogy::CogyController#inventory as HTML
59
+ Rendered text template (0.0ms)
60
+ Completed 200 OK in 3ms (Views: 0.4ms)
61
+ ------------------------------------------
62
+ Cogy::InventoryTest: test_without_commands
63
+ ------------------------------------------
64
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
65
+ Processing by Cogy::CogyController#inventory as HTML
66
+ Rendered text template (0.0ms)
67
+ Completed 200 OK in 1ms (Views: 0.2ms)
68
+ ----------------------------------
69
+ Cogy::InventoryTest: test_template
70
+ ----------------------------------
71
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
72
+ Processing by Cogy::CogyController#inventory as HTML
73
+ Rendered text template (0.0ms)
74
+ Completed 200 OK in 3ms (Views: 0.2ms)
75
+ ------------------------------------
76
+ Cogy::InventoryTest: test_valid_yaml
77
+ ------------------------------------
78
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
79
+ Processing by Cogy::CogyController#inventory as HTML
80
+ Rendered text template (0.0ms)
81
+ Completed 200 OK in 3ms (Views: 0.3ms)
82
+ -----------------------------------------
83
+ Cogy::CommandTest: test_rails_url_helpers
84
+ -----------------------------------------
85
+ Started POST "/cogy/cmd/rails_url_helpers" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
86
+ Processing by Cogy::CogyController#command as HTML
87
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"rails_url_helpers"}
88
+ Rendered text template (0.0ms)
89
+ Completed 200 OK in 1ms (Views: 0.2ms)
90
+ ------------------------------------
91
+ Cogy::CommandTest: test_calc_command
92
+ ------------------------------------
93
+ Started POST "/cogy/cmd/calc" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
94
+ Processing by Cogy::CogyController#command as HTML
95
+ Parameters: {"COG_OPT_OP"=>"+", "COG_ARGV_0"=>"1", "COG_ARGV_1"=>"2", "COG_CHAT_HANDLE"=>"george", "cmd"=>"calc"}
96
+ Rendered text template (0.0ms)
97
+ Completed 200 OK in 0ms (Views: 0.2ms)
98
+ Started POST "/cogy/cmd/calc" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
99
+ Processing by Cogy::CogyController#command as HTML
100
+ Parameters: {"COG_OPT_OP"=>"/", "COG_ARGV_0"=>"10", "COG_ARGV_1"=>"5", "COG_CHAT_HANDLE"=>"george", "cmd"=>"calc"}
101
+ Rendered text template (0.0ms)
102
+ Completed 200 OK in 0ms (Views: 0.1ms)
103
+ -------------------------------------
104
+ Cogy::CommandTest: test_args_ordering
105
+ -------------------------------------
106
+ Started POST "/cogy/cmd/args_order" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
107
+ Processing by Cogy::CogyController#command as HTML
108
+ Parameters: {"COG_ARGV_2"=>"3", "COG_ARGV_1"=>"2", "COG_ARGV_0"=>"1", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"args_order"}
109
+ Rendered text template (0.0ms)
110
+ Completed 200 OK in 0ms (Views: 0.2ms)
111
+ --------------------------------
112
+ Cogy::CommandTest: test_cogy_env
113
+ --------------------------------
114
+ Started POST "/cogy/cmd/print_env" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
115
+ Processing by Cogy::CogyController#command as HTML
116
+ Parameters: {"foo"=>"ha", "COG_FOO"=>"baz", "FOO"=>"foo", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"print_env"}
117
+ Rendered text template (0.0ms)
118
+ Completed 200 OK in 1ms (Views: 0.3ms)
119
+ -------------------------------------------------------------
120
+ Cogy::CommandTest: test_opts_downcased_and_indifferent_access
121
+ -------------------------------------------------------------
122
+ Started POST "/cogy/cmd/test_opts_downcased" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
123
+ Processing by Cogy::CogyController#command as HTML
124
+ Parameters: {"COG_OPT_A"=>"foo", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"test_opts_downcased"}
125
+ Rendered text template (0.0ms)
126
+ Completed 200 OK in 0ms (Views: 0.2ms)
127
+ ------------------------------------------------
128
+ Cogy::CommandTest: test_invalid_opts_declaration
129
+ ------------------------------------------------
130
+ -----------------------------------------
131
+ Cogy::CommandTest: test_command_not_found
132
+ -----------------------------------------
133
+ Started POST "/cogy/cmd/idontexist" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
134
+ Processing by Cogy::CogyController#command as HTML
135
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"idontexist"}
136
+ Rendered text template (0.0ms)
137
+ Completed 404 Not Found in 0ms (Views: 0.2ms)
138
+ -------------------------------------------
139
+ Cogy::CommandTest: test_error_response_code
140
+ -------------------------------------------
141
+ Started POST "/cogy/cmd/raiser" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
142
+ Processing by Cogy::CogyController#command as HTML
143
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"raiser"}
144
+ Rendered /Users/agis/dev/cogy/app/views/cogy/error.text.erb (3.0ms)
145
+ Completed 500 Internal Server Error in 11ms (Views: 10.9ms)
146
+ --------------------------------------------------------
147
+ Cogy::BuiltinHelpersTest: test_args_with_empty_arguments
148
+ --------------------------------------------------------
149
+ Started POST "/cogy/cmd/empty_args" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
150
+ Processing by Cogy::CogyController#command as HTML
151
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"empty_args"}
152
+ Rendered text template (0.0ms)
153
+ Completed 200 OK in 0ms (Views: 0.2ms)
154
+ -----------------------------------
155
+ Cogy::BuiltinHelpersTest: test_args
156
+ -----------------------------------
157
+ Started POST "/cogy/cmd/add" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
158
+ Processing by Cogy::CogyController#command as HTML
159
+ Parameters: {"COG_ARGV_0"=>"1", "COG_ARGV_1"=>"2", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"add"}
160
+ Rendered text template (0.0ms)
161
+ Completed 200 OK in 0ms (Views: 0.2ms)
162
+ -----------------------------------------------------------------------
163
+ Cogy::BuiltinHelpersTest: test_args_helper_overrides_predefined_helpers
164
+ -----------------------------------------------------------------------
165
+ Started POST "/cogy/cmd/args_overrides" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
166
+ Processing by Cogy::CogyController#command as HTML
167
+ Parameters: {"COG_ARGV_1"=>"hu", "COG_ARGV_0"=>"haha", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"args_overrides"}
168
+ Rendered text template (0.0ms)
169
+ Completed 200 OK in 0ms (Views: 0.2ms)
170
+ ------------------------------------------------
171
+ Cogy::ErrorTemplateTest: test_error_tmpl_message
172
+ ------------------------------------------------
173
+ Started POST "/cogy/cmd/raiser" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
174
+ Processing by Cogy::CogyController#command as HTML
175
+ Parameters: {"COG_CHAT_HANDLE"=>"george", "cmd"=>"raiser"}
176
+ Rendered /Users/agis/dev/cogy/app/views/cogy/error.text.erb (0.0ms)
177
+ Completed 500 Internal Server Error in 0ms (Views: 0.3ms)
178
+ ----------------------------------------------------
179
+ Cogy::ErrorTemplateTest: test_error_tmpl_contenttype
180
+ ----------------------------------------------------
181
+ Started POST "/cogy/cmd/raiser" for 127.0.0.1 at 2017-05-31 14:34:39 +0300
182
+ Processing by Cogy::CogyController#command as HTML
183
+ Parameters: {"COG_CHAT_HANDLE"=>"george", "cmd"=>"raiser"}
184
+ Rendered /Users/agis/dev/cogy/app/views/cogy/error.text.erb (0.0ms)
185
+ Completed 500 Internal Server Error in 0ms (Views: 0.3ms)
186
+ ------------------------------------------------
187
+ Cogy::ErrorTemplateTest: test_error_tmpl_message
188
+ ------------------------------------------------
189
+ Started POST "/cogy/cmd/raiser" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
190
+ Processing by Cogy::CogyController#command as HTML
191
+ Parameters: {"COG_CHAT_HANDLE"=>"george", "cmd"=>"raiser"}
192
+ Rendered /Users/agis/dev/cogy/app/views/cogy/error.text.erb (1.5ms)
193
+ Completed 500 Internal Server Error in 13ms (Views: 12.7ms)
194
+ ----------------------------------------------------
195
+ Cogy::ErrorTemplateTest: test_error_tmpl_contenttype
196
+ ----------------------------------------------------
197
+ Started POST "/cogy/cmd/raiser" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
198
+ Processing by Cogy::CogyController#command as HTML
199
+ Parameters: {"COG_CHAT_HANDLE"=>"george", "cmd"=>"raiser"}
200
+ Rendered /Users/agis/dev/cogy/app/views/cogy/error.text.erb (0.0ms)
201
+ Completed 500 Internal Server Error in 0ms (Views: 0.3ms)
202
+ ----------------------------------------------------
203
+ Cogy::HelpersTest: test_custom_helper_with_arguments
204
+ ----------------------------------------------------
205
+ Started POST "/cogy/cmd/titleize" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
206
+ Processing by Cogy::CogyController#command as HTML
207
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"titleize"}
208
+ Rendered text template (0.0ms)
209
+ Completed 200 OK in 1ms (Views: 1.2ms)
210
+ -----------------------------------------------------------------
211
+ Cogy::HelpersTest: test_custom_helpers_can_access_default_helpers
212
+ -----------------------------------------------------------------
213
+ Started POST "/cogy/cmd/foohelper" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
214
+ Processing by Cogy::CogyController#command as HTML
215
+ Parameters: {"cog_foo"=>"bar", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"foohelper"}
216
+ Rendered text template (0.0ms)
217
+ Completed 200 OK in 0ms (Views: 0.2ms)
218
+ ------------------------------------
219
+ Cogy::CommandTest: test_calc_command
220
+ ------------------------------------
221
+ Started POST "/cogy/cmd/calc" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
222
+ Processing by Cogy::CogyController#command as HTML
223
+ Parameters: {"COG_OPT_OP"=>"+", "COG_ARGV_0"=>"1", "COG_ARGV_1"=>"2", "COG_CHAT_HANDLE"=>"george", "cmd"=>"calc"}
224
+ Rendered text template (0.0ms)
225
+ Completed 200 OK in 0ms (Views: 0.2ms)
226
+ Started POST "/cogy/cmd/calc" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
227
+ Processing by Cogy::CogyController#command as HTML
228
+ Parameters: {"COG_OPT_OP"=>"/", "COG_ARGV_0"=>"10", "COG_ARGV_1"=>"5", "COG_CHAT_HANDLE"=>"george", "cmd"=>"calc"}
229
+ Rendered text template (0.0ms)
230
+ Completed 200 OK in 0ms (Views: 0.2ms)
231
+ -----------------------------------------
232
+ Cogy::CommandTest: test_rails_url_helpers
233
+ -----------------------------------------
234
+ Started POST "/cogy/cmd/rails_url_helpers" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
235
+ Processing by Cogy::CogyController#command as HTML
236
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"rails_url_helpers"}
237
+ Rendered text template (0.0ms)
238
+ Completed 200 OK in 1ms (Views: 0.2ms)
239
+ ------------------------------------------------
240
+ Cogy::CommandTest: test_invalid_opts_declaration
241
+ ------------------------------------------------
242
+ -------------------------------------
243
+ Cogy::CommandTest: test_args_ordering
244
+ -------------------------------------
245
+ Started POST "/cogy/cmd/args_order" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
246
+ Processing by Cogy::CogyController#command as HTML
247
+ Parameters: {"COG_ARGV_2"=>"3", "COG_ARGV_1"=>"2", "COG_ARGV_0"=>"1", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"args_order"}
248
+ Rendered text template (0.0ms)
249
+ Completed 200 OK in 0ms (Views: 0.2ms)
250
+ -------------------------------------------------------------
251
+ Cogy::CommandTest: test_opts_downcased_and_indifferent_access
252
+ -------------------------------------------------------------
253
+ Started POST "/cogy/cmd/test_opts_downcased" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
254
+ Processing by Cogy::CogyController#command as HTML
255
+ Parameters: {"COG_OPT_A"=>"foo", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"test_opts_downcased"}
256
+ Rendered text template (0.0ms)
257
+ Completed 200 OK in 0ms (Views: 0.3ms)
258
+ -----------------------------------------
259
+ Cogy::CommandTest: test_command_not_found
260
+ -----------------------------------------
261
+ Started POST "/cogy/cmd/idontexist" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
262
+ Processing by Cogy::CogyController#command as HTML
263
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"idontexist"}
264
+ Rendered text template (0.0ms)
265
+ Completed 404 Not Found in 0ms (Views: 0.3ms)
266
+ -------------------------------------------
267
+ Cogy::CommandTest: test_error_response_code
268
+ -------------------------------------------
269
+ Started POST "/cogy/cmd/raiser" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
270
+ Processing by Cogy::CogyController#command as HTML
271
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"raiser"}
272
+ Rendered /Users/agis/dev/cogy/app/views/cogy/error.text.erb (0.1ms)
273
+ Completed 500 Internal Server Error in 1ms (Views: 0.4ms)
274
+ --------------------------------
275
+ Cogy::CommandTest: test_cogy_env
276
+ --------------------------------
277
+ Started POST "/cogy/cmd/print_env" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
278
+ Processing by Cogy::CogyController#command as HTML
279
+ Parameters: {"foo"=>"ha", "COG_FOO"=>"baz", "FOO"=>"foo", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"print_env"}
280
+ Rendered text template (0.0ms)
281
+ Completed 200 OK in 0ms (Views: 0.2ms)
282
+ -----------------------------------------------
283
+ Cogy::InventoryTest: test_bundle_version_lambda
284
+ -----------------------------------------------
285
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
286
+ Processing by Cogy::CogyController#inventory as HTML
287
+ Rendered text template (0.0ms)
288
+ Completed 200 OK in 6ms (Views: 0.3ms)
289
+ --------------------------------------
290
+ Cogy::InventoryTest: test_content_type
291
+ --------------------------------------
292
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
293
+ Processing by Cogy::CogyController#inventory as HTML
294
+ Rendered text template (0.0ms)
295
+ Completed 200 OK in 3ms (Views: 0.3ms)
296
+ --------------------------------------------
297
+ Cogy::InventoryTest: test_cog_bundle_version
298
+ --------------------------------------------
299
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
300
+ Processing by Cogy::CogyController#inventory as HTML
301
+ Rendered text template (0.1ms)
302
+ Completed 200 OK in 4ms (Views: 0.4ms)
303
+ ------------------------------------------
304
+ Cogy::InventoryTest: test_without_commands
305
+ ------------------------------------------
306
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
307
+ Processing by Cogy::CogyController#inventory as HTML
308
+ Rendered text template (0.0ms)
309
+ Completed 200 OK in 1ms (Views: 0.3ms)
310
+ ------------------------------------------
311
+ Cogy::InventoryTest: test_commands_section
312
+ ------------------------------------------
313
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
314
+ Processing by Cogy::CogyController#inventory as HTML
315
+ Rendered text template (0.0ms)
316
+ Completed 200 OK in 3ms (Views: 0.3ms)
317
+ ----------------------------------
318
+ Cogy::InventoryTest: test_template
319
+ ----------------------------------
320
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
321
+ Processing by Cogy::CogyController#inventory as HTML
322
+ Rendered text template (0.0ms)
323
+ Completed 200 OK in 3ms (Views: 0.2ms)
324
+ ------------------------------------
325
+ Cogy::InventoryTest: test_valid_yaml
326
+ ------------------------------------
327
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
328
+ Processing by Cogy::CogyController#inventory as HTML
329
+ Rendered text template (0.0ms)
330
+ Completed 200 OK in 3ms (Views: 0.3ms)
331
+ -----------------------------------
332
+ Cogy::BuiltinHelpersTest: test_args
333
+ -----------------------------------
334
+ Started POST "/cogy/cmd/add" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
335
+ Processing by Cogy::CogyController#command as HTML
336
+ Parameters: {"COG_ARGV_0"=>"1", "COG_ARGV_1"=>"2", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"add"}
337
+ Rendered text template (0.0ms)
338
+ Completed 200 OK in 0ms (Views: 0.2ms)
339
+ -----------------------------------------------------------------------
340
+ Cogy::BuiltinHelpersTest: test_args_helper_overrides_predefined_helpers
341
+ -----------------------------------------------------------------------
342
+ Started POST "/cogy/cmd/args_overrides" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
343
+ Processing by Cogy::CogyController#command as HTML
344
+ Parameters: {"COG_ARGV_1"=>"hu", "COG_ARGV_0"=>"haha", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"args_overrides"}
345
+ Rendered text template (0.0ms)
346
+ Completed 200 OK in 0ms (Views: 0.2ms)
347
+ --------------------------------------------------------
348
+ Cogy::BuiltinHelpersTest: test_args_with_empty_arguments
349
+ --------------------------------------------------------
350
+ Started POST "/cogy/cmd/empty_args" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
351
+ Processing by Cogy::CogyController#command as HTML
352
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"empty_args"}
353
+ Rendered text template (0.0ms)
354
+ Completed 200 OK in 0ms (Views: 0.2ms)
355
+ --------------------------------------------
356
+ Cogy::JsonResponseTest: test_custom_template
357
+ --------------------------------------------
358
+ Started POST "/cogy/cmd/custom_template" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
359
+ Processing by Cogy::CogyController#command as HTML
360
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"custom_template"}
361
+ Rendered text template (0.0ms)
362
+ Completed 200 OK in 0ms (Views: 0.2ms)
363
+ -------------------------------------------------------------
364
+ Cogy::JsonResponseTest: test_json_output_and_default_template
365
+ -------------------------------------------------------------
366
+ Started POST "/cogy/cmd/simple_json" for 127.0.0.1 at 2017-05-31 14:37:30 +0300
367
+ Processing by Cogy::CogyController#command as HTML
368
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"simple_json"}
369
+ Rendered text template (0.0ms)
370
+ Completed 200 OK in 0ms (Views: 0.3ms)
371
+ ----------------------------------
372
+ Cogy::InventoryTest: test_template
373
+ ----------------------------------
374
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
375
+ Processing by Cogy::CogyController#inventory as HTML
376
+ Rendered text template (0.0ms)
377
+ Completed 200 OK in 10ms (Views: 6.3ms)
378
+ --------------------------------------------
379
+ Cogy::InventoryTest: test_cog_bundle_version
380
+ --------------------------------------------
381
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
382
+ Processing by Cogy::CogyController#inventory as HTML
383
+ Rendered text template (0.0ms)
384
+ Completed 200 OK in 3ms (Views: 0.2ms)
385
+ --------------------------------------
386
+ Cogy::InventoryTest: test_content_type
387
+ --------------------------------------
388
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
389
+ Processing by Cogy::CogyController#inventory as HTML
390
+ Rendered text template (0.0ms)
391
+ Completed 200 OK in 3ms (Views: 0.2ms)
392
+ ------------------------------------------
393
+ Cogy::InventoryTest: test_commands_section
394
+ ------------------------------------------
395
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
396
+ Processing by Cogy::CogyController#inventory as HTML
397
+ Rendered text template (0.0ms)
398
+ Completed 200 OK in 3ms (Views: 0.3ms)
399
+ -----------------------------------------------
400
+ Cogy::InventoryTest: test_bundle_version_lambda
401
+ -----------------------------------------------
402
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
403
+ Processing by Cogy::CogyController#inventory as HTML
404
+ Rendered text template (0.0ms)
405
+ Completed 200 OK in 3ms (Views: 0.3ms)
406
+ ------------------------------------
407
+ Cogy::InventoryTest: test_valid_yaml
408
+ ------------------------------------
409
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
410
+ Processing by Cogy::CogyController#inventory as HTML
411
+ Rendered text template (0.0ms)
412
+ Completed 200 OK in 4ms (Views: 0.7ms)
413
+ ------------------------------------------
414
+ Cogy::InventoryTest: test_without_commands
415
+ ------------------------------------------
416
+ Started GET "/cogy/inventory" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
417
+ Processing by Cogy::CogyController#inventory as HTML
418
+ Rendered text template (0.0ms)
419
+ Completed 200 OK in 1ms (Views: 0.4ms)
420
+ -----------------------------------
421
+ Cogy::BuiltinHelpersTest: test_args
422
+ -----------------------------------
423
+ Started POST "/cogy/cmd/add" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
424
+ Processing by Cogy::CogyController#command as HTML
425
+ Parameters: {"COG_ARGV_0"=>"1", "COG_ARGV_1"=>"2", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"add"}
426
+ Rendered text template (0.0ms)
427
+ Completed 200 OK in 0ms (Views: 0.2ms)
428
+ -----------------------------------------------------------------------
429
+ Cogy::BuiltinHelpersTest: test_args_helper_overrides_predefined_helpers
430
+ -----------------------------------------------------------------------
431
+ Started POST "/cogy/cmd/args_overrides" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
432
+ Processing by Cogy::CogyController#command as HTML
433
+ Parameters: {"COG_ARGV_1"=>"hu", "COG_ARGV_0"=>"haha", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"args_overrides"}
434
+ Rendered text template (0.0ms)
435
+ Completed 200 OK in 0ms (Views: 0.2ms)
436
+ --------------------------------------------------------
437
+ Cogy::BuiltinHelpersTest: test_args_with_empty_arguments
438
+ --------------------------------------------------------
439
+ Started POST "/cogy/cmd/empty_args" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
440
+ Processing by Cogy::CogyController#command as HTML
441
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"empty_args"}
442
+ Rendered text template (0.0ms)
443
+ Completed 200 OK in 1ms (Views: 0.3ms)
444
+ ------------------------------------------------
445
+ Cogy::ErrorTemplateTest: test_error_tmpl_message
446
+ ------------------------------------------------
447
+ Started POST "/cogy/cmd/raiser" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
448
+ Processing by Cogy::CogyController#command as HTML
449
+ Parameters: {"COG_CHAT_HANDLE"=>"george", "cmd"=>"raiser"}
450
+ Rendered /Users/agis/dev/cogy/app/views/cogy/error.text.erb (1.3ms)
451
+ Completed 500 Internal Server Error in 8ms (Views: 7.6ms)
452
+ ----------------------------------------------------
453
+ Cogy::ErrorTemplateTest: test_error_tmpl_contenttype
454
+ ----------------------------------------------------
455
+ Started POST "/cogy/cmd/raiser" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
456
+ Processing by Cogy::CogyController#command as HTML
457
+ Parameters: {"COG_CHAT_HANDLE"=>"george", "cmd"=>"raiser"}
458
+ Rendered /Users/agis/dev/cogy/app/views/cogy/error.text.erb (0.1ms)
459
+ Completed 500 Internal Server Error in 1ms (Views: 0.4ms)
460
+ ------------------------------------------------
461
+ Cogy::CommandTest: test_invalid_opts_declaration
462
+ ------------------------------------------------
463
+ --------------------------------
464
+ Cogy::CommandTest: test_cogy_env
465
+ --------------------------------
466
+ Started POST "/cogy/cmd/print_env" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
467
+ Processing by Cogy::CogyController#command as HTML
468
+ Parameters: {"foo"=>"ha", "COG_FOO"=>"baz", "FOO"=>"foo", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"print_env"}
469
+ Rendered text template (0.0ms)
470
+ Completed 200 OK in 0ms (Views: 0.2ms)
471
+ -----------------------------------------
472
+ Cogy::CommandTest: test_rails_url_helpers
473
+ -----------------------------------------
474
+ Started POST "/cogy/cmd/rails_url_helpers" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
475
+ Processing by Cogy::CogyController#command as HTML
476
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"rails_url_helpers"}
477
+ Rendered text template (0.0ms)
478
+ Completed 200 OK in 1ms (Views: 0.4ms)
479
+ -------------------------------------------
480
+ Cogy::CommandTest: test_error_response_code
481
+ -------------------------------------------
482
+ Started POST "/cogy/cmd/raiser" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
483
+ Processing by Cogy::CogyController#command as HTML
484
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"raiser"}
485
+ Rendered /Users/agis/dev/cogy/app/views/cogy/error.text.erb (0.1ms)
486
+ Completed 500 Internal Server Error in 0ms (Views: 0.3ms)
487
+ -------------------------------------------------------------
488
+ Cogy::CommandTest: test_opts_downcased_and_indifferent_access
489
+ -------------------------------------------------------------
490
+ Started POST "/cogy/cmd/test_opts_downcased" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
491
+ Processing by Cogy::CogyController#command as HTML
492
+ Parameters: {"COG_OPT_A"=>"foo", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"test_opts_downcased"}
493
+ Rendered text template (0.0ms)
494
+ Completed 200 OK in 1ms (Views: 0.5ms)
495
+ -----------------------------------------
496
+ Cogy::CommandTest: test_command_not_found
497
+ -----------------------------------------
498
+ Started POST "/cogy/cmd/idontexist" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
499
+ Processing by Cogy::CogyController#command as HTML
500
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"idontexist"}
501
+ Rendered text template (0.0ms)
502
+ Completed 404 Not Found in 0ms (Views: 0.2ms)
503
+ -------------------------------------
504
+ Cogy::CommandTest: test_args_ordering
505
+ -------------------------------------
506
+ Started POST "/cogy/cmd/args_order" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
507
+ Processing by Cogy::CogyController#command as HTML
508
+ Parameters: {"COG_ARGV_2"=>"3", "COG_ARGV_1"=>"2", "COG_ARGV_0"=>"1", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"args_order"}
509
+ Rendered text template (0.0ms)
510
+ Completed 200 OK in 0ms (Views: 0.2ms)
511
+ ------------------------------------
512
+ Cogy::CommandTest: test_calc_command
513
+ ------------------------------------
514
+ Started POST "/cogy/cmd/calc" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
515
+ Processing by Cogy::CogyController#command as HTML
516
+ Parameters: {"COG_OPT_OP"=>"+", "COG_ARGV_0"=>"1", "COG_ARGV_1"=>"2", "COG_CHAT_HANDLE"=>"george", "cmd"=>"calc"}
517
+ Rendered text template (0.0ms)
518
+ Completed 200 OK in 0ms (Views: 0.2ms)
519
+ Started POST "/cogy/cmd/calc" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
520
+ Processing by Cogy::CogyController#command as HTML
521
+ Parameters: {"COG_OPT_OP"=>"/", "COG_ARGV_0"=>"10", "COG_ARGV_1"=>"5", "COG_CHAT_HANDLE"=>"george", "cmd"=>"calc"}
522
+ Rendered text template (0.0ms)
523
+ Completed 200 OK in 0ms (Views: 0.1ms)
524
+ ----------------------------------------------------
525
+ Cogy::HelpersTest: test_custom_helper_with_arguments
526
+ ----------------------------------------------------
527
+ Started POST "/cogy/cmd/titleize" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
528
+ Processing by Cogy::CogyController#command as HTML
529
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"titleize"}
530
+ Rendered text template (0.0ms)
531
+ Completed 200 OK in 0ms (Views: 0.2ms)
532
+ -----------------------------------------------------------------
533
+ Cogy::HelpersTest: test_custom_helpers_can_access_default_helpers
534
+ -----------------------------------------------------------------
535
+ Started POST "/cogy/cmd/foohelper" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
536
+ Processing by Cogy::CogyController#command as HTML
537
+ Parameters: {"cog_foo"=>"bar", "COG_CHAT_HANDLE"=>"someone", "cmd"=>"foohelper"}
538
+ Rendered text template (0.0ms)
539
+ Completed 200 OK in 0ms (Views: 0.2ms)
540
+ -------------------------------------------------------------
541
+ Cogy::JsonResponseTest: test_json_output_and_default_template
542
+ -------------------------------------------------------------
543
+ Started POST "/cogy/cmd/simple_json" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
544
+ Processing by Cogy::CogyController#command as HTML
545
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"simple_json"}
546
+ Rendered text template (0.0ms)
547
+ Completed 200 OK in 0ms (Views: 0.2ms)
548
+ --------------------------------------------
549
+ Cogy::JsonResponseTest: test_custom_template
550
+ --------------------------------------------
551
+ Started POST "/cogy/cmd/custom_template" for 127.0.0.1 at 2017-05-31 14:38:30 +0300
552
+ Processing by Cogy::CogyController#command as HTML
553
+ Parameters: {"COG_CHAT_HANDLE"=>"someone", "cmd"=>"custom_template"}
554
+ Rendered text template (0.0ms)
555
+ Completed 200 OK in 0ms (Views: 0.2ms)