RubyGems
npm
Organizations
Log in
Sign up
RubyGems
code-snippets
Versions diffs
0.2.6 → 0.2.7
code-snippets 0.2.6 → 0.2.7
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/code-snippets.rb
+5
-0
metadata
+1
-1
data/lib/code-snippets.rb
CHANGED
Viewed
@@ -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
Viewed
@@ -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