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 +4 -4
- data/VERSION +1 -1
- data/bin/duck_duck_duck +4 -2
- data/lib/duck_duck_duck.rb +4 -1
- 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: 0f55dc1153ea4d74761fef740480a6e025f3e876
|
4
|
+
data.tar.gz: 5c3ac6c25dcc32d903a39f5d081fb0ded24a7fd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f78c7dde7508ba91f22c8e50cdc44cb4fa78ef8888698cde2a2f87eff56fa2ad2f95a33d8a46965a46ce433bda9cbfc624ba4484eee45e6459a28c6eb206be0
|
7
|
+
data.tar.gz: 3957b20c533ebaab7112d6ca0f9044a82b5434f5afcf65ef57393103eef633112c8335667aab1266edd367af07564bfe4e8363813d17509e4e170ad2dc32166b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
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 "
|
14
|
-
puts "
|
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: ==="
|
data/lib/duck_duck_duck.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|