hammer_builder 0.2.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-10 00:00:00.000000000Z
12
+ date: 2012-09-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &8478940 !ruby/object:Gem::Requirement
16
+ requirement: &70325295710140 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *8478940
24
+ version_requirements: *70325295710140
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: i18n
27
- requirement: &8477940 !ruby/object:Gem::Requirement
27
+ requirement: &70325295709600 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *8477940
35
+ version_requirements: *70325295709600
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &8474260 !ruby/object:Gem::Requirement
38
+ requirement: &70325295725120 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *8474260
46
+ version_requirements: *70325295725120
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: yard
49
- requirement: &8473300 !ruby/object:Gem::Requirement
49
+ requirement: &70325295724600 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *8473300
57
+ version_requirements: *70325295724600
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: bluecloth
60
- requirement: &8472480 !ruby/object:Gem::Requirement
60
+ requirement: &70325295723920 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *8472480
68
+ version_requirements: *70325295723920
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: jeweler
71
- requirement: &8471140 !ruby/object:Gem::Requirement
71
+ requirement: &70325295722980 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *8471140
79
+ version_requirements: *70325295722980
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: ruby-prof
82
- requirement: &8470500 !ruby/object:Gem::Requirement
82
+ requirement: &70325295721820 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *8470500
90
+ version_requirements: *70325295721820
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: perftools.rb
93
- requirement: &8469620 !ruby/object:Gem::Requirement
93
+ requirement: &70325295721320 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *8469620
101
+ version_requirements: *70325295721320
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: nokogiri
104
- requirement: &8468920 !ruby/object:Gem::Requirement
104
+ requirement: &70325295720720 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *8468920
112
+ version_requirements: *70325295720720
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: erubis
115
- requirement: &8468000 !ruby/object:Gem::Requirement
115
+ requirement: &70325295719940 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *8468000
123
+ version_requirements: *70325295719940
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: tenjin
126
- requirement: &8467120 !ruby/object:Gem::Requirement
126
+ requirement: &70325295719160 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *8467120
134
+ version_requirements: *70325295719160
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: erector
137
- requirement: &8466440 !ruby/object:Gem::Requirement
137
+ requirement: &70325295718540 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *8466440
145
+ version_requirements: *70325295718540
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: markaby
148
- requirement: &8461920 !ruby/object:Gem::Requirement
148
+ requirement: &70325295717760 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: '0'
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *8461920
156
+ version_requirements: *70325295717760
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: tagz
159
- requirement: &8460700 !ruby/object:Gem::Requirement
159
+ requirement: &70325295733400 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: '0'
165
165
  type: :development
166
166
  prerelease: false
167
- version_requirements: *8460700
167
+ version_requirements: *70325295733400
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: simplecov
170
- requirement: &8459620 !ruby/object:Gem::Requirement
170
+ requirement: &70325295732520 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,10 +175,10 @@ dependencies:
175
175
  version: '0'
176
176
  type: :development
177
177
  prerelease: false
178
- version_requirements: *8459620
178
+ version_requirements: *70325295732520
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: simplecov-rcov
181
- requirement: &8457900 !ruby/object:Gem::Requirement
181
+ requirement: &70325295731220 !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
184
184
  - - ! '>='
@@ -186,10 +186,21 @@ dependencies:
186
186
  version: '0'
187
187
  type: :development
188
188
  prerelease: false
189
- version_requirements: *8457900
189
+ version_requirements: *70325295731220
190
+ - !ruby/object:Gem::Dependency
191
+ name: therubyracer
192
+ requirement: &70325295730320 !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: *70325295730320
190
201
  - !ruby/object:Gem::Dependency
191
202
  name: activesupport
192
- requirement: &8456620 !ruby/object:Gem::Requirement
203
+ requirement: &70325295729080 !ruby/object:Gem::Requirement
193
204
  none: false
194
205
  requirements:
195
206
  - - ~>
@@ -197,10 +208,10 @@ dependencies:
197
208
  version: '3.1'
198
209
  type: :runtime
199
210
  prerelease: false
200
- version_requirements: *8456620
211
+ version_requirements: *70325295729080
201
212
  - !ruby/object:Gem::Dependency
202
213
  name: i18n
203
- requirement: &8455660 !ruby/object:Gem::Requirement
214
+ requirement: &70325295728300 !ruby/object:Gem::Requirement
204
215
  none: false
205
216
  requirements:
206
217
  - - ~>
@@ -208,10 +219,10 @@ dependencies:
208
219
  version: '0.6'
209
220
  type: :runtime
210
221
  prerelease: false
211
- version_requirements: *8455660
222
+ version_requirements: *70325295728300
212
223
  - !ruby/object:Gem::Dependency
213
224
  name: rspec
214
- requirement: &8442980 !ruby/object:Gem::Requirement
225
+ requirement: &70325295727420 !ruby/object:Gem::Requirement
215
226
  none: false
216
227
  requirements:
217
228
  - - ~>
@@ -219,10 +230,10 @@ dependencies:
219
230
  version: 2.5.0
220
231
  type: :development
221
232
  prerelease: false
222
- version_requirements: *8442980
233
+ version_requirements: *70325295727420
223
234
  - !ruby/object:Gem::Dependency
224
235
  name: yard
225
- requirement: &8441520 !ruby/object:Gem::Requirement
236
+ requirement: &70325295726820 !ruby/object:Gem::Requirement
226
237
  none: false
227
238
  requirements:
228
239
  - - ~>
@@ -230,10 +241,10 @@ dependencies:
230
241
  version: '0.6'
231
242
  type: :development
232
243
  prerelease: false
233
- version_requirements: *8441520
244
+ version_requirements: *70325295726820
234
245
  - !ruby/object:Gem::Dependency
235
246
  name: bluecloth
236
- requirement: &8440240 !ruby/object:Gem::Requirement
247
+ requirement: &70325295726020 !ruby/object:Gem::Requirement
237
248
  none: false
238
249
  requirements:
239
250
  - - ~>
@@ -241,10 +252,10 @@ dependencies:
241
252
  version: '2.0'
242
253
  type: :development
243
254
  prerelease: false
244
- version_requirements: *8440240
255
+ version_requirements: *70325295726020
245
256
  - !ruby/object:Gem::Dependency
246
257
  name: jeweler
247
- requirement: &8437860 !ruby/object:Gem::Requirement
258
+ requirement: &70325295741740 !ruby/object:Gem::Requirement
248
259
  none: false
249
260
  requirements:
250
261
  - - ~>
@@ -252,7 +263,7 @@ dependencies:
252
263
  version: '1.6'
253
264
  type: :development
254
265
  prerelease: false
255
- version_requirements: *8437860
266
+ version_requirements: *70325295741740
256
267
  description: Fast extensible ruby html5 builder
257
268
  email: email@pitr.ch
258
269
  executables: []
@@ -275,7 +286,7 @@ files:
275
286
  - lib/hammer_builder/pool.rb
276
287
  - lib/hammer_builder/rails.rb
277
288
  - lib/hammer_builder/standard.rb
278
- - lib/hammer_builder/strings.rb
289
+ - lib/hammer_builder/strings_injector.rb
279
290
  - CHANGELOG.md
280
291
  - README.md
281
292
  - spec/hammer_builder_spec.rb
@@ -1,29 +0,0 @@
1
- module HammerBuilder
2
- module Strings
3
- def self.add(name, value)
4
- name = name.to_s.upcase
5
- if const_defined?(name)
6
- raise "values are different for const #{name}: #{[const_get(name), value].inspect}" if const_get(name) != value
7
- else
8
- const_set(name, value.freeze)
9
- end
10
- end
11
-
12
- add :lt, '<'
13
- add :gt, '>'
14
- add :slash_lt, '</'
15
- add :slash_gt, ' />'
16
- add :underscore, '_'
17
- add :space, ' '
18
- add :max_levels, 300
19
- add :spaces, Array.new(MAX_LEVELS) { |i| (' ' * i).freeze }
20
- add :newline, "\n"
21
- add :quote, '"'
22
- add :eql, '='
23
- add :eql_quote, EQL + QUOTE
24
- add :comment_start, '<!--'
25
- add :comment_end, '-->'
26
- add :cdata_start, '<![CDATA['
27
- add :cdata_end, ']]>'
28
- end
29
- end