parentry 1.0.1 → 1.1.0

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: c0d5bfa637f28e00aed1225a5922d63bc4fe6abf
4
- data.tar.gz: 97afacc82af61eab6a239d0677b133053e14a621
3
+ metadata.gz: b23910bc1f31f40e2e0e5211d52c66d72b1acac7
4
+ data.tar.gz: 2e351be07a0b044d562bd2f7c8d69fc962367322
5
5
  SHA512:
6
- metadata.gz: 154ece4bb8bc95ee42ec6052b07e3e2835e828152e1d9883911eef36b21d6c455bbc28f4af0019bb0d97d0683e1143099adb5536a5797bf41a41dceab5edd9a8
7
- data.tar.gz: 56b825d3e2544b855ece6988b507ec41a1e0a668fe45b6fe5e7129ae95025420bb14d3123207d0e8d182ab19fc28a6d1f281338e934fe8d509c9f5d354d6b464
6
+ metadata.gz: e4d1c7a1529a3f16b37ea4424b04da4aec815d64d7bb25e2295dc10c5c7b3a860252f6224c6c4a706e4856db4fa92e59842381c8261c15abea677685fe6a152f
7
+ data.tar.gz: 67ee9970fc5a6195291001eb8b34902f2e95876ebf43e937b542ae064d697b6741bab84ee6e15415541ddd5aed69fe0ce2e1151119c1968273432efa2e18f06b
data/.gitignore CHANGED
@@ -11,3 +11,4 @@
11
11
  .ruby-gemset
12
12
  .ruby-version
13
13
  /vendor/
14
+ /spec/internal/log/*
data/.travis.yml CHANGED
@@ -7,5 +7,5 @@ env:
7
7
  - STRATEGY=array
8
8
  - STRATEGY=ltree
9
9
  gemfile:
10
- - gemfiles/activerecord_5.1.gemfile
10
+ - gemfiles/activerecord_5.1.5.gemfile
11
11
  before_install: gem install bundler -v 1.10.6
data/Appraisals CHANGED
@@ -1,3 +1,3 @@
1
- appraise 'activerecord-5.1' do
2
- gem 'activerecord', '~> 5.1.0'
1
+ appraise 'activerecord-5.1.5' do
2
+ gem 'activerecord', '5.1.5'
3
3
  end
@@ -3,6 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal"
6
- gem "activerecord", "~> 5.1.0"
6
+ gem "activerecord", "5.1.5"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -0,0 +1,117 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ parentry (1.1.0)
5
+ activerecord (~> 5.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionpack (5.1.5)
11
+ actionview (= 5.1.5)
12
+ activesupport (= 5.1.5)
13
+ rack (~> 2.0)
14
+ rack-test (>= 0.6.3)
15
+ rails-dom-testing (~> 2.0)
16
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
+ actionview (5.1.5)
18
+ activesupport (= 5.1.5)
19
+ builder (~> 3.1)
20
+ erubi (~> 1.4)
21
+ rails-dom-testing (~> 2.0)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
23
+ activemodel (5.1.5)
24
+ activesupport (= 5.1.5)
25
+ activerecord (5.1.5)
26
+ activemodel (= 5.1.5)
27
+ activesupport (= 5.1.5)
28
+ arel (~> 8.0)
29
+ activesupport (5.1.5)
30
+ concurrent-ruby (~> 1.0, >= 1.0.2)
31
+ i18n (~> 0.7)
32
+ minitest (~> 5.1)
33
+ tzinfo (~> 1.1)
34
+ appraisal (2.2.0)
35
+ bundler
36
+ rake
37
+ thor (>= 0.14.0)
38
+ arel (8.0.0)
39
+ builder (3.2.3)
40
+ coderay (1.1.2)
41
+ combustion (0.9.0)
42
+ activesupport (>= 3.0.0)
43
+ railties (>= 3.0.0)
44
+ thor (>= 0.14.6)
45
+ concurrent-ruby (1.0.5)
46
+ crass (1.0.3)
47
+ database_cleaner (1.6.2)
48
+ diff-lcs (1.3)
49
+ erubi (1.7.1)
50
+ i18n (0.9.5)
51
+ concurrent-ruby (~> 1.0)
52
+ loofah (2.2.2)
53
+ crass (~> 1.0.2)
54
+ nokogiri (>= 1.5.9)
55
+ method_source (0.9.0)
56
+ mini_portile2 (2.3.0)
57
+ minitest (5.11.3)
58
+ nokogiri (1.8.2)
59
+ mini_portile2 (~> 2.3.0)
60
+ pg (0.21.0)
61
+ pry (0.11.3)
62
+ coderay (~> 1.1.0)
63
+ method_source (~> 0.9.0)
64
+ rack (2.0.4)
65
+ rack-test (1.0.0)
66
+ rack (>= 1.0, < 3)
67
+ rails-dom-testing (2.0.3)
68
+ activesupport (>= 4.2.0)
69
+ nokogiri (>= 1.6)
70
+ rails-html-sanitizer (1.0.4)
71
+ loofah (~> 2.2, >= 2.2.2)
72
+ railties (5.1.5)
73
+ actionpack (= 5.1.5)
74
+ activesupport (= 5.1.5)
75
+ method_source
76
+ rake (>= 0.8.7)
77
+ thor (>= 0.18.1, < 2.0)
78
+ rake (10.5.0)
79
+ rspec-core (3.7.1)
80
+ rspec-support (~> 3.7.0)
81
+ rspec-expectations (3.7.0)
82
+ diff-lcs (>= 1.2.0, < 2.0)
83
+ rspec-support (~> 3.7.0)
84
+ rspec-mocks (3.7.0)
85
+ diff-lcs (>= 1.2.0, < 2.0)
86
+ rspec-support (~> 3.7.0)
87
+ rspec-rails (3.7.2)
88
+ actionpack (>= 3.0)
89
+ activesupport (>= 3.0)
90
+ railties (>= 3.0)
91
+ rspec-core (~> 3.7.0)
92
+ rspec-expectations (~> 3.7.0)
93
+ rspec-mocks (~> 3.7.0)
94
+ rspec-support (~> 3.7.0)
95
+ rspec-support (3.7.1)
96
+ thor (0.20.0)
97
+ thread_safe (0.3.6)
98
+ tzinfo (1.2.5)
99
+ thread_safe (~> 0.1)
100
+
101
+ PLATFORMS
102
+ ruby
103
+
104
+ DEPENDENCIES
105
+ activerecord (= 5.1.5)
106
+ appraisal
107
+ bundler (~> 1.10)
108
+ combustion (= 0.9.0)
109
+ database_cleaner (~> 1.6)
110
+ parentry!
111
+ pg (~> 0.21)
112
+ pry (~> 0.10)
113
+ rake (~> 10.0)
114
+ rspec-rails (~> 3.7)
115
+
116
+ BUNDLED WITH
117
+ 1.14.6
@@ -1,3 +1,3 @@
1
1
  module Parentry
2
- VERSION = '1.0.1'
2
+ VERSION = '1.1.0'
3
3
  end
data/lib/parentry.rb CHANGED
@@ -10,7 +10,7 @@ module Parentry
10
10
  base.class_eval do
11
11
  mattr_accessor :parentry_strategy, :parentry_column, :depth_offset, :cache_depth, :touch_ancestors
12
12
 
13
- belongs_to :parent, class_name: base_class.name
13
+ belongs_to :parent, class_name: base_class.name, optional: true
14
14
  has_many :children, class_name: base_class.name, foreign_key: :parent_id, dependent: :destroy
15
15
 
16
16
  validate do
data/parentry.gemspec CHANGED
@@ -20,9 +20,9 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency 'bundler', '~> 1.10'
22
22
  spec.add_development_dependency 'rake', '~> 10.0'
23
- spec.add_development_dependency 'rspec-rails', '~> 3.6'
24
- spec.add_development_dependency 'pg', '0.18.3'
25
- spec.add_development_dependency 'combustion', '0.5.3'
26
- spec.add_development_dependency 'database_cleaner', '1.5.0'
27
- spec.add_development_dependency 'pry', '0.10.3'
23
+ spec.add_development_dependency 'rspec-rails', '~> 3.7'
24
+ spec.add_development_dependency 'pg', '~> 0.21'
25
+ spec.add_development_dependency 'combustion', '0.9.0'
26
+ spec.add_development_dependency 'database_cleaner', '~> 1.6'
27
+ spec.add_development_dependency 'pry', '~> 0.10'
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parentry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamed Asghari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-17 00:00:00.000000000 Z
11
+ date: 2018-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -58,70 +58,70 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.6'
61
+ version: '3.7'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.6'
68
+ version: '3.7'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: pg
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '='
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.18.3
75
+ version: '0.21'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '='
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.18.3
82
+ version: '0.21'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: combustion
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.5.3
89
+ version: 0.9.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.5.3
96
+ version: 0.9.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: database_cleaner
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '='
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.5.0
103
+ version: '1.6'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '='
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.5.0
110
+ version: '1.6'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: pry
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '='
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.10.3
117
+ version: '0.10'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '='
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 0.10.3
124
+ version: '0.10'
125
125
  description:
126
126
  email:
127
127
  - hasghari@gmail.com
@@ -140,8 +140,8 @@ files:
140
140
  - Rakefile
141
141
  - bin/console
142
142
  - bin/setup
143
- - gemfiles/activerecord_5.1.gemfile
144
- - gemfiles/activerecord_5.1.gemfile.lock
143
+ - gemfiles/activerecord_5.1.5.gemfile
144
+ - gemfiles/activerecord_5.1.5.gemfile.lock
145
145
  - lib/parentry.rb
146
146
  - lib/parentry/class_methods.rb
147
147
  - lib/parentry/instance_methods.rb
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  requirements: []
177
177
  rubyforge_project:
178
- rubygems_version: 2.6.7
178
+ rubygems_version: 2.6.13
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: ActiveRecord adapter for the Postgres ltree module
@@ -1,116 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- parentry (0.4.0)
5
- activerecord (~> 5.1.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actionpack (5.1.1)
11
- actionview (= 5.1.1)
12
- activesupport (= 5.1.1)
13
- rack (~> 2.0)
14
- rack-test (~> 0.6.3)
15
- rails-dom-testing (~> 2.0)
16
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
- actionview (5.1.1)
18
- activesupport (= 5.1.1)
19
- builder (~> 3.1)
20
- erubi (~> 1.4)
21
- rails-dom-testing (~> 2.0)
22
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
23
- activemodel (5.1.1)
24
- activesupport (= 5.1.1)
25
- activerecord (5.1.1)
26
- activemodel (= 5.1.1)
27
- activesupport (= 5.1.1)
28
- arel (~> 8.0)
29
- activesupport (5.1.1)
30
- concurrent-ruby (~> 1.0, >= 1.0.2)
31
- i18n (~> 0.7)
32
- minitest (~> 5.1)
33
- tzinfo (~> 1.1)
34
- appraisal (2.2.0)
35
- bundler
36
- rake
37
- thor (>= 0.14.0)
38
- arel (8.0.0)
39
- builder (3.2.3)
40
- coderay (1.1.1)
41
- combustion (0.5.3)
42
- activesupport (>= 3.0.0)
43
- railties (>= 3.0.0)
44
- thor (>= 0.14.6)
45
- concurrent-ruby (1.0.5)
46
- database_cleaner (1.6.1)
47
- diff-lcs (1.3)
48
- erubi (1.6.0)
49
- i18n (0.8.1)
50
- loofah (2.0.3)
51
- nokogiri (>= 1.5.9)
52
- method_source (0.8.2)
53
- mini_portile2 (2.1.0)
54
- minitest (5.10.2)
55
- nokogiri (1.7.2)
56
- mini_portile2 (~> 2.1.0)
57
- pg (0.20.0)
58
- pry (0.10.4)
59
- coderay (~> 1.1.0)
60
- method_source (~> 0.8.1)
61
- slop (~> 3.4)
62
- rack (2.0.3)
63
- rack-test (0.6.3)
64
- rack (>= 1.0)
65
- rails-dom-testing (2.0.3)
66
- activesupport (>= 4.2.0)
67
- nokogiri (>= 1.6)
68
- rails-html-sanitizer (1.0.3)
69
- loofah (~> 2.0)
70
- railties (5.1.1)
71
- actionpack (= 5.1.1)
72
- activesupport (= 5.1.1)
73
- method_source
74
- rake (>= 0.8.7)
75
- thor (>= 0.18.1, < 2.0)
76
- rake (10.5.0)
77
- rspec-core (3.6.0)
78
- rspec-support (~> 3.6.0)
79
- rspec-expectations (3.6.0)
80
- diff-lcs (>= 1.2.0, < 2.0)
81
- rspec-support (~> 3.6.0)
82
- rspec-mocks (3.6.0)
83
- diff-lcs (>= 1.2.0, < 2.0)
84
- rspec-support (~> 3.6.0)
85
- rspec-rails (3.6.0)
86
- actionpack (>= 3.0)
87
- activesupport (>= 3.0)
88
- railties (>= 3.0)
89
- rspec-core (~> 3.6.0)
90
- rspec-expectations (~> 3.6.0)
91
- rspec-mocks (~> 3.6.0)
92
- rspec-support (~> 3.6.0)
93
- rspec-support (3.6.0)
94
- slop (3.6.0)
95
- thor (0.19.4)
96
- thread_safe (0.3.6)
97
- tzinfo (1.2.3)
98
- thread_safe (~> 0.1)
99
-
100
- PLATFORMS
101
- ruby
102
-
103
- DEPENDENCIES
104
- activerecord (~> 5.1.0)
105
- appraisal
106
- bundler (~> 1.10)
107
- combustion (= 0.5.3)
108
- database_cleaner
109
- parentry!
110
- pg
111
- pry
112
- rake (~> 10.0)
113
- rspec-rails
114
-
115
- BUNDLED WITH
116
- 1.14.6