tdiary-io-mongodb 5.0.3 → 5.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +8 -4
- data/Gemfile +0 -3
- data/lib/tdiary/io/mongodb.rb +3 -3
- data/tdiary-io-mongodb.gemspec +5 -3
- metadata +37 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1dbb313bf04bf09d959c9ea57eb37c5342801a29524fa5a7e490ed5cd2025f54
|
4
|
+
data.tar.gz: 128f0db04b7e0aa40e94043657997c237dbdeebcf64cbe25050b596d30776d78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd954eea0cc1551da811e56aa8c867e74e2d30328ddd9ee2d536a981ac3e0b666f319761c11f16b4f82935761fa9add99db9ee74586c06e0819acb4049b70994
|
7
|
+
data.tar.gz: ba9a44e34fc95e3660e61a883fd66e18259b6ecfa3581b67fc2774b7fd2d50158c63fd64d1a667d3c6ebdbcb76a27130d88a4c0c284a490fbf120262921e6d14
|
data/.travis.yml
CHANGED
@@ -2,13 +2,17 @@ language: ruby
|
|
2
2
|
cache: bundler
|
3
3
|
|
4
4
|
rvm:
|
5
|
-
- 2.
|
6
|
-
- 2.
|
7
|
-
- 2.
|
5
|
+
- 2.3.8
|
6
|
+
- 2.4.5
|
7
|
+
- 2.5.3
|
8
|
+
- 2.6.0
|
8
9
|
- ruby-head
|
9
10
|
|
11
|
+
matrix:
|
12
|
+
allow_failures:
|
13
|
+
- rvm: ruby-head
|
14
|
+
|
10
15
|
before_install:
|
11
|
-
- gem update bundler
|
12
16
|
|
13
17
|
script: bundle exec rake spec
|
14
18
|
|
data/Gemfile
CHANGED
data/lib/tdiary/io/mongodb.rb
CHANGED
@@ -31,7 +31,7 @@ module TDiary
|
|
31
31
|
include Mongoid::Timestamps
|
32
32
|
store_in collection: "comments"
|
33
33
|
|
34
|
-
belongs_to :diary
|
34
|
+
belongs_to :diary, class_name: 'TDiary::IO::MongoDB::Diary'
|
35
35
|
field :name, type: String
|
36
36
|
field :mail, type: String
|
37
37
|
field :body, type: String
|
@@ -61,8 +61,8 @@ module TDiary
|
|
61
61
|
field :style, type: String
|
62
62
|
field :last_modified, type: Integer
|
63
63
|
field :visible, type: Boolean
|
64
|
-
has_many :comments, autosave: true
|
65
|
-
has_many :referers, autosave: true
|
64
|
+
has_many :comments, autosave: true, class_name: 'TDiary::IO::MongoDB::Comment'
|
65
|
+
has_many :referers, autosave: true, class_name: 'TDiary::IO::MongoDB::Referer'
|
66
66
|
|
67
67
|
index({diary_id: 1}, {unique: true})
|
68
68
|
index({year: 1, month: 1})
|
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 = "5.0.
|
7
|
+
spec.version = "5.0.4"
|
8
8
|
spec.authors = ["TADA Tadashi"]
|
9
9
|
spec.email = ["t@tdtds.jp"]
|
10
10
|
spec.description = %q{MongoDB adapter for tDiary}
|
@@ -17,10 +17,12 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_dependency "mongoid", "~>
|
20
|
+
spec.add_dependency "mongoid", "~> 7.0"
|
21
|
+
spec.add_dependency "mongo", "< 2.9.0"
|
21
22
|
spec.add_dependency "hikidoc"
|
23
|
+
spec.add_dependency "tdiary", ">= 5.0"
|
22
24
|
|
23
|
-
spec.add_development_dependency "bundler"
|
25
|
+
spec.add_development_dependency "bundler"
|
24
26
|
spec.add_development_dependency "rake"
|
25
27
|
spec.add_development_dependency "rspec"
|
26
28
|
spec.add_development_dependency "pry"
|
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: 5.0.
|
4
|
+
version: 5.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TADA Tadashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '7.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '7.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mongo
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.9.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "<"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.9.0
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: hikidoc
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,20 +52,34 @@ dependencies:
|
|
38
52
|
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: tdiary
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '5.0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '5.0'
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: bundler
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
44
72
|
requirements:
|
45
|
-
- - "
|
73
|
+
- - ">="
|
46
74
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
75
|
+
version: '0'
|
48
76
|
type: :development
|
49
77
|
prerelease: false
|
50
78
|
version_requirements: !ruby/object:Gem::Requirement
|
51
79
|
requirements:
|
52
|
-
- - "
|
80
|
+
- - ">="
|
53
81
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
82
|
+
version: '0'
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
84
|
name: rake
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -133,8 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
161
|
- !ruby/object:Gem::Version
|
134
162
|
version: '0'
|
135
163
|
requirements: []
|
136
|
-
|
137
|
-
rubygems_version: 2.6.8
|
164
|
+
rubygems_version: 3.0.3
|
138
165
|
signing_key:
|
139
166
|
specification_version: 4
|
140
167
|
summary: MongoDB adapter for tDiary
|