golden-objects 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/CHANGELOG.md +5 -0
  4. data/Gemfile +6 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +101 -0
  7. data/Rakefile +2 -0
  8. data/bin/console +14 -0
  9. data/bin/setup +8 -0
  10. data/golden-objects.gemspec +32 -0
  11. data/lib/golden/active_model_concerns/datepicker_concern.rb +42 -0
  12. data/lib/golden/active_model_concerns/has_persisted_record_concern.rb +54 -0
  13. data/lib/golden/active_model_concerns/yaml_coder_concern.rb +44 -0
  14. data/lib/golden/active_model_concerns.rb +10 -0
  15. data/lib/golden/active_record_concerns/deleted_at_concern.rb +24 -0
  16. data/lib/golden/active_record_concerns/disabled_at_concern.rb +28 -0
  17. data/lib/golden/active_record_concerns/enum_value_concern.rb +27 -0
  18. data/lib/golden/active_record_concerns/rejected_at_concern.rb +24 -0
  19. data/lib/golden/active_record_concerns.rb +11 -0
  20. data/lib/golden/attribute_accessors/boolean_accessor.rb +34 -0
  21. data/lib/golden/attribute_accessors/date_time_accessor.rb +52 -0
  22. data/lib/golden/attribute_accessors/enum_accessor.rb +33 -0
  23. data/lib/golden/attribute_accessors/extended_attr_accessor.rb +53 -0
  24. data/lib/golden/attribute_accessors.rb +18 -0
  25. data/lib/golden/objects/application/application_calculator.rb +29 -0
  26. data/lib/golden/objects/application/application_context.rb +34 -0
  27. data/lib/golden/objects/application/application_form.rb +41 -0
  28. data/lib/golden/objects/application/application_generator.rb +18 -0
  29. data/lib/golden/objects/application/application_operator.rb +20 -0
  30. data/lib/golden/objects/application/application_presenter.rb +14 -0
  31. data/lib/golden/objects/application/application_service.rb +14 -0
  32. data/lib/golden/objects/application/application_transformer.rb +22 -0
  33. data/lib/golden/objects/form/action_form_operator.rb +84 -0
  34. data/lib/golden/objects/form/active_record_form.rb +35 -0
  35. data/lib/golden/objects/form/single_form_presenter.rb +40 -0
  36. data/lib/golden/objects/query/query_context.rb +114 -0
  37. data/lib/golden/objects/query/query_form.rb +59 -0
  38. data/lib/golden/objects/query/query_form_operator.rb +66 -0
  39. data/lib/golden/objects/query/query_result_presenter.rb +30 -0
  40. data/lib/golden/objects/version.rb +5 -0
  41. data/lib/golden/objects.rb +34 -0
  42. metadata +129 -0
metadata ADDED
@@ -0,0 +1,129 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: golden-objects
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Tse-Ching Ho
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-03-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '5.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '5.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activemodel
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '5.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '5.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: activerecord
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '5.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '5.2'
55
+ description: Let's compose business logics as ruby components to improve efficiency
56
+ of maintenance.
57
+ email:
58
+ - tsechingho@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - CHANGELOG.md
65
+ - Gemfile
66
+ - LICENSE.txt
67
+ - README.md
68
+ - Rakefile
69
+ - bin/console
70
+ - bin/setup
71
+ - golden-objects.gemspec
72
+ - lib/golden/active_model_concerns.rb
73
+ - lib/golden/active_model_concerns/datepicker_concern.rb
74
+ - lib/golden/active_model_concerns/has_persisted_record_concern.rb
75
+ - lib/golden/active_model_concerns/yaml_coder_concern.rb
76
+ - lib/golden/active_record_concerns.rb
77
+ - lib/golden/active_record_concerns/deleted_at_concern.rb
78
+ - lib/golden/active_record_concerns/disabled_at_concern.rb
79
+ - lib/golden/active_record_concerns/enum_value_concern.rb
80
+ - lib/golden/active_record_concerns/rejected_at_concern.rb
81
+ - lib/golden/attribute_accessors.rb
82
+ - lib/golden/attribute_accessors/boolean_accessor.rb
83
+ - lib/golden/attribute_accessors/date_time_accessor.rb
84
+ - lib/golden/attribute_accessors/enum_accessor.rb
85
+ - lib/golden/attribute_accessors/extended_attr_accessor.rb
86
+ - lib/golden/objects.rb
87
+ - lib/golden/objects/application/application_calculator.rb
88
+ - lib/golden/objects/application/application_context.rb
89
+ - lib/golden/objects/application/application_form.rb
90
+ - lib/golden/objects/application/application_generator.rb
91
+ - lib/golden/objects/application/application_operator.rb
92
+ - lib/golden/objects/application/application_presenter.rb
93
+ - lib/golden/objects/application/application_service.rb
94
+ - lib/golden/objects/application/application_transformer.rb
95
+ - lib/golden/objects/form/action_form_operator.rb
96
+ - lib/golden/objects/form/active_record_form.rb
97
+ - lib/golden/objects/form/single_form_presenter.rb
98
+ - lib/golden/objects/query/query_context.rb
99
+ - lib/golden/objects/query/query_form.rb
100
+ - lib/golden/objects/query/query_form_operator.rb
101
+ - lib/golden/objects/query/query_result_presenter.rb
102
+ - lib/golden/objects/version.rb
103
+ homepage: https://github.com/goldenio/golden-objects
104
+ licenses:
105
+ - MIT
106
+ metadata:
107
+ homepage_uri: https://github.com/goldenio/golden-objects
108
+ source_code_uri: https://github.com/goldenio/golden-objects.git
109
+ changelog_uri: https://github.com/goldenio/golden-objects/CHANGELOG.md
110
+ post_install_message:
111
+ rdoc_options: []
112
+ require_paths:
113
+ - lib
114
+ required_ruby_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: 2.3.0
119
+ required_rubygems_version: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ requirements: []
125
+ rubygems_version: 3.1.2
126
+ signing_key:
127
+ specification_version: 4
128
+ summary: Provide ruby classes and modules help you build business logics as ruby components.
129
+ test_files: []