carpetbomb 0.1.3 → 0.1.4
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 +13 -11
- data/lib/carpetbomb/version.rb +1 -1
- data/lib/generators/carpetbomb/install_generator.rb +0 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bad38c0a6bd2835cdc8c7136d0f046ed7597ce66
|
|
4
|
+
data.tar.gz: 4f789daddb575550e4c59e87554185a5f1f43495
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ad27ba06fa251bade1dd3808e0b39a9e783bc6774f0ef042a24bcbe5b76a998e65b94468a19c94f91ea081a992b9869ff3d3d89491b73367ba9ec10731420c5
|
|
7
|
+
data.tar.gz: 9a34e31831153a8030a5bc4a3108399d528b161a88244248b150bd1c072a723fa6df8780e01dfb5b0f7d8f4efba3ebb4945b9ba7d46060ce25ffcf3a69351c2d
|
data/README.md
CHANGED
|
@@ -11,17 +11,17 @@ It depends on Redcarpet v3.0.0.
|
|
|
11
11
|
|
|
12
12
|
Add to your project Gemfile:
|
|
13
13
|
~~~sh
|
|
14
|
-
gem 'carpetbomb'
|
|
14
|
+
$ gem 'carpetbomb'
|
|
15
15
|
~~~
|
|
16
16
|
|
|
17
17
|
Run the following command to install it:
|
|
18
18
|
~~~sh
|
|
19
|
-
bundle install
|
|
19
|
+
$ bundle install
|
|
20
20
|
~~~
|
|
21
21
|
|
|
22
22
|
Run the generator:
|
|
23
23
|
~~~sh
|
|
24
|
-
rails generate carpetbomb:install
|
|
24
|
+
$ rails generate carpetbomb:install
|
|
25
25
|
~~~
|
|
26
26
|
|
|
27
27
|
That's it.
|
|
@@ -30,14 +30,14 @@ That's it.
|
|
|
30
30
|
|
|
31
31
|
Run the generator:
|
|
32
32
|
~~~sh
|
|
33
|
-
rails generate carpetbomb:uninstall
|
|
33
|
+
$ rails generate carpetbomb:uninstall
|
|
34
34
|
~~~
|
|
35
35
|
|
|
36
36
|
Remove the gem from the Gemfile, and run bundle.
|
|
37
37
|
|
|
38
38
|
## Usage
|
|
39
39
|
|
|
40
|
-
This gem adds three posible markdown template
|
|
40
|
+
This gem adds three posible markdown template extensions to the existing Rails
|
|
41
41
|
template handlers:
|
|
42
42
|
|
|
43
43
|
`.md`, `.mdown` and `.markdown` all of them will work and will be parsed first
|
|
@@ -45,10 +45,11 @@ with Ruby on Rails erb template, so you can add whatever erb syntax you want.
|
|
|
45
45
|
After that it will be parsed by Redcarpet to handle the markdown part.
|
|
46
46
|
|
|
47
47
|
It's really simple to start using markdown templates. Create a view or rename it
|
|
48
|
-
to `viewname.html.md` and that's it.
|
|
48
|
+
to whatever viewname you want `{viewname}.html.md` and that's it.
|
|
49
|
+
|
|
50
|
+
***index.html.md***
|
|
49
51
|
~~~erb
|
|
50
|
-
|
|
51
|
-
<%= content_for :page_title, 'Ticketing - Index' %>
|
|
52
|
+
<%= content_for :page_title, 'MyApp - Index' %>
|
|
52
53
|
|
|
53
54
|
# Hi from the index page.
|
|
54
55
|
|
|
@@ -69,6 +70,7 @@ Just send a pull request!
|
|
|
69
70
|
|
|
70
71
|
## Thanks
|
|
71
72
|
|
|
72
|
-
Thanks to Lindsey Bieda for [this
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
Thanks to Lindsey Bieda for [this
|
|
74
|
+
tutorial](http://rarlindseysmash.com/posts/how-to-gem-like-jem) and to Joliss
|
|
75
|
+
for her [markdown-rails](https://github.com/joliss/markdown-rails) I practically
|
|
76
|
+
copied the core of gem.
|
data/lib/carpetbomb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: carpetbomb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- albertogg
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-09-
|
|
11
|
+
date: 2013-09-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: redcarpet
|