carpetbomb 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8202ff020b4878e64eae36148e5fd4a7272c3de
4
- data.tar.gz: 0da4035006c1a3a47139d1af85b296dcd5a00d4b
3
+ metadata.gz: bad38c0a6bd2835cdc8c7136d0f046ed7597ce66
4
+ data.tar.gz: 4f789daddb575550e4c59e87554185a5f1f43495
5
5
  SHA512:
6
- metadata.gz: 552b768661942931273898b4738db9696261d65397d791eb57857c2758f2de759717d10293917357a6c3e53e9ac0c6083fbf7db04279d9325562c3ec6fd9d532
7
- data.tar.gz: ba3bcd7d2a797b5cd1a04381d1fca2b90fc0d2e693206433e183f4e8f889833c4e07e9618319bbf01f57626e9e303afd93d7ac82c412b2f86a13a7e088095913
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 handlers to the existing Rails
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
- # viewname.html.md
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 tutorial](http://rarlindseysmash.com/posts/how-to-gem-like-jem).
73
- And to Joliss for her [markdown-rails](https://github.com/joliss/markdown-rails)
74
- I practically copied the core of gem.
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.
@@ -1,3 +1,3 @@
1
1
  module Carpetbomb
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -1,5 +1,3 @@
1
- require 'rails/generators'
2
-
3
1
  module Carpetbomb
4
2
  module Generators
5
3
  class InstallGenerator < Rails::Generators::Base
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.3
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-21 00:00:00.000000000 Z
11
+ date: 2013-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet