poxy_client 0.0.1.pre → 0.0.1.pre.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module PoxyClient
2
- VERSION = "0.0.1.pre"
2
+ VERSION = "0.0.1.pre.1"
3
3
  end
@@ -4,9 +4,10 @@ require File.expand_path('../lib/poxy_client/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Julian Porta"]
6
6
  gem.email = ["julian@porta.sh"]
7
- gem.description = %q{Client for the Poxy website}
7
+ gem.description = %q{Client for Poxy (the awesome app)}
8
8
  gem.summary = %q{Poxy is a website that captures requests and lets you do fun stuff with them}
9
- gem.homepage = "http://poxy.porta.sh"
9
+ gem.homepage = "http://porta.github.com/poxy_client"
10
+ gem.post_install_message = %q{Thanks for installing poxy_client. Make sure to create an account at http://poxy.porta.sh}
10
11
 
11
12
  gem.add_runtime_dependency "httpi", [">= 1.0.0"]
12
13
  gem.add_runtime_dependency "clap", [">= 0.0.2"]
@@ -5,7 +5,7 @@ require 'json'
5
5
  class PoxyClientTest < Test::Unit::TestCase
6
6
 
7
7
  def test_version
8
- assert_equal PoxyClient::VERSION, '0.0.1.pre'
8
+ assert_equal PoxyClient::VERSION, '0.0.1.pre.1'
9
9
  end
10
10
 
11
11
  def test_config_version
@@ -27,14 +27,5 @@ class PoxyClientTest < Test::Unit::TestCase
27
27
  assert_equal @client.configuration.destination, "http://localhost"
28
28
  end
29
29
 
30
- def test_whole_thing
31
- PoxyClient.configure do |config|
32
- config.origin = "http://poxy.porta.sh"
33
- config.api_key = "test"
34
- config.bucket_key = "test"
35
- config.destination = "http://localhost:9292"
36
- end
37
- PoxyClient.perform(:all)
38
- end
39
30
 
40
31
  end
@@ -4,12 +4,7 @@ require 'json'
4
4
 
5
5
  class PoxyProcessorTest < Test::Unit::TestCase
6
6
  def setup
7
-
8
- PoxyClient.configure do |config|
9
- config.destination = "http://postbin.heroku.com/56a0320c"
10
- config.method = "post"
11
- end
12
- @raw_request = "{\"method\":\"POST\",\"headers\":{\"HOST\":\"localhost:9393\",\"CONNECTION\":\"keep-alive\",\"ORIGIN\":\"chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm\",\"X_REQUESTED_WITH\":\"sorongotronic\",\"X_CHUPALA\":\"dale\",\"USER_AGENT\":\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/11.10 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19\",\"ACCEPT\":\"*/*\",\"ACCEPT_ENCODING\":\"gzip,deflate,sdch\",\"ACCEPT_LANGUAGE\":\"en-US,en;q=0.8\",\"ACCEPT_CHARSET\":\"ISO-8859-1,utf-8;q=0.7,*;q=0.3\",\"COOKIE\":\"poxy=BAh7DEkiD3Nlc3Npb25faWQGOgZFRiJFMmI3ODc5OTA5YzhkNjFlMjkzMmRj%0AOTk0NTk4OGNjMmE2Njg4M2FiZDRmNzc4NTc5MzgyMDliY2NlM2JhNzUzYUka%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItNTk4MjNl%0AZjU1YzI4N2NhYjEyNWFkNzk5ZTIyYTg3NTgzOGQ0NWJlYkkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZWQyYjNjYTkwYTRlNzIzNDAyMzY3YTFkMTdj%0AOGIyODM5Mjg0MjM5OEkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItY2M5%0AZjZmZWM2NTJhNDI1OGJjNmQyOTI4NzA1MjE3OWFiMWUwZDE0N0kiCWNzcmYG%0AOwBGIkVkN2Q1MmQwODhjOTZmYTMwMWE3OGNiYWRiYmU5Y2M4ZWYyNmIzYjll%0AYzdjMTFjNTM1OTkwMzk4ZDAwMDFiNDMwSSIRcmVtZW1iZXJfZm9yBjsARmkD%0AAHUSSSIJVXNlcgY7AEZJIgYxBjsARkkiDHN1Y2Nlc3MGOwBGSSIlWW91IGhh%0AdmUgc3VjY2Vzc2Z1bGx5IHNpZ25lZCB1cC4GOwBGSSIPZmxhc2hfa2luZAY7%0AAEZJIgdvawY7AEY%3D%0A--a86f16283e2e01cde59cffac507ca3f5319be642\",\"VERSION\":\"HTTP/1.1\"},\"query_string\":\"urlparam=1&url_param=2\",\"params\":{\"postparam\":\"uno\",\"post_param\":\"dos\"},\"body\":\"#<Rack::Lint::InputWrapper:0x00000002f87ad0>\"}"
7
+ @raw_request = "[{\"method\":\"POST\",\"headers\":{\"HOST\":\"localhost:9393\",\"CONNECTION\":\"keep-alive\",\"ORIGIN\":\"localhost:9393\",\"USER_AGENT\":\"Don Gato y su Pandilla\",\"ACCEPT\":\"*/*\",\"ACCEPT_ENCODING\":\"gzip,deflate,sdch\",\"ACCEPT_LANGUAGE\":\"en-US,en;q=0.8\",\"ACCEPT_CHARSET\":\"ISO-8859-1,utf-8;q=0.7,*;q=0.3\",\"COOKIE\":\"rumba\",\"VERSION\":\"HTTP/1.1\"},\"query_string\":\"urlparam=1&url_param=2\",\"params\":{\"postparam\":\"uno\",\"post_param\":\"dos\"},\"body\":\"\"}]"
13
8
  @parsed_request = PoxyClient.processor.parse(@raw_request)
14
9
  end
15
10
 
@@ -19,4 +14,6 @@ class PoxyProcessorTest < Test::Unit::TestCase
19
14
  assert_equal JSON.parse(@raw_request), @parsed_request
20
15
  end
21
16
 
17
+
18
+
22
19
  end
@@ -4,13 +4,12 @@ require 'json'
4
4
 
5
5
  class PoxyRepeaterTest < Test::Unit::TestCase
6
6
  def setup
7
-
7
+
8
8
  PoxyClient.configure do |config|
9
- config.destination = "http://postbin.heroku.com/56a0320c"
10
- config.method = "post"
9
+ config.destination = "http://poxy.porta.sh/collector/test"
11
10
  end
12
11
  @repeater = PoxyClient.repeater
13
- @raw_request = "[{\"method\":\"POST\",\"headers\":{\"HOST\":\"localhost:9393\",\"CONNECTION\":\"keep-alive\",\"ORIGIN\":\"chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm\",\"X_REQUESTED_WITH\":\"sorongotronic\",\"X_CHUPALA\":\"dale\",\"USER_AGENT\":\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/11.10 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19\",\"ACCEPT\":\"*/*\",\"ACCEPT_ENCODING\":\"gzip,deflate,sdch\",\"ACCEPT_LANGUAGE\":\"en-US,en;q=0.8\",\"ACCEPT_CHARSET\":\"ISO-8859-1,utf-8;q=0.7,*;q=0.3\",\"COOKIE\":\"poxy=BAh7DEkiD3Nlc3Npb25faWQGOgZFRiJFMmI3ODc5OTA5YzhkNjFlMjkzMmRj%0AOTk0NTk4OGNjMmE2Njg4M2FiZDRmNzc4NTc5MzgyMDliY2NlM2JhNzUzYUka%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItNTk4MjNl%0AZjU1YzI4N2NhYjEyNWFkNzk5ZTIyYTg3NTgzOGQ0NWJlYkkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZWQyYjNjYTkwYTRlNzIzNDAyMzY3YTFkMTdj%0AOGIyODM5Mjg0MjM5OEkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItY2M5%0AZjZmZWM2NTJhNDI1OGJjNmQyOTI4NzA1MjE3OWFiMWUwZDE0N0kiCWNzcmYG%0AOwBGIkVkN2Q1MmQwODhjOTZmYTMwMWE3OGNiYWRiYmU5Y2M4ZWYyNmIzYjll%0AYzdjMTFjNTM1OTkwMzk4ZDAwMDFiNDMwSSIRcmVtZW1iZXJfZm9yBjsARmkD%0AAHUSSSIJVXNlcgY7AEZJIgYxBjsARkkiDHN1Y2Nlc3MGOwBGSSIlWW91IGhh%0AdmUgc3VjY2Vzc2Z1bGx5IHNpZ25lZCB1cC4GOwBGSSIPZmxhc2hfa2luZAY7%0AAEZJIgdvawY7AEY%3D%0A--a86f16283e2e01cde59cffac507ca3f5319be642\",\"VERSION\":\"HTTP/1.1\"},\"query_string\":\"urlparam=1&url_param=2\",\"params\":{\"postparam\":\"uno\",\"post_param\":\"dos\"},\"body\":\"#<Rack::Lint::InputWrapper:0x00000002f87ad0>\"}]"
12
+ @raw_request = "[{\"method\":\"POST\",\"headers\":{\"HOST\":\"localhost:9393\",\"CONNECTION\":\"keep-alive\",\"ORIGIN\":\"localhost:9393\",\"USER_AGENT\":\"Don Gato y su Pandilla\",\"ACCEPT\":\"*/*\",\"ACCEPT_ENCODING\":\"gzip,deflate,sdch\",\"ACCEPT_LANGUAGE\":\"en-US,en;q=0.8\",\"ACCEPT_CHARSET\":\"ISO-8859-1,utf-8;q=0.7,*;q=0.3\",\"COOKIE\":\"rumba\",\"VERSION\":\"HTTP/1.1\"},\"query_string\":\"urlparam=1&url_param=2\",\"params\":{\"postparam\":\"uno\",\"post_param\":\"dos\"},\"body\":\"\"}]"
14
13
  @json_request = JSON.parse(@raw_request)
15
14
  end
16
15
 
@@ -21,6 +20,7 @@ class PoxyRepeaterTest < Test::Unit::TestCase
21
20
 
22
21
  def test_repeater_set
23
22
  response = @repeater.set(@json_request)
23
+ puts response.inspect
24
24
  assert_equal response[0].class, HTTPI::Response
25
25
  end
26
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poxy_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre
4
+ version: 0.0.1.pre.1
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-04 00:00:00.000000000 Z
12
+ date: 2012-07-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httpi
16
- requirement: &25883320 !ruby/object:Gem::Requirement
16
+ requirement: &14176100 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *25883320
24
+ version_requirements: *14176100
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: clap
27
- requirement: &25882800 !ruby/object:Gem::Requirement
27
+ requirement: &14175560 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,8 +32,8 @@ dependencies:
32
32
  version: 0.0.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *25882800
36
- description: Client for the Poxy website
35
+ version_requirements: *14175560
36
+ description: Client for Poxy (the awesome app)
37
37
  email:
38
38
  - julian@porta.sh
39
39
  executables:
@@ -65,9 +65,10 @@ files:
65
65
  - test/test_poxy_processor.rb
66
66
  - test/test_poxy_repeater.rb
67
67
  - test/test_poxy_retriever.rb
68
- homepage: http://poxy.porta.sh
68
+ homepage: http://porta.github.com/poxy_client
69
69
  licenses: []
70
- post_install_message:
70
+ post_install_message: Thanks for installing poxy_client. Make sure to create an account
71
+ at http://poxy.porta.sh
71
72
  rdoc_options: []
72
73
  require_paths:
73
74
  - lib