natives 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2U5MzE1YzYzY2U5Y2M2N2VkOWQwZjlhZjJjYmU2ZGRlYTdlZDU0OA==
4
+ MDYxNjNkMGYyMGVhNDA2ZDI4Mjk0N2QzMTA3NjIxZWI5MDg2ODdiMA==
5
5
  data.tar.gz: !binary |-
6
- MmQzY2RiNWFkMGVlMGYxZWMxZDNiZWU1NGVmZjg3MDA5YTk5OTI3Mw==
6
+ NTk0YTNhMTIyZjEzNzlmZjU1ZTU1NzZkNDcwMzYzOTgwNmNkYzAwNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzU4YWU5ZDU4NTVlNjFhYWI5YjdmMTE4MWFhYTk1Mzg0MGQ2MTkwOTk5ZDY1
10
- MzRiYjk0MDdiMzY3YzU3Njc3ZTM5OTEzZDVhNGZmMWE4ZjMyMzE0OTdlZTc5
11
- N2FhNDY2NTgxMGQ4ZGI0MWEzN2Y5OGRhNGVjYTI1YzNkZmQwZmU=
9
+ NGFhNzdhMDg4OWU2MDJjMTJlMGUyNTQyNTU1YWVjZDFjOTAwNTM0MzZiMDNj
10
+ ZWM4MDNlOTkwODljNTAxYmY3MDBmMTY5ZDY4YmRlZTFlZTQ0ZWM3NTBhNmU1
11
+ YTEyMTcyOGY5ZDg2NDU2NGM0NjE5MDJlM2EyN2M3ZDI1NjVlZDQ=
12
12
  data.tar.gz: !binary |-
13
- OTU2ZDVmYjhlMDQwZDA2MTllZGU0OWMwNjg4NmRlNDQ4YmI5OTc1ZmIwZjky
14
- ZmExYzM4ZWYyNDM2ZDBmYTc4ZTIxMmRiNDdlM2Q2ZmZkMGNjZTk0YzJjMmZk
15
- MWYyMzFlMzliNGRmM2M3ZDliNGJjODY3ZmFlNTFkNmUxMjQyNDM=
13
+ MDBhMmE4MDNlYmJiMzkxODZlY2RhNjlmZDg5ZTA2YTY3NTgzMzFmY2JiZDZh
14
+ YTIyMzhkNGE4M2JmYTdjNGQ3ODNiMGZiYTA4ZTY0MzMzYzhiYWVjNTk2YTZi
15
+ NTQ2YTU3YmJhZTJhMjFmMDU4YzcxOTk4YzQ5MTE2N2JjZjk2ZDM=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.4
1
+ 0.5.5
@@ -6,14 +6,24 @@ rubygems:
6
6
  mac_os_x/homebrew:
7
7
  default:
8
8
  - qt
9
+ debian/apt:
10
+ default:
11
+ - libqtwebkit-dev
9
12
  ubuntu/apt:
10
13
  default:
11
14
  - libqtwebkit-dev
12
15
  curb:
16
+ debian/apt:
17
+ default:
18
+ - libcurl4-openssl-dev
13
19
  ubuntu/apt:
14
20
  default:
15
21
  - libcurl4-openssl-dev
16
22
  nokogiri:
23
+ debian/apt:
24
+ default:
25
+ - libxslt-dev
26
+ - libxml2-dev
17
27
  ubuntu/apt:
18
28
  default:
19
29
  - libxslt-dev
@@ -22,6 +32,9 @@ rubygems:
22
32
  mac_os_x/homebrew:
23
33
  default:
24
34
  - postgres
35
+ debian/apt:
36
+ default:
37
+ - libpq-dev
25
38
  ubuntu/apt:
26
39
  default:
27
40
  - libpq-dev
@@ -29,6 +42,10 @@ rubygems:
29
42
  mac_os_x/homebrew:
30
43
  default:
31
44
  - imagemagick
45
+ debian/apt:
46
+ default:
47
+ - imagemagick
48
+ - libmagickwand-dev
32
49
  ubuntu/apt:
33
50
  default:
34
51
  - imagemagick
@@ -37,11 +54,18 @@ rubygems:
37
54
  mac_os_x/homebrew:
38
55
  default:
39
56
  - tesseract
57
+ debian/apt:
58
+ default:
59
+ - libtesseract-dev
60
+ - libleptonica-dev
40
61
  ubuntu/apt:
41
62
  default:
42
63
  - libtesseract-dev
43
64
  - libleptonica-dev
44
65
  sqlite3:
66
+ debian/apt:
67
+ default:
68
+ - libsqlite3-dev
45
69
  ubuntu/apt:
46
70
  default:
47
71
  - libsqlite3-dev
@@ -3,6 +3,9 @@
3
3
  BIN_HOME="$( cd "$( dirname "$0" )" && pwd )"
4
4
  PROJECT_HOME="$( cd $BIN_HOME/../.. && pwd )"
5
5
 
6
+ echo " * Run: natives detect"
7
+ $PROJECT_HOME/bin/natives detect
8
+
6
9
  gem_name=$1
7
10
  echo " * Gem: $gem_name"
8
11
 
