duck_duck_duck 1.0.1 → 1.0.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: d16263b2b11498bd85449c7285e966385b564651
4
- data.tar.gz: 4788ddd7b26a5afa231db924bfd725ed78a4ac6c
3
+ metadata.gz: 0f55dc1153ea4d74761fef740480a6e025f3e876
4
+ data.tar.gz: 5c3ac6c25dcc32d903a39f5d081fb0ded24a7fd3
5
5
  SHA512:
6
- metadata.gz: c9d218044980877ebc49d0d5ca513ce2b8f02e3db84d20cd9f52ec107cdaf65029918de88eebffbcbbb44f4a788319cc3e5e8f55d933f9ae4ff11e2afb1c8a31
7
- data.tar.gz: 6cebf38df8fed75ab608c59dcd149d1121f7f9face8de5e00855cde2b62e15e725301d1e4ebe398a98730fdf06c747931245e53642a1053e3d2d171a812266b3
6
+ metadata.gz: 1f78c7dde7508ba91f22c8e50cdc44cb4fa78ef8888698cde2a2f87eff56fa2ad2f95a33d8a46965a46ce433bda9cbfc624ba4484eee45e6459a28c6eb206be0
7
+ data.tar.gz: 3957b20c533ebaab7112d6ca0f9044a82b5434f5afcf65ef57393103eef633112c8335667aab1266edd367af07564bfe4e8363813d17509e4e170ad2dc32166b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
data/bin/duck_duck_duck CHANGED
@@ -10,8 +10,10 @@ when 'help'
10
10
  puts "help"
11
11
  puts "create Model table"
12
12
  puts "create Model default_data create"
13
- puts "up"
14
- puts "down"
13
+ puts ""
14
+ puts "up Model"
15
+ puts "down Model"
16
+ puts ""
15
17
  puts "migrate_schema"
16
18
  puts ""
17
19
  puts "=== ENV/options: ==="
@@ -54,11 +54,14 @@ class Duck_Duck_Duck
54
54
 
55
55
  def initialize *args
56
56
  @name, @action, @sub_action = args
57
+ if !@name
58
+ fail ArguementError, "Name required."
59
+ end
57
60
  @files = Dir.glob("#{name}/migrates/*.sql")
58
61
  end
59
62
 
60
63
  def file_to_ver str
61
- str.split('/').last[/\d{4}/].to_i
64
+ File.basename(str)[/\A\d{1,}/].to_i
62
65
  end
63
66
 
64
67
  def reset
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duck_duck_duck
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - da99
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-22 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry