husky 0.3.8 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/lib/husky/ears.rb +3 -0
  3. data/lib/husky/entity.rb +13 -6
  4. data/lib/husky/version.rb +1 -1
  5. metadata +3 -167
  6. data/test/dummy/README.rdoc +0 -28
  7. data/test/dummy/Rakefile +0 -6
  8. data/test/dummy/app/assets/javascripts/application.js +0 -13
  9. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  10. data/test/dummy/app/controllers/application_controller.rb +0 -6
  11. data/test/dummy/app/controllers/home_controller.rb +0 -9
  12. data/test/dummy/app/helpers/application_helper.rb +0 -2
  13. data/test/dummy/app/interactors/chase_car.rb +0 -13
  14. data/test/dummy/app/responders/home_responder.rb +0 -7
  15. data/test/dummy/app/views/home/index.html.erb +0 -1
  16. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  17. data/test/dummy/bin/bundle +0 -3
  18. data/test/dummy/bin/rails +0 -4
  19. data/test/dummy/bin/rake +0 -4
  20. data/test/dummy/bin/setup +0 -29
  21. data/test/dummy/config.ru +0 -4
  22. data/test/dummy/config/application.rb +0 -26
  23. data/test/dummy/config/boot.rb +0 -5
  24. data/test/dummy/config/database.yml +0 -25
  25. data/test/dummy/config/environment.rb +0 -5
  26. data/test/dummy/config/environments/development.rb +0 -41
  27. data/test/dummy/config/environments/production.rb +0 -79
  28. data/test/dummy/config/environments/test.rb +0 -42
  29. data/test/dummy/config/initializers/assets.rb +0 -11
  30. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  31. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  32. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  33. data/test/dummy/config/initializers/inflections.rb +0 -16
  34. data/test/dummy/config/initializers/mime_types.rb +0 -4
  35. data/test/dummy/config/initializers/session_store.rb +0 -3
  36. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  37. data/test/dummy/config/locales/en.yml +0 -23
  38. data/test/dummy/config/routes.rb +0 -56
  39. data/test/dummy/config/secrets.yml +0 -22
  40. data/test/dummy/db/development.sqlite3 +0 -0
  41. data/test/dummy/db/test.sqlite3 +0 -0
  42. data/test/dummy/log/development.log +0 -996
  43. data/test/dummy/log/test.log +0 -250
  44. data/test/dummy/public/404.html +0 -67
  45. data/test/dummy/public/422.html +0 -67
  46. data/test/dummy/public/500.html +0 -66
  47. data/test/dummy/public/favicon.ico +0 -0
  48. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5JX-TnheARWAztdKP_GS69Hw1XyBxr5gPu7HJ_6uZgU.cache +0 -1
  49. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -2
  50. data/test/dummy/tmp/cache/assets/sprockets/v3.0/9gFAVdHsqApiIACBFnEf3lw-fsVPY0xHN82zhJs9ptk.cache +0 -1
  51. data/test/dummy/tmp/cache/assets/sprockets/v3.0/CDYnWyEvApHh09WPfT_a-Wsa45MyxOmN1_Q9V2RJn9Y.cache +0 -0
  52. data/test/dummy/tmp/cache/assets/sprockets/v3.0/CL3V250QywcD5wmH51ss-M_HEdfZSiVU2Zi1Law5vLo.cache +0 -1
  53. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +0 -2
  54. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ElO0ViNEDMzLRC-5-_x3Ms43MCJ5JIvY2NYdXIYP88U.cache +0 -1
  55. data/test/dummy/tmp/cache/assets/sprockets/v3.0/FEzoeJt710sMJxKQnPW7Gh-y_0ITWNqGAdznwVj3Ko4.cache +0 -1
  56. data/test/dummy/tmp/cache/assets/sprockets/v3.0/FzaRj01aoQQxUkEDmFY9Avgspwoq1KXnjYPzuOeM6zg.cache +0 -1
  57. data/test/dummy/tmp/cache/assets/sprockets/v3.0/KesskQmvJRXrgqcBoEq4W7yo4IWGw9ZiIjF7v8OhfWQ.cache +0 -0
  58. data/test/dummy/tmp/cache/assets/sprockets/v3.0/NyBozH65gB_aYbb_E-OhrK85jZbWeoTvHZ5NhXClHcM.cache +0 -0
  59. data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -3
  60. data/test/dummy/tmp/cache/assets/sprockets/v3.0/OsvZxm_uy8K2Y-m6UvtgGcWEA_TUNmDnrizLHAOEn-k.cache +0 -0
  61. data/test/dummy/tmp/cache/assets/sprockets/v3.0/bQgEaLKf5lAkKW-vr3cr__DvkD0mORgTm9Gc62eQMdA.cache +0 -0
  62. data/test/dummy/tmp/cache/assets/sprockets/v3.0/dXJcA-RxYfcWXkhu7YRvB1wQvmX5TjOK2jR6JlW_tRU.cache +0 -1
  63. data/test/dummy/tmp/cache/assets/sprockets/v3.0/fVbdSBvrir4z6e5nzQMZ_oSnKhLsz6ifwSrAwrOG0bo.cache +0 -0
  64. data/test/dummy/tmp/cache/assets/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache +0 -2
  65. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +0 -3
  66. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mmknVER7cvx_3WxZK7qX7E52e1jdAa4A5Po7m0M2e50.cache +0 -0
  67. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +0 -2
  68. data/test/dummy/tmp/cache/assets/sprockets/v3.0/rCJuFBH8Fov8dpwePE7ii_GkEiWZmYCXPNwE7hXfDHk.cache +0 -1
  69. data/test/dummy/tmp/cache/assets/sprockets/v3.0/s_EnWD5m6LCrz5h5n5JvgDrju2NSa-v2JM93NSvIf2I.cache +0 -1
  70. data/test/husky_test.rb +0 -7
  71. data/test/integration/controller_to_responder_test.rb +0 -10
  72. data/test/test_helper.rb +0 -20
  73. data/test/unit/pass_along_test.rb +0 -33
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0f7061843ef033ac239591bc8313b382fc6d90c
4
- data.tar.gz: f0cad8f1f8d127074042f07e6618e124e83e38d7
3
+ metadata.gz: 455c01b4457dbf6261aee7344004be1e56097940
4
+ data.tar.gz: 1a161efcb9a38ce7aa884dbfa1abb767c7dab292
5
5
  SHA512:
