husky 0.3.8 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/husky/ears.rb +3 -0
- data/lib/husky/entity.rb +13 -6
- data/lib/husky/version.rb +1 -1
- metadata +3 -167
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/controllers/application_controller.rb +0 -6
- data/test/dummy/app/controllers/home_controller.rb +0 -9
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/interactors/chase_car.rb +0 -13
- data/test/dummy/app/responders/home_responder.rb +0 -7
- data/test/dummy/app/views/home/index.html.erb +0 -1
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/bin/setup +0 -29
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -26
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -41
- data/test/dummy/config/environments/production.rb +0 -79
- data/test/dummy/config/environments/test.rb +0 -42
- data/test/dummy/config/initializers/assets.rb +0 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/routes.rb +0 -56
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -996
- data/test/dummy/log/test.log +0 -250
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5JX-TnheARWAztdKP_GS69Hw1XyBxr5gPu7HJ_6uZgU.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9gFAVdHsqApiIACBFnEf3lw-fsVPY0xHN82zhJs9ptk.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/CDYnWyEvApHh09WPfT_a-Wsa45MyxOmN1_Q9V2RJn9Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/CL3V250QywcD5wmH51ss-M_HEdfZSiVU2Zi1Law5vLo.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ElO0ViNEDMzLRC-5-_x3Ms43MCJ5JIvY2NYdXIYP88U.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/FEzoeJt710sMJxKQnPW7Gh-y_0ITWNqGAdznwVj3Ko4.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/FzaRj01aoQQxUkEDmFY9Avgspwoq1KXnjYPzuOeM6zg.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KesskQmvJRXrgqcBoEq4W7yo4IWGw9ZiIjF7v8OhfWQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/NyBozH65gB_aYbb_E-OhrK85jZbWeoTvHZ5NhXClHcM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OsvZxm_uy8K2Y-m6UvtgGcWEA_TUNmDnrizLHAOEn-k.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bQgEaLKf5lAkKW-vr3cr__DvkD0mORgTm9Gc62eQMdA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/dXJcA-RxYfcWXkhu7YRvB1wQvmX5TjOK2jR6JlW_tRU.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fVbdSBvrir4z6e5nzQMZ_oSnKhLsz6ifwSrAwrOG0bo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mmknVER7cvx_3WxZK7qX7E52e1jdAa4A5Po7m0M2e50.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rCJuFBH8Fov8dpwePE7ii_GkEiWZmYCXPNwE7hXfDHk.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/s_EnWD5m6LCrz5h5n5JvgDrju2NSa-v2JM93NSvIf2I.cache +0 -1
- data/test/husky_test.rb +0 -7
- data/test/integration/controller_to_responder_test.rb +0 -10
- data/test/test_helper.rb +0 -20
- data/test/unit/pass_along_test.rb +0 -33
File without changes
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/5JX-TnheARWAztdKP_GS69Hw1XyBxr5gPu7HJ_6uZgU.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"%�W\�yho9S���ƫ˥��)|�~���(���
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/9gFAVdHsqApiIACBFnEf3lw-fsVPY0xHN82zhJs9ptk.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/CDYnWyEvApHh09WPfT_a-Wsa45MyxOmN1_Q9V2RJn9Y.cache
DELETED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/CL3V250QywcD5wmH51ss-M_HEdfZSiVU2Zi1Law5vLo.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
I"�app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=196e21fc17a737303169af7a155cf789c31341f5a10e5894a7cd3c94781f0b5a:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
[o:Set:
|
2
|
-
@hash{I"environment-version:ETTI"environment-paths;TTI"?processors:type=text/css&file_type=text/css&pipeline=debug;TTI"9file-digest://app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI")file-digest://app/assets/stylesheets;TT
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/ElO0ViNEDMzLRC-5-_x3Ms43MCJ5JIvY2NYdXIYP88U.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"%Ѱč@�����6H�uZoX�Z�gbh0W��V
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/FEzoeJt710sMJxKQnPW7Gh-y_0ITWNqGAdznwVj3Ko4.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
I"�app/assets/javascripts/application.js?type=application/javascript&id=34a060a5c971cecd843972f6f63fff22725b2daff3a0d689c102d082e0996992:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/FzaRj01aoQQxUkEDmFY9Avgspwoq1KXnjYPzuOeM6zg.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=dd0974775cfaab2b359865f2b2e3d5d606f8b493ddbdd6e62a973c32b31d3fee:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/KesskQmvJRXrgqcBoEq4W7yo4IWGw9ZiIjF7v8OhfWQ.cache
DELETED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/NyBozH65gB_aYbb_E-OhrK85jZbWeoTvHZ5NhXClHcM.cache
DELETED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/OsvZxm_uy8K2Y-m6UvtgGcWEA_TUNmDnrizLHAOEn-k.cache
DELETED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/bQgEaLKf5lAkKW-vr3cr__DvkD0mORgTm9Gc62eQMdA.cache
DELETED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/dXJcA-RxYfcWXkhu7YRvB1wQvmX5TjOK2jR6JlW_tRU.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
I"}app/assets/stylesheets/application.css?type=text/css&id=56ecc04c2c9133466c0b4256462d424e9f4f82ebf5025748302746d27b94b477:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/fVbdSBvrir4z6e5nzQMZ_oSnKhLsz6ifwSrAwrOG0bo.cache
DELETED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
[o:Set:
|
2
|
-
@hash{I"environment-version:ETTI"environment-paths;TTI"[processors:type=application/javascript&file_type=application/javascript&pipeline=debug;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI")file-digest://app/assets/javascripts;TT
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/mmknVER7cvx_3WxZK7qX7E52e1jdAa4A5Po7m0M2e50.cache
DELETED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
[o:Set:
|
2
|
-
@hash{I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI")file-digest://app/assets/javascripts;TT
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/rCJuFBH8Fov8dpwePE7ii_GkEiWZmYCXPNwE7hXfDHk.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=16e0e81e5b4df4832ccfdb05f113c93bc926da432d68146bd7368bdca61d537b:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/s_EnWD5m6LCrz5h5n5JvgDrju2NSa-v2JM93NSvIf2I.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=541b09ffe67bacc291b66cc510438c85f0ace49c1d8500d08afb62d559fcf7db:ET
|
data/test/husky_test.rb
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class ControllerToResponderTest < ActionDispatch::IntegrationTest
|
4
|
-
|
5
|
-
test 'it can pass a variable from the controller to the responder through the listener' do
|
6
|
-
get root_path(car: "Mustang")
|
7
|
-
assert_includes response.body, "Mustang", "Should include the passed in value in the response."
|
8
|
-
end
|
9
|
-
|
10
|
-
end
|
data/test/test_helper.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# Configure Rails Environment
|
2
|
-
ENV["RAILS_ENV"] = "test"
|
3
|
-
|
4
|
-
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
5
|
-
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
6
|
-
require "rails/test_help"
|
7
|
-
|
8
|
-
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
9
|
-
# to be shown.
|
10
|
-
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
11
|
-
|
12
|
-
# Load support files
|
13
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
14
|
-
|
15
|
-
# Load fixtures from the engine
|
16
|
-
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|
17
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
18
|
-
ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
|
19
|
-
ActiveSupport::TestCase.fixtures :all
|
20
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class PassAlongTest < ActiveSupport::TestCase
|
4
|
-
|
5
|
-
# After a method is called on a Responder, we need to send all instance variables
|
6
|
-
# that were created back to the controller for the view
|
7
|
-
test 'the receiver receives all instance variables from the sender after a method is called' do
|
8
|
-
sam = Sam.new("Sam", "M", "Opportunist")
|
9
|
-
bob = Bob.new
|
10
|
-
PassAlong.all_variables(sam, bob)
|
11
|
-
sam.useless_method
|
12
|
-
assert_equal [:@gender, :@job_title, :@name], bob.instance_variables.sort
|
13
|
-
end
|
14
|
-
|
15
|
-
|
16
|
-
class Sam
|
17
|
-
extend AfterDo
|
18
|
-
|
19
|
-
def initialize(name, gender, job_title)
|
20
|
-
@name = name
|
21
|
-
@gender = gender
|
22
|
-
@job_title = job_title
|
23
|
-
end
|
24
|
-
|
25
|
-
def useless_method
|
26
|
-
end
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
class Bob
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|