flexirest 1.5.8 → 1.5.9

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: 4a4a35ab648cec73d9c6681c296fce8059d39a44
4
- data.tar.gz: b5f0ab3f9487c346565cd093993636c10e6f13f8
3
+ metadata.gz: 2e9ebcb294d7f5316e0a89a7805ff160801d4979
4
+ data.tar.gz: c72f3a2d84d9899c3f218458f6506b4ce3d5f46b
5
5
  SHA512:
6
- metadata.gz: 597d1639f2408ae3b5e05676d55ca8ef77a3e5082f62c9b0f11576537cd4314acd5d5cf21456620ede4da36fb8d64fe01040347ebf5e71f115af2909a88437bd
7
- data.tar.gz: 6ae9f6fecd5e11adaa70608ce88e717d32aeab7c9d4730912de3f1d1694dd476999e854e657f783a39b877cd926d4ee7f9a51e2b87165c79dc45a2023a531621
6
+ metadata.gz: 3c24542bfe2f4c19b11d75a7942019ba7d3264a998d3333b5bd86031048266df58e072ec95f4578c885b6f953b09129abf773cb4cb9a9a3ab7975d3c1a75d266
7
+ data.tar.gz: 06aecf662c5f925856d8f6f99b79027f073248e947ef4e53718d23fd674c4402f18b4902a4cec092b7750fbb364ad19c77d1752a88345cc5dfa42b872a0cc364
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.9
4
+
5
+ Bugfix:
6
+
7
+ - Added missing `get?`, `post?`, `put?` and `delete?` methods to request as they were used in the documentation.
8
+
3
9
  ## 1.5.8
4
10
 
5
11
  Feature:
@@ -149,6 +149,22 @@ module Flexirest
149
149
  @method[:method]
150
150
  end
151
151
 
152
+ def get?
153
+ http_method == :get
154
+ end
155
+
156
+ def post?
157
+ http_method == :post
158
+ end
159
+
160
+ def put?
161
+ http_method == :put
162
+ end
163
+
164
+ def delete?
165
+ http_method == :delete
166
+ end
167
+
152
168
  def call(explicit_parameters=nil)
153
169
  @instrumentation_name = "#{class_name}##{@method[:name]}"
154
170
  result = nil
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.5.8"
2
+ VERSION = "1.5.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexirest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.8
4
+ version: 1.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-12 00:00:00.000000000 Z
11
+ date: 2018-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler