emd 0.5.0 → 0.6.0
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.
- checksums.yaml +4 -4
- data/README.md +19 -19
- data/lib/emd/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1057ad153eab8a0f90c99e96bf865fe7c91c42b5dad62a85c9b0faea346182e1
|
4
|
+
data.tar.gz: 598ea55c1fda7b8b58ba6e3cd4f15925d6178b229bc7089c15384852474a9fb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 962543192bd7344fe0eed7b1321ed148f5983cf849e972c0fcc9eaf775a1b37a586fe0b5ab9a94828d90f1afe757c8eccd4a4a6114d4f9ee248dd7acdeb6b8e7
|
7
|
+
data.tar.gz: ab22746d9fa60ffd996cd07c24adadbcee89d01d254de75c394d4141327b5e81e4711c4e724ace98c5200653943f4123e1853a60663c03a70c6ee38fdf73a9c1
|
data/README.md
CHANGED
@@ -23,18 +23,18 @@ bundle
|
|
23
23
|
|
24
24
|
1. Create a `markdown.html.md` view at `app/view/home/markdown.html.md` and add the following Markdown code:
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
```markdown
|
27
|
+
## This is a sample Markdown code
|
28
|
+
- [google](http://google.com)
|
29
|
+
- [emd](https://github.com/ytbryan/emd/)
|
30
|
+
```
|
31
31
|
|
32
32
|
1. Generate a home controller using the following command `rails generate controller home`
|
33
33
|
|
34
34
|
1. Add the following line to `route.rb`:
|
35
|
-
|
36
|
-
|
37
|
-
|
35
|
+
```
|
36
|
+
get '/markdown', to: 'home#markdown'
|
37
|
+
```
|
38
38
|
1. And finally, visit the Markdown view at [http://localhost:3000/markdown](http://localhost:3000/markdown)
|
39
39
|
|
40
40
|
|
@@ -42,20 +42,20 @@ bundle
|
|
42
42
|
|
43
43
|
1. Create a `_component.html.md` partial at `app/view/home/_component.html.md`:
|
44
44
|
|
45
|
-
|
46
|
-
|
45
|
+
```markdown
|
46
|
+
### This is a component
|
47
47
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
48
|
+
- This is item 1
|
49
|
+
- This is iiem 2
|
50
|
+
- [This is a link to google] (http://google.com)
|
51
|
+
```
|
52
52
|
|
53
53
|
1. Use this partial using `<%= render "component" %>` within any view like at `home/index.html.erb`
|
54
54
|
|
55
55
|
1. Add the following line to `route.rb`:
|
56
|
-
|
57
|
-
|
58
|
-
|
56
|
+
```
|
57
|
+
get '/home', to: 'home#index'
|
58
|
+
```
|
59
59
|
1. And finally, visit the Rails view with Markdown partial at [http://localhost:3000/home](http://localhost:3000/home)
|
60
60
|
|
61
61
|
|
@@ -72,8 +72,8 @@ This will turn all the code block into:
|
|
72
72
|
|
73
73
|
```ruby
|
74
74
|
```ruby
|
75
|
-
|
76
|
-
|
75
|
+
class Something
|
76
|
+
end
|
77
77
|
```
|
78
78
|
```
|
79
79
|
|
data/lib/emd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Lim
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redcarpet
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.5.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
26
|
+
version: 3.5.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.1.
|
61
|
+
version: 1.1.3
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.1.
|
68
|
+
version: 1.1.3
|
69
69
|
description: Embedded markdown template for Ruby on Rails
|
70
70
|
email:
|
71
71
|
- ytbryan@gmail.com
|
@@ -103,8 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
|
-
rubygems_version: 3.
|
107
|
-
signing_key:
|
106
|
+
rubygems_version: 3.1.2
|
107
|
+
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Markdown partial and .html.md on Rails View
|
110
110
|
test_files: []
|