code-snippets 0.2.6 → 0.2.7

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.
Files changed (2) hide show
  1. data/lib/code-snippets.rb +5 -0
  2. metadata +1 -1
data/lib/code-snippets.rb CHANGED
@@ -77,6 +77,11 @@ class CodeSnippets
77
77
  @blog.entry(id).to_s
78
78
  end
79
79
 
80
+ def create_entry(h)
81
+ user = h[:user]
82
+ @blog.create_entry(h, user)
83
+ end
84
+
80
85
  private
81
86
 
82
87
  def html_page(n, current_user='guest')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code-snippets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors: []
7
7