dronestream 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
- metadata.gz: 162769efe23d5c8dc176d0684bffffea72ef1e22
4
- data.tar.gz: 4f3973578e083d5cc70a2b15c20ae5417fa029ab
3
+ metadata.gz: 622c19502dd816dbaf4908c445f5a6cae93f7d5c
4
+ data.tar.gz: 13aa673acbe285fec0cafefe400c502ba09abad9
5
5
  !binary "U0hBNTEy":
6
- metadata.gz: 792ac24ffa28550fb4d76133e509b5e44ab65ddfacc36c324129c356fdd9b0513263c4b25214bc342bcfff79ecfc49227c9bde1fb5e5d34324bb1afce5159db5
7
- data.tar.gz: 80ddfa496fd0c2d94c61d242c0375e76b4a7913b7b312fda3574a2c300d8f84f21ec1f87ef07a4cce36e69f9794fdf1bd8ce0d77200580b6482427b250b90c20
6
+ metadata.gz: 4b631866b13dfafd325094898ce5eb1bd0bccd30e657d4cb2cb1c1bf6ff05466b9fc82bb99894111f141b7cc5fd54f0ced110251b35abae6dbd02203593edb88
7
+ data.tar.gz: ce2a2637ad2225bc8e52e72a43ba5d59bbe39367f64f376f3468256f7ac7b1bc434d13b7732ace1524557c2e5c40eb6ad442049fd30b010a482d1eac84871c39
@@ -1,3 +1,7 @@
1
+ ## 0.2.3 (June 7, 2013)
2
+
3
+ * This version contains *breaking changes* from the previous version, and allows method chaining. The return value of all queries is different from previous versions, and the interface is completely different. Version 0.2.3 effectively deprecates all previous versions.
4
+
1
5
  ## 0.1.1 (June 4, 2013)
2
6
 
3
7
  * Fix bug in `with_child_casualties`. That method now correctly returns an array, rather than throwing an error.
@@ -10,4 +14,8 @@
10
14
 
11
15
  * Initial release. Support for `#in_country` and `#with_civilian_casualties` methods only.
12
16
 
17
+ ## Other versions?
18
+
19
+ You may notice that the versions are not as predictably sequential as you would think (e.g., 0.1.1 to 0.2.3). I had some issues with a few builds that I had to yank from rubygems.com, and had to use diffrent version names.
20
+
13
21
 
data/README.md CHANGED
@@ -27,13 +27,21 @@ require 'dronestream'
27
27
  #=> true
28
28
  ```
29
29
 
30
- Then, you can find drone strikes by a number of criteria. For example:
30
+ Then, you can find strikes by a number of criteria. Version 0.2.3 allows you to chain methods together to combine data points in your query. However, each query returns an instance of the class. To get the data out in a usable format (say, for looping over), simply call `to_a` on the return value of your query.
31
31
 
32
32
  ```ruby
33
- Dronestream::Strike.in_country('Yemen')
34
- #=> [{"_id"=>"51a65578e0932c0e1eb4199f", "number"=>1, "country"=>"Yemen", "date"=>"2002-11-03T00:00:00.000Z", "town"=>"", "location"=>"Marib Province", "deaths"=>"6", "deaths_min"=>"6", "deaths_max"=>"6", "civilians"=>"0", "injuries"=>"", "children"=>"", "tweet_id"=>"278544689483890688", "bureau_id"=>"YEM001", "bij_summary_short"=>"In the first known US targeted assassination using a drone, a CIA Predator struck a car killing six al Qaeda suspects.", "bij_link"=>"http://www.thebureauinvestigates.com/2012/03/29/yemen-reported-us-covert-actions-since-2001/", "target"=>"", "lat"=>"15.47467", "lon"=>"45.322755", "articles"=>[], "names"=>["Qa’id Salim Sinan al-Harithi, Abu Ahmad al-Hijazi, Salih Hussain Ali al-Nunu, Awsan Ahmad al-Tarihi, Munir Ahmad Abdallah al-Sauda, Adil Nasir al-Sauda’"]} ...
33
+ >> Dronestream::Strike.in_country('Yemen')
34
+ #=> Dronestream::Strike
35
+ >> Dronestream::Strike.in_country('Yemen').to_a
36
+ #=> [{"_id"=>"51a65578e0932c0e1eb4199f", "number"=>1, "country"=>"Yemen", "date"=>"2002-11-03T00:00:00.000Z", "town"=>"", "location"=>"Marib Province", "deaths"=>"6", "deaths_min"=>"6", "deaths_max"=>"6", "civilians"=>"0", "injuries"=>""...
37
+
38
+ >> yemini_strikes_with_civilian_casualties = Dronestream::Strike.in_country('Yemen').with_civilian_casualties
39
+ #=> Dronestream::Strike
40
+ >> yemini_strikes_with_civilian_casualties.to_a
41
+ #=> [{"_id"=>"51a6557ae0932c0e1eb41aad", "number"=>271, "country"=>"Yemen", "date"=>"2011-06-03T00:00:00.000Z", "town"=>"Zinjibar", "location"=>"Abyan Province", "deaths"=>"7", "deaths_min"=>"7", "deaths_max"=>"7", "civilians"=>"4", "injuries"=>""
35
42
  ```
36
43
 
44
+
37
45
  ## Contributing
38
46
 
39
47
  1. Fork it
@@ -1,3 +1,3 @@
1
1
  module Dronestream
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dronestream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thenickcox