postgression 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/bin/postgression ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
4
+
5
+ require 'postgression'
6
+ puts Postgression.provision
@@ -0,0 +1,12 @@
1
+ require 'net/http'
2
+ require 'uri'
3
+
4
+ module Postgression
5
+ URL = 'http://api.postgression.com'
6
+
7
+ def Postgression.provision
8
+ uri = URI.parse(URL)
9
+ res = Net::HTTP.get_response(uri)
10
+ res.body
11
+ end
12
+ end
@@ -0,0 +1,31 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'postgression'
3
+ s.version = '0.0.1'
4
+ s.summary = 'A ruby client for the postgression API.'
5
+ s.homepage = 'http://www.postgression.com'
6
+ s.date = '2013-01-17'
7
+ s.email = 'alven@zaidox.com'
8
+ s.authors = ["Alven Diaz"]
9
+
10
+ s.files = `git ls-files`.split($/)
11
+ s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
12
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
13
+ s.require_paths = ["lib"]
14
+
15
+ s.description = <<description
16
+ postgression makes running your tests against a real PostgreSQL database
17
+ a whole lot simpler.
18
+
19
+ Instead of running PostgreSQL server locally (or on your testing machine),
20
+ maintaining the server, credentials, etc... postgression instantly
21
+ provisions a new PostgreSQL database for your application to run tests
22
+ against: for free!
23
+
24
+ ruby-postgression is a simple CLI app that talks to the postgression
25
+ public API, and generates a temporary PostgreSQL database for usage
26
+ in your test code (or just general messing around).
27
+
28
+ postgression databases are automatically deleted after 30 minutes.
29
+ No information is logged by the service.
30
+ description
31
+ end
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: postgression
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Alven Diaz
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2013-01-17 00:00:00 -08:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: " postgression makes running your tests against a real PostgreSQL database\n a whole lot simpler.\n\n Instead of running PostgreSQL server locally (or on your testing machine),\n maintaining the server, credentials, etc... postgression instantly\n provisions a new PostgreSQL database for your application to run tests\n against: for free!\n\n ruby-postgression is a simple CLI app that talks to the postgression\n public API, and generates a temporary PostgreSQL database for usage\n in your test code (or just general messing around).\n\n postgression databases are automatically deleted after 30 minutes.\n No information is logged by the service.\n"
22
+ email: alven@zaidox.com
23
+ executables:
24
+ - postgression
25
+ extensions: []
26
+
27
+ extra_rdoc_files: []
28
+
29
+ files:
30
+ - bin/postgression
31
+ - lib/postgression.rb
32
+ - postgression.gemspec
33
+ has_rdoc: true
34
+ homepage: http://www.postgression.com
35
+ licenses: []
36
+
37
+ post_install_message:
38
+ rdoc_options: []
39
+
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ required_rubygems_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
55
+ version: "0"
56
+ requirements: []
57
+
58
+ rubyforge_project:
59
+ rubygems_version: 1.3.6
60
+ signing_key:
61
+ specification_version: 3
62
+ summary: A ruby client for the postgression API.
63
+ test_files: []
64
+