joofaq 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/app/models/faq.rb CHANGED
@@ -46,7 +46,7 @@ class Faq
46
46
  end
47
47
 
48
48
  class << self
49
- def data; data = YAML.load_file 'db/joofaq.yml' end
49
+ def data; data = YAML.load_file 'db/faq.yml' end
50
50
  def markdown str
51
51
  RDiscount.new(str).to_html.html_safe
52
52
  end
@@ -11,6 +11,6 @@ class JoofaqGenerator < Rails::Generators::Base
11
11
  end
12
12
 
13
13
  def create_route
14
- route "'/faq' => 'Faq#index'"
14
+ route "match '/faq' => 'Faq#index'"
15
15
  end
16
16
  end
@@ -1,5 +1,5 @@
1
1
  <dl>
2
- <% Joofaq.sections.each do |section| %>
2
+ <% Faq.sections.each do |section| %>
3
3
  <h2> <%= section.name %> </h2>
4
4
  <% section.items.each do |item| %>
5
5
  <%= render partial: item.template, locals: {item: item} %>
@@ -1,3 +1,3 @@
1
1
  module Joofaq
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/testapp/Gemfile CHANGED
@@ -6,8 +6,8 @@ gem 'rails', '3.2.8'
6
6
  # gem 'rails', :git => 'git://github.com/rails/rails.git'
7
7
 
8
8
  gem 'sqlite3'
9
- gem 'joofaq', path: '..'
10
- #
9
+ gem 'joofaq'
10
+
11
11
  # Gems used only for assets and not required
12
12
  # in production environments by default.
13
13
  group :assets do
@@ -4,4 +4,4 @@
4
4
  # If you change this key, all old signed cookies will become invalid!
5
5
  # Make sure the secret is at least 30 characters and all random,
6
6
  # no regular words or you'll be exposed to dictionary attacks.
7
- Testapp::Application.config.secret_token = 'd2a8aea13dea15aa39dd7fc2b42a44454963fc14d40f2d5f03372044b3976feeab28d199a690bafa5410e71c44b51422bf838f3db11fb34a2f363455e652bf14'
7
+ Testapp::Application.config.secret_token = '56c6e8803a79ac35475f6c4532374861a7825903cb146898692203b2d6f481582fce0f555abb4a65b6f5b0e268e3c549e3c941471b999481e9a466818ab6afd2'
@@ -1,5 +1,6 @@
1
1
  Testapp::Application.routes.draw do
2
- match "/faq" => "Faq#index"
2
+
3
+ match '/faq' => 'Faq#index'
3
4
 
4
5
  # The priority is based upon order of creation:
5
6
  # first created -> highest priority.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joofaq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -66,7 +66,6 @@ files:
66
66
  - lib/generators/joofaq/templates/joofaq/index.html.erb
67
67
  - lib/generators/joofaq/templates/joofaq_controller.rb
68
68
  - lib/generators/joofaq/templates/joofaq_model.rb
69
- - lib/jfaq.rb
70
69
  - lib/joofaq.rb
71
70
  - lib/joofaq/version.rb
72
71
  - testapp/.gitignore
@@ -83,9 +82,6 @@ files:
83
82
  - testapp/app/views/faq/_qapair.html.erb
84
83
  - testapp/app/views/faq/_subtitle.html.erb
85
84
  - testapp/app/views/faq/index.html.erb
86
- - testapp/app/views/joofaq/_qapair.html.erb
87
- - testapp/app/views/joofaq/_subtitle.html.erb
88
- - testapp/app/views/joofaq/index.html.erb
89
85
  - testapp/app/views/layouts/application.html.erb
90
86
  - testapp/config.ru
91
87
  - testapp/config/application.rb
@@ -103,7 +99,7 @@ files:
103
99
  - testapp/config/initializers/wrap_parameters.rb
104
100
  - testapp/config/locales/en.yml
105
101
  - testapp/config/routes.rb
106
- - testapp/db/joofaq.yml
102
+ - testapp/db/faq.yml
107
103
  - testapp/db/seeds.rb
108
104
  - testapp/lib/assets/.gitkeep
109
105
  - testapp/lib/tasks/.gitkeep
data/lib/jfaq.rb DELETED
@@ -1,4 +0,0 @@
1
- require "joofaq/version"
2
-
3
- #module Joofaq
4
- #end
@@ -1,2 +0,0 @@
1
- <dt> <%= item.q_html %></dt>
2
- <dd> <%= item.a_html %></dd>
@@ -1 +0,0 @@
1
- <dt> <%= item.to_html %> </dt>
@@ -1,8 +0,0 @@
1
- <dl>
2
- <% Faq.sections.each do |section| %>
3
- <h2> <%= section.name %> </h2>
4
- <% section.items.each do |item| %>
5
- <%= render partial: item.template, locals: {item: item} %>
6
- <% end %>
7
- <% end %>
8
- </dl>
File without changes