@@ -0,0 +1,12 @@
1
+ #!/bin/bash
2
+
3
+ BIN_HOME="$( cd "$( dirname "$0" )" && pwd )"
4
+ TEST_HOME="$( cd "$BIN_HOME/.." && pwd )"
5
+
6
+ for dir in $TEST_HOME/images/*/
7
+ do
8
+ cd $dir &&
9
+ image_name=${PWD##*/} && # to assign to a variable
10
+ echo "Pulling $image_name from docker's index repo" &&
11
+ docker pull natives/$image_name
12
+ done
@@ -4,19 +4,21 @@ BIN_HOME="$( cd "$( dirname "$0" )" && pwd )"
4
4
  TEST_HOME="$( cd "$BIN_HOME/.." && pwd )"
5
5
  LOG_HOME="$TEST_HOME/logs"
6
6
 
7
- for dir in $TEST_HOME/images/*/
7
+ default_image_names="$( ls $TEST_HOME/images )"
8
+ image_names=${1:-$default_image_names}
9
+ for image_name in $image_names
8
10
  do
9
- image_name=$(basename $dir)
10
-
11
11
  log_dir="$LOG_HOME/$image_name"
12
12
  echo " * Cleaning up logs: $log_dir .."
13
13
  mkdir -p $log_dir
14
14
  rm -rf $log_dir/*
15
+ done
15
16
 
16
- gems="$( $BIN_HOME/list_all )"
17
- echo " * To test entries in $image_name image: $gems"
18
- for gem_name in $gems
19
- do
20
- $BIN_HOME/test_entry $image_name $gem_name
17
+ gems="$( $BIN_HOME/list_all )"
18
+
19
+ for image_name in $image_names; do
20
+ for gem in $gems; do
21
+ $BIN_HOME/test_entry $image_name $gem
21
22
  done
22
23
  done
24
+
@@ -1,3 +1,3 @@
1
1
  #!/bin/bash
2
2
 
3
- vagrant ssh -c '/vagrant/catalogs_test/bin/test_catalog'
3
+ vagrant ssh -c "/vagrant/catalogs_test/bin/test_catalog $*"
@@ -9,6 +9,7 @@ gem_name=$2
9
9
  log_dir="$LOG_HOME/$image_name"
10
10
 
11
11
  echo " * Removing previous log file.."
12
+ mkdir -p $log_dir
12
13
  rm $log_dir/$gem_name*.log
13
14
 
14
15
  echo " * Installing $gem_name gem in $image_name .."
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ vagrant up
6
+ vagrant ssh -c '/vagrant/catalogs_test/bin/pull_images'
@@ -0,0 +1,10 @@
1
+ FROM tianon/debian:7.2
2
+
3
+ MAINTAINER Huiming Teo (@teohm)
4
+
5
+ RUN apt-get -y update
6
+ RUN apt-get -y install ruby1.9.1-full
7
+ RUN apt-get -y install build-essential
8
+
9
+ RUN gem install bundler
10
+ RUN gem install natives
@@ -2,15 +2,15 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: natives 0.5.4 ruby lib
5
+ # stub: natives 0.5.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "natives"
9
- s.version = "0.5.4"
9
+ s.version = "0.5.5"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Huiming Teo"]
13
- s.date = "2013-11-12"
13
+ s.date = "2013-11-13"
14
14
  s.description = "Lookup native package dependencies required by gems on your machine."
15
15
  s.email = "teohuiming@gmail.com"
16
16
  s.executables = ["natives"]
@@ -36,11 +36,14 @@ Gem::Specification.new do |s|
36
36
  "catalogs_test/bin/install_entry",
37
37
  "catalogs_test/bin/install_entry_in_docker",
38
38
  "catalogs_test/bin/list_all",
39
+ "catalogs_test/bin/pull_images",
39
40
  "catalogs_test/bin/run",
40
41
  "catalogs_test/bin/test_catalog",
41
42
  "catalogs_test/bin/test_catalog_in_vagrant",
42
43
  "catalogs_test/bin/test_entry",
43
44
  "catalogs_test/bin/test_entry_in_vagrant",
45
+ "catalogs_test/bin/update",
46
+ "catalogs_test/images/debian-7.2/Dockerfile",
44
47
  "catalogs_test/images/ubuntu-12.10/Dockerfile",
45
48
  "lib/natives.rb",
46
49
  "lib/natives/apps.rb",
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: natives
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: !binary |-
5
+ MC41LjU=
5
6
  platform: ruby
6
7
  authors:
7
8
  - Huiming Teo
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-11-12 00:00:00.000000000 Z
12
+ date: 2013-11-13 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: ohai
@@ -176,11 +177,14 @@ files:
176
177
  - catalogs_test/bin/install_entry
177
178
  - catalogs_test/bin/install_entry_in_docker
178
179
  - catalogs_test/bin/list_all
180
+ - catalogs_test/bin/pull_images
179
181
  - catalogs_test/bin/run
180
182
  - catalogs_test/bin/test_catalog
181
183
  - catalogs_test/bin/test_catalog_in_vagrant
182
184
  - catalogs_test/bin/test_entry
183
185
  - catalogs_test/bin/test_entry_in_vagrant
186
+ - catalogs_test/bin/update
187
+ - catalogs_test/images/debian-7.2/Dockerfile
184
188
  - catalogs_test/images/ubuntu-12.10/Dockerfile
185
189
  - lib/natives.rb
186
190
  - lib/natives/apps.rb