active_record-annotate 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27ae8a69bb114f7c4a0fec1bdcfaffea89bda06c
4
- data.tar.gz: ce8d7adeb9ecf538591f78c8dce377c2245adb2a
3
+ metadata.gz: d46ab2c978b90e86c92cc4c21cc11007100fe01b
4
+ data.tar.gz: 8a3fbf198e6ab48158313b1e270bc1ebc93489e8
5
5
  SHA512:
6
- metadata.gz: fadf7c45c117a0ab9ef2f54c2509cf0bb58a67f1c0bcca53f4c322a85e22ac2faa4eee618a200433495d82ddfda5ea832ff9281a4f0e81887a4040fee157afbb
7
- data.tar.gz: c44f6f11b1ad9d5ace0b6ee49a926f07931ba506d286eeb60598cebb8368ca5329c28bedbcaf3273f022c1c95df24dd925b7a3afb378cd24930d5a69e5efd4a2
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
 
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Annotate
3
- VERSION = '0.4.1'
3
+ VERSION = '0.4.2'
4
4
  end
5
5
  end
@@ -4,4 +4,4 @@ ActiveRecord::Annotate.configure do |config|
4
4
  # set this to true to wrap annotations in triple backticks (```)
5
5
  # so YARD documentation can process the annotation as a code block
6
6
  # config.yard = false
7
- end
7
+ end if ActiveRecord.const_defined?(:Annotate)
@@ -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 be_false
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 be_false
12
+ expect(subject.yard).to be_falsy
13
13
 
14
14
  subject.yard = true
15
- expect(subject.yard).to be_true
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.stub(:root).and_return('root')
136
- file.stub(:path).and_return('root/namespace/path.rb')
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.stub(:models_dir).and_return('dir')
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.1
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: 2014-09-15 00:00:00.000000000 Z
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.2.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: