shopify_unlimited 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDg3MDZkYmQ1OTU0ODg3ZGFjYTk0ZDQyMjA5NGJjZjEzMTE5OTU1Yw==
5
+ data.tar.gz: !binary |-
6
+ YzVlMTk4ZGM1ZjM3ODA1MzYyZDI0ZGNlZmM5OTI0MjIyZmE1NmQ2Nw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MmE5NzExNjZiMDg2MDNiZWYxYWQxNTg0YTRjYWZiM2QzYTY1ZGZlZDQzODVk
10
+ OGIyMmQ3NGQwZmRkYmE4MDJhNjQ5NjYyNmRhNjA4ZDYxYzM3YWZlYWQ2NWUw
11
+ OTE1MDFmZmRmOGEyOGFkYzk0YzZjOGNmM2U5OTc4YTQ3ZmJjZTQ=
12
+ data.tar.gz: !binary |-
13
+ NmViYjEwN2MwMGQyNTlhNTU1YzNiZWMyNTgzMmU2MTA4YTVmNWI5MzJkMzc1
14
+ N2QyY2M4MWJiN2Q5MDhlNWM3NjgzOGMwOWExOTk3NmI4ZmMxOTQ0NTNiYzFm
15
+ MDZjYTlmYzM5MjBmZWFhZWUyZWEyZmI0MmJjNmZjNTIwODg3MGU=
@@ -1,3 +1,3 @@
1
1
  module ShopifyUnlimited
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -19,6 +19,7 @@ module ShopifyUnlimited
19
19
  def cached_time(max)
20
20
  now = Time.now
21
21
  result = now
22
+ return result unless memcached
22
23
  unless memcached.add(cache_key, now, 500)
23
24
  memcached.cas(cache_key, 500) do |cached_time|
24
25
  result = ((now - cached_time) > max) ? now : cached_time
@@ -29,7 +30,7 @@ module ShopifyUnlimited
29
30
  end
30
31
 
31
32
  def set_cached_time(time)
32
-
33
+ return unless memcached
33
34
  memcached.set(cache_key, time, 500)
34
35
  end
35
36
 
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_unlimited
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
5
- prerelease:
4
+ version: 0.0.11
6
5
  platform: ruby
7
6
  authors:
8
7
  - Michael Johnston
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-29 00:00:00.000000000 Z
11
+ date: 2013-10-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activeresource
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - '='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - '='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: activesupport
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: shopify_api
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: bundler
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rake
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ! '>='
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ! '>='
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: rspec
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ! '>='
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ! '>='
108
95
  - !ruby/object:Gem::Version
@@ -129,33 +116,26 @@ files:
129
116
  homepage: ''
130
117
  licenses:
131
118
  - MIT
119
+ metadata: {}
132
120
  post_install_message:
133
121
  rdoc_options: []
134
122
  require_paths:
135
123
  - lib
136
124
  required_ruby_version: !ruby/object:Gem::Requirement
137
- none: false
138
125
  requirements:
139
126
  - - ! '>='
140
127
  - !ruby/object:Gem::Version
141
128
  version: '0'
142
- segments:
143
- - 0
144
- hash: -1618288233735018532
145
129
  required_rubygems_version: !ruby/object:Gem::Requirement
146
- none: false
147
130
  requirements:
148
131
  - - ! '>='
149
132
  - !ruby/object:Gem::Version
150
133
  version: '0'
151
- segments:
152
- - 0
153
- hash: -1618288233735018532
154
134
  requirements: []
155
135
  rubyforge_project:
156
- rubygems_version: 1.8.25
136
+ rubygems_version: 2.0.6
157
137
  signing_key:
158
- specification_version: 3
138
+ specification_version: 4
159
139
  summary: ! 'allow use of limit: false in api requests'
160
140
  test_files:
161
141
  - spec/spec_helper.rb