rsqoot 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +1 -1
- data/lib/rsqoot/click.rb +5 -1
- data/lib/rsqoot/commission.rb +5 -1
- data/lib/rsqoot/helper.rb +7 -1
- data/lib/rsqoot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzRiNzhlZDIxNWVjY2ViNWJkZDI0ODAwNjczMzc4ODVmYzA2MGI0ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWIwYTFiZTkwZDdkNDIyOTA0MzFjZTk4ZDVkM2E1ZTMyZjQzZDU3MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2ZkZjFjNTU0ZjRlMWZhNWExOWM0MGY2MjI4MzRjZDRkMGMzM2JiMmJkYzkx
|
10
|
+
MWFkNWRmNDI4MzU1MDc1MTgyN2VjMjgyYTFiN2YyZDE3MWU4YTg0YTM5MGY3
|
11
|
+
Zjg0OTYwMTM3M2M4MDk1YzQ5ZWZhN2VkYTkxYzNkYmNjZDM5ZjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzFkNDE2NDRjZWZhNTEyNzE2ODRkNWYyODBjYjJhZTUyYzJlOGU3MmRkMzk2
|
14
|
+
YTJmYmVhNDcxMDdlMzdiNTgwZTNlMTk3NzI2YWE3MDk2ZGI0NmZlOTIzNzY5
|
15
|
+
NDEwMmZkYTcxMDUxZmRkNzUzYTM0NjcyODNlM2NkYTQzMDBmYmU=
|
data/README.md
CHANGED
@@ -77,7 +77,7 @@ You can also change your configuration in your instance, such as below:
|
|
77
77
|
|
78
78
|
#### Auto Cache
|
79
79
|
|
80
|
-
Please notice that each query with above methods will cache the result
|
80
|
+
Please notice that each query with above methods will automaticlly cache the result
|
81
81
|
|
82
82
|
If you want to fetch the newest records each time, you can do as below:
|
83
83
|
|
data/lib/rsqoot/click.rb
CHANGED
@@ -8,7 +8,11 @@ module RSqoot
|
|
8
8
|
#
|
9
9
|
# @return [Hashie::Mash]
|
10
10
|
def clicks(options={})
|
11
|
-
|
11
|
+
if clicks_not_latest?(options)
|
12
|
+
@rsqoot_clicks = get('clicks', options)
|
13
|
+
@rsqoot_clicks = @rsqoot_clicks.clicks if @rsqoot_clicks
|
14
|
+
end
|
15
|
+
@rsqoot_clicks
|
12
16
|
end
|
13
17
|
end
|
14
18
|
end
|
data/lib/rsqoot/commission.rb
CHANGED
@@ -8,7 +8,11 @@ module RSqoot
|
|
8
8
|
#
|
9
9
|
# @return [Hashie::Mash]
|
10
10
|
def commissions(options={})
|
11
|
-
|
11
|
+
if commissions_not_latest?(options)
|
12
|
+
@rsqoot_commissions = get('commissions', options)
|
13
|
+
@rsqoot_commissions = @rsqoot_commissions.commissions if @rsqoot_commissions
|
14
|
+
end
|
15
|
+
@rsqoot_commissions
|
12
16
|
end
|
13
17
|
|
14
18
|
end
|
data/lib/rsqoot/helper.rb
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
module RSqoot
|
2
2
|
module Helper
|
3
3
|
def self.included(base)
|
4
|
-
['deals',
|
4
|
+
[ 'deals',
|
5
|
+
'deal',
|
6
|
+
'categories',
|
7
|
+
'providers',
|
8
|
+
'merchant',
|
9
|
+
'commissions',
|
10
|
+
'clicks' ].each do |name|
|
5
11
|
attr_reader ('rsqoot_' + name).to_sym
|
6
12
|
attr_accessor (name + '_options').to_sym
|
7
13
|
base.send :define_method, (name + '_not_latest?').to_sym do |opt|
|
data/lib/rsqoot/version.rb
CHANGED