abstract_mapper 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +2 -0
  3. data/.gitignore +9 -0
  4. data/.metrics +9 -0
  5. data/.rspec +2 -0
  6. data/.rubocop.yml +2 -0
  7. data/.travis.yml +19 -0
  8. data/.yardopts +3 -0
  9. data/CHANGELOG.md +3 -0
  10. data/Gemfile +9 -0
  11. data/Guardfile +14 -0
  12. data/LICENSE +21 -0
  13. data/README.md +239 -0
  14. data/Rakefile +34 -0
  15. data/abstract_mapper.gemspec +26 -0
  16. data/config/metrics/STYLEGUIDE +230 -0
  17. data/config/metrics/cane.yml +5 -0
  18. data/config/metrics/churn.yml +6 -0
  19. data/config/metrics/flay.yml +2 -0
  20. data/config/metrics/metric_fu.yml +15 -0
  21. data/config/metrics/reek.yml +1 -0
  22. data/config/metrics/roodi.yml +24 -0
  23. data/config/metrics/rubocop.yml +76 -0
  24. data/config/metrics/saikuro.yml +3 -0
  25. data/config/metrics/simplecov.yml +6 -0
  26. data/config/metrics/yardstick.yml +37 -0
  27. data/lib/abstract_mapper/branch.rb +110 -0
  28. data/lib/abstract_mapper/builder.rb +84 -0
  29. data/lib/abstract_mapper/commands.rb +71 -0
  30. data/lib/abstract_mapper/dsl.rb +62 -0
  31. data/lib/abstract_mapper/errors/unknown_command.rb +25 -0
  32. data/lib/abstract_mapper/errors/wrong_node.rb +23 -0
  33. data/lib/abstract_mapper/errors/wrong_rule.rb +23 -0
  34. data/lib/abstract_mapper/functions.rb +76 -0
  35. data/lib/abstract_mapper/node.rb +76 -0
  36. data/lib/abstract_mapper/optimizer.rb +48 -0
  37. data/lib/abstract_mapper/pair_rule.rb +66 -0
  38. data/lib/abstract_mapper/rspec.rb +7 -0
  39. data/lib/abstract_mapper/rule.rb +52 -0
  40. data/lib/abstract_mapper/rules.rb +61 -0
  41. data/lib/abstract_mapper/settings.rb +95 -0
  42. data/lib/abstract_mapper/sole_rule.rb +58 -0
  43. data/lib/abstract_mapper/version.rb +9 -0
  44. data/lib/abstract_mapper.rb +82 -0
  45. data/lib/rspec/functions.rb +25 -0
  46. data/lib/rspec/mapper.rb +40 -0
  47. data/lib/rspec/nodes.rb +58 -0
  48. data/lib/rspec/rules.rb +59 -0
  49. data/spec/integration/faceter.rb +62 -0
  50. data/spec/integration/mapper_definition_spec.rb +33 -0
  51. data/spec/integration/rspec_examples_spec.rb +77 -0
  52. data/spec/spec_helper.rb +20 -0
  53. data/spec/unit/abstract_mapper/branch_spec.rb +126 -0
  54. data/spec/unit/abstract_mapper/builder_spec.rb +78 -0
  55. data/spec/unit/abstract_mapper/commands_spec.rb +105 -0
  56. data/spec/unit/abstract_mapper/dsl_spec.rb +82 -0
  57. data/spec/unit/abstract_mapper/errors/unknown_command_spec.rb +21 -0
  58. data/spec/unit/abstract_mapper/errors/wrong_node_spec.rb +21 -0
  59. data/spec/unit/abstract_mapper/errors/wrong_rule_spec.rb +23 -0
  60. data/spec/unit/abstract_mapper/functions/compact_spec.rb +25 -0
  61. data/spec/unit/abstract_mapper/functions/filter_spec.rb +26 -0
  62. data/spec/unit/abstract_mapper/functions/subclass_spec.rb +66 -0
  63. data/spec/unit/abstract_mapper/node_spec.rb +84 -0
  64. data/spec/unit/abstract_mapper/optimizer_spec.rb +48 -0
  65. data/spec/unit/abstract_mapper/pair_rule_spec.rb +59 -0
  66. data/spec/unit/abstract_mapper/rule_spec.rb +83 -0
  67. data/spec/unit/abstract_mapper/rules_spec.rb +88 -0
  68. data/spec/unit/abstract_mapper/settings_spec.rb +113 -0
  69. data/spec/unit/abstract_mapper/sole_rule_spec.rb +51 -0
  70. data/spec/unit/abstract_mapper_spec.rb +36 -0
  71. metadata +171 -0
