aloha_analyzer 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: 8f4ece6786a905d39f9b89ce4847fc12ae144621
4
- data.tar.gz: da54c55b6df68bf274167f77dc7c65183ea5526b
3
+ metadata.gz: c9f5da8c9ea4ee9b2f2683e61199633a630388ce
4
+ data.tar.gz: 7887ee685920de02c43537ec146c0c1b46d5ce65
5
5
  SHA512:
6
- metadata.gz: e793bae0bc06626ed0dcb2329aacfbf9f023e00c7be5056cb48518f69a5e4ee02bbb128644fe5e480c4e2267190ef37fb07f08cfd5f6d1f7186dfdc6956e072c
7
- data.tar.gz: a01bbfc97cb06366d37f1b1bfbac9728dac2977827634a16eda8c6edd7f0f7aaebb3027ea0906d7ab7f0523ed0c3ac8aa11d43e02a27e00b73c258cc3cb956da
6
+ metadata.gz: e20e568e55cf2df3fca22d532704ff867b8201436ece0e46f46f838e83dc0066d69e450177d4a8699f1ff2b1f302cfa625080f70ab25592743102c1ed5c87323
7
+ data.tar.gz: 6fa00b9e39b7e5f6be3b522b360ef1a55cd4a9d4a48076a159053ca9c8e478a605f1b49f9caeaea547453b74d911b9904a792fd4bd934b6b41c871f7b232303c
@@ -31,6 +31,7 @@ module AlohaAnalyzer
31
31
  end
32
32
  analysys[:foreign_languages_count] += 1
33
33
  end
34
+ analysys[:count] += 1
34
35
  end
35
36
  end
36
37
  end
@@ -46,6 +47,7 @@ module AlohaAnalyzer
46
47
  users: []
47
48
  }
48
49
  analysys[:foreign_languages_count] = 0
50
+ analysys[:count] = 0
49
51
  analysys[:foreign_languages] = Hash.new
50
52
  end
51
53
  end
@@ -1,3 +1,3 @@
1
1
  module AlohaAnalyzer
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
@@ -48,6 +48,10 @@ describe AlohaAnalyzer::User do
48
48
  subject.should be_a Hash
49
49
  end
50
50
 
51
+ it 'includes the total count' do
52
+ subject[:count].should eq 0
53
+ end
54
+
51
55
  it 'has no results with the user language' do
52
56
  subject[:user_language][:count].should eq 0
53
57
  end
@@ -79,6 +83,10 @@ describe AlohaAnalyzer::User do
79
83
  subject.should be_a Hash
80
84
  end
81
85
 
86
+ it 'includes the total count' do
87
+ subject[:count].should eq 4
88
+ end
89
+
82
90
  it 'includes the user lanugage' do
83
91
  subject[:user_language].should eq(
84
92
  :count => 2,
@@ -119,6 +127,10 @@ describe AlohaAnalyzer::User do
119
127
  subject.should be_a Hash
120
128
  end
121
129
 
130
+ it 'includes the total count' do
131
+ subject[:count].should eq 2
132
+ end
133
+
122
134
  it 'includes the user lanugage' do
123
135
  subject[:user_language][:language].should eq(
124
136
  "abbreviation"=>"en", "name"=>"English", "population"=>238000000, "countries"=>"USA, Canada, UK, Ireland, Australia"
@@ -152,6 +164,10 @@ describe AlohaAnalyzer::User do
152
164
  subject.should be_a Hash
153
165
  end
154
166
 
167
+ it 'includes the total count' do
168
+ subject[:count].should eq 3
169
+ end
170
+
155
171
  it 'returns results based on the user language' do
156
172
  subject[:user_language].should == {
157
173
  :count => 0,
@@ -189,6 +205,10 @@ describe AlohaAnalyzer::User do
189
205
  ]
190
206
  }
191
207
 
208
+ it 'includes the total count' do
209
+ subject[:count].should eq 3
210
+ end
211
+
192
212
  it 'includes the user lanugage' do
193
213
  subject[:user_language].should == {
194
214
  :count => 2,
@@ -208,7 +228,7 @@ describe AlohaAnalyzer::User do
208
228
  :language => {'abbreviation'=>'fr', 'name'=>'French', 'population'=>14000000, 'countries' => 'France, Canada, Belgium, Switzerland'},
209
229
  :users => [{'id' => '2', 'lang' => 'fr'}]
210
230
  }
211
- )
231
+ )
212
232
  end
213
233
  end
214
234
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aloha_analyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu Aussaguel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-09 00:00:00.000000000 Z
11
+ date: 2014-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler