arbre2 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +30 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +6 -0
  6. data/CHANGELOG.md +75 -0
  7. data/Gemfile +2 -0
  8. data/Gemfile.lock +93 -0
  9. data/LICENSE +20 -0
  10. data/README.md +92 -0
  11. data/Rakefile +7 -0
  12. data/arbre.gemspec +28 -0
  13. data/lib/arbre/child_element_collection.rb +86 -0
  14. data/lib/arbre/container.rb +20 -0
  15. data/lib/arbre/context.rb +83 -0
  16. data/lib/arbre/element/building.rb +151 -0
  17. data/lib/arbre/element.rb +194 -0
  18. data/lib/arbre/element_collection.rb +93 -0
  19. data/lib/arbre/html/attributes.rb +91 -0
  20. data/lib/arbre/html/class_list.rb +53 -0
  21. data/lib/arbre/html/comment.rb +47 -0
  22. data/lib/arbre/html/document.rb +93 -0
  23. data/lib/arbre/html/html_tags.rb +67 -0
  24. data/lib/arbre/html/querying.rb +256 -0
  25. data/lib/arbre/html/tag.rb +317 -0
  26. data/lib/arbre/rails/layouts.rb +126 -0
  27. data/lib/arbre/rails/legacy_document.rb +29 -0
  28. data/lib/arbre/rails/rendering.rb +76 -0
  29. data/lib/arbre/rails/rspec/arbre_support.rb +61 -0
  30. data/lib/arbre/rails/rspec.rb +2 -0
  31. data/lib/arbre/rails/template_handler.rb +32 -0
  32. data/lib/arbre/rails.rb +35 -0
  33. data/lib/arbre/rspec/be_rendered_as_matcher.rb +103 -0
  34. data/lib/arbre/rspec/be_scripted_as_matcher.rb +68 -0
  35. data/lib/arbre/rspec/contain_script_matcher.rb +64 -0
  36. data/lib/arbre/rspec.rb +3 -0
  37. data/lib/arbre/text_node.rb +35 -0
  38. data/lib/arbre/version.rb +3 -0
  39. data/lib/arbre.rb +27 -0
  40. data/spec/arbre/integration/html_document_spec.rb +90 -0
  41. data/spec/arbre/integration/html_spec.rb +283 -0
  42. data/spec/arbre/integration/querying_spec.rb +187 -0
  43. data/spec/arbre/integration/rails_spec.rb +183 -0
  44. data/spec/arbre/rails/rspec/arbre_support_spec.rb +75 -0
  45. data/spec/arbre/rspec/be_rendered_as_matcher_spec.rb +80 -0
  46. data/spec/arbre/rspec/be_scripted_as_matcher_spec.rb +61 -0
  47. data/spec/arbre/rspec/contain_script_matcher_spec.rb +40 -0
  48. data/spec/arbre/support/arbre_example_group.rb +0 -0
  49. data/spec/arbre/unit/child_element_collection_spec.rb +146 -0
  50. data/spec/arbre/unit/container_spec.rb +23 -0
  51. data/spec/arbre/unit/context_spec.rb +95 -0
  52. data/spec/arbre/unit/element/building_spec.rb +300 -0
  53. data/spec/arbre/unit/element_collection_spec.rb +169 -0
  54. data/spec/arbre/unit/element_spec.rb +297 -0
  55. data/spec/arbre/unit/html/attributes_spec.rb +219 -0
  56. data/spec/arbre/unit/html/class_list_spec.rb +109 -0
  57. data/spec/arbre/unit/html/comment_spec.rb +42 -0
  58. data/spec/arbre/unit/html/querying_spec.rb +32 -0
  59. data/spec/arbre/unit/html/tag_spec.rb +300 -0
  60. data/spec/arbre/unit/rails/layouts_spec.rb +127 -0
  61. data/spec/arbre/unit/text_node_spec.rb +40 -0
  62. data/spec/rails/app/controllers/example_controller.rb +18 -0
  63. data/spec/rails/app/views/example/_arbre_partial.html.arb +7 -0
  64. data/spec/rails/app/views/example/_erb_partial.html.erb +1 -0
  65. data/spec/rails/app/views/example/arbre.html.arb +1 -0
  66. data/spec/rails/app/views/example/arbre_partial_result.html.arb +3 -0
  67. data/spec/rails/app/views/example/erb.html.erb +5 -0
  68. data/spec/rails/app/views/example/erb_partial_result.html.arb +3 -0
  69. data/spec/rails/app/views/example/partials.html.arb +11 -0
  70. data/spec/rails/app/views/layouts/empty.html.arb +1 -0
  71. data/spec/rails/app/views/layouts/with_title.html.arb +5 -0
  72. data/spec/rails/config/routes.rb +4 -0
  73. data/spec/rails_spec_helper.rb +13 -0
  74. data/spec/spec_helper.rb +20 -0
  75. data/spec/support/arbre_example_group.rb +19 -0
  76. metadata +254 -0
metadata ADDED
@@ -0,0 +1,254 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: arbre2
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Greg Bell
8
+ - Joost Lubach
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-12-16 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activesupport
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ~>
19
+ - !ruby/object:Gem::Version
20
+ version: '3.2'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ version: '3.2'
28
+ - !ruby/object:Gem::Dependency
29
+ name: bundler
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: '1.3'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ~>
40
+ - !ruby/object:Gem::Version
41
+ version: '1.3'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rake
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: tzinfo
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: combustion
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ version: '0.5'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ~>
82
+ - !ruby/object:Gem::Version
83
+ version: '0.5'
84
+ - !ruby/object:Gem::Dependency
85
+ name: rspec-rails
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ~>
89
+ - !ruby/object:Gem::Version
90
+ version: '2.14'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ~>
96
+ - !ruby/object:Gem::Version
97
+ version: '2.14'
98
+ - !ruby/object:Gem::Dependency
99
+ name: simplecov
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ description: An Object Oriented DOM Tree in Ruby
113
+ email:
114
+ - gregdbell@gmail.com
115
+ - joostlubach@gmail.com
116
+ executables: []
117
+ extensions: []
118
+ extra_rdoc_files: []
119
+ files:
120
+ - .gitignore
121
+ - .ruby-gemset
122
+ - .ruby-version
123
+ - .travis.yml
124
+ - CHANGELOG.md
125
+ - Gemfile
126
+ - Gemfile.lock
127
+ - LICENSE
128
+ - README.md
129
+ - Rakefile
130
+ - arbre.gemspec
131
+ - lib/arbre.rb
132
+ - lib/arbre/child_element_collection.rb
133
+ - lib/arbre/container.rb
134
+ - lib/arbre/context.rb
135
+ - lib/arbre/element.rb
136
+ - lib/arbre/element/building.rb
137
+ - lib/arbre/element_collection.rb
138
+ - lib/arbre/html/attributes.rb
139
+ - lib/arbre/html/class_list.rb
140
+ - lib/arbre/html/comment.rb
141
+ - lib/arbre/html/document.rb
142
+ - lib/arbre/html/html_tags.rb
143
+ - lib/arbre/html/querying.rb
144
+ - lib/arbre/html/tag.rb
145
+ - lib/arbre/rails.rb
146
+ - lib/arbre/rails/layouts.rb
147
+ - lib/arbre/rails/legacy_document.rb
148
+ - lib/arbre/rails/rendering.rb
149
+ - lib/arbre/rails/rspec.rb
150
+ - lib/arbre/rails/rspec/arbre_support.rb
151
+ - lib/arbre/rails/template_handler.rb
152
+ - lib/arbre/rspec.rb
153
+ - lib/arbre/rspec/be_rendered_as_matcher.rb
154
+ - lib/arbre/rspec/be_scripted_as_matcher.rb
155
+ - lib/arbre/rspec/contain_script_matcher.rb
156
+ - lib/arbre/text_node.rb
157
+ - lib/arbre/version.rb
158
+ - spec/arbre/integration/html_document_spec.rb
159
+ - spec/arbre/integration/html_spec.rb
160
+ - spec/arbre/integration/querying_spec.rb
161
+ - spec/arbre/integration/rails_spec.rb
162
+ - spec/arbre/rails/rspec/arbre_support_spec.rb
163
+ - spec/arbre/rspec/be_rendered_as_matcher_spec.rb
164
+ - spec/arbre/rspec/be_scripted_as_matcher_spec.rb
165
+ - spec/arbre/rspec/contain_script_matcher_spec.rb
166
+ - spec/arbre/support/arbre_example_group.rb
167
+ - spec/arbre/unit/child_element_collection_spec.rb
168
+ - spec/arbre/unit/container_spec.rb
169
+ - spec/arbre/unit/context_spec.rb
170
+ - spec/arbre/unit/element/building_spec.rb
171
+ - spec/arbre/unit/element_collection_spec.rb
172
+ - spec/arbre/unit/element_spec.rb
173
+ - spec/arbre/unit/html/attributes_spec.rb
174
+ - spec/arbre/unit/html/class_list_spec.rb
175
+ - spec/arbre/unit/html/comment_spec.rb
176
+ - spec/arbre/unit/html/querying_spec.rb
177
+ - spec/arbre/unit/html/tag_spec.rb
178
+ - spec/arbre/unit/rails/layouts_spec.rb
179
+ - spec/arbre/unit/text_node_spec.rb
180
+ - spec/rails/app/controllers/example_controller.rb
181
+ - spec/rails/app/views/example/_arbre_partial.html.arb
182
+ - spec/rails/app/views/example/_erb_partial.html.erb
183
+ - spec/rails/app/views/example/arbre.html.arb
184
+ - spec/rails/app/views/example/arbre_partial_result.html.arb
185
+ - spec/rails/app/views/example/erb.html.erb
186
+ - spec/rails/app/views/example/erb_partial_result.html.arb
187
+ - spec/rails/app/views/example/partials.html.arb
188
+ - spec/rails/app/views/layouts/empty.html.arb
189
+ - spec/rails/app/views/layouts/with_title.html.arb
190
+ - spec/rails/config/routes.rb
191
+ - spec/rails_spec_helper.rb
192
+ - spec/spec_helper.rb
193
+ - spec/support/arbre_example_group.rb
194
+ homepage: ''
195
+ licenses: []
196
+ metadata: {}
197
+ post_install_message:
198
+ rdoc_options: []
199
+ require_paths:
200
+ - lib
201
+ required_ruby_version: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ required_rubygems_version: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - '>='
209
+ - !ruby/object:Gem::Version
210
+ version: '0'
211
+ requirements: []
212
+ rubyforge_project:
213
+ rubygems_version: 2.1.4
214
+ signing_key:
215
+ specification_version: 4
216
+ summary: An Object Oriented DOM Tree in Ruby
217
+ test_files:
218
+ - spec/arbre/integration/html_document_spec.rb
219
+ - spec/arbre/integration/html_spec.rb
220
+ - spec/arbre/integration/querying_spec.rb
221
+ - spec/arbre/integration/rails_spec.rb
222
+ - spec/arbre/rails/rspec/arbre_support_spec.rb
223
+ - spec/arbre/rspec/be_rendered_as_matcher_spec.rb
224
+ - spec/arbre/rspec/be_scripted_as_matcher_spec.rb
225
+ - spec/arbre/rspec/contain_script_matcher_spec.rb
226
+ - spec/arbre/support/arbre_example_group.rb
227
+ - spec/arbre/unit/child_element_collection_spec.rb
228
+ - spec/arbre/unit/container_spec.rb
229
+ - spec/arbre/unit/context_spec.rb
230
+ - spec/arbre/unit/element/building_spec.rb
231
+ - spec/arbre/unit/element_collection_spec.rb
232
+ - spec/arbre/unit/element_spec.rb
233
+ - spec/arbre/unit/html/attributes_spec.rb
234
+ - spec/arbre/unit/html/class_list_spec.rb
235
+ - spec/arbre/unit/html/comment_spec.rb
236
+ - spec/arbre/unit/html/querying_spec.rb
237
+ - spec/arbre/unit/html/tag_spec.rb
238
+ - spec/arbre/unit/rails/layouts_spec.rb
239
+ - spec/arbre/unit/text_node_spec.rb
240
+ - spec/rails/app/controllers/example_controller.rb
241
+ - spec/rails/app/views/example/_arbre_partial.html.arb
242
+ - spec/rails/app/views/example/_erb_partial.html.erb
243
+ - spec/rails/app/views/example/arbre.html.arb
244
+ - spec/rails/app/views/example/arbre_partial_result.html.arb
245
+ - spec/rails/app/views/example/erb.html.erb
246
+ - spec/rails/app/views/example/erb_partial_result.html.arb
247
+ - spec/rails/app/views/example/partials.html.arb
248
+ - spec/rails/app/views/layouts/empty.html.arb
249
+ - spec/rails/app/views/layouts/with_title.html.arb
250
+ - spec/rails/config/routes.rb
251
+ - spec/rails_spec_helper.rb
252
+ - spec/spec_helper.rb
253
+ - spec/support/arbre_example_group.rb
254
+ has_rdoc: