tbpgr_utils 0.0.108 → 0.0.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +10 -0
- data/lib/markdown/hr.rb +15 -0
- data/lib/markdown/ol.rb +1 -1
- data/lib/markdown/ul.rb +1 -1
- data/lib/markdown_string.rb +1 -0
- data/lib/tbpgr_utils/version.rb +1 -1
- data/spec/markdown/hr_spec.rb +42 -0
- data/spec/markdown/ol_spec.rb +3 -3
- data/spec/markdown/ul_spec.rb +3 -3
- metadata +15 -12
data/README.md
CHANGED
@@ -99,6 +99,7 @@ Or install it yourself as:
|
|
99
99
|
|[MarkdownString.heading4](#markdownstringheading4) |Return markdown heading level4 from text |
|
100
100
|
|[MarkdownString.heading5](#markdownstringheading5) |Return markdown heading level5 from text |
|
101
101
|
|[MarkdownString.heading6](#markdownstringheading6) |Return markdown heading level6 from text |
|
102
|
+
|[MarkdownString.hr](#markdownstringhr) |Return markdown hr |
|
102
103
|
|[MarkdownString.ol](#markdownstringol) |Return markdown ol from array |
|
103
104
|
|[MarkdownString.ul](#markdownstringul) |Return markdown ul from array |
|
104
105
|
|[MetasyntacticVariable](#metasyntacticvariable) |META variable, META variable for classes |
|
@@ -2353,6 +2354,14 @@ MarkdownString.heading6(12345) # => "###### 12345"
|
|
2353
2354
|
|
2354
2355
|
[back to list](#list)
|
2355
2356
|
|
2357
|
+
### MarkdownString.hr
|
2358
|
+
~~~ruby
|
2359
|
+
require 'markdown_string'
|
2360
|
+
MarkdownString.hr # => '---'
|
2361
|
+
~~~
|
2362
|
+
|
2363
|
+
[back to list](#list)
|
2364
|
+
|
2356
2365
|
### MarkdownString.ol
|
2357
2366
|
case list
|
2358
2367
|
~~~ruby
|
@@ -3425,6 +3434,7 @@ if you are Sublime Text2 user, you can use snippet for TbpgrUtils.
|
|
3425
3434
|
https://github.com/tbpgr/tbpgr_utils_snippets
|
3426
3435
|
|
3427
3436
|
## History
|
3437
|
+
* version 0.0.109 : add MarkdownString#hr
|
3428
3438
|
* version 0.0.108 : add MarkdownString#ol
|
3429
3439
|
* version 0.0.107 : add MarkdownString#ul
|
3430
3440
|
* version 0.0.106 : add MarkdownString#heading3, heading4, heading5, heading6
|
data/lib/markdown/hr.rb
ADDED
data/lib/markdown/ol.rb
CHANGED
data/lib/markdown/ul.rb
CHANGED
data/lib/markdown_string.rb
CHANGED
data/lib/tbpgr_utils/version.rb
CHANGED
@@ -0,0 +1,42 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
require 'markdown/hr'
|
4
|
+
|
5
|
+
describe MarkdownString do
|
6
|
+
context :hr do
|
7
|
+
cases = [
|
8
|
+
{
|
9
|
+
case_no: 1,
|
10
|
+
case_title: 'valid case',
|
11
|
+
expected: '---'
|
12
|
+
},
|
13
|
+
]
|
14
|
+
|
15
|
+
cases.each do |c|
|
16
|
+
it "|case_no=#{c[:case_no]}|case_title=#{c[:case_title]}" do
|
17
|
+
begin
|
18
|
+
case_before c
|
19
|
+
|
20
|
+
# -- given --
|
21
|
+
# nothing
|
22
|
+
|
23
|
+
# -- when --
|
24
|
+
actual = MarkdownString.hr
|
25
|
+
|
26
|
+
# -- then --
|
27
|
+
expect(actual).to eq(c[:expected])
|
28
|
+
ensure
|
29
|
+
case_after c
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def case_before(c)
|
34
|
+
# implement each case before
|
35
|
+
end
|
36
|
+
|
37
|
+
def case_after(c)
|
38
|
+
# implement each case after
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
data/spec/markdown/ol_spec.rb
CHANGED
data/spec/markdown/ul_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tbpgr_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.109
|
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: 2014-04-
|
12
|
+
date: 2014-04-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement: &
|
16
|
+
requirement: &23025120 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 4.0.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *23025120
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
27
|
-
requirement: &
|
27
|
+
requirement: &23024832 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '1.3'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *23024832
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &23024604 !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: *
|
46
|
+
version_requirements: *23024604
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &23024280 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 2.14.1
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *23024280
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: simplecov
|
60
|
-
requirement: &
|
60
|
+
requirement: &23023980 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: 0.8.2
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *23023980
|
69
69
|
description: Utilities
|
70
70
|
email:
|
71
71
|
- tbpgr@tbpgr.jp
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- lib/familyable/person.rb
|
110
110
|
- lib/ghostable.rb
|
111
111
|
- lib/markdown/heading.rb
|
112
|
+
- lib/markdown/hr.rb
|
112
113
|
- lib/markdown/ol.rb
|
113
114
|
- lib/markdown/ul.rb
|
114
115
|
- lib/markdown_string.rb
|
@@ -234,6 +235,7 @@ files:
|
|
234
235
|
- spec/familyable/familyable_spec.rb
|
235
236
|
- spec/ghostable_spec.rb
|
236
237
|
- spec/markdown/heading_spec.rb
|
238
|
+
- spec/markdown/hr_spec.rb
|
237
239
|
- spec/markdown/ol_spec.rb
|
238
240
|
- spec/markdown/ul_spec.rb
|
239
241
|
- spec/metasyntactic_variable_spec.rb
|
@@ -374,6 +376,7 @@ test_files:
|
|
374
376
|
- spec/familyable/familyable_spec.rb
|
375
377
|
- spec/ghostable_spec.rb
|
376
378
|
- spec/markdown/heading_spec.rb
|
379
|
+
- spec/markdown/hr_spec.rb
|
377
380
|
- spec/markdown/ol_spec.rb
|
378
381
|
- spec/markdown/ul_spec.rb
|
379
382
|
- spec/metasyntactic_variable_spec.rb
|