casual_helper 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in casual_helper.gemspec
4
+ gemspec
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
data/lib/casual_helper.rb CHANGED
@@ -137,7 +137,7 @@ module CasualHelper
137
137
  def post(url, body)
138
138
  response_json = RestClient.post url, body.to_json, JSON_CONTENT
139
139
  response = JSON.parse(response_json)
140
- response['meta']['code'] >= 200 && response['meta']['code'] <= 300
140
+ response['response']
141
141
  rescue => e
142
142
  log_error url, e
143
143
  end
@@ -1,3 +1,3 @@
1
1
  module CasualHelper
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - matthewspivey
@@ -51,6 +51,8 @@ extensions: []
51
51
  extra_rdoc_files: []
52
52
 
53
53
  files:
54
+ - Gemfile
55
+ - Rakefile
54
56
  - casual_helper.gemspec
55
57
  - lib/casual_helper.rb
56
58
  - lib/casual_helper/version.rb