config_scripts 0.4.4 → 0.4.5

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: a161b59fb0e28a4b36f776dc7c544cee24713e44
4
- data.tar.gz: c927b4b738d5fae4c9b48ae89c422c2feaea9dbc
3
+ metadata.gz: f313f0ac8e15d395c540613a5cab1030cb104d22
4
+ data.tar.gz: 464fe91acad8305f8a7672601832bb74c382d5e6
5
5
  SHA512:
6
- metadata.gz: 3ee4b06ae66ba9c16a0a538116d950d6af3fcf175e7922e5700cd4b29b9c0be2f07c8abbd01005ca771f80d42ba904cf4c0255c325b15818a1922908df9f1f81
7
- data.tar.gz: df3d33f6d667d3840c1dc1babd22b5d2f00627416b22fe18c1da142d407131b3e5325247e38d23dd3fd5327bb93dfcb5a61fdcd1b0d4096b4b2459345c132c37
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- config_scripts (0.4.4)
4
+ config_scripts (0.4.5)
5
5
  rails (> 3.0.0)
6
6
 
7
7
  GEM
@@ -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.items
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)
@@ -1,4 +1,4 @@
1
1
  module ConfigScripts
2
2
  # The current version of the library.
3
- VERSION = "0.4.4"
3
+ VERSION = "0.4.5"
4
4
  end
@@ -444,9 +444,9 @@ describe ConfigScripts::Seeds::SeedType do
444
444
  end
445
445
 
446
446
  context "when it is unscoped" do
447
- it "finds the record" do
447
+ it "does not find the record" do
448
448
  seed_type.has_scope :unscoped
449
- expect(subject).to eq person3
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
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-20 00:00:00.000000000 Z
11
+ date: 2014-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails