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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e9d87a14e421d3e501b09a8b5e8ef446fbb7386e
4
- data.tar.gz: 04cfd294fae76cce64f64b16dca43b415ad3f703
2
+ SHA256:
3
+ metadata.gz: 1dbb313bf04bf09d959c9ea57eb37c5342801a29524fa5a7e490ed5cd2025f54
4
+ data.tar.gz: 128f0db04b7e0aa40e94043657997c237dbdeebcf64cbe25050b596d30776d78
5
5
  SHA512:
6
- metadata.gz: bbbbac2194fad9e42866b3539e44593f47af05e28e694701a9237145b8bfde727676dbe06d9eeeee62ba84ded3d0b6eb4104f9b1926e155015dac7e68632edc3
7
- data.tar.gz: '0578140605a1ebf9fd920af00085071916e8eafb74a1230fb8eded238e3da73ab3b343c0059222d9a4599260e2d40ba82db38f9c6ceb2b406974e5cadcab86dc'
6
+ metadata.gz: fd954eea0cc1551da811e56aa8c867e74e2d30328ddd9ee2d536a981ac3e0b666f319761c11f16b4f82935761fa9add99db9ee74586c06e0819acb4049b70994
7
+ data.tar.gz: ba9a44e34fc95e3660e61a883fd66e18259b6ecfa3581b67fc2774b7fd2d50158c63fd64d1a667d3c6ebdbcb76a27130d88a4c0c284a490fbf120262921e6d14
@@ -2,13 +2,17 @@ language: ruby
2
2
  cache: bundler
3
3
 
4
4
  rvm:
5
- - 2.2
6
- - 2.3.3
7
- - 2.4.0
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
@@ -2,6 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in mongodb.gemspec
4
4
  gemspec
5
-
6
- gem 'tdiary', github: 'tdiary/tdiary-core'
7
- gem 'tdiary-style-rd'
@@ -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})
@@ -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.3"
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", "~> 6.0"
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", "~> 1.3"
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.3
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: 2016-12-30 00:00:00.000000000 Z
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: '6.0'
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: '6.0'
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: '1.3'
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: '1.3'
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
- rubyforge_project:
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