appygram 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,17 +8,13 @@ module Appygram
8
8
  class Remote
9
9
  class << self
10
10
  def startup_announce(startup_data)
11
- url = "/api/announcements?api_key=#{::Appygram::Config.api_key}&protocol_version=#{::Appygram::PROTOCOL_VERSION}"
12
- compressed = Zlib::Deflate.deflate(startup_data.to_json, Zlib::BEST_SPEED)
13
- call_remote(url, compressed)
11
+ #FIXME this is a noop based on an Exceptional behavior Appygram doesn't have
12
+ Appygram.logger.info 'Appygram remote exception forwarding started'
14
13
  end
15
14
 
16
15
  def error(exception_data)
17
- uniqueness_hash = exception_data.uniqueness_hash
18
- hash_param = uniqueness_hash.nil? ? nil: "&hash=#{uniqueness_hash}"
19
- url = "/api/errors?api_key=#{::Appygram::Config.api_key}&protocol_version=#{::Appygram::PROTOCOL_VERSION}#{hash_param}"
20
- compressed = Zlib::Deflate.deflate(exception_data.to_json, Zlib::BEST_SPEED)
21
- call_remote(url, compressed)
16
+ url = "/api/exceptions?api_key=#{::Appygram::Config.api_key}"
17
+ call_remote(url, exception_data.to_json)
22
18
  end
23
19
 
24
20
  def call_remote(url, data)
@@ -49,4 +45,4 @@ module Appygram
49
45
  end
50
46
  end
51
47
  end
52
- end
48
+ end
@@ -1,3 +1,3 @@
1
1
  module Appygram
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appygram
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
16
- requirement: &70157985912000 !ruby/object:Gem::Requirement
16
+ requirement: &70352055862840 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70157985912000
24
+ version_requirements: *70352055862840
25
25
  description: Appygram is the Ruby gem for communicating with http://appygram.com (hosted
26
26
  messaging service). It supports an exception reporting mechanism similar to http://exceptional.io,
27
27
  and this Ruby gem, forked from the Exceptional gem, emulates Exceptional functionality.