daddy 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/daddy/ocr.rb +13 -0
- data/lib/daddy/railtie.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTlhZGYyMDBhOGM2MWI5YjVhOGI3N2UwZTZkZTVlNThmZDI0YzdlNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTljMDJlNjIzODE2MDYyNTU1YmM5NGFkMWJjNTY4OTRiZGFiYTZmYQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjBkYmM2ZGEzNjg0ODVjZmEyNjI2ZmNkMjQ2ZDNkZmM1OTcwYzZjMDljMjVl
|
10
|
+
MGUzOWM2ZWMzMTYzN2E3OWE5ODgyM2RmNDVlNzhhZDA5NWNhNzAwNzU2MDEz
|
11
|
+
N2IzN2Q0NzM3NzU5MDU0NjQ3YWYxNzI4MWU2MjAzMzdiZDMxZTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTZkMmVkMDMzMGI3ZmRkMmJiMzZlYmJmYzY0MmMxZThjMDkyNTZiOTllMzNl
|
14
|
+
YTU1NjE2NGZkNDRkN2NhOGQwNmZkNTY4ZWNkNTUzM2IyMTJjOTNhY2VkMmI4
|
15
|
+
M2QzNDE3MGYyOTBkN2VjZDZjYjdmMTU0ZGI5ZTk2OGFkMWQ3Nzg=
|
data/lib/daddy/ocr.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# coding: UTF-8
|
2
|
+
|
3
|
+
module Daddy
|
4
|
+
class Ocr
|
5
|
+
|
6
|
+
def self.scan(image_path)
|
7
|
+
out = Time.now.strftime("%Y%m%d%H%M%S") + (Time.now.usec / 1000.0).to_s
|
8
|
+
system("tesseract #{image_path} tmp/#{out} -l jpn")
|
9
|
+
File.read("tmp/#{out}.txt")
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
data/lib/daddy/railtie.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daddy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -242,6 +242,7 @@ files:
|
|
242
242
|
- lib/daddy/cucumber/diff.rb
|
243
243
|
- lib/daddy/helpers/html_helper.rb
|
244
244
|
- lib/daddy/capistrano/remote_cache_subdir.rb
|
245
|
+
- lib/daddy/ocr.rb
|
245
246
|
- lib/daddy/git.rb
|
246
247
|
- lib/daddy/rails/hooks.rb
|
247
248
|
- lib/daddy/rails/quiet_assets.rb
|