kaplan 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/kaplan.rb +3 -2
  2. data/lib/kaplan/version.rb +1 -1
  3. metadata +4 -4
@@ -120,9 +120,10 @@ module Kaplan
120
120
  Dir["#{project_root}/seeds/#{env}/*.{yml,yaml,rb,txt,csv}"]
121
121
  ].flatten
122
122
  end
123
- files.enum_for(:each_with_index).map do |filename, i|
123
+ files.sort.enum_for(:each_with_index).map do |filename, i|
124
124
  basename = ::File.basename(filename)
125
- basename =~ /^(.+?)\.([^.]+)$/
125
+ # Ignore numbers at the beginning of the filename, as they are used for sorting
126
+ basename =~ /^(?:\d+_)?(.+?)\.([^.]+)$/
126
127
  extension = $2.downcase
127
128
  # collection_name and model only applies to files within seeds/
128
129
  if i > 0
@@ -1,3 +1,3 @@
1
1
  module Kaplan
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaplan
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Elliot Winkler
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-05 00:00:00 -07:00
18
+ date: 2011-03-30 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies: []
21
21