numerousapp 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/numerousapp.rb +5 -11
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01cd1c5e889cbf214c82da8f8901ea435602708e
4
- data.tar.gz: 8772cd439ca04a25860ddf8c47e4f836c7d46606
3
+ metadata.gz: 26caf302981f15e44e4c555ef9c43562dd7fad63
4
+ data.tar.gz: df17bba5974e81bf6410969923cd9a3de9c4e2d9
5
5
  SHA512:
6
- metadata.gz: 15582f2a034419114a327c990326a08db2455f1c0f4a30eb8e3cb15bcfbd89e677d93598566eae20754316a8c4d7cf887703f23e05acf33f29f7bf77b4f25f6c
7
- data.tar.gz: 5c47dd449c711afce6e558b69e5fe752a331ce55e0374e19b2f7ee3e2bf6745050a613d7bdb44feeb7884c898963be8db8aa99c4783b976d0237868469bca6e4
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 %w/.each define_method hack here to generate
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
- # WARNING: As of Dec 2014 there is still a bug in the server that
918
- # causes ADD operations to not be atomic. Until that bug is fixed
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
- # IMPLEMENTATION NOTE: Fetches (and discards) the entire underlying photo,
1077
- # because that was the easiest way to tease out the target URL from
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
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numerousapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neil Webber