mortadella 0.2.2 → 1.0.0

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: eb8bdd8a5aedb635ad31ac79f1283b335491f158
4
- data.tar.gz: 59cf40921a424abb24d38961942e09ed1175704f
3
+ metadata.gz: addead2f5fd8242211b456117c6473d64afbbd62
4
+ data.tar.gz: 9184b1d1774cd478d4fb1772be9e4b4a68429f3d
5
5
  SHA512:
6
- metadata.gz: d70e92927b5c8bf5bcb5655f6e3746eeadeb64edd66be76c609606b0ef1df57205ca34fb6ba126564294748e6f64e79abda742899bfdae19871870c50e04d96d
7
- data.tar.gz: 899a13f1a4969a07caf16023c86a0a6254dbf7193fb600f216178afb341b11d5b7629d0b97e6017afe98b2bba70d0003d81e057c5bf9fdcbebf6b7e6c6646979
6
+ metadata.gz: a508525b3f43f28b7b30e419eb4e24857c3e9eab229ab94ec7fc97fb17b4a6337edf8687de6b8f8acadc2159c76d056162dd335346262a5bf3c1e85d381bab34
7
+ data.tar.gz: 06e1f982f1a0d0630ac771431c29cdc668f0dffd507b08c8e746f058cd757008ceb8cb1b35bd4abd86dd2900a17af63a51a03067f78ac8cca8ec70bc15121206
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ repo_token: GAn8JJMCNbmXmEGH6BoFhfTFXECleGGrn
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  /.bundle/
2
+ coverage/
data/Gemfile.lock CHANGED
@@ -1,15 +1,22 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mortadella (0.2.2)
4
+ mortadella (1.0.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- ast (2.1.0)
9
+ ast (2.2.0)
10
10
  astrolabe (1.3.1)
11
11
  parser (~> 2.2)
12
12
  builder (3.2.2)
13
+ coveralls (0.8.10)
14
+ json (~> 1.8)
15
+ rest-client (>= 1.6.8, < 2)
16
+ simplecov (~> 0.11.0)
17
+ term-ansicolor (~> 1.3)
18
+ thor (~> 0.19.1)
19
+ tins (~> 1.6.0)
13
20
  cucumber (2.1.0)
14
21
  builder (>= 2.1.2)
15
22
  cucumber-core (~> 1.3.0)
@@ -17,17 +24,29 @@ GEM
17
24
  gherkin3 (~> 3.1.0)
18
25
  multi_json (>= 1.7.5, < 2.0)
19
26
  multi_test (>= 0.1.2)
20
- cucumber-core (1.3.0)
27
+ cucumber-core (1.3.1)
21
28
  gherkin3 (~> 3.1.0)
22
29
  diff-lcs (1.2.5)
30
+ docile (1.1.5)
31
+ domain_name (0.5.25)
32
+ unf (>= 0.0.5, < 1.0.0)
23
33
  gherkin3 (3.1.2)
34
+ http-cookie (1.0.2)
35
+ domain_name (~> 0.5)
36
+ json (1.8.3)
37
+ mime-types (2.99)
24
38
  multi_json (1.11.2)
25
39
  multi_test (0.1.2)
40
+ netrc (0.11.0)
26
41
  parser (2.2.3.0)
27
42
  ast (>= 1.1, < 3.0)
28
43
  powerpack (0.1.1)
29
44
  rainbow (2.0.0)
30
45
  rake (10.4.2)
46
+ rest-client (1.8.0)
47
+ http-cookie (>= 1.0.2, < 2.0)
48
+ mime-types (>= 1.16, < 3.0)
49
+ netrc (~> 0.7)
31
50
  rspec (3.4.0)
32
51
  rspec-core (~> 3.4.0)
33
52
  rspec-expectations (~> 3.4.0)
@@ -49,13 +68,25 @@ GEM
49
68
  ruby-progressbar (~> 1.7)
50
69
  tins (<= 1.6.0)
51
70
  ruby-progressbar (1.7.5)
71
+ simplecov (0.11.1)
72
+ docile (~> 1.1.0)
73
+ json (~> 1.8)
74
+ simplecov-html (~> 0.10.0)
75
+ simplecov-html (0.10.0)
76
+ term-ansicolor (1.3.2)
77
+ tins (~> 1.0)
78
+ thor (0.19.1)
52
79
  tins (1.6.0)
80
+ unf (0.1.4)
81
+ unf_ext
82
+ unf_ext (0.0.7.1)
53
83
 
54
84
  PLATFORMS
55
85
  ruby
56
86
 
57
87
  DEPENDENCIES
58
88
  bundler
89
+ coveralls
59
90
  cucumber
60
91
  mortadella!
61
92
  rake
data/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  [![Build Status](https://circleci.com/gh/Originate/mortadella/tree/master.svg?style=shield)](https://circleci.com/gh/Originate/mortadella)
4
4
  [![Code Climate](https://codeclimate.com/github/Originate/mortadella/badges/gpa.svg)](https://codeclimate.com/github/Originate/mortadella)
5
+ [![Coverage Status](https://coveralls.io/repos/Originate/mortadella/badge.svg?branch=master&service=github)](https://coveralls.io/github/Originate/mortadella?branch=master)
5
6
  [![Dependency Status](https://gemnasium.com/Originate/mortadella.svg)](https://gemnasium.com/Originate/mortadella)
6
- [![License](http://img.shields.io/:license-MIT-blue.svg?style=flat)](LICENSE.txt)
7
7
 
8
8
 
9
9
  Mortadella makes it easy to programmatically build data tables
@@ -1,3 +1,8 @@
1
+ if ENV['CI']
2
+ require 'coveralls'
3
+ Coveralls.wear!
4
+ end
5
+
1
6
  require 'bundler/setup'
2
7
  Bundler.setup
3
8
  require 'mortadella'
@@ -0,0 +1,16 @@
1
+ Feature: Verifying emptiness
2
+
3
+ (see ../horizontal_tables/emptiness.feature)
4
+
5
+
6
+ Scenario: an empty table
7
+ Given I have a Mortadella instance: "m = Mortadella::Vertical.new"
8
+ When I ask it whether it is empty: "m.empty?"
9
+ Then it responds with true
10
+
11
+
12
+ Scenario: a non-empty table
13
+ Given I have a Mortadella instance: "m = Mortadella::Vertical.new"
14
+ And I add a data row: "m['NAME'] = 'Mortadella'"
15
+ When I ask it whether it is empty: "m.empty?"
16
+ Then it responds with false
@@ -1,6 +1,6 @@
1
1
  module Mortadella
2
2
 
3
- # Makes it easy to build DRY horizontal Cucumber-compatible tables
3
+ # Makes it easy to build DRY vertical Cucumber-compatible tables
4
4
  class Vertical
5
5
 
6
6
  attr_reader :table
@@ -18,7 +18,7 @@ module Mortadella
18
18
 
19
19
 
20
20
  def empty?
21
- @table.size == 1
21
+ @table.empty?
22
22
  end
23
23
 
24
24
  end
data/mortadella.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'mortadella'
7
- s.version = '0.2.2'
7
+ s.version = '1.0.0'
8
8
  s.authors = ['Kevin Goslar']
9
9
  s.email = ['kevin.goslar@gmail.com']
10
10
  s.summary = %s(Mock Ruby Table Delivery)
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.require_paths = ['lib']
18
18
 
19
19
  s.add_development_dependency 'bundler'
20
+ s.add_development_dependency 'coveralls'
20
21
  s.add_development_dependency 'cucumber'
21
22
  s.add_development_dependency 'rake'
22
23
  s.add_development_dependency 'rubocop'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mortadella
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Goslar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-09 00:00:00.000000000 Z
11
+ date: 2015-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: coveralls
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: cucumber
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -87,6 +101,7 @@ executables: []
87
101
  extensions: []
88
102
  extra_rdoc_files: []
89
103
  files:
104
+ - ".coveralls.yml"
90
105
  - ".gitignore"
91
106
  - ".rubocop.yml"
92
107
  - ".ruby-version"
@@ -102,6 +117,7 @@ files:
102
117
  - features/step_definitions/steps.rb
103
118
  - features/support/env.rb
104
119
  - features/vertical_tables/basic_usage.feature
120
+ - features/vertical_tables/emptiness.feature
105
121
  - lib/mortadella.rb
106
122
  - lib/mortadella/horizontal.rb
107
123
  - lib/mortadella/vertical.rb