api_resource 0.6.19 → 0.6.20

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b18f870fcfb29b4ffb83c8c580b12c55c81462e0
4
- data.tar.gz: 2667fb9ea45c86ef67f5d10ddf4d8b850db3e83f
3
+ metadata.gz: 2af71db2c3a963841ab839ade45d05ebb66d361d
4
+ data.tar.gz: 60c676ba2a79c483c9be7e4f9668eeb4e001ef90
5
5
  SHA512:
6
- metadata.gz: 4d100621cbaad1f11eef96fe05ae963f83ed5a51a392d1bc483d1adedf53a1a881d736f5cf1c1b73063e7e2f3d4a6b44be89b56a16cafa1ccb959fb80923802e
7
- data.tar.gz: d9ebcf5a2777642ef95d308e1737ebd1700513cbf7ff8c522b2b7991127f7448e2e97183b3744566d044a1efe33f02b58bcd464cbbaab20d64276e9b210872c2
6
+ metadata.gz: 1c1ca6670e7d3d8141dec91c9efc617084b8b97bc32f9ea7bde82f7f917fdb457dc99dae65806553a94e291b97e3f5a5186a5f05377d80c32c995c7e1dcc0a3c
7
+ data.tar.gz: cef0c28c031cfa715ea50ce1b892aa2e8f05ae0db52ef54eb9a97ef84d406305db60234c72ef8c939f3ae4786c9d48f94f1e8e12fa0d37a676a0b2dd037cf0bb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api_resource (0.6.18)
4
+ api_resource (0.6.19)
5
5
  activemodel
6
6
  colorize
7
7
  differ
@@ -40,7 +40,7 @@ GEM
40
40
  activesupport (3.2.10)
41
41
  i18n (~> 0.6)
42
42
  multi_json (~> 1.0)
43
- arel (3.0.2)
43
+ arel (3.0.3)
44
44
  builder (3.0.4)
45
45
  byebug (2.3.0)
46
46
  columnize (~> 0.3.6)
@@ -46,8 +46,6 @@ module ApiResource
46
46
  class_attribute :format
47
47
  self.format = ApiResource::Formats::JsonFormat
48
48
 
49
- class_attribute :resource_definition_mutex
50
- self.resource_definition_mutex = Mutex.new
51
49
 
52
50
  delegate :logger, to: ApiResource
53
51
 
@@ -199,6 +197,15 @@ module ApiResource
199
197
  # backwards compatibility
200
198
  alias_method :reload_class_attributes, :reload_resource_definition
201
199
 
200
+ #
201
+ # Mutex so that multiple Threads don't try to load the resource
202
+ # definition at the same time
203
+ #
204
+ # @return [Mutex]
205
+ def resource_definition_mutex
206
+ @resource_definition_mutex ||= Mutex.new
207
+ end
208
+
202
209
  #
203
210
  # Reset our connection instance so that we will reconnect the
204
211
  # next time we need it
@@ -4,6 +4,10 @@ module ApiResource
4
4
  def self.set_class_attributes_upon_load
5
5
  true
6
6
  end
7
+ # no definition to load
8
+ def self.load_resource_definition
9
+ true
10
+ end
7
11
  # shouldn't do anything here either -
8
12
  def self.reload_resource_definition
9
13
  true
@@ -1,3 +1,3 @@
1
1
  module ApiResource
2
- VERSION = "0.6.19"
2
+ VERSION = "0.6.20"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.19
4
+ version: 0.6.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan Langevin