kanade 0.1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +14 -0
  3. data/.gitignore +12 -0
  4. data/.rspec +2 -0
  5. data/.travis.yml +7 -0
  6. data/Gemfile +4 -0
  7. data/Gemfile.lock +59 -0
  8. data/LICENSE +8 -0
  9. data/README-id.md +81 -0
  10. data/README.md +3 -0
  11. data/ROADMAP.md +11 -0
  12. data/Rakefile +23 -0
  13. data/kanade.gemspec +34 -0
  14. data/lib/kanade/all.rb +14 -0
  15. data/lib/kanade/config/default.rb +10 -0
  16. data/lib/kanade/converter/base.rb +19 -0
  17. data/lib/kanade/converter/big_decimal.rb +19 -0
  18. data/lib/kanade/converter/bool.rb +22 -0
  19. data/lib/kanade/converter/fixnum.rb +15 -0
  20. data/lib/kanade/converter/float.rb +16 -0
  21. data/lib/kanade/converter/list.rb +17 -0
  22. data/lib/kanade/converter/string.rb +17 -0
  23. data/lib/kanade/converter/symbol.rb +20 -0
  24. data/lib/kanade/converter/time.rb +25 -0
  25. data/lib/kanade/dto.rb +47 -0
  26. data/lib/kanade/engine.rb +87 -0
  27. data/lib/kanade/field_info.rb +15 -0
  28. data/lib/kanade/naming_strategy/base.rb +20 -0
  29. data/lib/kanade/naming_strategy/camel_case.rb +14 -0
  30. data/lib/kanade/naming_strategy/pascal_case.rb +12 -0
  31. data/lib/kanade/naming_strategy/snake_case.rb +16 -0
  32. data/lib/kanade/version.rb +3 -0
  33. data/lib/kanade.rb +16 -0
  34. data/spec/converter/string_spec.rb +61 -0
  35. data/spec/fixtures/catalog.rb +5 -0
  36. data/spec/fixtures/catalog_camel_case.json +19 -0
  37. data/spec/fixtures/catalog_pascal_case.json +19 -0
  38. data/spec/fixtures/product.rb +7 -0
  39. data/spec/fixtures/product_wrong.rb +7 -0
  40. data/spec/fixtures/refund_report.json +10 -0
  41. data/spec/fixtures/refund_report.rb +4 -0
  42. data/spec/fixtures/simple_product.json +7 -0
  43. data/spec/integration/class_consistency_spec.rb +49 -0
  44. data/spec/integration/simple_deserialization_integration_spec.rb +58 -0
  45. data/spec/integration/simple_serialization_integration_spec.rb +74 -0
  46. data/spec/matchers/json_matcher.rb +13 -0
  47. data/spec/naming_strategy/camel_case_spec.rb +23 -0
  48. data/spec/spec_helper.rb +106 -0
  49. data/spec/support/deep_hash_compare.rb +1 -0
  50. data/spec/support/json_minify.rb +77 -0
  51. data/spec/support/json_reader.rb +6 -0
  52. metadata +211 -0
metadata ADDED
@@ -0,0 +1,211 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kanade
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.beta1
5
+ platform: ruby
6
+ authors:
7
+ - Mufid Afif
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-10-03 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: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
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
+ - !ruby/object:Gem::Dependency
56
+ name: yard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.5'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.5'
97
+ - !ruby/object:Gem::Dependency
98
+ name: timecop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: " Strong-typed JSON to Ruby object serializer/deserializer "
112
+ email:
113
+ - mufid@outlook.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".editorconfig"
119
+ - ".gitignore"
120
+ - ".rspec"
121
+ - ".travis.yml"
122
+ - Gemfile
123
+ - Gemfile.lock
124
+ - LICENSE
125
+ - README-id.md
126
+ - README.md
127
+ - ROADMAP.md
128
+ - Rakefile
129
+ - kanade.gemspec
130
+ - lib/kanade.rb
131
+ - lib/kanade/all.rb
132
+ - lib/kanade/config/default.rb
133
+ - lib/kanade/converter/base.rb
134
+ - lib/kanade/converter/big_decimal.rb
135
+ - lib/kanade/converter/bool.rb
136
+ - lib/kanade/converter/fixnum.rb
137
+ - lib/kanade/converter/float.rb
138
+ - lib/kanade/converter/list.rb
139
+ - lib/kanade/converter/string.rb
140
+ - lib/kanade/converter/symbol.rb
141
+ - lib/kanade/converter/time.rb
142
+ - lib/kanade/dto.rb
143
+ - lib/kanade/engine.rb
144
+ - lib/kanade/field_info.rb
145
+ - lib/kanade/naming_strategy/base.rb
146
+ - lib/kanade/naming_strategy/camel_case.rb
147
+ - lib/kanade/naming_strategy/pascal_case.rb
148
+ - lib/kanade/naming_strategy/snake_case.rb
149
+ - lib/kanade/version.rb
150
+ - spec/converter/string_spec.rb
151
+ - spec/fixtures/catalog.rb
152
+ - spec/fixtures/catalog_camel_case.json
153
+ - spec/fixtures/catalog_pascal_case.json
154
+ - spec/fixtures/product.rb
155
+ - spec/fixtures/product_wrong.rb
156
+ - spec/fixtures/refund_report.json
157
+ - spec/fixtures/refund_report.rb
158
+ - spec/fixtures/simple_product.json
159
+ - spec/integration/class_consistency_spec.rb
160
+ - spec/integration/simple_deserialization_integration_spec.rb
161
+ - spec/integration/simple_serialization_integration_spec.rb
162
+ - spec/matchers/json_matcher.rb
163
+ - spec/naming_strategy/camel_case_spec.rb
164
+ - spec/spec_helper.rb
165
+ - spec/support/deep_hash_compare.rb
166
+ - spec/support/json_minify.rb
167
+ - spec/support/json_reader.rb
168
+ homepage: https://github.com/mufid/kanade
169
+ licenses:
170
+ - MIT
171
+ metadata: {}
172
+ post_install_message:
173
+ rdoc_options: []
174
+ require_paths:
175
+ - lib
176
+ required_ruby_version: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ required_rubygems_version: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - ">"
184
+ - !ruby/object:Gem::Version
185
+ version: 1.3.1
186
+ requirements: []
187
+ rubyforge_project:
188
+ rubygems_version: 2.5.1
189
+ signing_key:
190
+ specification_version: 4
191
+ summary: Strong-typed JSON to Ruby object serializer/deserializer
192
+ test_files:
193
+ - spec/converter/string_spec.rb
194
+ - spec/fixtures/catalog.rb
195
+ - spec/fixtures/catalog_camel_case.json
196
+ - spec/fixtures/catalog_pascal_case.json
197
+ - spec/fixtures/product.rb
198
+ - spec/fixtures/product_wrong.rb
199
+ - spec/fixtures/refund_report.json
200
+ - spec/fixtures/refund_report.rb
201
+ - spec/fixtures/simple_product.json
202
+ - spec/integration/class_consistency_spec.rb
203
+ - spec/integration/simple_deserialization_integration_spec.rb
204
+ - spec/integration/simple_serialization_integration_spec.rb
205
+ - spec/matchers/json_matcher.rb
206
+ - spec/naming_strategy/camel_case_spec.rb
207
+ - spec/spec_helper.rb
208
+ - spec/support/deep_hash_compare.rb
209
+ - spec/support/json_minify.rb
210
+ - spec/support/json_reader.rb
211
+ has_rdoc: