duck_duck_duck 1.0.0 → 1.0.1

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: 57a6021e6db81052a0d1ded7aadb527cbb99059e
4
- data.tar.gz: 3c2522c40d726f5cab897321d87488ab693705e1
3
+ metadata.gz: d16263b2b11498bd85449c7285e966385b564651
4
+ data.tar.gz: 4788ddd7b26a5afa231db924bfd725ed78a4ac6c
5
5
  SHA512:
6
- metadata.gz: 6a037d4aaef8c580f04fcd5fd50f3f5bc5f0b3d9a67a8bcb2ecb91131e377a88829e506c708f7ce93de664087dfecf0d269a09f568ecccc2740e3e45d98c62bc
7
- data.tar.gz: efda3885fc1f6303b701eafaf3f22f471018060fac6cb861d70ec6c2c98c68b6a3228deabcba05131b59d371f7dfd5067a824c81462003e371e517e94fe73ec6
6
+ metadata.gz: c9d218044980877ebc49d0d5ca513ce2b8f02e3db84d20cd9f52ec107cdaf65029918de88eebffbcbbb44f4a788319cc3e5e8f55d933f9ae4ff11e2afb1c8a31
7
+ data.tar.gz: 6cebf38df8fed75ab608c59dcd149d1121f7f9face8de5e00855cde2b62e15e725301d1e4ebe398a98730fdf06c747931245e53642a1053e3d2d171a812266b3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.files = `git ls-files -z`.split("\x0").reject { |file|
19
19
  file.index('bin/') == 0 && file != "bin/#{File.basename Dir.pwd}"
20
20
  }
21
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
+ spec.executables = [spec.name]
22
22
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
23
23
  spec.require_paths = ["lib"]
24
24
 
@@ -148,9 +148,9 @@ class Duck_Duck_Duck
148
148
  files = Dir.glob("#{name}/migrates/*.sql").grep(/\/\d{4}\-/).sort
149
149
 
150
150
  next_ver = begin
151
- (files.last || '')[/\/(\d{4})[^\/]+$/]
151
+ (files.last || '')[/\/(\d{4})[^\/]+\z/]
152
152
  v = ($1 ? $1 : '0')
153
- '%04d' % (v.to_i + (10 - v[/\d$/].to_i))
153
+ '%04d' % (v.to_i + (10 - v[/\d\z/].to_i))
154
154
  end
155
155
 
156
156
  new_file = "#{name}/migrates/#{next_ver}-#{[action, sub_action].compact.join('-')}.sql"
data/node/app.js CHANGED
@@ -37,7 +37,7 @@ if (argv._[0] === 'list') {
37
37
  var v = o.version;
38
38
  if (o.version < 10)
39
39
  v = ' ' + v;
40
- console.log(v, o.name);
40
+ console['log'](v, o.name);
41
41
  });
42
42
  j.finish(list);
43
43
  })
@@ -29,7 +29,7 @@ end
29
29
 
30
30
  def versions mod
31
31
  Dir.glob("#{mod}/migrates/*").map { |file|
32
- file[/\/(\d{4})[^\/]+\.sql$/] && $1.to_i
32
+ file[/\/(\d{4})[^\/]+\.sql\z/] && $1.to_i
33
33
  }.sort
34
34
  end
35
35
 
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - da99
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-02 00:00:00.000000000 Z
11
+ date: 2015-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  requirements: []
183
183
  rubyforge_project:
184
- rubygems_version: 2.2.2
184
+ rubygems_version: 2.4.5
185
185
  signing_key:
186
186
  specification_version: 4
187
187
  summary: Migrations for apps composed of mini-apps.