cucumber-blendle-steps 0.8.6 → 0.8.7

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: 0828288d262ffee7249ab4dcc5ab3604cc485c44
4
- data.tar.gz: 43ea0cb983ba8f973b048163394f42f1a3f820bb
3
+ metadata.gz: 7a5df188ec54b3fb2b1966c8930f27da5c2a7008
4
+ data.tar.gz: deaed83e27250f07bb1507c9d2e0bf30039bfa0a
5
5
  SHA512:
6
- metadata.gz: 8721af94e949b71ad78723a4be1a49ad8e572bc0b334373d13a52862677e3c3abd6e1559b24a43726a52095e986322bfb17eb033a811ed19590429795830feb4
7
- data.tar.gz: a42325a31676092e98f04f47cde1c164385d84c9f94ca3c25e4b447e53e0bdc4de0bf5423b9d18c6b1ef3813410f37d93ff2d2fa226388f4ac54912fdb79b62a
6
+ metadata.gz: b1eb97cdd923953e268a1e2ba0fa96486f72b8ed126b9e7db5a5f9d301e8d20049d8d533d1db8d5dfcbc8abc5f612bb89a4dbb444c5e5ab5a0661906f77d4bda
7
+ data.tar.gz: 2d6707144af74df897874ed842f08ff735da13e60a31445f584a5056f967ab553a50f5fd08f20060172ba34dbccafa092323a6072469614879b689b36e60c364
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
- pkg/
1
+ .wercker/
2
2
  Gemfile.lock
3
+ pkg/
data/.wercker.yml CHANGED
@@ -2,6 +2,11 @@ box: ruby
2
2
 
3
3
  build:
4
4
  steps:
5
+ - script:
6
+ name: fix Bundler issue
7
+ code: |
8
+ gem update --system 2.6.1
9
+ gem install bundler --version $BUNDLER_VERSION
5
10
  - bundle-install:
6
11
  jobs: "8"
7
12
  - script:
@@ -119,7 +119,7 @@ def parse_row(row, object_name)
119
119
  Timecop.return { Chronic.parse(value) || DateTime.parse(value) }
120
120
  when :boolean
121
121
  value.to_s.casecmp('true').zero?
122
- when :string_array, :varchar_array, :bigint_array
122
+ when :string_array, :varchar_array, :bigint_array, :integer_array
123
123
  Sequel.pg_array(eval(value))
124
124
  when :jsonb
125
125
  Sequel.pg_jsonb(eval(value))
@@ -43,13 +43,16 @@ def prettify_hash(hash)
43
43
  end
44
44
  end
45
45
 
46
+ order_hal_json_keys(hash).sort.to_h
47
+ end
48
+
49
+ def order_hal_json_keys(hash)
46
50
  hash = unshift_hash_key('_embedded', hash)
47
51
  hash = unshift_hash_key('_links', hash)
48
52
  hash['_links'] = unshift_hash_key('health', hash['_links']) if hash['_links']
49
53
  hash['_links'] = unshift_hash_key('api', hash['_links']) if hash['_links']
50
54
  hash['_links'] = unshift_hash_key('self', hash['_links']) if hash['_links']
51
-
52
- hash.sort.to_h
55
+ hash
53
56
  end
54
57
 
55
58
  def unshift_hash_key(key, hash)
@@ -6,6 +6,6 @@ module Cucumber
6
6
  # This module defines default steps used by all of Blendle Ruby projects.
7
7
  #
8
8
  module BlendleSteps
9
- VERSION = '0.8.6'.freeze
9
+ VERSION = '0.8.7'.freeze
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-blendle-steps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Mertz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-21 00:00:00.000000000 Z
11
+ date: 2016-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -355,7 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
355
355
  version: '0'
356
356
  requirements: []
357
357
  rubyforge_project:
358
- rubygems_version: 2.5.1
358
+ rubygems_version: 2.6.4
359
359
  signing_key:
360
360
  specification_version: 4
361
361
  summary: Cucumber steps used by all of Blendle Ruby projects