worldbank_as_dataframe 0.1.0 → 0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59487af1b64af251dfd64fbad71b7604e388fea72a76c69035d114d0dd8d2ffb
4
- data.tar.gz: 834b1f92659fc7202e6f635874c786fa941fb121bf00060dcdd3a5d3788b2829
3
+ metadata.gz: 7abdea5942d83b0664bd4d36a6857ca36e93c0c932d8ca903397d4875b87797b
4
+ data.tar.gz: 733939bd09d746c4f545145758a4297c55b2bf5037ac263269621a6271c9034a
5
5
  SHA512:
6
- metadata.gz: 57fd9508264cfbe7e580ff439abcb3662e4ed7e246e10d3f3fe213b3fb7658d4477e41ffde0508e2c15d55db8be86dde0995105fda44067a5dab8335e59d48ad
7
- data.tar.gz: 89928d424ddce5bf4787deb19c91483fafc380c49996ba5c67a117a5268c3853ff1f9240b047d64594cd7c115757cd3ed3b9783529de3373f7e6b3c350a1d6e4
6
+ metadata.gz: 175ae1df0d00c482d2ff87b4df33090bd0f9fe53f1e486dba846e5fd64f3c353d067d49b22550113be03a268a337a59aaa71e14466fe5b2180b0777f8769f69f
7
+ data.tar.gz: ea00816320862f337485937215c2cffd425bac0fec1194c92fe890e0924ae4db90f038b35930bc026f873222b2d54fc70a91da9bb727d846793e83ec9b0b57fc
data/README.md CHANGED
@@ -1,20 +1,11 @@
1
1
  # WorldbankAsDataframe
2
2
 
3
- A wrapper for the World Bank's Development Indicators API sponsored by Code for America.
3
+ A wrapper for the World Bank's Development Indicators API. This API was initially developed and sponsored by Code for America, and later updated by Alexander Auritt.
4
4
 
5
5
  Please see the World Bank's data [[developer's page](http://data.worldbank.org/developers/)] for more info on the data sources.
6
6
 
7
7
 
8
8
 
9
- Continuous Integration
10
- ----------------------
11
-
12
- You can see the World Bank Gem's build status at
13
- http:ci.codeforamerica.org or on Travis:
14
-
15
- [![Build Status](https://secure.travis-ci.org/codeforamerica/worldbank_as_dataframe_ruby.png)](http://travis-ci.org/codeforamerica/worldbank_as_dataframe_ruby)
16
-
17
-
18
9
  Usage
19
10
  -----
20
11
  ```ruby
@@ -83,17 +74,23 @@ include WorldbankAsDataframe
83
74
 
84
75
  puts @results.first.name
85
76
  @results.each {|d| puts d.date + ': $' + d.value }
86
- # =>
87
- # GDP (current US$)
88
- # 2008: $1652632229227.61
89
- # 2007: $1365982651542.37
90
- # 2006: $1088917279411.76
91
- # 2005: $882185291700.904
92
- # 2004: $663760000000
93
- # 2003: $552469288267.793
94
- # 2002: $504221228974.035
95
- # 2001: $553582178386.192
96
- # 2000: $644701831101.394
77
+ # =>
78
+ # shape: (9, 2)
79
+ # ┌────────────┬──────────────────────────────┐
80
+ # │ Timestamps ┆ GDP (current US$) for Brazil │
81
+ # │ --- ┆ --- │
82
+ # │ date ┆ f64 │
83
+ # ╞════════════╪══════════════════════════════╡
84
+ # │ 2008-12-31 ┆ 1.6959e12 │
85
+ # │ 2007-12-31 ┆ 1.3971e12 │
86
+ # │ 2006-12-31 ┆ 1.1076e12 │
87
+ # │ 2005-12-31 ┆ 8.9163e11 │
88
+ # │ 2004-12-31 ┆ 6.6929e11 │
89
+ # │ 2003-12-31 ┆ 5.5823e11 │
90
+ # │ 2002-12-31 ┆ 5.0980e11 │
91
+ # │ 2001-12-31 ┆ 5.5998e11 │
92
+ # │ 2000-12-31 ┆ 6.5545e11 │
93
+ # └────────────┴──────────────────────────────┘
97
94
  #
98
95
  # The WorldbankAsDataframe::Data can have have methods matching any of the World Bank API's
99
96
  # modifiers (like #dates above) called as class methods or chained in a query.
@@ -118,13 +115,13 @@ Here are some ways *you* can contribute:
118
115
  * by writing code (**no patch is too small**: fix typos, add comments,
119
116
  clean up inconsistent whitespace)
120
117
  * by refactoring code
121
- * by resolving [issues](https://github.com/codeforamerica/worldbank_as_dataframe_ruby/issues)
118
+ * by resolving [issues](https://github.com/bmck/worldbank_as_dataframe/issues)
122
119
  * by reviewing patches
123
120
 
124
121
  Submitting an Issue
125
122
  -------------------
126
123
  We use the [GitHub issue
127
- tracker](https://github.com/codeforamerica/fed_spending_ruby/issues) to track bugs and
124
+ tracker](https://github.com/bmck/worldbank_as_dataframe/issues) to track bugs and
128
125
  features. Before submitting a bug report or feature request, check to
129
126
  make sure it hasn't already
130
127
  been submitted. You can indicate support for an existing issuse by
@@ -156,9 +153,8 @@ Copyright
156
153
  ---------
157
154
  Copyright (c) 2011 Code for America
158
155
  See
159
- [LICENSE](https://github.com/codeforamerica/worldbank_as_dataframe_ruby/blob/master/LICENSE.md)
156
+ [LICENSE](https://github.com/bmck/worldbank_as_dataframe/blob/master/LICENSE.md)
160
157
  for details.
161
158
 
162
- [![Code for America
163
- Tracker](http://stats.codeforamerica.org/codeforamerica/code_for_america_tracking.png)](http://stats.codeforamerica.org/)
159
+
164
160
 
@@ -41,7 +41,7 @@ module WorldbankAsDataframe
41
41
  suffix = " for #{@others['country']['value']}" rescue ''
42
42
  hdr += suffix
43
43
 
44
- {'Timestamps' => @date, hdr => @value }
44
+ {'Timestamps' => Date.new(@date.to_i, 12, 31), hdr => @value }
45
45
  end
46
46
  end
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module WorldbankAsDataframe
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: worldbank_as_dataframe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bill McKinnon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-22 00:00:00.000000000 Z
11
+ date: 2024-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ZenTest