djanowski-snippets 0.0.3 → 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/snippet.rb +4 -0
  2. data/lib/snippets.rb +4 -0
  3. metadata +2 -1
data/lib/snippet.rb CHANGED
@@ -17,6 +17,10 @@ class Snippet < ActiveRecord::Base
17
17
  end
18
18
  end
19
19
 
20
+ def to_s
21
+ slug
22
+ end
23
+
20
24
  private
21
25
 
22
26
  def compile_text
data/lib/snippets.rb CHANGED
@@ -1,2 +1,6 @@
1
+ ['snippets', 'snippets/parsers'].each do |dir|
2
+ $:.unshift(File.join(File.dirname(__FILE__), dir))
3
+ end
4
+
1
5
  module Snippets
2
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: djanowski-snippets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: "0.1"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damian Janowski
@@ -26,6 +26,7 @@ files:
26
26
  - lib/snippets/helper.rb
27
27
  - lib/snippets/parsers/html.rb
28
28
  - lib/snippets/parsers/textile.rb
29
+ - lib/snippets/parsers.rb
29
30
  - lib/snippets.rb
30
31
  - rails/init.rb
31
32
  - README.textile