config_scripts 0.4.4 → 0.4.5
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/config_scripts/seeds/seed_type.rb +1 -1
- data/lib/config_scripts/version.rb +1 -1
- data/spec/seeds/seed_type_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f313f0ac8e15d395c540613a5cab1030cb104d22
|
4
|
+
data.tar.gz: 464fe91acad8305f8a7672601832bb74c382d5e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae90a8fa1e6d34b9454b24817d6971dd905eef6af44e40870bbc82a851e2e35a25e6b52b3f1b864dd67e776e1054e16fec68047d6729a9ff2229a867fed03925
|
7
|
+
data.tar.gz: 62c70bca40f3ea8507490fb28f43958486685857a04561608c953fe3d0d248fa1fb05a1ff9e3840f474c6a171185ed47ad8b09c78c129151c0bcd87f08c81082
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
# Version 0.4.5 - 22 May 2014
|
2
|
+
* Removes the ability to apply scopes when loading records from seed
|
3
|
+
identifiers. This caused more trouble than it was worth, and unscoping the
|
4
|
+
entire seed set accomplishes the original purpose.
|
5
|
+
|
1
6
|
# Version 0.4.4 - 20 May 2014
|
2
7
|
|
3
8
|
* Adds the ability to remove default scopes when reading and writing seeds
|
data/Gemfile.lock
CHANGED
@@ -351,7 +351,7 @@ module ConfigScripts
|
|
351
351
|
# The record
|
352
352
|
def record_for_seed_identifier(identifier)
|
353
353
|
return nil if identifier.blank?
|
354
|
-
records = self.
|
354
|
+
records = self.all
|
355
355
|
self.identifier_attributes.each_with_index do |attribute, index|
|
356
356
|
if self.associations.has_key?(attribute)
|
357
357
|
value = self.read_value_for_association(attribute, identifier)
|
@@ -444,9 +444,9 @@ describe ConfigScripts::Seeds::SeedType do
|
|
444
444
|
end
|
445
445
|
|
446
446
|
context "when it is unscoped" do
|
447
|
-
it "
|
447
|
+
it "does not find the record" do
|
448
448
|
seed_type.has_scope :unscoped
|
449
|
-
expect(subject).to
|
449
|
+
expect(subject).to be_nil
|
450
450
|
end
|
451
451
|
end
|
452
452
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: config_scripts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Brownlee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|