active_record-annotate 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/active_record/annotate/version.rb +1 -1
- data/lib/generators/active_record/annotate/install/templates/initializer.rb +1 -1
- data/spec/active_record/annotate/configurator_spec.rb +3 -3
- data/spec/active_record/annotate/file_spec.rb +2 -2
- data/spec/active_record/annotate_spec.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d46ab2c978b90e86c92cc4c21cc11007100fe01b
|
4
|
+
data.tar.gz: 8a3fbf198e6ab48158313b1e270bc1ebc93489e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62d1fb53fd8b99b1cea51746e716a3b46c6d1a96cc87c90f797884f79ef57d524a68bf14b67e2902dcce7ba0f1d9a1a97bab79f5a69f8ee817bf046f6b8900e1
|
7
|
+
data.tar.gz: 71f8c07dce06df0168053f02454fd45047870dde06fcf65a724042ee74bea4be4d7d0fa21a28d201281141825b9dd69f050540fd9ecc6b67db620cf92f642821
|
data/README.md
CHANGED
@@ -65,6 +65,7 @@ It creates an initializer at `config/initializers/annotate.rb` which contains de
|
|
65
65
|
* 0.3 Configuration and YARD code blocks support
|
66
66
|
* 0.4 Checking table existance before dumping
|
67
67
|
* 0.4.1 Several models per table fix
|
68
|
+
* 0.4.2 Initializer fix
|
68
69
|
|
69
70
|
## Roadmap
|
70
71
|
|
@@ -3,16 +3,16 @@ require 'spec_helper'
|
|
3
3
|
describe ActiveRecord::Annotate::Configurator do
|
4
4
|
describe "#initialize" do
|
5
5
|
it "resets all settings to their default values" do
|
6
|
-
expect(subject.yard).to
|
6
|
+
expect(subject.yard).to be_falsy
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
10
10
|
describe "attr_accessors" do
|
11
11
|
it "read and write settings' values" do
|
12
|
-
expect(subject.yard).to
|
12
|
+
expect(subject.yard).to be_falsy
|
13
13
|
|
14
14
|
subject.yard = true
|
15
|
-
expect(subject.yard).to
|
15
|
+
expect(subject.yard).to be_truthy
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
@@ -132,8 +132,8 @@ end
|
|
132
132
|
|
133
133
|
describe "#relative_path" do
|
134
134
|
before(:each) do
|
135
|
-
Rails.
|
136
|
-
file.
|
135
|
+
allow(Rails).to receive(:root).and_return('root')
|
136
|
+
allow(file).to receive(:path).and_return('root/namespace/path.rb')
|
137
137
|
end
|
138
138
|
|
139
139
|
it "returns a relative path" do
|
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|
3
3
|
describe ActiveRecord::Annotate do
|
4
4
|
describe ".short_path_for" do
|
5
5
|
before(:each) do
|
6
|
-
subject.
|
6
|
+
allow(subject).to receive(:models_dir).and_return('dir')
|
7
7
|
end
|
8
8
|
|
9
9
|
it "removes the root/app/models prefix and .rb suffix" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record-annotate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vsevolod Romashov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
158
|
version: '0'
|
159
159
|
requirements: []
|
160
160
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.
|
161
|
+
rubygems_version: 2.4.5.1
|
162
162
|
signing_key:
|
163
163
|
specification_version: 4
|
164
164
|
summary: ActiveRecord models annotator based on rails' schema dumper
|
@@ -167,3 +167,4 @@ test_files:
|
|
167
167
|
- spec/active_record/annotate/file_spec.rb
|
168
168
|
- spec/active_record/annotate_spec.rb
|
169
169
|
- spec/spec_helper.rb
|
170
|
+
has_rdoc:
|