mizuho 0.9.15 → 0.9.17

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.asc CHANGED
@@ -2,11 +2,11 @@
2
2
  Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
3
3
  Comment: GPGTools - http://gpgtools.org
4
4
 
5
- iQEcBAABAgAGBQJRe61BAAoJECrHRaUKISqMk18H/1cQqhWFg3Xsg54HXDj3ZMg3
6
- Viaq7IDhPH/XU3Xk2VQ7sJzKfur3vypJymAeq/1qtAWwCJVcQCeYOORYA50jfSM5
7
- VmFQH/rH3id9f7UPTKTw5GaSvaPxWOQwt8i58GtFxoVIn/Iq7a6eiUkOIgiv8cCg
8
- WTMjOm9dqXwNLZUIBdaPT1kDV8BZjZSj4zj69RzNxJ0362fxe0O05rPD1UAGIjwA
9
- 2lSshBvJ4QnaY7X9u9PrioXETClftCJcoHbG2nIu0LjgEUNEkn8tO0VO1/MMpIuM
10
- n407QxD1P2w0We2uDRypnWTNMGcIc/NvAOBKMPDFTgIVF9iRHNpcbN0hcRj7HaE=
11
- =r3I8
5
+ iQEcBAABAgAGBQJRfUauAAoJECrHRaUKISqM09MH/j1sGYjLful9ErhMCzipuxzC
6
+ HI20E2ip8CmXyZS9eN+nyuKAm2K+joXu2crU/9PvnS50BagLDlIwJWexLir2oY2W
7
+ 8EyhM0QN76hUThVLpTnVFvW5c3na0i3PhLyNOLPb900+zA49c4R1IU9dnQ7DvKDd
8
+ Z9nih2YHqzuPcX3eEWW4dO/8AwpD9BOLd+3HWCEr61n29++IQLFzJiWFwZJ+6zN9
9
+ 6hkU735x7l1ACL8VyBL0PJws7Ohz32fxsTnClack2etTzGJCrKP/IGquLDxTtgxO
10
+ 1pVkhvWl/yklD3QdNtEjlSWq1PjTxh4VS77HYsKeaCDqP+YxMJ3D3uvmfdOJfOo=
11
+ =XKeh
12
12
  -----END PGP SIGNATURE-----
data/Rakefile CHANGED
@@ -35,23 +35,33 @@ def recursive_copy_files(files, destination_dir)
35
35
  printf "\r[%5d/%5d] [%3.0f%%] Copying files...\n", files.size, files.size, 100
36
36
  end
37
37
 
38
- def create_debian_package_dir
38
+ def create_debian_package_dir(distribution)
39
39
  require 'mizuho/packaging'
40
+ require 'time'
40
41
 
41
- basename = "mizuho_#{Mizuho::VERSION_STRING}"
42
- pkg_dir = string_option('PKG_DIR', "pkg")
43
- sh "rm -rf #{pkg_dir}/#{basename}"
44
- sh "mkdir -p #{pkg_dir}/#{basename}"
45
-
42
+ sh "rm -rf #{PKG_DIR}/#{distribution}"
43
+ sh "mkdir -p #{PKG_DIR}/#{distribution}"
46
44
  recursive_copy_files(Dir[*MIZUHO_FILES] - Dir[*MIZUHO_DEBIAN_EXCLUDE_FILES],
47
- "#{pkg_dir}/#{basename}")
48
- sh "cd #{pkg_dir} && tar -c #{basename} | gzip --best > #{basename}.orig.tar.gz"
49
-
50
- recursive_copy_files(Dir["debian/**/*"], "#{pkg_dir}/#{basename}")
51
-
52
- return [basename, pkg_dir]
45
+ "#{PKG_DIR}/#{distribution}")
46
+ recursive_copy_files(Dir["debian/**/*"], "#{PKG_DIR}/#{distribution}")
47
+ changelog = File.read("#{PKG_DIR}/#{distribution}/debian/changelog")
48
+ changelog =
49
+ "mizuho (#{Mizuho::VERSION_STRING}-1~#{distribution}1) #{distribution}; urgency=low\n" +
50
+ "\n" +
51
+ " * Package built.\n" +
52
+ "\n" +
53
+ " -- Hongli Lai <hongli@phusion.nl> #{Time.now.rfc2822}\n\n" +
54
+ changelog
55
+ File.open("#{PKG_DIR}/#{distribution}/debian/changelog", "w") do |f|
56
+ f.write(changelog)
57
+ end
53
58
  end
54
59
 
60
+ PKG_DIR = string_option('PKG_DIR', "pkg")
61
+ BASENAME = "mizuho_#{Mizuho::VERSION_STRING}"
62
+ DISTRIBUTIONS = ["raring", "precise", "lucid"]
63
+
64
+
55
65
  desc "Run unit tests"
56
66
  task :test do
57
67
  ruby "-S spec -f s -c test/*_spec.rb"
@@ -70,14 +80,53 @@ task 'package:release' do
70
80
  end
71
81
  end
72
82
 
73
- task 'package:debian_dir' do
74
- create_debian_package_dir
83
+ # Dev
84
+ # remake tarball
85
+ # make package
86
+ # Production
87
+ # use existing tarball or make new
88
+ # make package
89
+
90
+ task 'package:debian:orig_tarball' do
91
+ if File.exist?("#{PKG_DIR}/mizuho_#{Mizuho::VERSION_STRING}.orig.tar.gz")
92
+ puts "Debian orig tarball #{PKG_DIR}/mizuho_#{Mizuho::VERSION_STRING}.orig.tar.gz already exists."
93
+ else
94
+ require 'mizuho/packaging'
95
+
96
+ sh "rm -rf #{PKG_DIR}/#{BASENAME}"
97
+ sh "mkdir -p #{PKG_DIR}/#{BASENAME}"
98
+ recursive_copy_files(Dir[*MIZUHO_FILES] - Dir[*MIZUHO_DEBIAN_EXCLUDE_FILES],
99
+ "#{PKG_DIR}/#{BASENAME}")
100
+ sh "cd #{PKG_DIR} && tar -c #{BASENAME} | gzip --best > #{BASENAME}.orig.tar.gz"
101
+ end
102
+ end
103
+
104
+ desc "Build a Debian package for local testing"
105
+ task 'package:debian:dev' do
106
+ sh "dpkg-checkbuilddeps"
107
+ sh "rm -f #{PKG_DIR}/mizuho_#{Mizuho::VERSION_STRING}.orig.tar.gz"
108
+ Rake::Task["package:debian:clean"].invoke
109
+ Rake::Task["package:debian:orig_tarball"].invoke
110
+ create_debian_package_dir("dev")
111
+ sh "cd #{PKG_DIR}/dev && debuild -us -uc"
75
112
  end
76
113
 
77
- desc "Build Debian package"
78
- task 'package:debian' do
114
+ desc "Build Debian multiple source packages to be uploaded to repositories"
115
+ task 'package:debian:production' => 'package:debian:orig_tarball' do
79
116
  sh "dpkg-checkbuilddeps"
80
- basename, pkg_dir = create_debian_package_dir
81
- sign_options = boolean_option('SIGN') ? "-us -uc" : "-k0x0A212A8C"
82
- sh "cd #{pkg_dir}/#{basename} && debuild #{sign_options}"
117
+ DISTRIBUTIONS.each do |distribution|
118
+ create_debian_package_dir(distribution)
119
+ sh "cd #{PKG_DIR}/#{distribution} && debuild -S -k0x0A212A8C"
120
+ end
121
+ end
122
+
123
+ desc "Clean Debian packaging products, except for orig tarball"
124
+ task 'package:debian:clean' do
125
+ files = Dir["#{PKG_DIR}/*.{changes,build,deb,dsc,upload}"]
126
+ sh "rm -f #{files.join(' ')}"
127
+ sh "rm -rf #{PKG_DIR}/dev"
128
+ DISTRIBUTIONS.each do |distribution|
129
+ sh "rm -rf #{PKG_DIR}/#{distribution}"
130
+ end
131
+ sh "rm -rf #{PKG_DIR}/*.debian.tar.gz"
83
132
  end
@@ -21,4 +21,19 @@ License: MIT
21
21
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
22
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
23
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- THE SOFTWARE.
24
+ THE SOFTWARE.
25
+
26
+ Files: lib/mizuho/fuzzystringmatch.rb
27
+ License: Apache
28
+ Copyright: 2010 Kiyoka Nishiyama
29
+ Licensed under the Apache License, Version 2.0 (the "License");
30
+ you may not use this file except in compliance with the License.
31
+ You may obtain a copy of the License at
32
+ .
33
+ http://www.apache.org/licenses/LICENSE-2.0
34
+ .
35
+ Unless required by applicable law or agreed to in writing, software
36
+ distributed under the License is distributed on an "AS IS" BASIS,
37
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
38
+ See the License for the specific language governing permissions and
39
+ limitations under the License.
@@ -19,7 +19,7 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Mizuho
22
- VERSION_STRING = "0.9.15"
22
+ VERSION_STRING = "0.9.17"
23
23
  NATIVELY_PACKAGED = false
24
24
 
25
25
  if NATIVELY_PACKAGED
@@ -1,3 +1,23 @@
1
+ # Copyright (c) 2013 Hongli Lai
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
9
+ #
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
20
+
1
21
  MIZUHO_FILES = [
2
22
  "README.markdown", "LICENSE.txt", "Rakefile",
3
23
  "bin/*",
@@ -10,6 +30,7 @@ MIZUHO_FILES = [
10
30
  ]
11
31
 
12
32
  MIZUHO_DEBIAN_EXCLUDE_FILES = [
33
+ "Rakefile",
13
34
  "bin/mizuho-asciidoc",
14
35
  "debian/**/*",
15
36
  "asciidoc/**/*",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mizuho
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.15
4
+ version: 0.9.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-27 00:00:00.000000000 Z
12
+ date: 2013-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
metadata.gz.asc CHANGED
@@ -2,11 +2,11 @@
2
2
  Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
3
3
  Comment: GPGTools - http://gpgtools.org
4
4
 
5
- iQEcBAABAgAGBQJRe61BAAoJECrHRaUKISqMViAH/Agslk77P6Du4Y/rpABgfraz
6
- 8pddWAOVZFk4YbpN7RqypVgqXwTVE6rlZOftcrPdGN3Me2ZXJoWsMO9UDnai6oVY
7
- cw1oWaRrPBRs9ezQQmwHsIfQ/+OclhlBSq0fF53bMP0hf7Uxlxh2Nw6S+wu4FMzB
8
- PI0fFI8UBa5tfgoVnFtJJCqZNyB9m22JfMkvr9R2x28ER1ccTV4KX5HzkA5WWitS
9
- ku8ugQnYwLgC2ucE9uSMiqfTqa23SC6rm6+FLe3dSTOmesPnXMgXAaZCqmLm4ynt
10
- jY/8qN57bv6HEhnOjTx1R+YfbA1OfMF+UA5BeTFO2uabMEX6ic24iBECwpN3Uvg=
11
- =Rwbn
5
+ iQEcBAABAgAGBQJRfUauAAoJECrHRaUKISqMgT0IAKxFN+AphNrA0XnEUwY1xgE/
6
+ zkHfRaoy6GL18BcanZ6jLgKLmf5II4co0xTQBXF+H5kyspe9nSteqGTyDkGlhlPV
7
+ Bdx0heIFQLiw41DaIUgxuz+N0RZvp+jjIYOZGSvaJ3mjuc7G9CShVs5sFH8dCM+o
8
+ oOHMT1zYT3qZpz8dz21rWcW96mHrIf8YI7aRvBK2vKZ8DX9qT+vgzNmM4iwUyq1H
9
+ +9/xiM3+C0Juv7dtHyjfpiNH92jf2yR4VDnyv7ACDrqVsxRno646HzBqmkFxAUuT
10
+ iOs2UY31DmufUaq1yUJGUCLhLbhFxTdGbeY2r/fWliOOWvQE7C4hnrg1kt58Nvc=
11
+ =X/o9
12
12
  -----END PGP SIGNATURE-----