tomograph 1.1.0 → 1.2.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: 2eff2a08ebfda01a96b162d0fcad6204d7f17a79
4
- data.tar.gz: 6845001d37330abad0d9205ed403c2113cc3e364
3
+ metadata.gz: 1d74cfdab3a95b63cb019303e2e517f35d3991af
4
+ data.tar.gz: fe0031a5a673d5ab83c7bb2a845a3c8fdeca6370
5
5
  SHA512:
6
- metadata.gz: 7fc61193b71d90e5519a7c3700abb0dd6eabc92f7b8ef09c099352bec752308226d772b4e6034d784c1fb354014ba1801c436510816e95e471271a5f017c2739
7
- data.tar.gz: 0624d441d088e33e4a08f136eeb2c37bd35cda4d4ff00416ab4600521715329aa9ab0d08ddcb581c3c56ae4ef105a7430636301575591d3ec353e0a429e9c631
6
+ metadata.gz: 9d1ed9258215f1c9871b0bf74aea862a5a371735ab92e4dc1a133696b8a57bbb192adb433c2285a6cf28e0c4ed338002e3b3ad6207ba640b136b2a5925117329
7
+ data.tar.gz: b1deb4937de2d9de2453d208cbbd048ce2de155ab490adde30d4bbfd6108201229e2016715f3c5c05d68e365136a8b71575bb789d5df5e3df50cc8e5ceff19ad
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change log
2
2
 
3
+ ### 1.2.0 - 2017-10-18
4
+
5
+ * features
6
+ * add prefix_match? method
7
+
3
8
  ### 1.1.0 - 2017-06-15
4
9
 
5
10
  * features
data/README.md CHANGED
@@ -164,6 +164,16 @@ request = tomogram.find_request(method: 'GET', path: '/status/1?qwe=rty')
164
164
  responses = request.find_responses(status: '200')
165
165
  ```
166
166
 
167
+ ## Other methods
168
+
169
+ ### prefix_match?
170
+
171
+ This can be useful if you use a prefix.
172
+
173
+ ```ruby
174
+ tomogram.prefix_match?('http://local/api/v2/users')
175
+ ```
176
+
167
177
  ## Params
168
178
 
169
179
  Example:
@@ -28,5 +28,9 @@ module Tomograph
28
28
  def to_resources
29
29
  @documentation.to_resources
30
30
  end
31
+
32
+ def prefix_match?(raw_path)
33
+ raw_path.include?(@prefix)
34
+ end
31
35
  end
32
36
  end
@@ -1,3 +1,3 @@
1
1
  module Tomograph
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomograph
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - d.efimov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-15 00:00:00.000000000 Z
11
+ date: 2017-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  requirements: []
185
185
  rubyforge_project:
186
- rubygems_version: 2.4.5
186
+ rubygems_version: 2.5.1
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: Convert API Blueprint to JSON Schema and search