6
- metadata.gz: ecda42de5990663c795f6d0d2d6ce03e20fd3baf975df41e9fd1b94e2e46f7c87bd74d2be1c5c69b5d43deb6184cca01086681fae92f501279c6218d6dfed380
7
- data.tar.gz: 1f7992f9ec1445408a0dc0c7e4d13a668c46f9bff623d5ee02ebc56f9903efd7345a5754cd20a57447ac4af3b08d9422da5060864b9fc0ddb086f994ab701e28
6
+ metadata.gz: 6e48b44b94931f43e700ed1b0b6f65ae8268e82c8ea80ed0f5081b0da2666fbf4cba7b8ca89d6f7e02fe7d90cc7026d60618f49d80905a69cd36790bae3fb4e7
7
+ data.tar.gz: da57658e638bbcd2d9f315f9fc9f80a81097fcb833d20272863ce5eace9ae7ad40b7495050704851a38ba6a0686db100f5aa09559cf2bb6e6af39f3beee62291
@@ -6,6 +6,7 @@ module Husky
6
6
  end
7
7
 
8
8
  def responder_class
9
+ raise "Rails is not running" unless defined?(Rails)
9
10
  "#{controller_name.camelize}Responder".constantize
10
11
  end
11
12
 
@@ -20,10 +21,12 @@ module Husky
20
21
  end
