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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e93ea6b32c2cf82270bb8552366d257f471f1ced
4
- data.tar.gz: 12d7c7a0042ed32161eb7ca619ac1ea6e53ea37b
3
+ metadata.gz: 0046d11340a03a34dff1723d4fcfb9cf71c1ef9d
4
+ data.tar.gz: ec42221460e22e6da26ab00d534d703edcd1dfaa
5
5
  SHA512:
6
- metadata.gz: 0f1de395200a55c6dff2da39a024a02bd27407918410499eea576fd7aea3f8b7c0b9c1a869ee729ec83a31b4d9a8e3a239df9015dab4824843f25e43ded3d023
7
- data.tar.gz: cc147d27a3c5f50af89359e754170d534346f8bfe58977fe95fd26fc85c99bd784df6825c19d56e4f5f82ca41ab2a934b424a756b6262ba9d4ec49979bed6bb1
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
- * Prototype of program
2
+ Prototype of program
3
+
3
4
  Version 2.x.x
4
- * Tests of program
5
+ Tests of program
6
+
5
7
  Version 3.0.0
6
- * Rewritten, simpler and working.
8
+ Rewritten, simpler and working.
9
+
7
10
  Version 3.0.1
8
- * Changed names of methods, add half of rspec tests, add Rakefile and Gemfile.
11
+ Changed names of methods, add half of rspec tests, add Rakefile and Gemfile.
12
+
9
13
  Version 3.0.2
10
- * Add `rake file['']` to use on custom texts.
14
+ Add `rake file['']` to use on custom texts.
15
+
11
16
  Version 3.0.3
12
- * All rspec tests are write.
17
+ All rspec tests are write.
18
+
13
19
  Version 3.0.4
14
- * All documentation is write, add bin/artemo file and checked code by RuboCop, some methods change names.
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
- * Gem is ready.
23
+ Gem is ready.
24
+
17
25
  Version 3.0.6
18
- * Gem homepage.
26
+ Gem homepage.
27
+
19
28
  Version 3.0.7
20
- * Small changes in display results.
29
+ Small changes in display results.
30
+
21
31
  Version 3.0.8
22
- * Better gem description.
32
+ Better gem description.
33
+
34
+ Version 3.0.9
35
+ More rspec tests.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- artemo (3.0.8)
4
+ artemo (3.0.9)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/README.md CHANGED
@@ -44,4 +44,8 @@ Version 3.0.7
44
44
 
45
45
  Version 3.0.8
46
46
 
47
- * Better gem description.
47
+ * Better gem description.
48
+
49
+ Version 3.0.9
50
+
51
+ * More rspec tests.
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', 'include']
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
@@ -1,3 +1,3 @@
1
1
  module ArtEmo
2
- VERSION = "3.0.8"
3
- end
2
+ VERSION = "3.0.9"
3
+ end
@@ -0,0 +1,10 @@
1
+ require 'artemo'
2
+
3
+ describe Common do
4
+ context 'Common method ' do
5
+ it 'scale' do
6
+ s = Common.scale([500, 250, 100, 50, 25, 0, -75])
7
+ expect(s).to eq [100, 56, 30, 21, 17, 13, 0]
8
+ end
9
+ end
10
+ 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.8
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
  - - ">="