soapy_cake 0.2.11 → 0.2.12

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: 172799dd2442d0b285158f587fb3a70ab54a05ea
4
- data.tar.gz: 684567c43579a023b8d408e5eb29859215f26e7d
3
+ metadata.gz: 14bd5992297bb413711f6163038dab8ad4117773
4
+ data.tar.gz: 649fe29a12985a6ff9e8b537c0c2297611226e03
5
5
  SHA512:
6
- metadata.gz: 6f1d407df28dccb1b122c451c5bd6c7419bb705c50340dd5674a25b307e242445162830964d1e31cefc02392b0ccd5b82ae968782e152dc085f56463c591834e
7
- data.tar.gz: 160f50baa20286cd3b5ea01749f4fbd7a46bae8414e703c5e0b00d3e512f9bde5ef2bb479dd419d698162d7d31ded909e68ece27d911c3bb76bcee511dae6f9d
6
+ metadata.gz: fcdbb08789b6d84aaef97c8cab50780850962f229f683753bb8c4b3bdf7b4c9e86e0cda6b462be1ef6cb091a5a882b1e87ef306c1f864155c249b67685a9c9d7
7
+ data.tar.gz: 6019e5d70f4bf80d63ddbd9faf18c1fef6f816ee5c1feb921e48cfe693ead03f18e7665b3a03c5305cf57a1e989d2e776561ae76ff4fd031213ede84ad96f212
@@ -1,6 +1,7 @@
1
1
  require 'active_support/core_ext/string'
2
2
  require 'active_support/core_ext/date'
3
3
  require 'soapy_cake/version'
4
+ require 'soapy_cake/http_client'
4
5
  require 'soapy_cake/client'
5
6
 
6
7
  module SoapyCake
@@ -41,7 +41,7 @@ module SoapyCake
41
41
  def self.sekken_client(url)
42
42
  path = LocalCopy.fetch(url)
43
43
  @sekken_clients ||= {}
44
- @sekken_clients[url] ||= Sekken.new(path)
44
+ @sekken_clients[url] ||= Sekken.new(path, HTTPartySekken.new)
45
45
  end
46
46
 
47
47
  def method_missing(method, opts = {})
@@ -0,0 +1,11 @@
1
+ require 'httparty'
2
+
3
+ class HTTPartySekken
4
+ def get(url)
5
+ HTTParty.get(url).body
6
+ end
7
+
8
+ def post(url, headers, body)
9
+ HTTParty.post(url, headers: headers, body: body).body
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module SoapyCake
2
- VERSION = '0.2.11'
2
+ VERSION = '0.2.12'
3
3
  end
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency 'activesupport'
22
22
  spec.add_dependency 'sekken'
23
23
  spec.add_dependency 'local_copy'
24
+ spec.add_dependency 'httparty'
24
25
 
25
26
  spec.add_development_dependency 'bundler'
26
27
  spec.add_development_dependency 'rake'
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'spec_helper'
4
4
 
5
- describe SoapyCake::Client do
5
+ RSpec.describe SoapyCake::Client do
6
6
  before do
7
7
  SoapyCake::Client.instance_variable_set(:@sekken_clients, nil)
8
8
  end
@@ -24,6 +24,15 @@ RSpec.configure do |config|
24
24
  # Disable the `should` syntax
25
25
  c.syntax = :expect
26
26
  end
27
+
28
+ # Setting this config option `false` removes rspec-core's monkey patching of the
29
+ # top level methods like `describe`, `shared_examples_for` and `shared_context`
30
+ # on `main` and `Module`. The methods are always available through the `RSpec`
31
+ # module like `RSpec.describe` regardless of this setting.
32
+ # For backwards compatibility this defaults to `true`.
33
+ #
34
+ # https://relishapp.com/rspec/rspec-core/v/3-0/docs/configuration/global-namespace-dsl
35
+ config.expose_dsl_globally = false
27
36
  end
28
37
 
29
38
  ENV['CAKE_API_KEY'] = 'cake-api-key' if ENV['CAKE_API_KEY'].blank?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soapy_cake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - ad2games GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-23 00:00:00.000000000 Z
11
+ date: 2014-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: httparty
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: bundler
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -151,9 +165,9 @@ files:
151
165
  - README.md
152
166
  - Rakefile
153
167
  - api_versions.yml
154
- - circle.yml
155
168
  - lib/soapy_cake.rb
156
169
  - lib/soapy_cake/client.rb
170
+ - lib/soapy_cake/http_client.rb
157
171
  - lib/soapy_cake/version.rb
158
172
  - script/update_versions.rb
159
173
  - soapy_cake.gemspec
data/circle.yml DELETED
@@ -1,7 +0,0 @@
1
- deployment:
2
- production:
3
- branch: master
4
- commands:
5
- - gem install geminabox
6
- - gem build soapy_cake.gemspec
7
- - gem inabox soapy_cake-*.gem --host $GEMINABOX_URL