gallicagram 1.0.8 → 1.0.9

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gallicagram.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d38fec4b1068d42da5daa346e992baf9215bf17d4c798c0ebca287a2453fb9a7
4
- data.tar.gz: b0c072bc24228ae9c2432dc42aa6c7620f0dcb14146dac533bc1c8eaa753bd0e
3
+ metadata.gz: d75ac9432d7de2a125d51816ca14ac0fd13633b9ee7e5cd5d4a6e3db83a3a462
4
+ data.tar.gz: 114fb34abab5ec0a8065de59985a5e7ba05ee374f03dbd8c5977f93000a4e367
5
5
  SHA512:
6
- metadata.gz: a450030b491f0aa6b9af684b409575756b6c30542e90e54cea60b6896cbfedc11dd89fa82e4b516bf1539d04ea89bfb253a74b427b6d808834e902b356fde974
7
- data.tar.gz: 8c6338665df22d98808ab0cd817af0956fc8e34bff5c00510866a19ecea664481a1fefd120dde3cff7cad7591b3bae90be8b4d33a5b334e45479ebcab2800559
6
+ metadata.gz: 981a81960892e29ec189baf3cc3b5fe570fd57cca18a439d21a70bb511316de6a470ca9399b36eb1ef63f3b302c0a4e329498ef9f379186f88407957e6ab551a
7
+ data.tar.gz: aa0bf3a9a724fb2e7264f8810cced108593c7a018baad7e4843f18ecf2a54447721b316b73ed020a3b965e1bd48f2684deffd8bc25b4e52251f1c4e378d4d413
data/lib/gallicagram.rb CHANGED
@@ -13,7 +13,7 @@ class Gallicagram
13
13
  data = ""
14
14
  query.each_with_index do |word, index|
15
15
  query = format_query(word, sum)
16
- response = call_api(word, corpus, start_date, end_date,resolution)
16
+ response = call_api(word, corpus, start_date, end_date, resolution)
17
17
  unless index == 0
18
18
  response = response.gsub("n,gram,annee,mois,jour,total", "\n").strip
19
19
  end
@@ -25,7 +25,7 @@ class Gallicagram
25
25
  end
26
26
 
27
27
  if resolution == "mois"
28
- data = group_by_resolution(data, resolution)
28
+ data = group_by_resolution(data)
29
29
  else
30
30
  data = CSV.parse(data, :headers => true)
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gallicagram
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Le Roux