metadata ADDED
@@ -0,0 +1,171 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: abstract_mapper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Andrew Kozin
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-07-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: transproc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.2'
20
+ - - ">"
21
+ - !ruby/object:Gem::Version
22
+ version: 0.2.3
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '0.2'
30
+ - - ">"
31
+ - !ruby/object:Gem::Version
32
+ version: 0.2.3
33
+ - !ruby/object:Gem::Dependency
34
+ name: hexx-rspec
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.4'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0.4'
47
+ description: The abstract syntax tree for ruby mappers
48
+ email: andrew.kozin@gmail.com
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files:
52
+ - README.md
53
+ - LICENSE
54
+ files:
55
+ - ".coveralls.yml"
56
+ - ".gitignore"
57
+ - ".metrics"
58
+ - ".rspec"
59
+ - ".rubocop.yml"
60
+ - ".travis.yml"
61
+ - ".yardopts"
62
+ - CHANGELOG.md
63
+ - Gemfile
64
+ - Guardfile
65
+ - LICENSE
66
+ - README.md
67
+ - Rakefile
68
+ - abstract_mapper.gemspec
69
+ - config/metrics/STYLEGUIDE
70
+ - config/metrics/cane.yml
71
+ - config/metrics/churn.yml
72
+ - config/metrics/flay.yml
73
+ - config/metrics/metric_fu.yml
74
+ - config/metrics/reek.yml
75
+ - config/metrics/roodi.yml
76
+ - config/metrics/rubocop.yml
77
+ - config/metrics/saikuro.yml
78
+ - config/metrics/simplecov.yml
79
+ - config/metrics/yardstick.yml
80
+ - lib/abstract_mapper.rb
81
+ - lib/abstract_mapper/branch.rb
82
+ - lib/abstract_mapper/builder.rb
83
+ - lib/abstract_mapper/commands.rb
84
+ - lib/abstract_mapper/dsl.rb
85
+ - lib/abstract_mapper/errors/unknown_command.rb
86
+ - lib/abstract_mapper/errors/wrong_node.rb
87
+ - lib/abstract_mapper/errors/wrong_rule.rb
88
+ - lib/abstract_mapper/functions.rb
89
+ - lib/abstract_mapper/node.rb
90
+ - lib/abstract_mapper/optimizer.rb
91
+ - lib/abstract_mapper/pair_rule.rb
92
+ - lib/abstract_mapper/rspec.rb
93
+ - lib/abstract_mapper/rule.rb
94
+ - lib/abstract_mapper/rules.rb
95
+ - lib/abstract_mapper/settings.rb
96
+ - lib/abstract_mapper/sole_rule.rb
97
+ - lib/abstract_mapper/version.rb
98
+ - lib/rspec/functions.rb
99
+ - lib/rspec/mapper.rb
100
+ - lib/rspec/nodes.rb
101
+ - lib/rspec/rules.rb
102
+ - spec/integration/faceter.rb
103
+ - spec/integration/mapper_definition_spec.rb
104
+ - spec/integration/rspec_examples_spec.rb
105
+ - spec/spec_helper.rb
106
+ - spec/unit/abstract_mapper/branch_spec.rb
107
+ - spec/unit/abstract_mapper/builder_spec.rb
108
+ - spec/unit/abstract_mapper/commands_spec.rb
109
+ - spec/unit/abstract_mapper/dsl_spec.rb
110
+ - spec/unit/abstract_mapper/errors/unknown_command_spec.rb
111
+ - spec/unit/abstract_mapper/errors/wrong_node_spec.rb
112
+ - spec/unit/abstract_mapper/errors/wrong_rule_spec.rb
113
+ - spec/unit/abstract_mapper/functions/compact_spec.rb
114
+ - spec/unit/abstract_mapper/functions/filter_spec.rb
115
+ - spec/unit/abstract_mapper/functions/subclass_spec.rb
116
+ - spec/unit/abstract_mapper/node_spec.rb
117
+ - spec/unit/abstract_mapper/optimizer_spec.rb
118
+ - spec/unit/abstract_mapper/pair_rule_spec.rb
119
+ - spec/unit/abstract_mapper/rule_spec.rb
120
+ - spec/unit/abstract_mapper/rules_spec.rb
121
+ - spec/unit/abstract_mapper/settings_spec.rb
122
+ - spec/unit/abstract_mapper/sole_rule_spec.rb
123
+ - spec/unit/abstract_mapper_spec.rb
124
+ homepage: https://github.com/nepalez/abstract_mapper
125
+ licenses:
126
+ - MIT
127
+ metadata: {}
128
+ post_install_message:
129
+ rdoc_options: []
130
+ require_paths:
131
+ - lib
132
+ required_ruby_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '2.1'
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ requirements: []
143
+ rubyforge_project:
144
+ rubygems_version: 2.4.6
145
+ signing_key:
146
+ specification_version: 4
147
+ summary: AST for ruby mappers
148
+ test_files:
149
+ - spec/spec_helper.rb
150
+ - spec/integration/mapper_definition_spec.rb
151
+ - spec/integration/faceter.rb
152
+ - spec/integration/rspec_examples_spec.rb
153
+ - spec/unit/abstract_mapper/dsl_spec.rb
154
+ - spec/unit/abstract_mapper/rule_spec.rb
155
+ - spec/unit/abstract_mapper/sole_rule_spec.rb
156
+ - spec/unit/abstract_mapper/pair_rule_spec.rb
157
+ - spec/unit/abstract_mapper/functions/compact_spec.rb
158
+ - spec/unit/abstract_mapper/functions/filter_spec.rb
159
+ - spec/unit/abstract_mapper/functions/subclass_spec.rb
160
+ - spec/unit/abstract_mapper/rules_spec.rb
161
+ - spec/unit/abstract_mapper/builder_spec.rb
162
+ - spec/unit/abstract_mapper/errors/wrong_node_spec.rb
163
+ - spec/unit/abstract_mapper/errors/unknown_command_spec.rb
164
+ - spec/unit/abstract_mapper/errors/wrong_rule_spec.rb
165
+ - spec/unit/abstract_mapper/commands_spec.rb
166
+ - spec/unit/abstract_mapper/node_spec.rb
167
+ - spec/unit/abstract_mapper/settings_spec.rb
168
+ - spec/unit/abstract_mapper/branch_spec.rb
169
+ - spec/unit/abstract_mapper/optimizer_spec.rb
170
+ - spec/unit/abstract_mapper_spec.rb
171
+ has_rdoc: