cogy 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +25 -5
- data/Rakefile +5 -1
- data/app/controllers/cogy/application_controller.rb +4 -2
- data/app/controllers/cogy/cogy_controller.rb +4 -4
- data/lib/cogy/version.rb +1 -1
- data/test/{dummy → dummies/4.2}/README.rdoc +0 -0
- data/test/{dummy → dummies/4.2}/Rakefile +0 -0
- data/test/{dummy → dummies/4.2}/app/controllers/application_controller.rb +0 -0
- data/test/{dummy → dummies/4.2}/app/helpers/application_helper.rb +0 -0
- data/test/{dummy → dummies/4.2}/app/views/layouts/application.html.erb +0 -0
- data/test/{dummy → dummies/4.2}/bin/bundle +0 -0
- data/test/{dummy → dummies/4.2}/bin/rails +0 -0
- data/test/{dummy → dummies/4.2}/bin/rake +0 -0
- data/test/{dummy → dummies/4.2}/bin/setup +0 -0
- data/test/{dummy → dummies/4.2}/config.ru +0 -0
- data/test/{dummy → dummies/4.2}/config/application.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/boot.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/database.yml +0 -0
- data/test/{dummy → dummies/4.2}/config/environment.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/environments/development.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/environments/production.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/environments/test.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/initializers/assets.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/initializers/backtrace_silencers.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/initializers/cogy.rb +1 -1
- data/test/{dummy → dummies/4.2}/config/initializers/cookies_serializer.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/initializers/filter_parameter_logging.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/initializers/inflections.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/initializers/mime_types.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/initializers/session_store.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/initializers/wrap_parameters.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/locales/en.yml +0 -0
- data/test/{dummy → dummies/4.2}/config/routes.rb +0 -0
- data/test/{dummy → dummies/4.2}/config/secrets.yml +0 -0
- data/test/dummies/4.2/log/test.log +555 -0
- data/test/{dummy → dummies/4.2}/public/404.html +0 -0
- data/test/{dummy → dummies/4.2}/public/422.html +0 -0
- data/test/{dummy → dummies/4.2}/public/500.html +0 -0
- data/test/{dummy → dummies/4.2}/public/favicon.ico +0 -0
- data/test/dummies/5.0/Rakefile +6 -0
- data/test/dummies/5.0/app/controllers/application_controller.rb +3 -0
- data/test/dummies/5.0/app/views/layouts/application.html.erb +14 -0
- data/test/dummies/5.0/config.ru +5 -0
- data/test/dummies/5.0/config/application.rb +15 -0
- data/test/dummies/5.0/config/boot.rb +3 -0
- data/test/dummies/5.0/config/database.yml +25 -0
- data/test/dummies/5.0/config/environment.rb +5 -0
- data/test/dummies/5.0/config/environments/test.rb +42 -0
- data/test/dummies/5.0/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummies/5.0/config/initializers/assets.rb +11 -0
- data/test/dummies/5.0/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummies/5.0/config/initializers/cogy.rb +14 -0
- data/test/dummies/5.0/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummies/5.0/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummies/5.0/config/initializers/inflections.rb +16 -0
- data/test/dummies/5.0/config/initializers/mime_types.rb +4 -0
- data/test/dummies/5.0/config/initializers/new_framework_defaults.rb +26 -0
- data/test/dummies/5.0/config/initializers/session_store.rb +3 -0
- data/test/dummies/5.0/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummies/5.0/config/locales/en.yml +23 -0
- data/test/dummies/5.0/config/routes.rb +5 -0
- data/test/dummies/5.0/config/secrets.yml +22 -0
- data/test/dummies/5.0/db/seeds.rb +7 -0
- data/test/dummies/5.0/db/test.sqlite3 +0 -0
- data/test/dummies/5.0/log/test.log +514 -0
- data/test/dummies/5.0/public/404.html +67 -0
- data/test/dummies/5.0/public/422.html +67 -0
- data/test/dummies/5.0/public/500.html +66 -0
- data/test/dummies/5.0/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummies/5.0/public/apple-touch-icon.png +0 -0
- data/test/dummies/5.0/public/favicon.ico +0 -0
- data/test/dummies/5.0/public/robots.txt +5 -0
- data/test/dummies/5.1/Rakefile +6 -0
- data/test/dummies/5.1/app/controllers/application_controller.rb +3 -0
- data/test/dummies/5.1/app/views/layouts/application.html.erb +14 -0
- data/test/dummies/5.1/config.ru +5 -0
- data/test/dummies/5.1/config/application.rb +18 -0
- data/test/dummies/5.1/config/boot.rb +5 -0
- data/test/dummies/5.1/config/database.yml +25 -0
- data/test/dummies/5.1/config/environment.rb +5 -0
- data/test/dummies/5.1/config/environments/test.rb +42 -0
- data/test/dummies/5.1/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummies/5.1/config/initializers/assets.rb +14 -0
- data/test/dummies/5.1/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummies/5.1/config/initializers/cogy.rb +14 -0
- data/test/dummies/5.1/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummies/5.1/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummies/5.1/config/initializers/inflections.rb +16 -0
- data/test/dummies/5.1/config/initializers/mime_types.rb +4 -0
- data/test/dummies/5.1/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummies/5.1/config/locales/en.yml +33 -0
- data/test/dummies/5.1/config/routes.rb +5 -0
- data/test/dummies/5.1/config/secrets.yml +22 -0
- data/test/dummies/5.1/db/test.sqlite3 +0 -0
- data/test/dummies/5.1/log/test.log +1028 -0
- data/test/dummies/5.1/public/404.html +67 -0
- data/test/dummies/5.1/public/422.html +67 -0
- data/test/dummies/5.1/public/500.html +66 -0
- data/test/dummies/5.1/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummies/5.1/public/apple-touch-icon.png +0 -0
- data/test/dummies/5.1/public/favicon.ico +0 -0
- data/test/{dummy → dummies}/cogy/builtin_helpers.rb +0 -0
- data/test/{dummy → dummies}/cogy/foo.rb +0 -0
- data/test/{dummy → dummies}/cogy/fully_fledged.rb +0 -0
- data/test/{dummy → dummies}/cogy/json_response.rb +0 -0
- data/test/{dummy → dummies}/cogy/templates/pretty-command +0 -0
- data/test/support/helpers.rb +7 -1
- data/test/test_helper.rb +2 -1
- metadata +227 -85
- data/test/dummy/log/development.log +0 -84
- data/test/dummy/log/test.log +0 -40417
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a76b144c977332bf814ea5af0b79bad44272c33b
|
4
|
+
data.tar.gz: ec4653077cb44da4a3a37837941f97d533386c39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f31f6e405e2873f56eb331e1a2773e1e084a42b94c9145c1efc83338add17e9c19e4687b8cb4c99e10c3a5e894b1e9b4fa123484207c3c329da768bc1af09d6
|
7
|
+
data.tar.gz: 3eb3d6df7c654faaff812bd97c9f198e3e363902125b4e7d6ce295d9a3e715dac7ef634ff251e4ee1ed38a68d3a958542e2cffe2dc67e925cf3fa617b2a31bdd
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
-
#
|
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
|
-
|
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
|
-
|
4
|
-
|
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
|
29
|
+
render plain: result
|
30
30
|
else
|
31
|
-
render status: 404,
|
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
|
50
|
+
render body: Cogy.bundle_config.to_yaml, content_type: "application/x-yaml"
|
51
51
|
end
|
52
52
|
end
|
53
53
|
end
|
data/lib/cogy/version.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -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)
|