xdry 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/LICENSE +20 -0
  2. data/README.md +11 -0
  3. data/Rakefile +76 -0
  4. data/VERSION +1 -0
  5. data/bin/xdry +4 -0
  6. data/lib/xdry.rb +18 -0
  7. data/lib/xdry/boxing.rb +212 -0
  8. data/lib/xdry/generators/ctor_from_field.rb +91 -0
  9. data/lib/xdry/generators/dealloc.rb +53 -0
  10. data/lib/xdry/generators/dictionary_coding.rb +129 -0
  11. data/lib/xdry/generators/field_from_property.rb +20 -0
  12. data/lib/xdry/generators/property-from-field.rb +22 -0
  13. data/lib/xdry/generators/storing_constructor.rb +72 -0
  14. data/lib/xdry/generators/synthesize.rb +25 -0
  15. data/lib/xdry/generators_support.rb +42 -0
  16. data/lib/xdry/parsing/driver.rb +106 -0
  17. data/lib/xdry/parsing/model.rb +272 -0
  18. data/lib/xdry/parsing/nodes.rb +260 -0
  19. data/lib/xdry/parsing/parsers.rb +166 -0
  20. data/lib/xdry/parsing/parts/selectors.rb +95 -0
  21. data/lib/xdry/parsing/parts/var_types.rb +66 -0
  22. data/lib/xdry/parsing/pos.rb +75 -0
  23. data/lib/xdry/parsing/scope_stack.rb +68 -0
  24. data/lib/xdry/parsing/scopes.rb +61 -0
  25. data/lib/xdry/parsing/scopes_support.rb +143 -0
  26. data/lib/xdry/patching/emitter.rb +60 -0
  27. data/lib/xdry/patching/insertion_points.rb +209 -0
  28. data/lib/xdry/patching/item_patchers.rb +74 -0
  29. data/lib/xdry/patching/patcher.rb +139 -0
  30. data/lib/xdry/run.rb +227 -0
  31. data/lib/xdry/support/enumerable_additions.rb +35 -0
  32. data/lib/xdry/support/string_additions.rb +27 -0
  33. data/lib/xdry/support/symbol_additions.rb +14 -0
  34. data/site/_config.yml +3 -0
  35. data/site/_example +9 -0
  36. data/site/_layouts/default.html +30 -0
  37. data/site/_plugins/example.rb +16 -0
  38. data/site/_plugins/highlight_unindent.rb +17 -0
  39. data/site/index.md +417 -0
  40. data/site/master.css +94 -0
  41. data/spec/boxing_spec.rb +80 -0
  42. data/spec/ctor_from_field_spec.rb +251 -0
  43. data/spec/dealloc_spec.rb +103 -0
  44. data/spec/dictionary_coding_spec.rb +132 -0
  45. data/spec/field_from_prop_spec.rb +72 -0
  46. data/spec/prop_from_field_spec.rb +39 -0
  47. data/spec/readme_samples_spec.rb +76 -0
  48. data/spec/spec.opts +3 -0
  49. data/spec/spec_helper.rb +53 -0
  50. data/spec/synthesize_spec.rb +94 -0
  51. data/xdry.gemspec +103 -0
  52. metadata +141 -0