21
22
 
22
23
  def deliver_entities(entities, *options)
24
+ raise "Rails is not running" unless defined?(Rails)
23
25
  serve_for(entities.map(&:object), *options)
24
26
  end
25
27
 
26
28
  def deliver_entity(entity, *options)
29
+ raise "Rails is not running" unless defined?(Rails)
27
30
  serve_for(entity.object, *options)
28
31
  end
29
32
 
@@ -1,22 +1,29 @@
1
- require 'delegate'
1
+ require 'forwardable'
2
2
 
3
3
  module Husky
4
4
 
5
- class Entity < SimpleDelegator
5
+ class Entity
6
+ extend Forwardable
6
7
 
7
8
  class << self
8
9
 
10
+ def fields(*field_names)
11
+ field_names.each do |field_name|
12
+ def_delegators :_data, field_name
13
+ def_delegators :_data, "#{field_name}="
14
+ end
15
+ end
16
+
9
17
  def wrap(items)
10
18
  items.map { |item| new(item) }
11
19
  end
12
20
 
13
21
  end
14
22
 
15
- attr_reader :object
23
+ attr_reader :_data
16
24
 
17
- def initialize(object)
18
- @object = object
19
- super
25
+ def initialize(_data)
26
+ @_data = _data
20
27
  end
21
28
 
22
29
  end
@@ -1,3 +1,3 @@
1
1
  module Husky
2
- VERSION = "0.3.8"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: husky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Fiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-17 00:00:00.000000000 Z
11
+ date: 2016-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '4.0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '4.0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: after_do
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -38,20 +24,6 @@ dependencies:
38
24
  - - '='
39
25
  - !ruby/object:Gem::Version
40
26
  version: 0.3.1
41
- - !ruby/object:Gem::Dependency
42
- name: sqlite3
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
27
  description: Husky is a tool to help you grow your Rails app.
56
28
  email:
57
29
  - stephen.fiser@gmail.com
@@ -75,74 +47,6 @@ files:
75
47
  - lib/husky/responder.rb
76
48
  - lib/husky/version.rb
77
49
  - lib/tasks/husky_tasks.rake
