active_cucumber 0.0.8 → 0.0.9
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 +4 -4
- data/Gemfile.lock +25 -23
- data/active_cucumber.gemspec +1 -1
- data/features/step_definitions/steps.rb +1 -1
- data/lib/active_cucumber/cucumparer.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84625341a239f1384db39f3c8979e8a7650d20d6
|
|
4
|
+
data.tar.gz: fbb06f1bd5dbff549ca4c6c055e444b71d1e26cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ace1532c2149270645c7ebf827318be8391335a5a5539a2327c8708606d790a41c1a047c213d5648323ed3df46399e118391982c4af692df36a76dde2d1a5a3
|
|
7
|
+
data.tar.gz: 305549c30e799b3657d02ee4c6f2ebca080a17eaa3d780302cd3bb868ba96bce9b59540a516e578592c988071eaa1103fe4da3eebe4db543c001def1b031f732
|
data/Gemfile.lock
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
active_cucumber (0.0.
|
|
4
|
+
active_cucumber (0.0.9)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
activemodel (4.2.
|
|
10
|
-
activesupport (= 4.2.
|
|
9
|
+
activemodel (4.2.5)
|
|
10
|
+
activesupport (= 4.2.5)
|
|
11
11
|
builder (~> 3.1)
|
|
12
|
-
activerecord (4.2.
|
|
13
|
-
activemodel (= 4.2.
|
|
14
|
-
activesupport (= 4.2.
|
|
12
|
+
activerecord (4.2.5)
|
|
13
|
+
activemodel (= 4.2.5)
|
|
14
|
+
activesupport (= 4.2.5)
|
|
15
15
|
arel (~> 6.0)
|
|
16
|
-
activesupport (4.2.
|
|
16
|
+
activesupport (4.2.5)
|
|
17
17
|
i18n (~> 0.7)
|
|
18
18
|
json (~> 1.7, >= 1.7.7)
|
|
19
19
|
minitest (~> 5.1)
|
|
@@ -41,7 +41,7 @@ GEM
|
|
|
41
41
|
diff-lcs (1.2.5)
|
|
42
42
|
factory_girl (4.5.0)
|
|
43
43
|
activesupport (>= 3.0.0)
|
|
44
|
-
faker (1.
|
|
44
|
+
faker (1.6.1)
|
|
45
45
|
i18n (~> 0.5)
|
|
46
46
|
gherkin (2.12.2)
|
|
47
47
|
multi_json (~> 1.3)
|
|
@@ -49,7 +49,7 @@ GEM
|
|
|
49
49
|
i18n (0.7.0)
|
|
50
50
|
json (1.8.3)
|
|
51
51
|
kappamaki (0.0.3)
|
|
52
|
-
minitest (5.8.
|
|
52
|
+
minitest (5.8.3)
|
|
53
53
|
mortadella (0.2.1)
|
|
54
54
|
multi_json (1.11.2)
|
|
55
55
|
multi_test (0.1.2)
|
|
@@ -58,30 +58,32 @@ GEM
|
|
|
58
58
|
powerpack (0.1.1)
|
|
59
59
|
rainbow (2.0.0)
|
|
60
60
|
rake (10.4.2)
|
|
61
|
-
rspec (3.
|
|
62
|
-
rspec-core (~> 3.
|
|
63
|
-
rspec-expectations (~> 3.
|
|
64
|
-
rspec-mocks (~> 3.
|
|
61
|
+
rspec (3.4.0)
|
|
62
|
+
rspec-core (~> 3.4.0)
|
|
63
|
+
rspec-expectations (~> 3.4.0)
|
|
64
|
+
rspec-mocks (~> 3.4.0)
|
|
65
65
|
rspec-collection_matchers (1.1.2)
|
|
66
66
|
rspec-expectations (>= 2.99.0.beta1)
|
|
67
|
-
rspec-core (3.
|
|
68
|
-
rspec-support (~> 3.
|
|
69
|
-
rspec-expectations (3.
|
|
67
|
+
rspec-core (3.4.1)
|
|
68
|
+
rspec-support (~> 3.4.0)
|
|
69
|
+
rspec-expectations (3.4.0)
|
|
70
70
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
71
|
-
rspec-support (~> 3.
|
|
72
|
-
rspec-mocks (3.
|
|
71
|
+
rspec-support (~> 3.4.0)
|
|
72
|
+
rspec-mocks (3.4.0)
|
|
73
73
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
74
|
-
rspec-support (~> 3.
|
|
75
|
-
rspec-support (3.
|
|
76
|
-
rubocop (0.
|
|
74
|
+
rspec-support (~> 3.4.0)
|
|
75
|
+
rspec-support (3.4.1)
|
|
76
|
+
rubocop (0.35.1)
|
|
77
77
|
astrolabe (~> 1.3)
|
|
78
|
-
parser (>= 2.2.
|
|
78
|
+
parser (>= 2.2.3.0, < 3.0)
|
|
79
79
|
powerpack (~> 0.1)
|
|
80
80
|
rainbow (>= 1.99.1, < 3.0)
|
|
81
|
-
ruby-progressbar (~> 1.
|
|
81
|
+
ruby-progressbar (~> 1.7)
|
|
82
|
+
tins (<= 1.6.0)
|
|
82
83
|
ruby-progressbar (1.7.5)
|
|
83
84
|
sqlite3 (1.3.11)
|
|
84
85
|
thread_safe (0.3.5)
|
|
86
|
+
tins (1.6.0)
|
|
85
87
|
tzinfo (1.2.2)
|
|
86
88
|
thread_safe (~> 0.1)
|
|
87
89
|
|
data/active_cucumber.gemspec
CHANGED
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = 'active_cucumber'
|
|
6
|
-
s.version = '0.0.
|
|
6
|
+
s.version = '0.0.9'
|
|
7
7
|
s.authors = ['Kevin Goslar']
|
|
8
8
|
s.email = ['kevin.goslar@gmail.com']
|
|
9
9
|
s.summary = %s(ActiveRecord tools for Cucumber)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Given(/^the (\w+):$/) do |class_name, table|
|
|
2
2
|
singular = class_name.singularize
|
|
3
3
|
clazz = singular.humanize.constantize
|
|
4
|
-
created_data = if
|
|
4
|
+
created_data = if class_name == singular
|
|
5
5
|
ActiveCucumber.create_one clazz, table
|
|
6
6
|
else
|
|
7
7
|
ActiveCucumber.create_many clazz, table
|
|
@@ -10,7 +10,7 @@ module ActiveCucumber
|
|
|
10
10
|
# Returns all entries in the database as a horizontal Mortadella table
|
|
11
11
|
def to_horizontal_table
|
|
12
12
|
mortadella = Mortadella::Horizontal.new headers: @cucumber_table.headers
|
|
13
|
-
@clazz.order('
|
|
13
|
+
@clazz.order('id ASC').each do |record|
|
|
14
14
|
cucumberator = cucumberator_for record
|
|
15
15
|
mortadella << @cucumber_table.headers.map do |header|
|
|
16
16
|
cucumberator.value_for header
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_cucumber
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
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-11-
|
|
11
|
+
date: 2015-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|