defgen 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/.gitignore +18 -0
  2. data/Gemfile +4 -0
  3. data/Gemfile.lock +56 -0
  4. data/Guardfile +9 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +151 -0
  7. data/Rakefile +1 -0
  8. data/bin/defgen +5 -0
  9. data/defgen.gemspec +24 -0
  10. data/lib/defgen/.DS_Store +0 -0
  11. data/lib/defgen/cli.rb +47 -0
  12. data/lib/defgen/decorators/getter_decorator.rb +17 -0
  13. data/lib/defgen/decorators/setter_decorator.rb +11 -0
  14. data/lib/defgen/decorators.rb +2 -0
  15. data/lib/defgen/defaultfile.rb +65 -0
  16. data/lib/defgen/defaultfile_builder.rb +14 -0
  17. data/lib/defgen/defaultfile_parser.rb +41 -0
  18. data/lib/defgen/generators/.DS_Store +0 -0
  19. data/lib/defgen/generators/template/template_generator.rb +38 -0
  20. data/lib/defgen/generators/template/templates/constant.erb +1 -0
  21. data/lib/defgen/generators/template/templates/getter.erb +4 -0
  22. data/lib/defgen/generators/template/templates/implementation.erb +19 -0
  23. data/lib/defgen/generators/template/templates/interface.erb +17 -0
  24. data/lib/defgen/generators/template/templates/property.erb +1 -0
  25. data/lib/defgen/generators/template/templates/setter.erb +4 -0
  26. data/lib/defgen/generators/template.rb +1 -0
  27. data/lib/defgen/generators.rb +1 -0
  28. data/lib/defgen/installer.rb +75 -0
  29. data/lib/defgen/property/attributes.rb +29 -0
  30. data/lib/defgen/property.rb +30 -0
  31. data/lib/defgen/string_ext.rb +5 -0
  32. data/lib/defgen/version.rb +3 -0
  33. data/lib/defgen/xcodeproj_adapter.rb +48 -0
  34. data/lib/defgen.rb +14 -0
  35. data/spec/integration/defaultfile_parse_spec.rb +28 -0
  36. data/spec/support/property_accessor_examples.rb +12 -0
  37. data/spec/support/property_examples.rb +58 -0
  38. data/spec/support/spec_helper.rb +2 -0
  39. data/spec/unit/decorators/getter_decorator_spec.rb +31 -0
  40. data/spec/unit/decorators/setter_decorator_spec.rb +42 -0
  41. data/spec/unit/defaultfile_builder_spec.rb +12 -0
  42. data/spec/unit/defaultfile_parser_spec.rb +42 -0
  43. data/spec/unit/defautfile_spec.rb +11 -0
  44. data/spec/unit/property/attributes_spec.rb +48 -0
  45. data/spec/unit/property/property_spec.rb +10 -0
  46. data/spec/unit/string_ext_spec.rb +17 -0
  47. data/spec/unit/xcodeproj_adapter_spec.rb +10 -0
  48. metadata +186 -0
metadata ADDED
@@ -0,0 +1,186 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: defgen
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Paul Samuels
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-01-04 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: xcodeproj
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rspec
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: guard
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: guard-rspec
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: rb-fsevent
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ description: Build an NSUserDefaults category using a simple DSL
95
+ email:
96
+ - paulio1987@gmail.com
97
+ executables:
98
+ - defgen
99
+ extensions: []
100
+ extra_rdoc_files: []
101
+ files:
102
+ - .gitignore
103
+ - Gemfile
104
+ - Gemfile.lock
105
+ - Guardfile
106
+ - LICENSE.txt
107
+ - README.md
108
+ - Rakefile
109
+ - bin/defgen
110
+ - defgen.gemspec
111
+ - lib/defgen.rb
112
+ - lib/defgen/.DS_Store
113
+ - lib/defgen/cli.rb
114
+ - lib/defgen/decorators.rb
115
+ - lib/defgen/decorators/getter_decorator.rb
116
+ - lib/defgen/decorators/setter_decorator.rb
117
+ - lib/defgen/defaultfile.rb
118
+ - lib/defgen/defaultfile_builder.rb
119
+ - lib/defgen/defaultfile_parser.rb
120
+ - lib/defgen/generators.rb
121
+ - lib/defgen/generators/.DS_Store
122
+ - lib/defgen/generators/template.rb
123
+ - lib/defgen/generators/template/template_generator.rb
124
+ - lib/defgen/generators/template/templates/constant.erb
125
+ - lib/defgen/generators/template/templates/getter.erb
126
+ - lib/defgen/generators/template/templates/implementation.erb
127
+ - lib/defgen/generators/template/templates/interface.erb
128
+ - lib/defgen/generators/template/templates/property.erb
129
+ - lib/defgen/generators/template/templates/setter.erb
130
+ - lib/defgen/installer.rb
131
+ - lib/defgen/property.rb
132
+ - lib/defgen/property/attributes.rb
133
+ - lib/defgen/string_ext.rb
134
+ - lib/defgen/version.rb
135
+ - lib/defgen/xcodeproj_adapter.rb
136
+ - spec/integration/defaultfile_parse_spec.rb
137
+ - spec/support/property_accessor_examples.rb
138
+ - spec/support/property_examples.rb
139
+ - spec/support/spec_helper.rb
140
+ - spec/unit/decorators/getter_decorator_spec.rb
141
+ - spec/unit/decorators/setter_decorator_spec.rb
142
+ - spec/unit/defaultfile_builder_spec.rb
143
+ - spec/unit/defaultfile_parser_spec.rb
144
+ - spec/unit/defautfile_spec.rb
145
+ - spec/unit/property/attributes_spec.rb
146
+ - spec/unit/property/property_spec.rb
147
+ - spec/unit/string_ext_spec.rb
148
+ - spec/unit/xcodeproj_adapter_spec.rb
149
+ homepage: https://github.com/paulsamuels/Defgen
150
+ licenses: []
151
+ post_install_message:
152
+ rdoc_options: []
153
+ require_paths:
154
+ - lib
155
+ required_ruby_version: !ruby/object:Gem::Requirement
156
+ none: false
157
+ requirements:
158
+ - - ! '>='
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ required_rubygems_version: !ruby/object:Gem::Requirement
162
+ none: false
163
+ requirements:
164
+ - - ! '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ requirements: []
168
+ rubyforge_project:
169
+ rubygems_version: 1.8.24
170
+ signing_key:
171
+ specification_version: 3
172
+ summary: Build an NSUserDefaults category using a simple DSL
173
+ test_files:
174
+ - spec/integration/defaultfile_parse_spec.rb
175
+ - spec/support/property_accessor_examples.rb
176
+ - spec/support/property_examples.rb
177
+ - spec/support/spec_helper.rb
178
+ - spec/unit/decorators/getter_decorator_spec.rb
179
+ - spec/unit/decorators/setter_decorator_spec.rb
180
+ - spec/unit/defaultfile_builder_spec.rb
181
+ - spec/unit/defaultfile_parser_spec.rb
182
+ - spec/unit/defautfile_spec.rb
183
+ - spec/unit/property/attributes_spec.rb
184
+ - spec/unit/property/property_spec.rb
185
+ - spec/unit/string_ext_spec.rb
186
+ - spec/unit/xcodeproj_adapter_spec.rb