easy_gen 1.6.0 → 1.6.1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -0
  3. data/lib/easy_gen/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 704dd52bb44c930196671167649dcaad74f1db4a643a15b37089de0ed6c063c1
4
- data.tar.gz: cbb167f75520b3572f09b58e57f37728edb058cca74e05ac2c215078e714d6f2
3
+ metadata.gz: 9b7d64c79858b893ced2e81bed3e518b5b7ed1ad9b75bccaafff168da7c3fdbe
4
+ data.tar.gz: d5ffd68cd6b866b042ec829060a1020343491d45afbfee9f62bd8a91ac32c9f6
5
5
  SHA512:
6
- metadata.gz: c2b522d66b5b4a5f3b3f62d213ee104e20a433818986e55f3fdf856a444bea52fe7473ad26ee8b188c6fc2a3ca09116151204b9aa1986d941d6128dc26aee25d
7
- data.tar.gz: 210b48f4eeda121cec5d6adecb1035183643c14cfa13a9187f3182da5ffe1bc7bb74850b2ea424661a4129543bc06717152f28651939777864b9f613ef1ee91c
6
+ metadata.gz: 1567545a32fe9c69c143c209bd866c392b76e9c67275f499907a7046302c94e7495b0e7cc58fd30921636847772f7b29d0c448faf1fe8a87447480513d2841cf
7
+ data.tar.gz: 2dc1c54f78caf7a901b22dbdb4d298ff46bfcee2d2f5c9fb39b26bacf49005e7ca89fa2b839e00124827be2927e416c004b29e18bd331e5263df5b989ecebb6c
data/README.md CHANGED
@@ -134,6 +134,24 @@ The command above:
134
134
  - Installs new test class in '/test/strategies/fishing' with the name 'LineStrategy' in the file '/test/strategies/line_strategy_test.rb'.
135
135
  - Installs new test class in '/test/strategies/fishing' with the name 'NetStrategy' in the file '/test/strategies/net_strategy_test.rb'.
136
136
 
137
+ ### Serializer Classes
138
+ If you want to do something other than standard JSON serialization...
139
+
140
+ ```sh
141
+ bundle exec rails g serializer basic
142
+ ```
143
+
144
+ The command above:
145
+
146
+ - Creates '/app/serializers' directory if it doesnt exist.
147
+ - Installs new application serializer class in '/app/serializers' with the name 'ApplicationSerializer' in file '/app/decorators/application_serializer.rb.'.
148
+ - Installs new serializer class in '/app/serializer' with the class name 'BasicSerializer' in the file /app/decorators/basic_seralizer.rb. This will inherit from /app/decorators/application_serializer.rb.'
149
+ - Creates '/test/serializers' directory if it doesnt exist.
150
+ - Installs new test class in '/test/serializers' with the name 'BasicSerializerTest' in the file '/test/decorators/basic_serializer_test.rb'.
151
+
152
+
153
+ Module option is also supported.
154
+
137
155
 
138
156
  ## Summary
139
157
  ** Saves a bit of typing
@@ -1,3 +1,3 @@
1
1
  module EasyGen
2
- VERSION = "1.6.0"
2
+ VERSION = "1.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Stearn