tdiary-io-mongodb 4.1.1 → 4.1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tdiary/io/mongodb.rb +3 -3
- data/tdiary-io-mongodb.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 053bc9ff5ab737f18e20c9f2d616741c99a995b4
|
4
|
+
data.tar.gz: 8260cf8a5eb7ff6c6acee885189bcfcbca724944
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd8b9e0ab3b660706696e5100350b04383e499140142ca7a5c651166383e26f6d9254b33b0ee338d8b8c734c63c7671ddae3b1042c5895640d0c02b933147d7d
|
7
|
+
data.tar.gz: e6d3b5e45b128ee2421635f28b36a1e77e1b0c8abb3ef7b7b82034060f684292577eae3c76e6c9756bf4c44382ed685786638b76d7153b21f17c52a82b1a3c75
|
data/lib/tdiary/io/mongodb.rb
CHANGED
@@ -223,9 +223,8 @@ module TDiary
|
|
223
223
|
entry.style = diary.style
|
224
224
|
entry.visible = diary.visible?
|
225
225
|
entry.body = diary.to_src
|
226
|
-
entry.save
|
227
226
|
else
|
228
|
-
Diary.create(
|
227
|
+
entry = Diary.create(
|
229
228
|
diary_id: diary_id,
|
230
229
|
year: year, month: month, day: day,
|
231
230
|
title: diary.title,
|
@@ -233,8 +232,9 @@ module TDiary
|
|
233
232
|
style: diary.style,
|
234
233
|
visible: diary.visible?,
|
235
234
|
body: diary.to_src
|
236
|
-
)
|
235
|
+
)
|
237
236
|
end
|
237
|
+
entry.save
|
238
238
|
end
|
239
239
|
if entry && ((dirty & TDiary::TDiaryBase::DIRTY_COMMENT) != 0)
|
240
240
|
exist_comments = entry.comments.size
|
data/tdiary-io-mongodb.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "tdiary-io-mongodb"
|
7
|
-
spec.version = "4.1.1"
|
7
|
+
spec.version = "4.1.1.1"
|
8
8
|
spec.authors = ["TADA Tadashi"]
|
9
9
|
spec.email = ["t@tdtds.jp"]
|
10
10
|
spec.description = %q{MongoDB adapter for tDiary}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tdiary-io-mongodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.1
|
4
|
+
version: 4.1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TADA Tadashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|