troo 0.0.7 → 0.0.8
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.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.rubocop.yml +2 -0
- data/Guardfile +3 -1
- data/Rakefile +7 -0
- data/bin/troo +3 -8
- data/config/.gitkeep +0 -0
- data/config/cucumber.yml +8 -0
- data/features/add/board.feature +26 -0
- data/features/add/card.feature +34 -0
- data/features/add/comment.feature +21 -0
- data/features/add/list.feature +24 -0
- data/features/cleanup.feature +13 -0
- data/features/default/board.feature +21 -0
- data/features/default/card.feature +21 -0
- data/features/default/list.feature +21 -0
- data/features/refresh/all.feature +7 -0
- data/features/refresh/board.feature +26 -0
- data/features/refresh/card.feature +27 -0
- data/features/refresh/list.feature +27 -0
- data/features/show/board.feature +32 -0
- data/features/show/card.feature +62 -0
- data/features/show/comment.feature +39 -0
- data/features/show/list.feature +37 -0
- data/features/status.feature +46 -1
- data/features/step_definitions/fabrication_steps.rb +34 -0
- data/features/step_definitions/troo_steps.rb +16 -0
- data/features/support/env.rb +22 -24
- data/features/troo.feature +31 -1
- data/lib/troo/actions/create_board.rb +10 -7
- data/lib/troo/actions/create_card.rb +5 -4
- data/lib/troo/actions/create_comment.rb +15 -13
- data/lib/troo/actions/create_list.rb +5 -4
- data/lib/troo/actions/move_card.rb +4 -3
- data/lib/troo/{external/board_adaptor.rb → adaptors/board.rb} +3 -14
- data/lib/troo/{external/card_adaptor.rb → adaptors/card.rb} +4 -15
- data/lib/troo/{external/comment_adaptor.rb → adaptors/comment.rb} +6 -17
- data/lib/troo/{external/list_adaptor.rb → adaptors/list.rb} +3 -14
- data/lib/troo/{external/member_adaptor.rb → adaptors/member.rb} +3 -14
- data/lib/troo/adaptors/resource.rb +17 -0
- data/lib/troo/cli/add.rb +53 -0
- data/lib/troo/cli/default.rb +25 -0
- data/lib/troo/cli/main.rb +46 -0
- data/lib/troo/cli/refresh.rb +31 -0
- data/lib/troo/cli/show.rb +41 -0
- data/lib/troo/cli/thor_fixes.rb +13 -0
- data/lib/troo/commands/add/board.rb +26 -0
- data/lib/troo/commands/add/card.rb +33 -0
- data/lib/troo/commands/add/comment.rb +33 -0
- data/lib/troo/commands/add/list.rb +33 -0
- data/lib/troo/commands/add/resource.rb +21 -0
- data/lib/troo/commands/commands.rb +28 -0
- data/lib/troo/commands/default/board.rb +25 -0
- data/lib/troo/commands/default/card.rb +25 -0
- data/lib/troo/commands/default/list.rb +25 -0
- data/lib/troo/commands/default/resource.rb +26 -0
- data/lib/troo/commands/refresh/all.rb +41 -0
- data/lib/troo/commands/refresh/board.rb +28 -0
- data/lib/troo/commands/refresh/card.rb +29 -0
- data/lib/troo/commands/refresh/list.rb +29 -0
- data/lib/troo/commands/refresh/resource.rb +42 -0
- data/lib/troo/commands/show/board.rb +13 -0
- data/lib/troo/commands/show/boards.rb +35 -0
- data/lib/troo/commands/show/card.rb +13 -0
- data/lib/troo/commands/show/comments.rb +21 -0
- data/lib/troo/commands/show/list.rb +13 -0
- data/lib/troo/commands/show/resource.rb +41 -0
- data/lib/troo/commands/status/board.rb +30 -0
- data/lib/troo/commands/status/card.rb +30 -0
- data/lib/troo/commands/status/list.rb +30 -0
- data/lib/troo/commands/status/resource.rb +34 -0
- data/lib/troo/decorators/board.rb +66 -0
- data/lib/troo/decorators/card.rb +105 -0
- data/lib/troo/decorators/comment.rb +36 -0
- data/lib/troo/decorators/list.rb +60 -0
- data/lib/troo/decorators/member.rb +28 -0
- data/lib/troo/external/board.rb +14 -26
- data/lib/troo/external/card.rb +2 -19
- data/lib/troo/external/comment.rb +5 -23
- data/lib/troo/external/list.rb +2 -20
- data/lib/troo/external/member.rb +2 -20
- data/lib/troo/external/resource.rb +21 -6
- data/lib/troo/helpers/command_helpers.rb +37 -0
- data/lib/troo/{display → helpers}/decorator_helpers.rb +23 -17
- data/lib/troo/{models → helpers}/model_helpers.rb +1 -1
- data/lib/troo/models/behaviours/set_default.rb +49 -0
- data/lib/troo/models/board.rb +10 -7
- data/lib/troo/models/card.rb +33 -15
- data/lib/troo/models/comment.rb +8 -5
- data/lib/troo/models/list.rb +10 -6
- data/lib/troo/models/member.rb +7 -4
- data/lib/troo/models/persistence/board.rb +19 -0
- data/lib/troo/models/persistence/card.rb +19 -0
- data/lib/troo/models/persistence/comment.rb +19 -0
- data/lib/troo/models/persistence/list.rb +19 -0
- data/lib/troo/models/persistence/member.rb +19 -0
- data/lib/troo/models/persistence/resource.rb +50 -0
- data/lib/troo/models/refresh.rb +1 -1
- data/lib/troo/models/remote/comment.rb +21 -0
- data/lib/troo/models/remote/resource.rb +25 -0
- data/lib/troo/models/retrieval/board.rb +29 -0
- data/lib/troo/models/retrieval/card.rb +33 -0
- data/lib/troo/models/retrieval/comment.rb +25 -0
- data/lib/troo/models/retrieval/list.rb +29 -0
- data/lib/troo/models/retrieval/member.rb +25 -0
- data/lib/troo/models/retrieval/resource.rb +36 -0
- data/lib/troo/presentation/sentence.rb +57 -0
- data/lib/troo/presentation/template.rb +4 -3
- data/lib/troo/presenters/board.rb +81 -0
- data/lib/troo/presenters/card.rb +30 -0
- data/lib/troo/presenters/comment.rb +38 -0
- data/lib/troo/presenters/list.rb +44 -0
- data/lib/troo/presenters/member.rb +32 -0
- data/lib/troo/troo.rb +79 -65
- data/lib/troo/version.rb +1 -2
- data/lib/troo.rb +36 -8
- data/test/lib/troo/actions/create_board_test.rb +34 -15
- data/test/lib/troo/actions/create_card_test.rb +35 -18
- data/test/lib/troo/actions/create_comment_test.rb +38 -16
- data/test/lib/troo/actions/create_list_test.rb +31 -15
- data/test/lib/troo/actions/move_card_test.rb +23 -15
- data/test/lib/troo/adaptors/board_test.rb +38 -0
- data/test/lib/troo/adaptors/card_test.rb +49 -0
- data/test/lib/troo/adaptors/comment_test.rb +41 -0
- data/test/lib/troo/adaptors/list_test.rb +38 -0
- data/test/lib/troo/adaptors/member_test.rb +44 -0
- data/test/lib/troo/commands/add/board_test.rb +43 -0
- data/test/lib/troo/commands/add/card_test.rb +44 -0
- data/test/lib/troo/commands/add/comment_test.rb +44 -0
- data/test/lib/troo/commands/add/list_test.rb +44 -0
- data/test/lib/troo/commands/add/resource_test.rb +25 -0
- data/test/lib/troo/commands/default/board_test.rb +37 -0
- data/test/lib/troo/commands/default/card_test.rb +37 -0
- data/test/lib/troo/commands/default/list_test.rb +37 -0
- data/test/lib/troo/commands/default/resource_test.rb +20 -0
- data/test/lib/troo/commands/refresh/all_test.rb +39 -0
- data/test/lib/troo/commands/refresh/board_test.rb +62 -0
- data/test/lib/troo/commands/refresh/card_test.rb +62 -0
- data/test/lib/troo/commands/refresh/list_test.rb +62 -0
- data/test/lib/troo/commands/refresh/resource_test.rb +20 -0
- data/test/lib/troo/commands/show/board_test.rb +65 -0
- data/test/lib/troo/commands/show/boards_test.rb +36 -0
- data/test/lib/troo/commands/show/card_test.rb +64 -0
- data/test/lib/troo/commands/show/comments_test.rb +64 -0
- data/test/lib/troo/commands/show/list_test.rb +64 -0
- data/test/lib/troo/commands/show/resource_test.rb +25 -0
- data/test/lib/troo/commands/status/board_test.rb +43 -0
- data/test/lib/troo/commands/status/card_test.rb +43 -0
- data/test/lib/troo/commands/status/list_test.rb +43 -0
- data/test/lib/troo/commands/status/resource_test.rb +19 -0
- data/test/lib/troo/decorators/board_test.rb +129 -0
- data/test/lib/troo/decorators/card_test.rb +237 -0
- data/test/lib/troo/decorators/comment_test.rb +74 -0
- data/test/lib/troo/decorators/list_test.rb +102 -0
- data/test/lib/troo/decorators/member_test.rb +50 -0
- data/test/lib/troo/external/board_test.rb +74 -41
- data/test/lib/troo/external/card_test.rb +49 -37
- data/test/lib/troo/external/comment_test.rb +43 -33
- data/test/lib/troo/external/list_test.rb +37 -30
- data/test/lib/troo/external/member_test.rb +37 -30
- data/test/lib/troo/external/resource_test.rb +18 -1
- data/test/lib/troo/helpers/command_helpers_test.rb +82 -0
- data/test/lib/troo/{display → helpers}/decorator_helpers_test.rb +6 -6
- data/test/lib/troo/helpers/model_helpers_test.rb +103 -0
- data/test/lib/troo/models/behaviours/set_default_test.rb +54 -0
- data/test/lib/troo/models/board_test.rb +13 -14
- data/test/lib/troo/models/card_test.rb +64 -33
- data/test/lib/troo/models/comment_test.rb +18 -19
- data/test/lib/troo/models/list_test.rb +15 -15
- data/test/lib/troo/models/member_test.rb +18 -18
- data/test/lib/troo/models/persistence/board_test.rb +62 -0
- data/test/lib/troo/models/persistence/card_test.rb +61 -0
- data/test/lib/troo/models/persistence/comment_test.rb +69 -0
- data/test/lib/troo/models/persistence/list_test.rb +60 -0
- data/test/lib/troo/models/persistence/member_test.rb +60 -0
- data/test/lib/troo/models/refresh_test.rb +12 -11
- data/test/lib/troo/models/remote/comment_test.rb +56 -0
- data/test/lib/troo/models/remote/resource_test.rb +26 -0
- data/test/lib/troo/models/retrieval/board_test.rb +93 -0
- data/test/lib/troo/models/retrieval/card_test.rb +101 -0
- data/test/lib/troo/models/retrieval/comment_test.rb +46 -0
- data/test/lib/troo/models/retrieval/list_test.rb +93 -0
- data/test/lib/troo/models/retrieval/member_test.rb +58 -0
- data/test/lib/troo/presentation/sentence_test.rb +57 -0
- data/test/lib/troo/presentation/template_test.rb +17 -16
- data/test/lib/troo/presenters/board_test.rb +79 -0
- data/test/lib/troo/presenters/card_test.rb +41 -0
- data/test/lib/troo/presenters/comment_test.rb +49 -0
- data/test/lib/troo/presenters/list_test.rb +50 -0
- data/test/lib/troo/presenters/member_test.rb +40 -0
- data/test/support/fabrication.rb +31 -32
- data/test/support/vcr_setup.rb +7 -9
- data/test/system_test.sh +55 -0
- data/test/test_helper.rb +10 -10
- data/troo.gemspec +1 -0
- metadata +232 -134
- data/features/add_board.feature +0 -1
- data/features/add_card.feature +0 -1
- data/features/add_comment.feature +0 -1
- data/features/add_list.feature +0 -1
- data/features/move_card_to_list.feature +0 -1
- data/features/refresh.feature +0 -1
- data/features/set_default.feature +0 -7
- data/features/show_board.feature +0 -1
- data/features/show_boards.feature +0 -1
- data/features/show_card.feature +0 -1
- data/features/show_comments.feature +0 -1
- data/features/show_list.feature +0 -1
- data/features/version.feature +0 -8
- data/lib/troo/actions/refresh_all.rb +0 -79
- data/lib/troo/actions/set_default.rb +0 -46
- data/lib/troo/cli/add_cli.rb +0 -83
- data/lib/troo/cli/cli_helpers.rb +0 -34
- data/lib/troo/cli/default_cli.rb +0 -32
- data/lib/troo/cli/main_cli.rb +0 -132
- data/lib/troo/cli/show_cli.rb +0 -64
- data/lib/troo/display/board_decorator.rb +0 -62
- data/lib/troo/display/board_presenter.rb +0 -71
- data/lib/troo/display/card_decorator.rb +0 -100
- data/lib/troo/display/card_presenter.rb +0 -27
- data/lib/troo/display/comment_decorator.rb +0 -33
- data/lib/troo/display/comment_presenter.rb +0 -31
- data/lib/troo/display/list_decorator.rb +0 -57
- data/lib/troo/display/list_presenter.rb +0 -41
- data/lib/troo/display/member_decorator.rb +0 -25
- data/lib/troo/display/member_presenter.rb +0 -59
- data/lib/troo/models/board_persistence.rb +0 -25
- data/lib/troo/models/board_retrieval.rb +0 -45
- data/lib/troo/models/card_persistence.rb +0 -25
- data/lib/troo/models/card_retrieval.rb +0 -49
- data/lib/troo/models/comment_persistence.rb +0 -25
- data/lib/troo/models/comment_retrieval.rb +0 -32
- data/lib/troo/models/list_persistence.rb +0 -25
- data/lib/troo/models/list_retrieval.rb +0 -45
- data/lib/troo/models/member_persistence.rb +0 -25
- data/lib/troo/models/member_retrieval.rb +0 -36
- data/lib/troo/models/persistence.rb +0 -39
- data/test/lib/troo/actions/refresh_all_test.rb +0 -68
- data/test/lib/troo/actions/set_default_test.rb +0 -44
- data/test/lib/troo/cli/add_cli_test.rb +0 -216
- data/test/lib/troo/cli/cli_helpers_test.rb +0 -24
- data/test/lib/troo/cli/default_cli_test.rb +0 -85
- data/test/lib/troo/cli/main_cli_test.rb +0 -234
- data/test/lib/troo/cli/show_cli_test.rb +0 -251
- data/test/lib/troo/display/board_decorator_test.rb +0 -126
- data/test/lib/troo/display/board_presenter_test.rb +0 -77
- data/test/lib/troo/display/card_decorator_test.rb +0 -213
- data/test/lib/troo/display/card_presenter_test.rb +0 -38
- data/test/lib/troo/display/comment_decorator_test.rb +0 -70
- data/test/lib/troo/display/comment_presenter_test.rb +0 -47
- data/test/lib/troo/display/list_decorator_test.rb +0 -98
- data/test/lib/troo/display/list_presenter_test.rb +0 -48
- data/test/lib/troo/display/member_decorator_test.rb +0 -47
- data/test/lib/troo/display/member_presenter_test.rb +0 -70
- data/test/lib/troo/external/board_adaptor_test.rb +0 -36
- data/test/lib/troo/external/card_adaptor_test.rb +0 -50
- data/test/lib/troo/external/comment_adaptor_test.rb +0 -41
- data/test/lib/troo/external/list_adaptor_test.rb +0 -38
- data/test/lib/troo/external/member_adaptor_test.rb +0 -44
- data/test/lib/troo/models/board_persistence_test.rb +0 -61
- data/test/lib/troo/models/board_retrieval_test.rb +0 -93
- data/test/lib/troo/models/card_persistence_test.rb +0 -60
- data/test/lib/troo/models/card_retrieval_test.rb +0 -101
- data/test/lib/troo/models/comment_persistence_test.rb +0 -65
- data/test/lib/troo/models/comment_retrieval_test.rb +0 -46
- data/test/lib/troo/models/list_persistence_test.rb +0 -60
- data/test/lib/troo/models/list_retrieval_test.rb +0 -93
- data/test/lib/troo/models/member_persistence_test.rb +0 -59
- data/test/lib/troo/models/member_retrieval_test.rb +0 -58
- data/test/lib/troo/models/model_helpers_test.rb +0 -103
- data/test/lib/troo/models/persistence_test.rb +0 -6
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: troo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Laking
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aruba
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 2.2.5
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: guard-cucumber
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: guard-minitest
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -285,6 +299,7 @@ extensions: []
|
|
285
299
|
extra_rdoc_files: []
|
286
300
|
files:
|
287
301
|
- ".gitignore"
|
302
|
+
- ".rubocop.yml"
|
288
303
|
- ".ruby-version"
|
289
304
|
- ".travis.yml"
|
290
305
|
- Gemfile
|
@@ -293,79 +308,115 @@ files:
|
|
293
308
|
- README.md
|
294
309
|
- Rakefile
|
295
310
|
- bin/troo
|
311
|
+
- config/.gitkeep
|
312
|
+
- config/cucumber.yml
|
296
313
|
- configuration.yml.example
|
297
|
-
- features/
|
298
|
-
- features/
|
299
|
-
- features/
|
300
|
-
- features/
|
314
|
+
- features/add/board.feature
|
315
|
+
- features/add/card.feature
|
316
|
+
- features/add/comment.feature
|
317
|
+
- features/add/list.feature
|
301
318
|
- features/cleanup.feature
|
302
|
-
- features/
|
303
|
-
- features/
|
304
|
-
- features/
|
305
|
-
- features/
|
306
|
-
- features/
|
307
|
-
- features/
|
308
|
-
- features/
|
309
|
-
- features/
|
319
|
+
- features/default/board.feature
|
320
|
+
- features/default/card.feature
|
321
|
+
- features/default/list.feature
|
322
|
+
- features/refresh/all.feature
|
323
|
+
- features/refresh/board.feature
|
324
|
+
- features/refresh/card.feature
|
325
|
+
- features/refresh/list.feature
|
326
|
+
- features/show/board.feature
|
327
|
+
- features/show/card.feature
|
328
|
+
- features/show/comment.feature
|
329
|
+
- features/show/list.feature
|
310
330
|
- features/status.feature
|
331
|
+
- features/step_definitions/fabrication_steps.rb
|
311
332
|
- features/step_definitions/troo_steps.rb
|
312
333
|
- features/support/env.rb
|
313
334
|
- features/troo.feature
|
314
|
-
- features/version.feature
|
315
335
|
- lib/troo.rb
|
316
336
|
- lib/troo/actions/create_board.rb
|
317
337
|
- lib/troo/actions/create_card.rb
|
318
338
|
- lib/troo/actions/create_comment.rb
|
319
339
|
- lib/troo/actions/create_list.rb
|
320
340
|
- lib/troo/actions/move_card.rb
|
321
|
-
- lib/troo/
|
322
|
-
- lib/troo/
|
323
|
-
- lib/troo/
|
324
|
-
- lib/troo/
|
325
|
-
- lib/troo/
|
326
|
-
- lib/troo/
|
327
|
-
- lib/troo/cli/
|
328
|
-
- lib/troo/
|
329
|
-
- lib/troo/
|
330
|
-
- lib/troo/
|
331
|
-
- lib/troo/
|
332
|
-
- lib/troo/
|
333
|
-
- lib/troo/
|
334
|
-
- lib/troo/
|
335
|
-
- lib/troo/
|
336
|
-
- lib/troo/
|
337
|
-
- lib/troo/
|
338
|
-
- lib/troo/
|
341
|
+
- lib/troo/adaptors/board.rb
|
342
|
+
- lib/troo/adaptors/card.rb
|
343
|
+
- lib/troo/adaptors/comment.rb
|
344
|
+
- lib/troo/adaptors/list.rb
|
345
|
+
- lib/troo/adaptors/member.rb
|
346
|
+
- lib/troo/adaptors/resource.rb
|
347
|
+
- lib/troo/cli/add.rb
|
348
|
+
- lib/troo/cli/default.rb
|
349
|
+
- lib/troo/cli/main.rb
|
350
|
+
- lib/troo/cli/refresh.rb
|
351
|
+
- lib/troo/cli/show.rb
|
352
|
+
- lib/troo/cli/thor_fixes.rb
|
353
|
+
- lib/troo/commands/add/board.rb
|
354
|
+
- lib/troo/commands/add/card.rb
|
355
|
+
- lib/troo/commands/add/comment.rb
|
356
|
+
- lib/troo/commands/add/list.rb
|
357
|
+
- lib/troo/commands/add/resource.rb
|
358
|
+
- lib/troo/commands/commands.rb
|
359
|
+
- lib/troo/commands/default/board.rb
|
360
|
+
- lib/troo/commands/default/card.rb
|
361
|
+
- lib/troo/commands/default/list.rb
|
362
|
+
- lib/troo/commands/default/resource.rb
|
363
|
+
- lib/troo/commands/refresh/all.rb
|
364
|
+
- lib/troo/commands/refresh/board.rb
|
365
|
+
- lib/troo/commands/refresh/card.rb
|
366
|
+
- lib/troo/commands/refresh/list.rb
|
367
|
+
- lib/troo/commands/refresh/resource.rb
|
368
|
+
- lib/troo/commands/show/board.rb
|
369
|
+
- lib/troo/commands/show/boards.rb
|
370
|
+
- lib/troo/commands/show/card.rb
|
371
|
+
- lib/troo/commands/show/comments.rb
|
372
|
+
- lib/troo/commands/show/list.rb
|
373
|
+
- lib/troo/commands/show/resource.rb
|
374
|
+
- lib/troo/commands/status/board.rb
|
375
|
+
- lib/troo/commands/status/card.rb
|
376
|
+
- lib/troo/commands/status/list.rb
|
377
|
+
- lib/troo/commands/status/resource.rb
|
378
|
+
- lib/troo/decorators/board.rb
|
379
|
+
- lib/troo/decorators/card.rb
|
380
|
+
- lib/troo/decorators/comment.rb
|
381
|
+
- lib/troo/decorators/list.rb
|
382
|
+
- lib/troo/decorators/member.rb
|
339
383
|
- lib/troo/external/board.rb
|
340
|
-
- lib/troo/external/board_adaptor.rb
|
341
384
|
- lib/troo/external/card.rb
|
342
|
-
- lib/troo/external/card_adaptor.rb
|
343
385
|
- lib/troo/external/comment.rb
|
344
|
-
- lib/troo/external/comment_adaptor.rb
|
345
386
|
- lib/troo/external/list.rb
|
346
|
-
- lib/troo/external/list_adaptor.rb
|
347
387
|
- lib/troo/external/member.rb
|
348
|
-
- lib/troo/external/member_adaptor.rb
|
349
388
|
- lib/troo/external/resource.rb
|
389
|
+
- lib/troo/helpers/command_helpers.rb
|
390
|
+
- lib/troo/helpers/decorator_helpers.rb
|
391
|
+
- lib/troo/helpers/model_helpers.rb
|
392
|
+
- lib/troo/models/behaviours/set_default.rb
|
350
393
|
- lib/troo/models/board.rb
|
351
|
-
- lib/troo/models/board_persistence.rb
|
352
|
-
- lib/troo/models/board_retrieval.rb
|
353
394
|
- lib/troo/models/card.rb
|
354
|
-
- lib/troo/models/card_persistence.rb
|
355
|
-
- lib/troo/models/card_retrieval.rb
|
356
395
|
- lib/troo/models/comment.rb
|
357
|
-
- lib/troo/models/comment_persistence.rb
|
358
|
-
- lib/troo/models/comment_retrieval.rb
|
359
396
|
- lib/troo/models/list.rb
|
360
|
-
- lib/troo/models/list_persistence.rb
|
361
|
-
- lib/troo/models/list_retrieval.rb
|
362
397
|
- lib/troo/models/member.rb
|
363
|
-
- lib/troo/models/
|
364
|
-
- lib/troo/models/
|
365
|
-
- lib/troo/models/
|
366
|
-
- lib/troo/models/persistence.rb
|
398
|
+
- lib/troo/models/persistence/board.rb
|
399
|
+
- lib/troo/models/persistence/card.rb
|
400
|
+
- lib/troo/models/persistence/comment.rb
|
401
|
+
- lib/troo/models/persistence/list.rb
|
402
|
+
- lib/troo/models/persistence/member.rb
|
403
|
+
- lib/troo/models/persistence/resource.rb
|
367
404
|
- lib/troo/models/refresh.rb
|
405
|
+
- lib/troo/models/remote/comment.rb
|
406
|
+
- lib/troo/models/remote/resource.rb
|
407
|
+
- lib/troo/models/retrieval/board.rb
|
408
|
+
- lib/troo/models/retrieval/card.rb
|
409
|
+
- lib/troo/models/retrieval/comment.rb
|
410
|
+
- lib/troo/models/retrieval/list.rb
|
411
|
+
- lib/troo/models/retrieval/member.rb
|
412
|
+
- lib/troo/models/retrieval/resource.rb
|
413
|
+
- lib/troo/presentation/sentence.rb
|
368
414
|
- lib/troo/presentation/template.rb
|
415
|
+
- lib/troo/presenters/board.rb
|
416
|
+
- lib/troo/presenters/card.rb
|
417
|
+
- lib/troo/presenters/comment.rb
|
418
|
+
- lib/troo/presenters/list.rb
|
419
|
+
- lib/troo/presenters/member.rb
|
369
420
|
- lib/troo/troo.rb
|
370
421
|
- lib/troo/version.rb
|
371
422
|
- lib/troo/views/card.erb
|
@@ -393,57 +444,79 @@ files:
|
|
393
444
|
- test/lib/troo/actions/create_comment_test.rb
|
394
445
|
- test/lib/troo/actions/create_list_test.rb
|
395
446
|
- test/lib/troo/actions/move_card_test.rb
|
396
|
-
- test/lib/troo/
|
397
|
-
- test/lib/troo/
|
398
|
-
- test/lib/troo/
|
399
|
-
- test/lib/troo/
|
400
|
-
- test/lib/troo/
|
401
|
-
- test/lib/troo/
|
402
|
-
- test/lib/troo/
|
403
|
-
- test/lib/troo/
|
404
|
-
- test/lib/troo/
|
405
|
-
- test/lib/troo/
|
406
|
-
- test/lib/troo/
|
407
|
-
- test/lib/troo/
|
408
|
-
- test/lib/troo/
|
409
|
-
- test/lib/troo/
|
410
|
-
- test/lib/troo/
|
411
|
-
- test/lib/troo/
|
412
|
-
- test/lib/troo/
|
413
|
-
- test/lib/troo/
|
414
|
-
- test/lib/troo/
|
447
|
+
- test/lib/troo/adaptors/board_test.rb
|
448
|
+
- test/lib/troo/adaptors/card_test.rb
|
449
|
+
- test/lib/troo/adaptors/comment_test.rb
|
450
|
+
- test/lib/troo/adaptors/list_test.rb
|
451
|
+
- test/lib/troo/adaptors/member_test.rb
|
452
|
+
- test/lib/troo/commands/add/board_test.rb
|
453
|
+
- test/lib/troo/commands/add/card_test.rb
|
454
|
+
- test/lib/troo/commands/add/comment_test.rb
|
455
|
+
- test/lib/troo/commands/add/list_test.rb
|
456
|
+
- test/lib/troo/commands/add/resource_test.rb
|
457
|
+
- test/lib/troo/commands/default/board_test.rb
|
458
|
+
- test/lib/troo/commands/default/card_test.rb
|
459
|
+
- test/lib/troo/commands/default/list_test.rb
|
460
|
+
- test/lib/troo/commands/default/resource_test.rb
|
461
|
+
- test/lib/troo/commands/refresh/all_test.rb
|
462
|
+
- test/lib/troo/commands/refresh/board_test.rb
|
463
|
+
- test/lib/troo/commands/refresh/card_test.rb
|
464
|
+
- test/lib/troo/commands/refresh/list_test.rb
|
465
|
+
- test/lib/troo/commands/refresh/resource_test.rb
|
466
|
+
- test/lib/troo/commands/show/board_test.rb
|
467
|
+
- test/lib/troo/commands/show/boards_test.rb
|
468
|
+
- test/lib/troo/commands/show/card_test.rb
|
469
|
+
- test/lib/troo/commands/show/comments_test.rb
|
470
|
+
- test/lib/troo/commands/show/list_test.rb
|
471
|
+
- test/lib/troo/commands/show/resource_test.rb
|
472
|
+
- test/lib/troo/commands/status/board_test.rb
|
473
|
+
- test/lib/troo/commands/status/card_test.rb
|
474
|
+
- test/lib/troo/commands/status/list_test.rb
|
475
|
+
- test/lib/troo/commands/status/resource_test.rb
|
476
|
+
- test/lib/troo/decorators/board_test.rb
|
477
|
+
- test/lib/troo/decorators/card_test.rb
|
478
|
+
- test/lib/troo/decorators/comment_test.rb
|
479
|
+
- test/lib/troo/decorators/list_test.rb
|
480
|
+
- test/lib/troo/decorators/member_test.rb
|
415
481
|
- test/lib/troo/external/board_test.rb
|
416
|
-
- test/lib/troo/external/card_adaptor_test.rb
|
417
482
|
- test/lib/troo/external/card_test.rb
|
418
|
-
- test/lib/troo/external/comment_adaptor_test.rb
|
419
483
|
- test/lib/troo/external/comment_test.rb
|
420
|
-
- test/lib/troo/external/list_adaptor_test.rb
|
421
484
|
- test/lib/troo/external/list_test.rb
|
422
|
-
- test/lib/troo/external/member_adaptor_test.rb
|
423
485
|
- test/lib/troo/external/member_test.rb
|
424
486
|
- test/lib/troo/external/resource_test.rb
|
425
|
-
- test/lib/troo/
|
426
|
-
- test/lib/troo/
|
487
|
+
- test/lib/troo/helpers/command_helpers_test.rb
|
488
|
+
- test/lib/troo/helpers/decorator_helpers_test.rb
|
489
|
+
- test/lib/troo/helpers/model_helpers_test.rb
|
490
|
+
- test/lib/troo/models/behaviours/set_default_test.rb
|
427
491
|
- test/lib/troo/models/board_test.rb
|
428
|
-
- test/lib/troo/models/card_persistence_test.rb
|
429
|
-
- test/lib/troo/models/card_retrieval_test.rb
|
430
492
|
- test/lib/troo/models/card_test.rb
|
431
|
-
- test/lib/troo/models/comment_persistence_test.rb
|
432
|
-
- test/lib/troo/models/comment_retrieval_test.rb
|
433
493
|
- test/lib/troo/models/comment_test.rb
|
434
|
-
- test/lib/troo/models/list_persistence_test.rb
|
435
|
-
- test/lib/troo/models/list_retrieval_test.rb
|
436
494
|
- test/lib/troo/models/list_test.rb
|
437
|
-
- test/lib/troo/models/member_persistence_test.rb
|
438
|
-
- test/lib/troo/models/member_retrieval_test.rb
|
439
495
|
- test/lib/troo/models/member_test.rb
|
440
|
-
- test/lib/troo/models/
|
441
|
-
- test/lib/troo/models/
|
496
|
+
- test/lib/troo/models/persistence/board_test.rb
|
497
|
+
- test/lib/troo/models/persistence/card_test.rb
|
498
|
+
- test/lib/troo/models/persistence/comment_test.rb
|
499
|
+
- test/lib/troo/models/persistence/list_test.rb
|
500
|
+
- test/lib/troo/models/persistence/member_test.rb
|
442
501
|
- test/lib/troo/models/refresh_test.rb
|
502
|
+
- test/lib/troo/models/remote/comment_test.rb
|
503
|
+
- test/lib/troo/models/remote/resource_test.rb
|
504
|
+
- test/lib/troo/models/retrieval/board_test.rb
|
505
|
+
- test/lib/troo/models/retrieval/card_test.rb
|
506
|
+
- test/lib/troo/models/retrieval/comment_test.rb
|
507
|
+
- test/lib/troo/models/retrieval/list_test.rb
|
508
|
+
- test/lib/troo/models/retrieval/member_test.rb
|
509
|
+
- test/lib/troo/presentation/sentence_test.rb
|
443
510
|
- test/lib/troo/presentation/template_test.rb
|
511
|
+
- test/lib/troo/presenters/board_test.rb
|
512
|
+
- test/lib/troo/presenters/card_test.rb
|
513
|
+
- test/lib/troo/presenters/comment_test.rb
|
514
|
+
- test/lib/troo/presenters/list_test.rb
|
515
|
+
- test/lib/troo/presenters/member_test.rb
|
444
516
|
- test/support/fabrication.rb
|
445
517
|
- test/support/template.erb
|
446
518
|
- test/support/vcr_setup.rb
|
519
|
+
- test/system_test.sh
|
447
520
|
- test/test_helper.rb
|
448
521
|
- troo.gemspec
|
449
522
|
homepage: http://gavinlaking.name
|
@@ -466,29 +539,32 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
466
539
|
version: '0'
|
467
540
|
requirements: []
|
468
541
|
rubyforge_project:
|
469
|
-
rubygems_version: 2.2.
|
542
|
+
rubygems_version: 2.2.0
|
470
543
|
signing_key:
|
471
544
|
specification_version: 4
|
472
545
|
summary: CLI interface for Trello.
|
473
546
|
test_files:
|
474
|
-
- features/
|
475
|
-
- features/
|
476
|
-
- features/
|
477
|
-
- features/
|
547
|
+
- features/add/board.feature
|
548
|
+
- features/add/card.feature
|
549
|
+
- features/add/comment.feature
|
550
|
+
- features/add/list.feature
|
478
551
|
- features/cleanup.feature
|
479
|
-
- features/
|
480
|
-
- features/
|
481
|
-
- features/
|
482
|
-
- features/
|
483
|
-
- features/
|
484
|
-
- features/
|
485
|
-
- features/
|
486
|
-
- features/
|
552
|
+
- features/default/board.feature
|
553
|
+
- features/default/card.feature
|
554
|
+
- features/default/list.feature
|
555
|
+
- features/refresh/all.feature
|
556
|
+
- features/refresh/board.feature
|
557
|
+
- features/refresh/card.feature
|
558
|
+
- features/refresh/list.feature
|
559
|
+
- features/show/board.feature
|
560
|
+
- features/show/card.feature
|
561
|
+
- features/show/comment.feature
|
562
|
+
- features/show/list.feature
|
487
563
|
- features/status.feature
|
564
|
+
- features/step_definitions/fabrication_steps.rb
|
488
565
|
- features/step_definitions/troo_steps.rb
|
489
566
|
- features/support/env.rb
|
490
567
|
- features/troo.feature
|
491
|
-
- features/version.feature
|
492
568
|
- test/cassettes/board_by_id.yml
|
493
569
|
- test/cassettes/boards_all.yml
|
494
570
|
- test/cassettes/card_by_card_id.yml
|
@@ -511,55 +587,77 @@ test_files:
|
|
511
587
|
- test/lib/troo/actions/create_comment_test.rb
|
512
588
|
- test/lib/troo/actions/create_list_test.rb
|
513
589
|
- test/lib/troo/actions/move_card_test.rb
|
514
|
-
- test/lib/troo/
|
515
|
-
- test/lib/troo/
|
516
|
-
- test/lib/troo/
|
517
|
-
- test/lib/troo/
|
518
|
-
- test/lib/troo/
|
519
|
-
- test/lib/troo/
|
520
|
-
- test/lib/troo/
|
521
|
-
- test/lib/troo/
|
522
|
-
- test/lib/troo/
|
523
|
-
- test/lib/troo/
|
524
|
-
- test/lib/troo/
|
525
|
-
- test/lib/troo/
|
526
|
-
- test/lib/troo/
|
527
|
-
- test/lib/troo/
|
528
|
-
- test/lib/troo/
|
529
|
-
- test/lib/troo/
|
530
|
-
- test/lib/troo/
|
531
|
-
- test/lib/troo/
|
532
|
-
- test/lib/troo/
|
590
|
+
- test/lib/troo/adaptors/board_test.rb
|
591
|
+
- test/lib/troo/adaptors/card_test.rb
|
592
|
+
- test/lib/troo/adaptors/comment_test.rb
|
593
|
+
- test/lib/troo/adaptors/list_test.rb
|
594
|
+
- test/lib/troo/adaptors/member_test.rb
|
595
|
+
- test/lib/troo/commands/add/board_test.rb
|
596
|
+
- test/lib/troo/commands/add/card_test.rb
|
597
|
+
- test/lib/troo/commands/add/comment_test.rb
|
598
|
+
- test/lib/troo/commands/add/list_test.rb
|
599
|
+
- test/lib/troo/commands/add/resource_test.rb
|
600
|
+
- test/lib/troo/commands/default/board_test.rb
|
601
|
+
- test/lib/troo/commands/default/card_test.rb
|
602
|
+
- test/lib/troo/commands/default/list_test.rb
|
603
|
+
- test/lib/troo/commands/default/resource_test.rb
|
604
|
+
- test/lib/troo/commands/refresh/all_test.rb
|
605
|
+
- test/lib/troo/commands/refresh/board_test.rb
|
606
|
+
- test/lib/troo/commands/refresh/card_test.rb
|
607
|
+
- test/lib/troo/commands/refresh/list_test.rb
|
608
|
+
- test/lib/troo/commands/refresh/resource_test.rb
|
609
|
+
- test/lib/troo/commands/show/board_test.rb
|
610
|
+
- test/lib/troo/commands/show/boards_test.rb
|
611
|
+
- test/lib/troo/commands/show/card_test.rb
|
612
|
+
- test/lib/troo/commands/show/comments_test.rb
|
613
|
+
- test/lib/troo/commands/show/list_test.rb
|
614
|
+
- test/lib/troo/commands/show/resource_test.rb
|
615
|
+
- test/lib/troo/commands/status/board_test.rb
|
616
|
+
- test/lib/troo/commands/status/card_test.rb
|
617
|
+
- test/lib/troo/commands/status/list_test.rb
|
618
|
+
- test/lib/troo/commands/status/resource_test.rb
|
619
|
+
- test/lib/troo/decorators/board_test.rb
|
620
|
+
- test/lib/troo/decorators/card_test.rb
|
621
|
+
- test/lib/troo/decorators/comment_test.rb
|
622
|
+
- test/lib/troo/decorators/list_test.rb
|
623
|
+
- test/lib/troo/decorators/member_test.rb
|
533
624
|
- test/lib/troo/external/board_test.rb
|
534
|
-
- test/lib/troo/external/card_adaptor_test.rb
|
535
625
|
- test/lib/troo/external/card_test.rb
|
536
|
-
- test/lib/troo/external/comment_adaptor_test.rb
|
537
626
|
- test/lib/troo/external/comment_test.rb
|
538
|
-
- test/lib/troo/external/list_adaptor_test.rb
|
539
627
|
- test/lib/troo/external/list_test.rb
|
540
|
-
- test/lib/troo/external/member_adaptor_test.rb
|
541
628
|
- test/lib/troo/external/member_test.rb
|
542
629
|
- test/lib/troo/external/resource_test.rb
|
543
|
-
- test/lib/troo/
|
544
|
-
- test/lib/troo/
|
630
|
+
- test/lib/troo/helpers/command_helpers_test.rb
|
631
|
+
- test/lib/troo/helpers/decorator_helpers_test.rb
|
632
|
+
- test/lib/troo/helpers/model_helpers_test.rb
|
633
|
+
- test/lib/troo/models/behaviours/set_default_test.rb
|
545
634
|
- test/lib/troo/models/board_test.rb
|
546
|
-
- test/lib/troo/models/card_persistence_test.rb
|
547
|
-
- test/lib/troo/models/card_retrieval_test.rb
|
548
635
|
- test/lib/troo/models/card_test.rb
|
549
|
-
- test/lib/troo/models/comment_persistence_test.rb
|
550
|
-
- test/lib/troo/models/comment_retrieval_test.rb
|
551
636
|
- test/lib/troo/models/comment_test.rb
|
552
|
-
- test/lib/troo/models/list_persistence_test.rb
|
553
|
-
- test/lib/troo/models/list_retrieval_test.rb
|
554
637
|
- test/lib/troo/models/list_test.rb
|
555
|
-
- test/lib/troo/models/member_persistence_test.rb
|
556
|
-
- test/lib/troo/models/member_retrieval_test.rb
|
557
638
|
- test/lib/troo/models/member_test.rb
|
558
|
-
- test/lib/troo/models/
|
559
|
-
- test/lib/troo/models/
|
639
|
+
- test/lib/troo/models/persistence/board_test.rb
|
640
|
+
- test/lib/troo/models/persistence/card_test.rb
|
641
|
+
- test/lib/troo/models/persistence/comment_test.rb
|
642
|
+
- test/lib/troo/models/persistence/list_test.rb
|
643
|
+
- test/lib/troo/models/persistence/member_test.rb
|
560
644
|
- test/lib/troo/models/refresh_test.rb
|
645
|
+
- test/lib/troo/models/remote/comment_test.rb
|
646
|
+
- test/lib/troo/models/remote/resource_test.rb
|
647
|
+
- test/lib/troo/models/retrieval/board_test.rb
|
648
|
+
- test/lib/troo/models/retrieval/card_test.rb
|
649
|
+
- test/lib/troo/models/retrieval/comment_test.rb
|
650
|
+
- test/lib/troo/models/retrieval/list_test.rb
|
651
|
+
- test/lib/troo/models/retrieval/member_test.rb
|
652
|
+
- test/lib/troo/presentation/sentence_test.rb
|
561
653
|
- test/lib/troo/presentation/template_test.rb
|
654
|
+
- test/lib/troo/presenters/board_test.rb
|
655
|
+
- test/lib/troo/presenters/card_test.rb
|
656
|
+
- test/lib/troo/presenters/comment_test.rb
|
657
|
+
- test/lib/troo/presenters/list_test.rb
|
658
|
+
- test/lib/troo/presenters/member_test.rb
|
562
659
|
- test/support/fabrication.rb
|
563
660
|
- test/support/template.erb
|
564
661
|
- test/support/vcr_setup.rb
|
662
|
+
- test/system_test.sh
|
565
663
|
- test/test_helper.rb
|
data/features/add_board.feature
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Feature: Adding a new board
|
data/features/add_card.feature
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Feature: Adding a new card to a list
|
@@ -1 +0,0 @@
|
|
1
|
-
Feature: Adding a comment to a card
|
data/features/add_list.feature
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Feature: Adding a new list to a board
|
@@ -1 +0,0 @@
|
|
1
|
-
Feature: Moving a card to a list
|
data/features/refresh.feature
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Feature: Refreshing
|
data/features/show_board.feature
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Feature: Showing a board
|
@@ -1 +0,0 @@
|
|
1
|
-
Feature: Showing all boards
|
data/features/show_card.feature
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Feature: Showing a card
|
@@ -1 +0,0 @@
|
|
1
|
-
Feature: Showing all comments for a card
|
data/features/show_list.feature
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Feature: Showing a list
|
data/features/version.feature
DELETED
@@ -1,79 +0,0 @@
|
|
1
|
-
module Troo
|
2
|
-
class RefreshAll
|
3
|
-
class << self
|
4
|
-
def all(board = nil, options = {})
|
5
|
-
new(board, options).all
|
6
|
-
end
|
7
|
-
|
8
|
-
def default(board, options = {})
|
9
|
-
new(board, options).default
|
10
|
-
end
|
11
|
-
|
12
|
-
def lists(board, options = {})
|
13
|
-
new(board, options).lists
|
14
|
-
end
|
15
|
-
|
16
|
-
def cards(board, options = {})
|
17
|
-
new(board, options).cards
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
def initialize(board = nil, options = {})
|
22
|
-
@board = board
|
23
|
-
@options = options
|
24
|
-
end
|
25
|
-
|
26
|
-
def all
|
27
|
-
external_board_ids.map do |external_board_id|
|
28
|
-
External::List.fetch(external_board_id, options)
|
29
|
-
External::Member.fetch(external_board_id, options)
|
30
|
-
External::Card.fetch(external_board_id, options)
|
31
|
-
end
|
32
|
-
true
|
33
|
-
end
|
34
|
-
|
35
|
-
def default
|
36
|
-
new_lists = External::List.fetch(external_board_id, options)
|
37
|
-
new_cards = new_lists.map do |list|
|
38
|
-
External::Card.fetch(list.external_list_id, { mode: :list })
|
39
|
-
end
|
40
|
-
External::Member.fetch(external_board_id, options)
|
41
|
-
true
|
42
|
-
end
|
43
|
-
|
44
|
-
def lists
|
45
|
-
External::List.fetch(external_board_id, options)
|
46
|
-
end
|
47
|
-
|
48
|
-
def cards
|
49
|
-
External::Card.fetch(external_board_id, options)
|
50
|
-
end
|
51
|
-
|
52
|
-
private
|
53
|
-
attr_accessor :board
|
54
|
-
|
55
|
-
def options
|
56
|
-
defaults.merge!(@options)
|
57
|
-
end
|
58
|
-
|
59
|
-
def defaults
|
60
|
-
{ mode: :board, debug: false }
|
61
|
-
end
|
62
|
-
|
63
|
-
def external_board_id
|
64
|
-
board.external_board_id
|
65
|
-
end
|
66
|
-
|
67
|
-
def external_board_ids
|
68
|
-
active_boards.map(&:external_board_id)
|
69
|
-
end
|
70
|
-
|
71
|
-
def active_boards
|
72
|
-
all_boards.delete_if { |b| b.nil? || b.closed == true }
|
73
|
-
end
|
74
|
-
|
75
|
-
def all_boards
|
76
|
-
@boards ||= External::Board.fetch_all
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
module Troo
|
2
|
-
class NullEntity
|
3
|
-
def default?
|
4
|
-
true
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
class SetDefault
|
9
|
-
class << self
|
10
|
-
def for(entity)
|
11
|
-
new(entity).set_default!
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
def initialize(entity)
|
16
|
-
@entity = entity
|
17
|
-
end
|
18
|
-
|
19
|
-
def set_default!
|
20
|
-
return false if already_default?
|
21
|
-
unset_default
|
22
|
-
set_new_default
|
23
|
-
entity
|
24
|
-
end
|
25
|
-
|
26
|
-
private
|
27
|
-
attr_reader :entity
|
28
|
-
|
29
|
-
def set_new_default
|
30
|
-
entity.update(default: true)
|
31
|
-
end
|
32
|
-
|
33
|
-
def unset_default
|
34
|
-
entity.class.update(default: false)
|
35
|
-
end
|
36
|
-
|
37
|
-
def already_default?
|
38
|
-
entity.default?
|
39
|
-
end
|
40
|
-
|
41
|
-
def entity
|
42
|
-
return NullEntity.new if @entity.nil?
|
43
|
-
@entity
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|