stealth 1.1.2 → 1.1.3

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
  SHA256:
3
- metadata.gz: '088335f25b0944e56e0c7478a57565ef578720b7e930ab45b2df1e89fabf0503'
4
- data.tar.gz: 1d75b842dd5d871e8dde803fb457cdfbe039de5e2f4a4bd17ef22b412a033d44
3
+ metadata.gz: a1f8320b2cac826c1cf5148f68e2a6f6150be3cb304a0d53060cc080a09ae12d
4
+ data.tar.gz: d4b52efb67c07f381bb5db90e1d81fc8de8bec58beb5f9d092bb67848c733112
5
5
  SHA512:
6
- metadata.gz: 0e795ccf378f8b82a69752e45ba88608155ab3fa958592e9337bb6e675bdf5ec22a30d822a4e383008bdc16fbc2839cb1b91701b399b83a848644bbe7e6a51d1
7
- data.tar.gz: a8d5f36c0aa92d6c461e3ee707c35d0e841e61bda8383d9d31aacd8ebbdc170c36e8aafc08d5d3557d22b3b632bd4277bfcbe646ab73ad1e84176b98ef269a4e
6
+ metadata.gz: afff49469cf84849199aa6ddb275cc49b33df768c117032698e98346645d88b0052cfccaa54cd4e7e55d97bc22531d6761ccc30fd5588acb7fd630b49820473c
7
+ data.tar.gz: 8717b999c849c5132e17d695534c1b74958d0b372ad2382c2695edde915c3f76c2247e7fb36947a80d67eeda2a51cd1b9bc19337de7ee9c77b1dad10b9433abb
@@ -57,6 +57,54 @@ jobs:
57
57
 
58
58
  working_directory: ~/repo
59
59
 
60
+ steps:
61
+ - checkout
62
+
63
+ # Download and cache dependencies
64
+ - restore_cache:
65
+ keys:
66
+ - v1-dependencies-{{ checksum "Gemfile.lock" }}
67
+ # fallback to using the latest cache if no exact match is found
68
+ - v1-dependencies-
69
+
70
+ - run:
71
+ name: install dependencies
72
+ command: |
73
+ bundle install --jobs=4 --retry=3 --path vendor/bundle
74
+
75
+ - save_cache:
76
+ paths:
77
+ - ./vendor/bundle
78
+ key: v1-dependencies-{{ checksum "Gemfile.lock" }}
79
+
80
+ # run tests!
81
+ - run:
82
+ name: run tests
83
+ command: |
84
+ mkdir /tmp/test-results
85
+ TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
86
+
87
+ bundle exec rspec --format progress \
88
+ --format RspecJunitFormatter \
89
+ --out /tmp/test-results/rspec.xml \
90
+ --format progress \
91
+ -- \
92
+ $TEST_FILES
93
+
94
+ # collect reports
95
+ - store_test_results:
96
+ path: /tmp/test-results
97
+ - store_artifacts:
98
+ path: /tmp/test-results
99
+ destination: test-results
100
+ ruby_2_6:
101
+ docker:
102
+ - image: circleci/ruby:2.6-node-browsers
103
+ environment:
104
+ STEALTH_ENV: test
105
+
106
+ working_directory: ~/repo
107
+
60
108
  steps:
61
109
  - checkout
62
110
 
@@ -104,3 +152,4 @@ workflows:
104
152
  jobs:
105
153
  - ruby_2_4
106
154
  - ruby_2_5
155
+ - ruby_2_6
@@ -1,3 +1,13 @@
1
+ # Changelog for Stealth v1.1.2
2
+
3
+ ## Bug Fixes
4
+
5
+ * [Server] Handle cases where CONTENT_TYPE is missing from incoming requests.
6
+
7
+ ## Enhancements
8
+
9
+ * [CI] Added Ruby 2.6 to build.
10
+
1
11
  # Changelog for Stealth v1.1.1
2
12
 
3
13
  ## Bug Fixes
@@ -26,10 +26,10 @@ GEM
26
26
  mock_redis (0.19.0)
27
27
  multi_json (1.13.1)
28
28
  mustermann (1.0.3)
29
- oj (3.7.4)
29
+ oj (3.7.6)
30
30
  puma (3.12.0)
31
31
  rack (2.0.6)
32
- rack-protection (2.0.4)
32
+ rack-protection (2.0.5)
33
33
  rack
34
34
  rack-test (1.1.0)
35
35
  rack (>= 1.0, < 3)
@@ -53,10 +53,10 @@ GEM
53
53
  connection_pool (~> 2.2, >= 2.2.2)
54
54
  rack-protection (>= 1.5.0)
55
55
  redis (>= 3.3.5, < 5)
56
- sinatra (2.0.4)
56
+ sinatra (2.0.5)
57
57
  mustermann (~> 1.0)
58
58
  rack (~> 2.0)
59
- rack-protection (= 2.0.4)
59
+ rack-protection (= 2.0.5)
60
60
  tilt (~> 2.0)
61
61
  thor (0.20.3)
62
62
  thread_safe (0.3.6)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.2
1
+ 1.1.3
@@ -33,7 +33,7 @@ module Stealth
33
33
  Stealth::Logger.l(topic: "incoming", message: "Received webhook from #{params[:service]}")
34
34
 
35
35
  # JSON params need to be parsed and added to the params
36
- if request.env['CONTENT_TYPE'].match(/application\/json/i)
36
+ if request.env['CONTENT_TYPE']&.match(/application\/json/i)
37
37
  json_params = MultiJson.load(request.body.read)
38
38
  params.merge!(json_params)
39
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stealth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mauricio Gomes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-12-17 00:00:00.000000000 Z
12
+ date: 2019-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
@@ -301,8 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
301
  - !ruby/object:Gem::Version
302
302
  version: '0'
303
303
  requirements: []
304
- rubyforge_project:
305
- rubygems_version: 2.7.7
304
+ rubygems_version: 3.0.1
306
305
  signing_key:
307
306
  specification_version: 4
308
307
  summary: Ruby framework for conversational bots