78
- - test/dummy/README.rdoc
79
- - test/dummy/Rakefile
80
- - test/dummy/app/assets/javascripts/application.js
81
- - test/dummy/app/assets/stylesheets/application.css
82
- - test/dummy/app/controllers/application_controller.rb
83
- - test/dummy/app/controllers/home_controller.rb
84
- - test/dummy/app/helpers/application_helper.rb
85
- - test/dummy/app/interactors/chase_car.rb
86
- - test/dummy/app/responders/home_responder.rb
87
- - test/dummy/app/views/home/index.html.erb
88
- - test/dummy/app/views/layouts/application.html.erb
89
- - test/dummy/bin/bundle
90
- - test/dummy/bin/rails
91
- - test/dummy/bin/rake
92
- - test/dummy/bin/setup
93
- - test/dummy/config.ru
94
- - test/dummy/config/application.rb
95
- - test/dummy/config/boot.rb
96
- - test/dummy/config/database.yml
97
- - test/dummy/config/environment.rb
98
- - test/dummy/config/environments/development.rb
99
- - test/dummy/config/environments/production.rb
100
- - test/dummy/config/environments/test.rb
101
- - test/dummy/config/initializers/assets.rb
102
- - test/dummy/config/initializers/backtrace_silencers.rb
103
- - test/dummy/config/initializers/cookies_serializer.rb
104
- - test/dummy/config/initializers/filter_parameter_logging.rb
105
- - test/dummy/config/initializers/inflections.rb
106
- - test/dummy/config/initializers/mime_types.rb
107
- - test/dummy/config/initializers/session_store.rb
108
- - test/dummy/config/initializers/wrap_parameters.rb
109
- - test/dummy/config/locales/en.yml
110
- - test/dummy/config/routes.rb
111
- - test/dummy/config/secrets.yml
112
- - test/dummy/db/development.sqlite3
113
- - test/dummy/db/test.sqlite3
114
- - test/dummy/log/development.log
115
- - test/dummy/log/test.log
116
- - test/dummy/public/404.html
117
- - test/dummy/public/422.html
118
- - test/dummy/public/500.html
119
- - test/dummy/public/favicon.ico
120
- - test/dummy/tmp/cache/assets/sprockets/v3.0/5JX-TnheARWAztdKP_GS69Hw1XyBxr5gPu7HJ_6uZgU.cache
121
- - test/dummy/tmp/cache/assets/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
122
- - test/dummy/tmp/cache/assets/sprockets/v3.0/9gFAVdHsqApiIACBFnEf3lw-fsVPY0xHN82zhJs9ptk.cache
123
- - test/dummy/tmp/cache/assets/sprockets/v3.0/CDYnWyEvApHh09WPfT_a-Wsa45MyxOmN1_Q9V2RJn9Y.cache
124
- - test/dummy/tmp/cache/assets/sprockets/v3.0/CL3V250QywcD5wmH51ss-M_HEdfZSiVU2Zi1Law5vLo.cache
125
- - test/dummy/tmp/cache/assets/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
126
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ElO0ViNEDMzLRC-5-_x3Ms43MCJ5JIvY2NYdXIYP88U.cache
127
- - test/dummy/tmp/cache/assets/sprockets/v3.0/FEzoeJt710sMJxKQnPW7Gh-y_0ITWNqGAdznwVj3Ko4.cache
128
- - test/dummy/tmp/cache/assets/sprockets/v3.0/FzaRj01aoQQxUkEDmFY9Avgspwoq1KXnjYPzuOeM6zg.cache
129
- - test/dummy/tmp/cache/assets/sprockets/v3.0/KesskQmvJRXrgqcBoEq4W7yo4IWGw9ZiIjF7v8OhfWQ.cache
130
- - test/dummy/tmp/cache/assets/sprockets/v3.0/NyBozH65gB_aYbb_E-OhrK85jZbWeoTvHZ5NhXClHcM.cache
131
- - test/dummy/tmp/cache/assets/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
132
- - test/dummy/tmp/cache/assets/sprockets/v3.0/OsvZxm_uy8K2Y-m6UvtgGcWEA_TUNmDnrizLHAOEn-k.cache
133
- - test/dummy/tmp/cache/assets/sprockets/v3.0/bQgEaLKf5lAkKW-vr3cr__DvkD0mORgTm9Gc62eQMdA.cache
134
- - test/dummy/tmp/cache/assets/sprockets/v3.0/dXJcA-RxYfcWXkhu7YRvB1wQvmX5TjOK2jR6JlW_tRU.cache
135
- - test/dummy/tmp/cache/assets/sprockets/v3.0/fVbdSBvrir4z6e5nzQMZ_oSnKhLsz6ifwSrAwrOG0bo.cache
136
- - test/dummy/tmp/cache/assets/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
137
- - test/dummy/tmp/cache/assets/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
138
- - test/dummy/tmp/cache/assets/sprockets/v3.0/mmknVER7cvx_3WxZK7qX7E52e1jdAa4A5Po7m0M2e50.cache
139
- - test/dummy/tmp/cache/assets/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
140
- - test/dummy/tmp/cache/assets/sprockets/v3.0/rCJuFBH8Fov8dpwePE7ii_GkEiWZmYCXPNwE7hXfDHk.cache
141
- - test/dummy/tmp/cache/assets/sprockets/v3.0/s_EnWD5m6LCrz5h5n5JvgDrju2NSa-v2JM93NSvIf2I.cache
142
- - test/husky_test.rb
143
- - test/integration/controller_to_responder_test.rb
144
- - test/test_helper.rb
145
- - test/unit/pass_along_test.rb
146
50
  homepage: http://www.huskyrb.com
