faqmarkdown 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/faq.rb +4 -0
- data/lib/faqmarkdown/version.rb +1 -1
- data/lib/generators/faqmarkdown/install_generator.rb +1 -1
- data/spec/internal/app/faqs/2011-05-01-full-metadata.markdown +1 -0
- data/spec/models/faqs_spec.rb +5 -0
- data/spec/support/data/faqs/2011-05-01-full-metadata.markdown +1 -0
- 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: 0e7ac22bc13a127eee477728230b679172ba7e18
|
4
|
+
data.tar.gz: 1054ac9a2b0b2e7178779370e880c9a14bc44cc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f43f6eec3284953184abe2b58fbc42f46dd627aa5059e5f85fa9f7d1d91fd5ee1bb64b6a872d2d9becee5642411b956ce7eae618bcc90169b7c003ec7154ec2
|
7
|
+
data.tar.gz: aae05d3ccd23c0287b1cd13d5a964a7984bb4900079c65bbc371277c753aac26c7f401069b6f4d4ab7dbd89b0bdc1f865da909fde8b37e0a1e000d44a4a72edb
|
data/app/models/faq.rb
CHANGED
data/lib/faqmarkdown/version.rb
CHANGED
@@ -13,7 +13,7 @@ module Faqmarkdown
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def add_routes
|
16
|
-
insert_into_file 'config/routes.rb', " faqmarkdown :as => :faqs\n
|
16
|
+
insert_into_file 'config/routes.rb', "\n faqmarkdown :as => :faqs\n", :after => "::Application.routes.draw do\n"
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
data/spec/models/faqs_spec.rb
CHANGED
@@ -55,6 +55,11 @@ describe Faq do
|
|
55
55
|
its(:email) { should == 'john.smith@example.com' }
|
56
56
|
end
|
57
57
|
|
58
|
+
context 'with action' do
|
59
|
+
subject { test_faq '2011-05-01-full-metadata.markdown' }
|
60
|
+
its(:action) { should == 'for-you' }
|
61
|
+
end
|
62
|
+
|
58
63
|
context "with categories" do
|
59
64
|
subject { test_faq '2011-05-01-full-metadata.markdown' }
|
60
65
|
its(:categories) { should == ['full', 'metadata']}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faqmarkdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Martins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|