data/xdry.gemspec ADDED
@@ -0,0 +1,103 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{xdry}
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Andrey Tarantsov"]
12
+ s.date = %q{2011-03-20}
13
+ s.default_executable = %q{xdry}
14
+ s.description = %q{Autogenerates all kinds of funky stuff (like accessors) in Xcode projects}
15
+ s.email = %q{andreyvit@gmail.com}
16
+ s.executables = ["xdry"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE",
19
+ "README.md"
20
+ ]
21
+ s.files = [
22
+ "LICENSE",
23
+ "README.md",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "bin/xdry",
27
+ "lib/xdry.rb",
28
+ "lib/xdry/boxing.rb",
29
+ "lib/xdry/generators/ctor_from_field.rb",
30
+ "lib/xdry/generators/dealloc.rb",
31
+ "lib/xdry/generators/dictionary_coding.rb",
32
+ "lib/xdry/generators/field_from_property.rb",
33
+ "lib/xdry/generators/property-from-field.rb",
34
+ "lib/xdry/generators/storing_constructor.rb",
35
+ "lib/xdry/generators/synthesize.rb",
36
+ "lib/xdry/generators_support.rb",
37
+ "lib/xdry/parsing/driver.rb",
38
+ "lib/xdry/parsing/model.rb",
39
+ "lib/xdry/parsing/nodes.rb",
40
+ "lib/xdry/parsing/parsers.rb",
41
+ "lib/xdry/parsing/parts/selectors.rb",
42
+ "lib/xdry/parsing/parts/var_types.rb",
43
+ "lib/xdry/parsing/pos.rb",
44
+ "lib/xdry/parsing/scope_stack.rb",
45
+ "lib/xdry/parsing/scopes.rb",
46
+ "lib/xdry/parsing/scopes_support.rb",
47
+ "lib/xdry/patching/emitter.rb",
48
+ "lib/xdry/patching/insertion_points.rb",
49
+ "lib/xdry/patching/item_patchers.rb",
50
+ "lib/xdry/patching/patcher.rb",
51
+ "lib/xdry/run.rb",
52
+ "lib/xdry/support/enumerable_additions.rb",
53
+ "lib/xdry/support/string_additions.rb",
54
+ "lib/xdry/support/symbol_additions.rb",
55
+ "site/_config.yml",
56
+ "site/_example",
57
+ "site/_layouts/default.html",
58
+ "site/_plugins/example.rb",
59
+ "site/_plugins/highlight_unindent.rb",
60
+ "site/index.md",
61
+ "site/master.css",
62
+ "spec/boxing_spec.rb",
63
+ "spec/ctor_from_field_spec.rb",
64
+ "spec/dealloc_spec.rb",
65
+ "spec/dictionary_coding_spec.rb",
66
+ "spec/field_from_prop_spec.rb",
67
+ "spec/prop_from_field_spec.rb",
68
+ "spec/readme_samples_spec.rb",
69
+ "spec/spec.opts",
70
+ "spec/spec_helper.rb",
71
+ "spec/synthesize_spec.rb",
72
+ "xdry.gemspec"
73
+ ]
74
+ s.homepage = %q{http://github.com/mockko/xdry}
75
+ s.require_paths = ["lib"]
76
+ s.rubygems_version = %q{1.3.7}
77
+ s.summary = %q{eXtra D.R.Y. for Xcode}
78
+ s.test_files = [
79
+ "spec/boxing_spec.rb",
80
+ "spec/ctor_from_field_spec.rb",
81
+ "spec/dealloc_spec.rb",
82
+ "spec/dictionary_coding_spec.rb",
83
+ "spec/field_from_prop_spec.rb",
84
+ "spec/prop_from_field_spec.rb",
85
+ "spec/readme_samples_spec.rb",
86
+ "spec/spec_helper.rb",
87
+ "spec/synthesize_spec.rb"
88
+ ]
89
+
90
+ if s.respond_to? :specification_version then
91
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
92
+ s.specification_version = 3
93
+
94
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
95
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
96
+ else
97
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
98
+ end
99
+ else
100
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
101
+ end
102
+ end
103
+
metadata ADDED
@@ -0,0 +1,141 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: xdry
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Andrey Tarantsov
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-03-20 00:00:00 +06:00
19
+ default_executable: xdry
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rspec
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 13
30
+ segments:
31
+ - 1
32
+ - 2
33
+ - 9
34
+ version: 1.2.9
35
+ type: :development
36
+ version_requirements: *id001
37
+ description: Autogenerates all kinds of funky stuff (like accessors) in Xcode projects
38
+ email: andreyvit@gmail.com
39
+ executables:
40
+ - xdry
41
+ extensions: []
42
+
43
+ extra_rdoc_files:
44
+ - LICENSE
45
+ - README.md
46
+ files:
47
+ - LICENSE
48
+ - README.md
49
+ - Rakefile
50
+ - VERSION
51
+ - bin/xdry
52
+ - lib/xdry.rb
53
+ - lib/xdry/boxing.rb
54
+ - lib/xdry/generators/ctor_from_field.rb
55
+ - lib/xdry/generators/dealloc.rb
56
+ - lib/xdry/generators/dictionary_coding.rb
57
+ - lib/xdry/generators/field_from_property.rb
58
+ - lib/xdry/generators/property-from-field.rb
59
+ - lib/xdry/generators/storing_constructor.rb
60
+ - lib/xdry/generators/synthesize.rb
61
+ - lib/xdry/generators_support.rb
62
+ - lib/xdry/parsing/driver.rb
63
+ - lib/xdry/parsing/model.rb
64
+ - lib/xdry/parsing/nodes.rb
65
+ - lib/xdry/parsing/parsers.rb
66
+ - lib/xdry/parsing/parts/selectors.rb
67
+ - lib/xdry/parsing/parts/var_types.rb
68
+ - lib/xdry/parsing/pos.rb
69
+ - lib/xdry/parsing/scope_stack.rb
70
+ - lib/xdry/parsing/scopes.rb
71
+ - lib/xdry/parsing/scopes_support.rb
72
+ - lib/xdry/patching/emitter.rb
73
+ - lib/xdry/patching/insertion_points.rb
74
+ - lib/xdry/patching/item_patchers.rb
75
+ - lib/xdry/patching/patcher.rb
76
+ - lib/xdry/run.rb
77
+ - lib/xdry/support/enumerable_additions.rb
78
+ - lib/xdry/support/string_additions.rb
79
+ - lib/xdry/support/symbol_additions.rb
80
+ - site/_config.yml
81
+ - site/_example
82
+ - site/_layouts/default.html
83
+ - site/_plugins/example.rb
84
+ - site/_plugins/highlight_unindent.rb
85
+ - site/index.md
86
+ - site/master.css
87
+ - spec/boxing_spec.rb
88
+ - spec/ctor_from_field_spec.rb
89
+ - spec/dealloc_spec.rb
90
+ - spec/dictionary_coding_spec.rb
91
+ - spec/field_from_prop_spec.rb
92
+ - spec/prop_from_field_spec.rb
93
+ - spec/readme_samples_spec.rb
94
+ - spec/spec.opts
95
+ - spec/spec_helper.rb
96
+ - spec/synthesize_spec.rb
97
+ - xdry.gemspec
98
+ has_rdoc: true
99
+ homepage: http://github.com/mockko/xdry
100
+ licenses: []
101
+
102
+ post_install_message:
103
+ rdoc_options: []
104
+
105
+ require_paths:
106
+ - lib
107
+ required_ruby_version: !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ hash: 3
113
+ segments:
114
+ - 0
115
+ version: "0"
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ hash: 3
122
+ segments:
123
+ - 0
124
+ version: "0"
125
+ requirements: []
126
+
127
+ rubyforge_project:
128
+ rubygems_version: 1.3.7
129
+ signing_key:
130
+ specification_version: 3
131
+ summary: eXtra D.R.Y. for Xcode
132
+ test_files:
133
+ - spec/boxing_spec.rb
134
+ - spec/ctor_from_field_spec.rb
135
+ - spec/dealloc_spec.rb
136
+ - spec/dictionary_coding_spec.rb
137
+ - spec/field_from_prop_spec.rb
138
+ - spec/prop_from_field_spec.rb
139
+ - spec/readme_samples_spec.rb
140
+ - spec/spec_helper.rb
141
+ - spec/synthesize_spec.rb