dronestream 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +24 -5
- data/Rakefile +10 -0
- data/lib/dronestream/strike.rb +1 -1
- data/lib/dronestream/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba9092fbc5c7da7c3af51763beb5d0d61b041dbc
|
4
|
+
data.tar.gz: 60e700bfff6d866d9f08c9fd57aea2db601bd442
|
5
5
|
!binary "U0hBNTEy":
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4570842285a8b7d27ab27e1abc9ee4664f52107d0a26120cf9751fe2bbcf99d19a29306a76764971f0adb027956ad9fe32ce25217c606f5f9c54943530b548f0
|
7
|
+
data.tar.gz: 63b8860e3d41bb523468b7927d3c7da8fd7e5d4dd4227d83e7c9954b7755fedfb17d89d3b99125bccbfdbf50d309570a4728de46cefedcb2858d4d7fde5d97e8
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Dronestream
|
2
2
|
|
3
|
-
A Ruby wrapper for the [dronestre.am](http://dronestre.am) API.
|
3
|
+
A Ruby wrapper for the [dronestre.am](http://dronestre.am) API.
|
4
|
+
|
5
|
+
This is a work in progress. If you'd like to help, check out the current [issues](https://github.com/thenickcox/dronestream/issues). Alternately, you can report further issues, or work on a new one.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
@@ -18,12 +20,29 @@ Or install it yourself as:
|
|
18
20
|
|
19
21
|
## Usage
|
20
22
|
|
21
|
-
|
23
|
+
First, require it:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
require 'dronestream'
|
27
|
+
#=> true
|
28
|
+
```
|
29
|
+
|
30
|
+
Then, you can find drone strikes by a number of criteria. For example:
|
31
|
+
|
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’"]} ...
|
35
|
+
```
|
22
36
|
|
23
37
|
## Contributing
|
24
38
|
|
25
39
|
1. Fork it
|
26
40
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
-
3.
|
28
|
-
4.
|
29
|
-
5.
|
41
|
+
3. Run tests (`rake spec`)
|
42
|
+
4. Commit your changes (`git commit -am 'Add some feature'`)
|
43
|
+
5. Push to the branch (`git push origin my-new-feature`)
|
44
|
+
6. Create new Pull Request
|
45
|
+
|
46
|
+
## Acknowledgements
|
47
|
+
|
48
|
+
Obviously, this gem couldn't be possible without the [dronestream API](http://dronestream.org). So thank you to [Josh Begley](http://joshbegley.com/) for the API. Thanks also to [@ashedryden](http://twitter.com/ashedryden) for turning me onto [hasadronekilledanyonetoday.com](http://hasadronekilledanyonetoday.com) by [Chris Zarate](https://github.com/chriszarate/hadkat), where I discovered the source.
|
data/Rakefile
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'bundler/gem_tasks'
|
2
2
|
require 'rake/testtask'
|
3
|
+
require 'dronestream/version'
|
3
4
|
|
4
5
|
require 'rspec/core/rake_task'
|
5
6
|
|
@@ -10,3 +11,12 @@ desc 'Run specs'
|
|
10
11
|
RSpec::Core::RakeTask.new do |test|
|
11
12
|
test.pattern = 'spec/lib/dronestream/*_spec.rb'
|
12
13
|
end
|
14
|
+
|
15
|
+
namespace :gem do
|
16
|
+
task :publish do
|
17
|
+
puts "Building gem..."
|
18
|
+
sh "gem build dronestream.gemspec"
|
19
|
+
puts "Pushing to rubygems.org"
|
20
|
+
sh "gem push dronestream-#{Dronestream::VERSION}.gem"
|
21
|
+
end
|
22
|
+
end
|
data/lib/dronestream/strike.rb
CHANGED
data/lib/dronestream/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dronestream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thenickcox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|