nakal 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d341cab57df514ae1afbdc0e46f07ec5ef6f7887
4
- data.tar.gz: 09201d7673735fbccbd9ae3feb709d99b664688c
3
+ metadata.gz: 42c027b9cf5f7737b17c90e220c4ac11546589fd
4
+ data.tar.gz: 0387ff2a6c1e73102427fefd97da3c205b8de675
5
5
  SHA512:
6
- metadata.gz: 1553336b7ef1bd54457c920fa18c1dda46e66cb2dc9d1fe10a6e85bea13be7f24ba518786f0b84263f70635090c14c0995e9d76f3fe25529ed594b73d1782fa3
7
- data.tar.gz: b50d70cc5885e6e0fc5a3c669130e26eff5434e6c1bd171bb4a797bd59e741438a22e722515f360d7f2aa40eead401d1c5752292e9806d1e2db52e0201537d5a
6
+ metadata.gz: 8e2e24d8bc2b928e2e86d7eb7e945faa6739efb49943bf7e4f1decaf777e2e5f1130945a3d2cfee9ed3019dc53cc52b5b2d3b5798ccd86e60171b2e56460719e
7
+ data.tar.gz: 5f25652f4d1ee0de0fb64dd9e966ad3276fdd6e2956a6063479897f995399987415262a3146bf7f22992f1170b0394bdc9475e26742d1fefa7124f6cd3d25545
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.1.1
data/README.md CHANGED
@@ -1,3 +1,6 @@
1
+
2
+ [![Build Status](https://travis-ci.org/rajdeepv/nakal.svg?branch=master)](https://travis-ci.org/rajdeepv/nakal)
3
+
1
4
  # Nakal
2
5
 
3
6
  Automated visual testing of Android/iOS applications.
@@ -92,6 +95,11 @@ put these contents in your nakal.yml file inside config/nakal.yml
92
95
  bottom: 0
93
96
  screen_name_to_be_masked: {mask_region_1: [66,424,340,478],mask_region_2: [76,524,440,578]}
94
97
 
98
+ 3. If you want to set certain threshold while comparing. You can pass option as:
99
+
100
+ diff_metric = nakal_execute("current_screen_name",{:acceptable_diff => "#{your_acceptable_diff_metric}".to_f})
101
+
102
+
95
103
 
96
104
  ## Contributing
97
105
 
data/Rakefile CHANGED
@@ -1 +1,7 @@
1
1
  require "bundler/gem_tasks"
2
+
3
+ require 'rspec/core/rake_task'
4
+
5
+ RSpec::Core::RakeTask.new
6
+
7
+ task :default => :spec
data/lib/nakal.rb CHANGED
@@ -25,7 +25,7 @@ module Nakal
25
25
  end
26
26
 
27
27
  def current_platform
28
- Object.const_get("Nakal::#{Nakal.platform.capitalize}")
28
+ Nakal.const_get Nakal.platform.capitalize
29
29
  end
30
30
 
31
31
  end
data/lib/nakal/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nakal
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nakal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajdeep
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-03 00:00:00.000000000 Z
11
+ date: 2015-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rmagick
@@ -77,6 +77,7 @@ files:
77
77
  - ".gitignore"
78
78
  - ".rspec"
79
79
  - ".rvmrc"
80
+ - ".travis.yml"
80
81
  - Gemfile
81
82
  - LICENSE.txt
82
83
  - README.md