angie-core-api 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: b8907a7f9ed3714adf317d1137a43d8d8948f47bc0d695024b3f4499a8fad3e1
4
- data.tar.gz: 6bb9fe7dd4c5bb0607d05b58c83a07a721ab6b97ec402866b7b9d2031879345d
3
+ metadata.gz: 0a907b04190f30ca644d2940b3e1e3e308b62443eb1f9e86fbc96ba0325d26d5
4
+ data.tar.gz: dc6f7fca4ceb86aaec2019647e285b2ff5c3851598c7d5a61feff7ece43e5da6
5
5
  SHA512:
6
- metadata.gz: 5b141de4ea307c0e21a47b5c33ce9aed6b8d3ac85f3b754b586d4af9c21ae759a84814dc22f3997965f2c2236f142b5269434f34245377ae5f86e310f361e07f
7
- data.tar.gz: 04a8e1b6d2216a69826d34bc74154d082ce88369583f0639db15c70a753fc6db81cfe779c3e64cfd079f9267d8d2af23cfd561e2ba03da25abef83321fedde3a
6
+ metadata.gz: 57e9e5688d548bdb9db6867e93a7684a61e73c572738818612957ce7486f39bab27d0276ba1ff326dcb302971f3cb38a16b422c87d7efb1223587293c2e8e986
7
+ data.tar.gz: 4e680e8d5981156568b94587cdcc66d68b2d38276b1f7363341cc925625c808602c724d2e6abc264416191112746dfb16862a4f559229896ebfc8235e6a76836
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AngieCoreApi
2
4
  autoload :Configuration, "angie-core-api/configuration"
3
5
  autoload :Client, "angie-core-api/client"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "httparty"
2
4
 
3
5
  module AngieCoreApi
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AngieCoreApi
2
4
  class Configuration
3
5
  include ActiveSupport::Configurable
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AngieCoreApi
2
4
  class DeliveryMethod
3
5
  def initialize(mail) end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AngieCoreApi
2
4
  class Flight
3
5
  def self.info(default_airport, airline, flight_number, date)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AngieCoreApi
2
4
  class Map
3
5
  def self.travel_time(origin, location, radius, unit, size, zoom, locale)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AngieCoreApi
2
4
  module Message
3
5
  autoload :Client, "angie-core-api/message/client"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "stomp"
2
4
 
3
5
  module AngieCoreApi
@@ -16,12 +18,7 @@ module AngieCoreApi
16
18
  end
17
19
 
18
20
  def subscribe(queue)
19
- @client.subscribe(queue) do |msg|
20
- yield JSON.parse(msg.body)
21
- rescue StandardError => e
22
- # Rollbar.error(e)
23
- Rails.logger.error e
24
- end
21
+ @client.subscribe(queue) { |msg| yield JSON.parse(msg.body) }
25
22
  end
26
23
  end
27
24
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AngieCoreApi
2
4
  module Message
3
5
  class Queue
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AngieCoreApi
2
4
  class Notification
3
5
  def self.email(options)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AngieCoreApi
2
4
  class Railtie < Rails::Railtie
3
5
  initializer "angie_core_api.add_delivery_method" do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AngieCoreApi
2
4
  class Weather
3
5
  def self.info(latitude, longitude, unit, date, locale)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: angie-core-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angie Hospitality