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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6548c0fd521b10af7a9eca195eadb3a09f626817
4
- data.tar.gz: d5f7fb0a107de7832a947fbc3a6232e628279717
3
+ metadata.gz: 053bc9ff5ab737f18e20c9f2d616741c99a995b4
4
+ data.tar.gz: 8260cf8a5eb7ff6c6acee885189bcfcbca724944
5
5
  SHA512:
6
- metadata.gz: d9c6b4d82aa896d8d557c9182b4d121afb0f4664ce3a52e0313ca0fab42067d846b4da43ae19b03f5070e903e53187e956b504339815162c5316db16bb8c66f5
7
- data.tar.gz: 4d1fa505079f8da704d38a5e744bb04977f77353f3d73a36f2e7c5a6e784d016a5f1f86977a04f8c43b0e9e79022bf6fa6d8cdd649849838439d34229b7be6e5
6
+ metadata.gz: cd8b9e0ab3b660706696e5100350b04383e499140142ca7a5c651166383e26f6d9254b33b0ee338d8b8c734c63c7671ddae3b1042c5895640d0c02b933147d7d
7
+ data.tar.gz: e6d3b5e45b128ee2421635f28b36a1e77e1b0c8abb3ef7b7b82034060f684292577eae3c76e6c9756bf4c44382ed685786638b76d7153b21f17c52a82b1a3c75
@@ -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
- ).save
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
@@ -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 00:00:00.000000000 Z
11
+ date: 2015-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid