infrataster 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +6 -0
- data/lib/infrataster/contexts/http_context.rb +7 -2
- data/lib/infrataster/fixtures/Rakefile.erb +1 -1
- data/lib/infrataster/resources/http_resource.rb +4 -0
- data/lib/infrataster/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30a8caff494d20499e9c34ed7cd0f87bc3d19890
|
4
|
+
data.tar.gz: fea6e96fc2ca5ba70317c400b0e1b22a6b91d2c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba347d3caf3b0401e8442b9965aaa7588dd22cbab24e05dc5ee95967980ceeb11f062ba3cb679664788dbf598620d6efc53ccd2d821d23b62655ce98033f455b
|
7
|
+
data.tar.gz: 1f0fc80ef9998d0ea255e0bb7771bc193e58c04ea030669caa945825f02e5b6740eb7ed5fb941cd8a02bf2accd2c3e15b478970a1ae67e09c893f3aab554605a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -245,6 +245,12 @@ end
|
|
245
245
|
|
246
246
|
`mysql_query` resource is now in [infrataster-plugin-mysql](https://github.com/ryotarai/infrataster-plugin-mysql).
|
247
247
|
|
248
|
+
### `pgsql_query` resource
|
249
|
+
|
250
|
+
`pgsql_query` resource sends a query to PostgreSQL server.
|
251
|
+
|
252
|
+
`pgsql_query` is provided by [infrataster-plugin-pgsql](https://github.com/SnehaM/infrataster-plugin-pgsql) by [@SnehaM](https://github.com/SnehaM).
|
253
|
+
|
248
254
|
## Example
|
249
255
|
|
250
256
|
* [example](example)
|
@@ -6,8 +6,13 @@ module Infrataster
|
|
6
6
|
def response
|
7
7
|
server.forward_port(resource.uri.port) do |address, port|
|
8
8
|
url = "#{resource.uri.scheme}://#{address}:#{port}"
|
9
|
-
|
10
|
-
|
9
|
+
options = {:url => url}
|
10
|
+
|
11
|
+
if resource.uri.scheme == 'https'
|
12
|
+
options[:ssl] = resource.ssl_option
|
13
|
+
end
|
14
|
+
|
15
|
+
conn = Faraday.new(options) do |faraday|
|
11
16
|
faraday.request :url_encoded
|
12
17
|
faraday.response :logger, Logger
|
13
18
|
faraday.adapter Faraday.default_adapter
|
data/lib/infrataster/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infrataster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryota Arai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|