artemo 3.0.8 → 3.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.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/CHANGELOG +24 -11
- data/Gemfile.lock +1 -1
- data/README.md +5 -1
- data/artemo.gemspec +1 -1
- data/lib/.DS_Store +0 -0
- data/lib/artemo/version.rb +2 -2
- data/spec/test_artemo_common_spec.rb +10 -0
- data/spec/test_artemo_result_spec.rb +24 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0046d11340a03a34dff1723d4fcfb9cf71c1ef9d
|
4
|
+
data.tar.gz: ec42221460e22e6da26ab00d534d703edcd1dfaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68711b83f05e5e9626a07e922df481d6900a86a3d825d3ec8a05d4d8d3cb581c854fc14a756872f671d728c9d712957637b0fb62f605355e3f01223c20c2845f
|
7
|
+
data.tar.gz: cd6bc2ab606fc8168396bd4b71b6147ff71009210a31e2b22aec6ee220dcdab59922e27e660b0da061cab27cb7cfe0155db6d7bb0e730cbac3f32db657dc3303
|
data/.DS_Store
CHANGED
Binary file
|
data/CHANGELOG
CHANGED
@@ -1,22 +1,35 @@
|
|
1
1
|
Version 1.0
|
2
|
-
|
2
|
+
Prototype of program
|
3
|
+
|
3
4
|
Version 2.x.x
|
4
|
-
|
5
|
+
Tests of program
|
6
|
+
|
5
7
|
Version 3.0.0
|
6
|
-
|
8
|
+
Rewritten, simpler and working.
|
9
|
+
|
7
10
|
Version 3.0.1
|
8
|
-
|
11
|
+
Changed names of methods, add half of rspec tests, add Rakefile and Gemfile.
|
12
|
+
|
9
13
|
Version 3.0.2
|
10
|
-
|
14
|
+
Add `rake file['']` to use on custom texts.
|
15
|
+
|
11
16
|
Version 3.0.3
|
12
|
-
|
17
|
+
All rspec tests are write.
|
18
|
+
|
13
19
|
Version 3.0.4
|
14
|
-
|
20
|
+
All documentation is write, add bin/artemo file and checked code by RuboCop, some methods change names.
|
21
|
+
|
15
22
|
Version 3.0.5
|
16
|
-
|
23
|
+
Gem is ready.
|
24
|
+
|
17
25
|
Version 3.0.6
|
18
|
-
|
26
|
+
Gem homepage.
|
27
|
+
|
19
28
|
Version 3.0.7
|
20
|
-
|
29
|
+
Small changes in display results.
|
30
|
+
|
21
31
|
Version 3.0.8
|
22
|
-
|
32
|
+
Better gem description.
|
33
|
+
|
34
|
+
Version 3.0.9
|
35
|
+
More rspec tests.
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/artemo.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.files = `git ls-files`.split("\n")
|
19
19
|
s.test_files = `git ls-files -- {spec}/*`.split("\n")
|
20
20
|
s.executable = 'artemo'
|
21
|
-
s.require_path = ['lib'
|
21
|
+
s.require_path = ['lib']
|
22
22
|
|
23
23
|
s.add_development_dependency 'rake', '~> 11.3'
|
24
24
|
s.add_development_dependency 'rspec', '~> 3.5'
|
data/lib/.DS_Store
CHANGED
Binary file
|
data/lib/artemo/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module ArtEmo
|
2
|
-
VERSION = "3.0.
|
3
|
-
end
|
2
|
+
VERSION = "3.0.9"
|
3
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'artemo'
|
2
|
+
|
3
|
+
describe Result do
|
4
|
+
context 'Results ' do
|
5
|
+
it 'show love' do
|
6
|
+
s = Result.show([100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
|
7
|
+
sh = s.keys.last
|
8
|
+
expect(sh).to eq "love"
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'show despair' do
|
12
|
+
s = Result.show([0, 0, 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
|
13
|
+
sh = s.keys.last
|
14
|
+
expect(sh).to eq "despair"
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'min, max' do
|
18
|
+
s = Result.show([100, 30, 30, 30, 30, 30, 30, 5, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 700, 30])
|
19
|
+
min, max = s.values.minmax
|
20
|
+
expect(min).to eq 5
|
21
|
+
expect(max).to eq 700
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artemo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Łukasz Fuszara
|
@@ -101,9 +101,11 @@ files:
|
|
101
101
|
- lib/artemo/version.rb
|
102
102
|
- spec/.DS_Store
|
103
103
|
- spec/test_artemo_basic_emotions_spec.rb
|
104
|
+
- spec/test_artemo_common_spec.rb
|
104
105
|
- spec/test_artemo_complex_emotions_spec.rb
|
105
106
|
- spec/test_artemo_keywords_spec.rb
|
106
107
|
- spec/test_artemo_loader_spec.rb
|
108
|
+
- spec/test_artemo_result_spec.rb
|
107
109
|
homepage: https://rubygems.org/gems/artemo
|
108
110
|
licenses:
|
109
111
|
- GPL-3.0
|
@@ -112,7 +114,6 @@ post_install_message:
|
|
112
114
|
rdoc_options: []
|
113
115
|
require_paths:
|
114
116
|
- lib
|
115
|
-
- include
|
116
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
117
118
|
requirements:
|
118
119
|
- - ">="
|