rfid_api 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ module RfidApi
13
13
  base_uri File.join("https://rfidapi.aimbulance.com", "api", RfidApi.api_version)
14
14
  basic_auth RfidApi.username, RfidApi.password
15
15
  format RfidApi.format
16
- debug_output File.open(Rails.root.join('log', 'rfid_api.log'), "a")
16
+ debug_output RfidApi.logger
17
17
 
18
18
  delegate :create, :update, :get, :plural_name, :format, :resources, :to => "self.class"
19
19
 
@@ -1,3 +1,3 @@
1
1
  module RfidApi
2
- VERSION = "0.0.1".freeze
2
+ VERSION = "0.0.2".freeze
3
3
  end
data/lib/rfid_api.rb CHANGED
@@ -20,6 +20,9 @@ module RfidApi
20
20
  mattr_accessor :api_version
21
21
  @@api_version = 'v1'
22
22
 
23
+ mattr_accessor :logger
24
+ @@logger = nil
25
+
23
26
  def self.setup
24
27
  yield self
25
28
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfid_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Igor Galeta
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-28 00:00:00 +03:00
18
+ date: 2011-10-29 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency