mixture 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +9 -0
  5. data/.travis.yml +6 -0
  6. data/CODE_OF_CONDUCT.md +13 -0
  7. data/Gemfile +6 -0
  8. data/Gemfile.lock +74 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +43 -0
  11. data/Rakefile +8 -0
  12. data/lib/mixture/attribute.rb +31 -0
  13. data/lib/mixture/attribute_list.rb +29 -0
  14. data/lib/mixture/coerce/array.rb +15 -0
  15. data/lib/mixture/coerce/base.rb +64 -0
  16. data/lib/mixture/coerce/date.rb +20 -0
  17. data/lib/mixture/coerce/datetime.rb +20 -0
  18. data/lib/mixture/coerce/float.rb +19 -0
  19. data/lib/mixture/coerce/hash.rb +14 -0
  20. data/lib/mixture/coerce/integer.rb +19 -0
  21. data/lib/mixture/coerce/nil.rb +20 -0
  22. data/lib/mixture/coerce/object.rb +34 -0
  23. data/lib/mixture/coerce/rational.rb +19 -0
  24. data/lib/mixture/coerce/set.rb +14 -0
  25. data/lib/mixture/coerce/string.rb +19 -0
  26. data/lib/mixture/coerce/symbol.rb +14 -0
  27. data/lib/mixture/coerce/time.rb +19 -0
  28. data/lib/mixture/coerce.rb +70 -0
  29. data/lib/mixture/errors.rb +14 -0
  30. data/lib/mixture/extensions/attributable.rb +64 -0
  31. data/lib/mixture/extensions/coercable.rb +31 -0
  32. data/lib/mixture/extensions/hashable.rb +37 -0
  33. data/lib/mixture/extensions/validatable.rb +52 -0
  34. data/lib/mixture/extensions.rb +30 -0
  35. data/lib/mixture/model.rb +13 -0
  36. data/lib/mixture/type.rb +142 -0
  37. data/lib/mixture/validate/base.rb +21 -0
  38. data/lib/mixture/validate/match.rb +17 -0
  39. data/lib/mixture/validate/presence.rb +17 -0
  40. data/lib/mixture/validate.rb +35 -0
  41. data/lib/mixture/version.rb +9 -0
  42. data/lib/mixture.rb +29 -0
  43. data/mixture.gemspec +30 -0
  44. metadata +156 -0
metadata ADDED
@@ -0,0 +1,156 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mixture
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jeremy Rodi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-07-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
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: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
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: pry
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: coveralls
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
+ description: Handle validation, coercion, and attributes.
84
+ email:
85
+ - redjazz96@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - ".rubocop.yml"
93
+ - ".travis.yml"
94
+ - CODE_OF_CONDUCT.md
95
+ - Gemfile
96
+ - Gemfile.lock
97
+ - LICENSE.txt
98
+ - README.md
99
+ - Rakefile
100
+ - lib/mixture.rb
101
+ - lib/mixture/attribute.rb
102
+ - lib/mixture/attribute_list.rb
103
+ - lib/mixture/coerce.rb
104
+ - lib/mixture/coerce/array.rb
105
+ - lib/mixture/coerce/base.rb
106
+ - lib/mixture/coerce/date.rb
107
+ - lib/mixture/coerce/datetime.rb
108
+ - lib/mixture/coerce/float.rb
109
+ - lib/mixture/coerce/hash.rb
110
+ - lib/mixture/coerce/integer.rb
111
+ - lib/mixture/coerce/nil.rb
112
+ - lib/mixture/coerce/object.rb
113
+ - lib/mixture/coerce/rational.rb
114
+ - lib/mixture/coerce/set.rb
115
+ - lib/mixture/coerce/string.rb
116
+ - lib/mixture/coerce/symbol.rb
117
+ - lib/mixture/coerce/time.rb
118
+ - lib/mixture/errors.rb
119
+ - lib/mixture/extensions.rb
120
+ - lib/mixture/extensions/attributable.rb
121
+ - lib/mixture/extensions/coercable.rb
122
+ - lib/mixture/extensions/hashable.rb
123
+ - lib/mixture/extensions/validatable.rb
124
+ - lib/mixture/model.rb
125
+ - lib/mixture/type.rb
126
+ - lib/mixture/validate.rb
127
+ - lib/mixture/validate/base.rb
128
+ - lib/mixture/validate/match.rb
129
+ - lib/mixture/validate/presence.rb
130
+ - lib/mixture/version.rb
131
+ - mixture.gemspec
132
+ homepage: https://github.com/medcat/mixture
133
+ licenses:
134
+ - MIT
135
+ metadata: {}
136
+ post_install_message:
137
+ rdoc_options: []
138
+ require_paths:
139
+ - lib
140
+ required_ruby_version: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ required_rubygems_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ requirements: []
151
+ rubyforge_project:
152
+ rubygems_version: 2.4.8
153
+ signing_key:
154
+ specification_version: 4
155
+ summary: Handle validation, coercion, and attributes.
156
+ test_files: []