147
51
  licenses:
148
52
  - MIT
@@ -167,72 +71,4 @@ rubygems_version: 2.4.8
167
71
  signing_key:
168
72
  specification_version: 4
169
73
  summary: For when your app starts to get a little big.
170
- test_files:
171
- - test/dummy/app/assets/javascripts/application.js
172
- - test/dummy/app/assets/stylesheets/application.css
173
- - test/dummy/app/controllers/application_controller.rb
174
- - test/dummy/app/controllers/home_controller.rb
175
- - test/dummy/app/helpers/application_helper.rb
176
- - test/dummy/app/interactors/chase_car.rb
177
- - test/dummy/app/responders/home_responder.rb
178
- - test/dummy/app/views/home/index.html.erb
179
- - test/dummy/app/views/layouts/application.html.erb
180
- - test/dummy/bin/bundle
181
- - test/dummy/bin/rails
182
- - test/dummy/bin/rake
183
- - test/dummy/bin/setup
184
- - test/dummy/config/application.rb
185
- - test/dummy/config/boot.rb
186
- - test/dummy/config/database.yml
187
- - test/dummy/config/environment.rb
188
- - test/dummy/config/environments/development.rb
189
- - test/dummy/config/environments/production.rb
190
- - test/dummy/config/environments/test.rb
191
- - test/dummy/config/initializers/assets.rb
192
- - test/dummy/config/initializers/backtrace_silencers.rb
193
- - test/dummy/config/initializers/cookies_serializer.rb
194
- - test/dummy/config/initializers/filter_parameter_logging.rb
195
- - test/dummy/config/initializers/inflections.rb
196
- - test/dummy/config/initializers/mime_types.rb
197
- - test/dummy/config/initializers/session_store.rb
198
- - test/dummy/config/initializers/wrap_parameters.rb
199
- - test/dummy/config/locales/en.yml
200
- - test/dummy/config/routes.rb
201
- - test/dummy/config/secrets.yml
202
- - test/dummy/config.ru
203
- - test/dummy/db/development.sqlite3
204
- - test/dummy/db/test.sqlite3
205
- - test/dummy/log/development.log
206
- - test/dummy/log/test.log
207
- - test/dummy/public/404.html
208
- - test/dummy/public/422.html
209
- - test/dummy/public/500.html
210
- - test/dummy/public/favicon.ico
211
- - test/dummy/Rakefile
212
- - test/dummy/README.rdoc
213
- - test/dummy/tmp/cache/assets/sprockets/v3.0/5JX-TnheARWAztdKP_GS69Hw1XyBxr5gPu7HJ_6uZgU.cache
214
- - test/dummy/tmp/cache/assets/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
215
- - test/dummy/tmp/cache/assets/sprockets/v3.0/9gFAVdHsqApiIACBFnEf3lw-fsVPY0xHN82zhJs9ptk.cache
216
- - test/dummy/tmp/cache/assets/sprockets/v3.0/bQgEaLKf5lAkKW-vr3cr__DvkD0mORgTm9Gc62eQMdA.cache
217
- - test/dummy/tmp/cache/assets/sprockets/v3.0/CDYnWyEvApHh09WPfT_a-Wsa45MyxOmN1_Q9V2RJn9Y.cache
218
- - test/dummy/tmp/cache/assets/sprockets/v3.0/CL3V250QywcD5wmH51ss-M_HEdfZSiVU2Zi1Law5vLo.cache
219
- - test/dummy/tmp/cache/assets/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
220
- - test/dummy/tmp/cache/assets/sprockets/v3.0/dXJcA-RxYfcWXkhu7YRvB1wQvmX5TjOK2jR6JlW_tRU.cache
221
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ElO0ViNEDMzLRC-5-_x3Ms43MCJ5JIvY2NYdXIYP88U.cache
222
- - test/dummy/tmp/cache/assets/sprockets/v3.0/FEzoeJt710sMJxKQnPW7Gh-y_0ITWNqGAdznwVj3Ko4.cache
223
- - test/dummy/tmp/cache/assets/sprockets/v3.0/fVbdSBvrir4z6e5nzQMZ_oSnKhLsz6ifwSrAwrOG0bo.cache
224
- - test/dummy/tmp/cache/assets/sprockets/v3.0/FzaRj01aoQQxUkEDmFY9Avgspwoq1KXnjYPzuOeM6zg.cache
225
- - test/dummy/tmp/cache/assets/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
226
- - test/dummy/tmp/cache/assets/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
227
- - test/dummy/tmp/cache/assets/sprockets/v3.0/KesskQmvJRXrgqcBoEq4W7yo4IWGw9ZiIjF7v8OhfWQ.cache
228
- - test/dummy/tmp/cache/assets/sprockets/v3.0/mmknVER7cvx_3WxZK7qX7E52e1jdAa4A5Po7m0M2e50.cache
229
- - test/dummy/tmp/cache/assets/sprockets/v3.0/NyBozH65gB_aYbb_E-OhrK85jZbWeoTvHZ5NhXClHcM.cache
230
- - test/dummy/tmp/cache/assets/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
231
- - test/dummy/tmp/cache/assets/sprockets/v3.0/OsvZxm_uy8K2Y-m6UvtgGcWEA_TUNmDnrizLHAOEn-k.cache
232
- - test/dummy/tmp/cache/assets/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
233
- - test/dummy/tmp/cache/assets/sprockets/v3.0/rCJuFBH8Fov8dpwePE7ii_GkEiWZmYCXPNwE7hXfDHk.cache
234
- - test/dummy/tmp/cache/assets/sprockets/v3.0/s_EnWD5m6LCrz5h5n5JvgDrju2NSa-v2JM93NSvIf2I.cache
235
- - test/husky_test.rb
236
- - test/integration/controller_to_responder_test.rb
237
- - test/test_helper.rb
238
- - test/unit/pass_along_test.rb
74
+ test_files: []
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
@@ -1,13 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require_tree .
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,6 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
-
6
- end
@@ -1,9 +0,0 @@
1
- class HomeController < ApplicationController
2
-
3
- def index
4
- chase = ChaseCar.new(params[:car])
5
- listen_to chase
6
- chase.run
7
- end
8
-
9
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,13 +0,0 @@
1
- class ChaseCar < Husky::Interactor
2
-
3
- attr_accessor :car
4
-
5
- def initialize(car = "Honda")
6
- @car = car
7
- end
8
-
9
- def run
10
- broadcast(:chase_succeeded_for, car)
11
- end
12
-
13
- end
@@ -1,7 +0,0 @@
1
- class HomeResponder < Husky::Responder
2
-
3
- def chase_succeeded_for(car)
4
- @car = car
5
- end
6
-
7
- end
@@ -1 +0,0 @@
1
- <h1>Chase successful for <%= @car %></h1>
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'pathname'
3
-
4
- # path to your application root.
5
- APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
-
7
- Dir.chdir APP_ROOT do
8
- # This script is a starting point to setup your application.
9
- # Add necessary setup steps to this file:
10
-
11
- puts "== Installing dependencies =="
12
- system "gem install bundler --conservative"
13
- system "bundle check || bundle install"
14
-
15
- # puts "\n== Copying sample files =="
16
- # unless File.exist?("config/database.yml")
17
- # system "cp config/database.yml.sample config/database.yml"
18
- # end
19
-
20
- puts "\n== Preparing database =="
21
- system "bin/rake db:setup"
22
-
23
- puts "\n== Removing old logs and tempfiles =="
24
- system "rm -f log/*"
25
- system "rm -rf tmp/cache"
26
-
27
- puts "\n== Restarting application server =="
28
- system "touch tmp/restart.txt"
29
- end