sequel-seed 0.3.1 → 0.3.2

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: da09d9ce979c91b83d60523a679e5f284d47bead
4
- data.tar.gz: 9cfc115fbe4e8cddc8a63cc07a8314201a391e80
3
+ metadata.gz: 82b215a4fbd4a7a8d1fc5203360c89cd3216dd4a
4
+ data.tar.gz: 73f68acb7c5810b102b078ded53d8ed8b1a84432
5
5
  SHA512:
6
- metadata.gz: 57c5c5e645c3407808d4b77d17877aa31940e21152370978583852d653385be8df9a6e248b29a20a2711e5851623c0cd33038a143c5b2ae1fc8092327abce23d
7
- data.tar.gz: 671cf4fd7f61cb15aeb3588ed461b8f39ab5ebbb785ac0ba4569712b96df3d203c88fd24da4dae67ab39dafcc4717de8b48f0703187549e0f4a53156b1b08086
6
+ metadata.gz: 5df8a5291f61ddb99f68514a0e7da597ce222cdb90f71a3995bb74e58151d9305c7fbde76f96ff88e0629aad6ecf0665bc39797f448a7b4bf311b8ef867c9555
7
+ data.tar.gz: 16e60b6c21dc0b3433c9e1aba5c18f7984a6b79456e516b115e26c7d003333a042519d505bf319e6c2830c022cfeae25a2ab31fb47ad38921d28ef93f6e780d1
@@ -1,7 +1,11 @@
1
1
  ## Changelog
2
2
 
3
- ### 0.3.0
4
- - Add support for YAML files
3
+ ### 0.3.2
4
+ - Hotfixes & minor updates
5
+ - Olle Jonsson's contributions
6
+
7
+ ### 0.3.1
8
+ - Add support for YAML & JSON files
5
9
  - Minor hotfixes
6
10
 
7
11
  ### 0.2.1
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Ewerton Assis
3
+ Copyright (c) 2016 Ewerton Assis
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
data/README.md CHANGED
@@ -41,7 +41,7 @@ DB = Sequel.connect(...)
41
41
  Sequel::Seeder.apply(DB, "/path/to/seeds")
42
42
  ```
43
43
 
44
- For more information, please check the [project website](//github.com/earaujoassis/sequel-seed/).
44
+ For more information, please check the [project website](//earaujoassis.github.io/sequel-seed/).
45
45
 
46
46
  ## Limitations
47
47
 
@@ -125,7 +125,7 @@ module Sequel
125
125
  when String, Symbol
126
126
  return if seed_hash['environment'].to_sym != Seed.environment
127
127
  when Array
128
- return unless seed_hash_environment.map(&:to_sym).include?(Seed.environment)
128
+ return unless seed_hash['environment'].map(&:to_sym).include?(Seed.environment)
129
129
  end
130
130
  end
131
131
 
data/spec/spec_helper.rb CHANGED
@@ -26,7 +26,13 @@ RSpec.configure do |config|
26
26
 
27
27
  Sequel.extension :seed
28
28
 
29
- DB = Sequel.sqlite
29
+ dsn = if RUBY_PLATFORM == 'java'
30
+ 'jdbc:sqlite::memory:'
31
+ else
32
+ 'sqlite:/'
33
+ end
34
+
35
+ DB = Sequel.connect(dsn)
30
36
 
31
37
  DB.create_table(:spec_models) do
32
38
  primary_key :id, :auto_increment => true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-seed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ewerton Assis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-04 00:00:00.000000000 Z
11
+ date: 2016-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel
@@ -25,12 +25,12 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.0'
27
27
  description: A Sequel extension to make seeds/fixtures manageable like migrations
28
- email: hello@dearaujoassis.com
28
+ email: earaujoassis@gmail.com
29
29
  executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
- - CHANGELOG
33
+ - CHANGELOG.md
34
34
  - LICENSE
35
35
  - README.md
36
36
  - lib/sequel/extensions/seed.rb