dynarex-usersblog 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dynarex-usersblog.rb +5 -3
- metadata +2 -2
data/lib/dynarex-usersblog.rb
CHANGED
@@ -7,12 +7,14 @@ require 'fileutils'
|
|
7
7
|
|
8
8
|
class DynarexUsersBlog
|
9
9
|
|
10
|
-
def initialize(user='')
|
10
|
+
def initialize(file_path='users/', user='')
|
11
11
|
|
12
|
-
unless user.empty? then
|
12
|
+
unless user.empty? then
|
13
13
|
@current_user = user
|
14
14
|
|
15
|
-
|
15
|
+
file_path + '/' unless file_path[/\/$/]
|
16
|
+
|
17
|
+
user_file_path = file_path + @current_user
|
16
18
|
FileUtils.mkdir_p user_file_path
|
17
19
|
|
18
20
|
@user_blog = DynarexBlog.new user_file_path
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynarex-usersblog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors: []
|
7
7
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-07-13 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|