acts_as_markup 1.4.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ class ActsAsRDocTest < ActsAsMarkupTestCase
23
23
  end
24
24
 
25
25
  should "return formated html for a `to_html` method call on the column value" do
26
- assert_match(/<h2[^>]*>\s*RDoc Test Text\s*<\/h2>/, @post.body.to_html)
26
+ assert_match(/<h2[^>]*>\s*RDoc Test Text.*<\/h2>/, @post.body.to_html)
27
27
  end
28
28
 
29
29
  context "changing value of RDoc field should return new RDoc object" do
data/test/test_helper.rb CHANGED
@@ -7,7 +7,12 @@ rescue Bundler::BundlerError => e
7
7
  $stderr.puts "Run `bundle install` to install missing gems"
8
8
  exit e.status_code
9
9
  end
10
- require 'test/unit'
10
+ require 'active_support/version'
11
+ if ActiveSupport::VERSION::MAJOR >= 4
12
+ require 'minitest/autorun'
13
+ else
14
+ require 'test/unit'
15
+ end
11
16
  gem 'sqlite3-ruby'
12
17
  require 'shoulda'
13
18
  require 'active_support'
metadata CHANGED
@@ -1,286 +1,246 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_markup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
5
- prerelease:
4
+ version: 2.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Brian Landau
9
8
  autorequire:
10
9
  bindir: bin
11
- cert_chain: []
12
- date: 2012-03-09 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDOjCCAiKgAwIBAgIBADANBgkqhkiG9w0BAQUFADBDMRUwEwYDVQQDDAxicmlh
14
+ bmpsYW5kYXUxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
15
+ A2NvbTAeFw0wNzEyMDUwMzA5NTBaFw0wODEyMDQwMzA5NTBaMEMxFTATBgNVBAMM
16
+ DGJyaWFuamxhbmRhdTEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
17
+ LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvizK5bV4
18
+ NQARcbPgZpLkSaashTY2JgLqQbxw9en6F4JFQsAlalWvmPqaC65NUxpV+Yb7mK1e
19
+ Rx/6HBln8QeywVMwYTRvqYXXVn1MTLxnYLpLjQQrsM0vZIxwNsmQzrNqvvdGJRok
20
+ gSrJx8lnb3LkmO68N6mG1lETaviaPwWhlB8mu3kcDG9dDXLWbPLDO4wHIIMl+0Nb
21
+ wpyl7d4vteRAXOHmA+Ir5KkWloEhpPJ/WzUL4kxmvcqVSo04aEGsGecgkgSWfyID
22
+ 7Z4KcE1dqjA1RjmeRHwxQilW49GkthB3CQhfhsjYJ3IYvUfiQIzDdrWLbJpxzShk
23
+ E1IpSLMiP4svBQIDAQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
24
+ HQ4EFgQU00bxUNAS/W5tSWPDvnSlm3Tf9VYwDQYJKoZIhvcNAQEFBQADggEBAKUC
25
+ 669HsZByRjaana3sE5Tyo59/Cb8LxphAS0s9rMtiQyh2sPIno02/pAKrC7S2qnwZ
26
+ 8W71VKqROGnBhaSjWshwU0BjbcCpNDAE4YPLP3lUlP69FuGXbsqv9sYH1GKjgFHi
27
+ OCM/uh9PLtUOQ0gRKixi8/edn11sUxYLMjpThagIU/kzw2J/xQoUpOgzHzrDnN00
28
+ 8VWE27Mw4BMckRzTjgyEbGB6+j1NYaaQ76a1q1yFc3XiR9crZhyTmXT887lPCe3B
29
+ QHjym4e4y/FmXBJjpO/TtRoYd8a5YTCaOsML7M/nb/XrArvE3l5JaNEXkhH/nGs7
30
+ wR9huisTMlESX3ReGKU=
31
+ -----END CERTIFICATE-----
32
+ date: 2014-09-03 00:00:00.000000000 Z
13
33
  dependencies:
14
34
  - !ruby/object:Gem::Dependency
15
35
  name: activesupport
16
- requirement: &70236710434680 !ruby/object:Gem::Requirement
17
- none: false
36
+ requirement: !ruby/object:Gem::Requirement
18
37
  requirements:
19
- - - ! '>='
38
+ - - ">="
20
39
  - !ruby/object:Gem::Version
21
- version: '0'
40
+ version: 3.0.20
22
41
  type: :runtime
23
42
  prerelease: false
24
- version_requirements: *70236710434680
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 3.0.20
25
48
  - !ruby/object:Gem::Dependency
26
49
  name: activerecord
27
- requirement: &70236710430080 !ruby/object:Gem::Requirement
28
- none: false
50
+ requirement: !ruby/object:Gem::Requirement
29
51
  requirements:
30
- - - ! '>='
52
+ - - ">="
31
53
  - !ruby/object:Gem::Version
32
- version: '0'
54
+ version: 3.0.20
33
55
  type: :runtime
34
56
  prerelease: false
35
- version_requirements: *70236710430080
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 3.0.20
36
62
  - !ruby/object:Gem::Dependency
37
63
  name: rdiscount
38
- requirement: &70236710441900 !ruby/object:Gem::Requirement
39
- none: false
64
+ requirement: !ruby/object:Gem::Requirement
40
65
  requirements:
41
- - - ! '>='
66
+ - - ">="
42
67
  - !ruby/object:Gem::Version
43
68
  version: '0'
44
69
  type: :runtime
45
70
  prerelease: false
46
- version_requirements: *70236710441900
47
- - !ruby/object:Gem::Dependency
48
- name: wikicloth
49
- requirement: &70236710438020 !ruby/object:Gem::Requirement
50
- none: false
71
+ version_requirements: !ruby/object:Gem::Requirement
51
72
  requirements:
52
- - - ! '>='
73
+ - - ">="
53
74
  - !ruby/object:Gem::Version
54
75
  version: '0'
55
- type: :runtime
56
- prerelease: false
57
- version_requirements: *70236710438020
58
76
  - !ruby/object:Gem::Dependency
59
- name: RedCloth
60
- requirement: &70236710451860 !ruby/object:Gem::Requirement
61
- none: false
77
+ name: appraisal
78
+ requirement: !ruby/object:Gem::Requirement
62
79
  requirements:
63
- - - ! '>='
80
+ - - ">="
64
81
  - !ruby/object:Gem::Version
65
82
  version: '0'
66
- type: :runtime
83
+ type: :development
67
84
  prerelease: false
68
- version_requirements: *70236710451860
69
- - !ruby/object:Gem::Dependency
70
- name: shoulda
71
- requirement: &70236710449580 !ruby/object:Gem::Requirement
72
- none: false
85
+ version_requirements: !ruby/object:Gem::Requirement
73
86
  requirements:
74
- - - ! '>='
87
+ - - ">="
75
88
  - !ruby/object:Gem::Version
76
89
  version: '0'
77
- type: :development
78
- prerelease: false
79
- version_requirements: *70236710449580
80
90
  - !ruby/object:Gem::Dependency
81
- name: bundler
82
- requirement: &70236710447600 !ruby/object:Gem::Requirement
83
- none: false
91
+ name: sqlite3-ruby
92
+ requirement: !ruby/object:Gem::Requirement
84
93
  requirements:
85
- - - ~>
94
+ - - ">="
86
95
  - !ruby/object:Gem::Version
87
- version: 1.0.0
96
+ version: '0'
88
97
  type: :development
89
98
  prerelease: false
90
- version_requirements: *70236710447600
91
- - !ruby/object:Gem::Dependency
92
- name: jeweler
93
- requirement: &70236710445260 !ruby/object:Gem::Requirement
94
- none: false
99
+ version_requirements: !ruby/object:Gem::Requirement
95
100
  requirements:
96
- - - ~>
101
+ - - ">="
97
102
  - !ruby/object:Gem::Version
98
- version: 1.6.4
99
- type: :development
100
- prerelease: false
101
- version_requirements: *70236710445260
103
+ version: '0'
102
104
  - !ruby/object:Gem::Dependency
103
- name: rcov
104
- requirement: &70236710456360 !ruby/object:Gem::Requirement
105
- none: false
105
+ name: shoulda
106
+ requirement: !ruby/object:Gem::Requirement
106
107
  requirements:
107
- - - ! '>='
108
+ - - ">="
108
109
  - !ruby/object:Gem::Version
109
110
  version: '0'
110
111
  type: :development
111
112
  prerelease: false
112
- version_requirements: *70236710456360
113
- - !ruby/object:Gem::Dependency
114
- name: sqlite3-ruby
115
- requirement: &70236710455280 !ruby/object:Gem::Requirement
116
- none: false
113
+ version_requirements: !ruby/object:Gem::Requirement
117
114
  requirements:
118
- - - ! '>='
115
+ - - ">="
119
116
  - !ruby/object:Gem::Version
120
117
  version: '0'
121
- type: :development
122
- prerelease: false
123
- version_requirements: *70236710455280
124
118
  - !ruby/object:Gem::Dependency
125
119
  name: sdoc
126
- requirement: &70236710454380 !ruby/object:Gem::Requirement
127
- none: false
120
+ requirement: !ruby/object:Gem::Requirement
128
121
  requirements:
129
- - - ! '>='
122
+ - - ">="
130
123
  - !ruby/object:Gem::Version
131
124
  version: '0'
132
125
  type: :development
133
126
  prerelease: false
134
- version_requirements: *70236710454380
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
135
132
  - !ruby/object:Gem::Dependency
136
133
  name: brianjlandau-sdoc-helpers
137
- requirement: &70236710469580 !ruby/object:Gem::Requirement
138
- none: false
134
+ requirement: !ruby/object:Gem::Requirement
139
135
  requirements:
140
- - - ! '>='
136
+ - - ">="
141
137
  - !ruby/object:Gem::Version
142
138
  version: '0'
143
139
  type: :development
144
140
  prerelease: false
145
- version_requirements: *70236710469580
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
146
  - !ruby/object:Gem::Dependency
147
- name: rpeg-markdown
148
- requirement: &70236710468920 !ruby/object:Gem::Requirement
149
- none: false
147
+ name: RedCloth
148
+ requirement: !ruby/object:Gem::Requirement
150
149
  requirements:
151
- - - ! '>='
150
+ - - ">="
152
151
  - !ruby/object:Gem::Version
153
152
  version: '0'
154
153
  type: :development
155
154
  prerelease: false
156
- version_requirements: *70236710468920
155
+ version_requirements: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
157
160
  - !ruby/object:Gem::Dependency
158
161
  name: rdoc
159
- requirement: &70236710468220 !ruby/object:Gem::Requirement
160
- none: false
162
+ requirement: !ruby/object:Gem::Requirement
161
163
  requirements:
162
- - - ! '>='
164
+ - - ">="
163
165
  - !ruby/object:Gem::Version
164
166
  version: '0'
165
167
  type: :development
166
168
  prerelease: false
167
- version_requirements: *70236710468220
168
- - !ruby/object:Gem::Dependency
169
- name: bluecloth
170
- requirement: &70236710467360 !ruby/object:Gem::Requirement
171
- none: false
169
+ version_requirements: !ruby/object:Gem::Requirement
172
170
  requirements:
173
- - - ! '>='
171
+ - - ">="
174
172
  - !ruby/object:Gem::Version
175
173
  version: '0'
176
- type: :development
177
- prerelease: false
178
- version_requirements: *70236710467360
179
174
  - !ruby/object:Gem::Dependency
180
- name: maruku
181
- requirement: &70236710465820 !ruby/object:Gem::Requirement
182
- none: false
175
+ name: bluecloth
176
+ requirement: !ruby/object:Gem::Requirement
183
177
  requirements:
184
- - - ! '>='
178
+ - - ">="
185
179
  - !ruby/object:Gem::Version
186
180
  version: '0'
187
181
  type: :development
188
182
  prerelease: false
189
- version_requirements: *70236710465820
190
- - !ruby/object:Gem::Dependency
191
- name: wikitext
192
- requirement: &70236710476120 !ruby/object:Gem::Requirement
193
- none: false
183
+ version_requirements: !ruby/object:Gem::Requirement
194
184
  requirements:
195
- - - ! '>='
185
+ - - ">="
196
186
  - !ruby/object:Gem::Version
197
187
  version: '0'
198
- type: :development
199
- prerelease: false
200
- version_requirements: *70236710476120
201
188
  - !ruby/object:Gem::Dependency
202
- name: redcarpet
203
- requirement: &70236710472200 !ruby/object:Gem::Requirement
204
- none: false
189
+ name: maruku
190
+ requirement: !ruby/object:Gem::Requirement
205
191
  requirements:
206
- - - ! '>='
192
+ - - ">="
207
193
  - !ruby/object:Gem::Version
208
194
  version: '0'
209
195
  type: :development
210
196
  prerelease: false
211
- version_requirements: *70236710472200
212
- - !ruby/object:Gem::Dependency
213
- name: activesupport
214
- requirement: &70236710485640 !ruby/object:Gem::Requirement
215
- none: false
197
+ version_requirements: !ruby/object:Gem::Requirement
216
198
  requirements:
217
- - - ! '>='
199
+ - - ">="
218
200
  - !ruby/object:Gem::Version
219
- version: 2.3.2
220
- type: :runtime
221
- prerelease: false
222
- version_requirements: *70236710485640
201
+ version: '0'
223
202
  - !ruby/object:Gem::Dependency
224
- name: activerecord
225
- requirement: &70236710484760 !ruby/object:Gem::Requirement
226
- none: false
203
+ name: rpeg-markdown
204
+ requirement: !ruby/object:Gem::Requirement
227
205
  requirements:
228
- - - ! '>='
206
+ - - ">="
229
207
  - !ruby/object:Gem::Version
230
- version: 2.3.2
231
- type: :runtime
208
+ version: '0'
209
+ type: :development
232
210
  prerelease: false
233
- version_requirements: *70236710484760
234
- - !ruby/object:Gem::Dependency
235
- name: rdiscount
236
- requirement: &70236710483420 !ruby/object:Gem::Requirement
237
- none: false
211
+ version_requirements: !ruby/object:Gem::Requirement
238
212
  requirements:
239
- - - ~>
213
+ - - ">="
240
214
  - !ruby/object:Gem::Version
241
- version: '1.3'
242
- type: :runtime
243
- prerelease: false
244
- version_requirements: *70236710483420
215
+ version: '0'
245
216
  - !ruby/object:Gem::Dependency
246
- name: wikitext
247
- requirement: &70236710482420 !ruby/object:Gem::Requirement
248
- none: false
217
+ name: redcarpet
218
+ requirement: !ruby/object:Gem::Requirement
249
219
  requirements:
250
- - - ~>
220
+ - - ">="
251
221
  - !ruby/object:Gem::Version
252
- version: '2.0'
253
- type: :runtime
222
+ version: '0'
223
+ type: :development
254
224
  prerelease: false
255
- version_requirements: *70236710482420
256
- - !ruby/object:Gem::Dependency
257
- name: RedCloth
258
- requirement: &70236710481700 !ruby/object:Gem::Requirement
259
- none: false
225
+ version_requirements: !ruby/object:Gem::Requirement
260
226
  requirements:
261
- - - ~>
227
+ - - ">="
262
228
  - !ruby/object:Gem::Version
263
- version: '4.2'
264
- type: :runtime
265
- prerelease: false
266
- version_requirements: *70236710481700
267
- description: Represent ActiveRecord Markdown, Textile, Wiki text, RDoc columns as
268
- Markdown, Textile Wikitext, RDoc objects using various external libraries to convert
269
- to HTML.
229
+ version: '0'
230
+ description: Represent ActiveRecord Markdown, Textile, RDoc columns as Markdown, Textile,
231
+ RDoc objects using various external libraries to convert to HTML.
270
232
  email: brian.landau@viget.com
271
233
  executables: []
272
234
  extensions: []
273
235
  extra_rdoc_files:
274
236
  - LICENSE
237
+ - CHANGELOG
275
238
  - README.rdoc
276
239
  files:
277
240
  - CHANGELOG
278
- - Gemfile
279
- - Gemfile.lock
280
241
  - LICENSE
281
242
  - README.rdoc
282
243
  - Rakefile
283
- - acts_as_markup.gemspec
284
244
  - lib/acts_as_markup.rb
285
245
  - lib/acts_as_markup/active_record_extension.rb
286
246
  - lib/acts_as_markup/exts/bluecloth.rb
@@ -290,46 +250,42 @@ files:
290
250
  - lib/acts_as_markup/exts/rdiscount.rb
291
251
  - lib/acts_as_markup/exts/rdoc.rb
292
252
  - lib/acts_as_markup/exts/redcarpet.rb
293
- - lib/acts_as_markup/exts/wikicloth.rb
294
- - lib/acts_as_markup/exts/wikitext.rb
295
253
  - lib/acts_as_markup/railtie.rb
296
254
  - lib/acts_as_markup/stringlike.rb
297
255
  - lib/acts_as_markup/version.rb
298
- - tasks/rdoc.rb
299
- - tasks/test.rb
300
256
  - test/acts_as_markdown_test.rb
301
257
  - test/acts_as_markup_test.rb
302
- - test/acts_as_mediawiki_test.rb
303
258
  - test/acts_as_rdoc_test.rb
304
259
  - test/acts_as_textile_test.rb
305
260
  - test/test_helper.rb
306
261
  homepage: http://vigetlabs.github.com/acts_as_markup/
307
262
  licenses:
308
263
  - MIT
264
+ metadata: {}
309
265
  post_install_message:
310
266
  rdoc_options: []
311
267
  require_paths:
312
268
  - lib
313
269
  required_ruby_version: !ruby/object:Gem::Requirement
314
- none: false
315
270
  requirements:
316
- - - ! '>='
271
+ - - ">="
317
272
  - !ruby/object:Gem::Version
318
273
  version: '0'
319
- segments:
320
- - 0
321
- hash: -2985236423496055625
322
274
  required_rubygems_version: !ruby/object:Gem::Requirement
323
- none: false
324
275
  requirements:
325
- - - ! '>='
276
+ - - ">="
326
277
  - !ruby/object:Gem::Version
327
278
  version: '0'
328
279
  requirements: []
329
280
  rubyforge_project:
330
- rubygems_version: 1.8.15
281
+ rubygems_version: 2.2.0
331
282
  signing_key:
332
- specification_version: 3
333
- summary: Represent ActiveRecord Markdown, Textile, Wiki text, RDoc columns as Markdown,
334
- Textile Wikitext, RDoc objects using various external libraries to convert to HTML.
335
- test_files: []
283
+ specification_version: 4
284
+ summary: Represent ActiveRecord Markdown, Textile, RDoc columns as Markdown, Textile,
285
+ RDoc objects using various external libraries to convert to HTML.
286
+ test_files:
287
+ - test/acts_as_markdown_test.rb
288
+ - test/acts_as_markup_test.rb
289
+ - test/acts_as_rdoc_test.rb
290
+ - test/acts_as_textile_test.rb
291
+ - test/test_helper.rb