numerousapp 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/numerousapp.rb +5 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26caf302981f15e44e4c555ef9c43562dd7fad63
|
4
|
+
data.tar.gz: df17bba5974e81bf6410969923cd9a3de9c4e2d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a2051121d9d80a8e65080e86bff2aac1a59988c5afce9a28fe700dca54802b5401c732325c1770d8bd8cc5ffb4503d2b765ab90c0eb6ccf463d71023b19c311
|
7
|
+
data.tar.gz: 5cdef175e815cf56137cd8bc506928a6233c1413e67d94e8b77b20d312dd14dd049e7a295a887cbdc322c30e711350398f7bdaedbc18f27d585c9003881a8650
|
data/lib/numerousapp.rb
CHANGED
@@ -787,7 +787,7 @@ class NumerousMetric < NumerousClientInternals
|
|
787
787
|
|
788
788
|
|
789
789
|
#
|
790
|
-
# So I had a really nifty
|
790
|
+
# So I had a really nifty define_method hack here to generate
|
791
791
|
# these methods that follow a simple pattern. Then trying to figure out
|
792
792
|
# how to YARD document them was daunting. If it's easy someone needs to
|
793
793
|
# show me (I get the impression it's possible with some run time magic
|
@@ -907,17 +907,12 @@ class NumerousMetric < NumerousClientInternals
|
|
907
907
|
# Optional (keyword arg). Only creates an event at the server
|
908
908
|
# if the newval is different from the current value. Raises
|
909
909
|
# NumerousMetricConflictError if there is no change in value.
|
910
|
-
# WARNING: Not atomic at the server; it is still possible to get
|
911
|
-
# a success code result from this even if your value was already
|
912
|
-
# the current value (under simultaneous-update scenarios).
|
913
910
|
#
|
914
911
|
# @param [Boolean] add
|
915
912
|
# Optional (keyword arg). Sends the "action: ADD" attribute which
|
916
913
|
# causes the server to ADD newval to the current metric value.
|
917
|
-
#
|
918
|
-
#
|
919
|
-
# the semantics of ADD are no different than if you did a read/write
|
920
|
-
# (as two separate operations) yourself.
|
914
|
+
# Note that this IS atomic at the server. Two clients doing
|
915
|
+
# simultaneous ADD operations will get the correct (serialized) result.
|
921
916
|
# @param [Boolean] dictionary
|
922
917
|
# If true the entire metric will be returned as a string-key Hash;
|
923
918
|
# else (false/default) the bare number (Fixnum or Float) for the
|
@@ -1073,9 +1068,8 @@ class NumerousMetric < NumerousClientInternals
|
|
1073
1068
|
# static photo URL). This function goes one level deeper and
|
1074
1069
|
# returns you an actual, publicly-fetchable, photo URL.
|
1075
1070
|
#
|
1076
|
-
#
|
1077
|
-
#
|
1078
|
-
# the Net:HTTP library.
|
1071
|
+
# @note Fetches (and discards) the entire underlying photo,
|
1072
|
+
# because that was the easiest way to find the target URL using net/http
|
1079
1073
|
#
|
1080
1074
|
# @return [String, nil] URL. If there is no photo returns nil.
|
1081
1075
|
#
|