chime 0.2.0 → 0.3.0
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 +6 -14
- data/Gemfile +1 -1
- data/Gemfile.lock +7 -2
- data/Rakefile +3 -8
- data/VERSION +1 -1
- data/chime.gemspec +7 -6
- data/lib/chime/emotions/emotion_bank_phrases.rb +2 -1
- data/lib/chime/emotions/term_categories.rb +48 -8
- data/lib/chime.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
metadata.gz: !binary |-
|
|
9
|
-
YjhhMDljNDA2ZWM4NmQzYjNkNTk4OTBlNTZhMDUxZjZmODBhZGMwNDhiNmZj
|
|
10
|
-
MjkzNTJjYmI5ZDU0MzEzYjNiZWQ4OWNiODE2ZTJhZWYxYWEwYTY5NWIxNTVm
|
|
11
|
-
NDQzMWIyYjI0ODE0YTE5OTc0MTI1MmYwYzdmNjBlYTViYTQ2ODY=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
ODBlMGRjODkzMWIzMTkyZTU2YmRjODRhODA5Y2U5YjJjYTZhZDZlYjMxZDI4
|
|
14
|
-
MDFiNTFjY2M4YWFjNWRiMDViMzM5ZjEwNGZlM2MyZDY2OWZlY2NlOTU2OGYy
|
|
15
|
-
ZWNiMzRhMDRmMmVhNzU1YjNmZmFhYzVhYzc0NTg3ZjViZGU3MTg=
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 6c3ac749f62baf89045a8dad4e9e15e58e8b0367
|
|
4
|
+
data.tar.gz: 33601f430f55e969c32e5d14a5e4793ac6deddb8
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: aaf2299197e4bb905ab21b55c957ac2541a0ad853eaaa2a181d29451a44385bb08b31947a60e11e356972fa76874e6166e8bfb1fbf57373d72c457acafce171a
|
|
7
|
+
data.tar.gz: 3f1b2352414680a117a1da899c6c5b7c7967f986132703fa07bd612e021443def90ee9a56ace0e01b9a028093d997349bf4e05bf309d1cac97a79e1d0cc8a456
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -10,6 +10,7 @@ GEM
|
|
|
10
10
|
addressable (2.3.5)
|
|
11
11
|
atomic (1.1.14)
|
|
12
12
|
builder (3.2.2)
|
|
13
|
+
docile (1.1.0)
|
|
13
14
|
faraday (0.8.8)
|
|
14
15
|
multipart-post (~> 1.2.0)
|
|
15
16
|
git (1.2.6)
|
|
@@ -50,7 +51,6 @@ GEM
|
|
|
50
51
|
rack (~> 1.2)
|
|
51
52
|
rack (1.5.2)
|
|
52
53
|
rake (10.1.0)
|
|
53
|
-
rcov (0.9.11)
|
|
54
54
|
rdoc (3.12.2)
|
|
55
55
|
json (~> 1.4)
|
|
56
56
|
shoulda (3.5.0)
|
|
@@ -59,6 +59,11 @@ GEM
|
|
|
59
59
|
shoulda-context (1.1.5)
|
|
60
60
|
shoulda-matchers (2.4.0)
|
|
61
61
|
activesupport (>= 3.0.0)
|
|
62
|
+
simplecov (0.8.2)
|
|
63
|
+
docile (~> 1.1.0)
|
|
64
|
+
multi_json
|
|
65
|
+
simplecov-html (~> 0.8.0)
|
|
66
|
+
simplecov-html (0.8.0)
|
|
62
67
|
thread_safe (0.1.3)
|
|
63
68
|
atomic
|
|
64
69
|
tzinfo (0.3.38)
|
|
@@ -69,6 +74,6 @@ PLATFORMS
|
|
|
69
74
|
DEPENDENCIES
|
|
70
75
|
bundler (~> 1.0)
|
|
71
76
|
jeweler (~> 1.8.7)
|
|
72
|
-
rcov (= 0.9.11)
|
|
73
77
|
rdoc (~> 3.12)
|
|
74
78
|
shoulda
|
|
79
|
+
simplecov
|
data/Rakefile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
|
|
2
|
+
#
|
|
3
3
|
require 'rubygems'
|
|
4
4
|
require 'bundler'
|
|
5
5
|
begin
|
|
@@ -32,14 +32,9 @@ Rake::TestTask.new(:test) do |test|
|
|
|
32
32
|
test.verbose = true
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
require 'rcov/rcovtask'
|
|
36
|
-
Rcov::RcovTask.new do |test|
|
|
37
|
-
test.libs << 'test'
|
|
38
|
-
test.pattern = 'test/**/test_*.rb'
|
|
39
|
-
test.verbose = true
|
|
40
|
-
test.rcov_opts << '--exclude "gems/*"'
|
|
41
|
-
end
|
|
42
35
|
|
|
36
|
+
require 'simplecov'
|
|
37
|
+
SimpleCov.start 'rails'
|
|
43
38
|
task :default => :test
|
|
44
39
|
|
|
45
40
|
require 'rdoc/task'
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.3.0
|
data/chime.gemspec
CHANGED
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
+
# stub: chime 0.3.0 ruby lib
|
|
5
6
|
|
|
6
7
|
Gem::Specification.new do |s|
|
|
7
8
|
s.name = "chime"
|
|
8
|
-
s.version = "0.
|
|
9
|
+
s.version = "0.3.0"
|
|
9
10
|
|
|
10
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
12
|
s.authors = ["jonathanamccann"]
|
|
12
|
-
s.date = "2013-11-
|
|
13
|
+
s.date = "2013-11-21"
|
|
13
14
|
s.description = "Text Analysis for Member Based Organizations"
|
|
14
15
|
s.email = "jonathanamccann@gmail.com"
|
|
15
16
|
s.extra_rdoc_files = [
|
|
@@ -42,7 +43,7 @@ Gem::Specification.new do |s|
|
|
|
42
43
|
s.homepage = "http://github.com/jonathanamccann/chime"
|
|
43
44
|
s.licenses = ["MIT"]
|
|
44
45
|
s.require_paths = ["lib"]
|
|
45
|
-
s.rubygems_version = "2.
|
|
46
|
+
s.rubygems_version = "2.1.10"
|
|
46
47
|
s.summary = "Text Analysis for Member Based Organizations"
|
|
47
48
|
|
|
48
49
|
if s.respond_to? :specification_version then
|
|
@@ -53,20 +54,20 @@ Gem::Specification.new do |s|
|
|
|
53
54
|
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
|
54
55
|
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
|
55
56
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
|
|
56
|
-
s.add_development_dependency(%q<
|
|
57
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
|
57
58
|
else
|
|
58
59
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
|
59
60
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
|
60
61
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
|
61
62
|
s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
|
|
62
|
-
s.add_dependency(%q<
|
|
63
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
|
63
64
|
end
|
|
64
65
|
else
|
|
65
66
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
|
66
67
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
|
67
68
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
|
68
69
|
s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
|
|
69
|
-
s.add_dependency(%q<
|
|
70
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
|
70
71
|
end
|
|
71
72
|
end
|
|
72
73
|
|
|
@@ -1558,7 +1558,8 @@ module EmotionBankPhrases
|
|
|
1558
1558
|
"favorite thing about the y would be the opportunities for families" => "Positive",
|
|
1559
1559
|
"i like it so much" => "Positive",
|
|
1560
1560
|
"wonderful staff" => "Positive",
|
|
1561
|
-
"friendly," => "Positive"
|
|
1561
|
+
"friendly," => "Positive",
|
|
1562
|
+
"the y has great group exercise" => "Positive"
|
|
1562
1563
|
}
|
|
1563
1564
|
end
|
|
1564
1565
|
end
|
|
@@ -1730,19 +1730,56 @@ module TermCategories
|
|
|
1730
1730
|
"would think that thats when a lot are offered considering thats what time most people get off work" => "Children's Programs - General",
|
|
1731
1731
|
"wouldn't press on anyone what services to utilize" => "Personal Reasons",
|
|
1732
1732
|
"wouldn't recommend the Y to them because you cant pay just a separate fee for just using the pool" => "Cost/Value - Membership",
|
|
1733
|
-
"
|
|
1734
|
-
"
|
|
1735
|
-
"
|
|
1733
|
+
"y also needs Wifi" => "Facility - General",
|
|
1734
|
+
"y has not changed or updated" => "Facility - General",
|
|
1735
|
+
"y is a comfortable place to excersize" => "Facility - Size",
|
|
1736
1736
|
"yoga class in mat room area wreaks of urine" => "Facility - Cleanliness",
|
|
1737
1737
|
"you get alot for what you pay" => "Cost/Value - Membership",
|
|
1738
|
-
"
|
|
1739
|
-
"
|
|
1738
|
+
"you see the director there all the time" => "Staff - Availability",
|
|
1739
|
+
"your basket of bible verses brighten my day everyday" => "Personal Reasons",
|
|
1740
1740
|
"youth swim classes might be limited in size" => "Children's Programs - Aquatics",
|
|
1741
|
-
"
|
|
1741
|
+
"zumba instructor was amazing" => "Group Ex - Instructor",
|
|
1742
|
+
"I would like to see more les mills classes added" => "Adult Programs",
|
|
1743
|
+
"The Y has great group exercise" => "Group EX (Variety)",
|
|
1744
|
+
"aerobics areas are too small" => "Facility (Size)",
|
|
1745
|
+
"there are amenities that other Ys have that this Y is lacking" => "Facility (General)",
|
|
1746
|
+
"Many times all machines are in use" => "Facility (Size)",
|
|
1747
|
+
"the most welcoming" => "Staff (Demeanor)",
|
|
1748
|
+
"enjoy the atmosphere" => "Atmosphere (Feeling/Safety)",
|
|
1749
|
+
"our grandchildren participate in" => "Children's Programs (General)",
|
|
1750
|
+
"class for years" => "Group EX (Instructor)",
|
|
1751
|
+
"time for just adults" => "Facility (Hours)",
|
|
1752
|
+
"Parking" => "Facility (General)",
|
|
1753
|
+
"classes starting late" => "Group EX (Schedule)",
|
|
1754
|
+
"Love this place" => "Facility (General)",
|
|
1755
|
+
"variety of class" => "Group EX (Variety)",
|
|
1756
|
+
"great programs" => "Adult Programs",
|
|
1757
|
+
"staff" => "Staff (Demeanor)",
|
|
1758
|
+
"really love that place" => "Facility (General)",
|
|
1759
|
+
"price of your membership" => "Cost/Value (Membership)",
|
|
1760
|
+
"You have good facilities" => "Facility (General)",
|
|
1761
|
+
"very good employee" => "Staff (Demeanor)",
|
|
1762
|
+
"Great kids programs" => "Children's Programs (General)",
|
|
1763
|
+
"gym equipment" => "Equipment (General)",
|
|
1764
|
+
"environemnt" => "Atmosphere (Feeling/Safety)",
|
|
1765
|
+
"Everything is just ok" => "Facility (General)",
|
|
1766
|
+
"The pricing is" => "Cost/Value (Membership)",
|
|
1767
|
+
"helpful staff" => "Staff (Demeanor)",
|
|
1768
|
+
"Family place" => "Atmosphere (Feeling/Safety)",
|
|
1769
|
+
"Programs should be free" => "Cost/Value (Programs)",
|
|
1770
|
+
"programs are overpriced" => "Cost/Value (Programs)",
|
|
1771
|
+
"I don't like the new layout" => "Facility (General)",
|
|
1772
|
+
"fun place for kidz" => "Atmosphere (Feeling/Safety)",
|
|
1773
|
+
"praise your benefits" => "Facility (General)",
|
|
1774
|
+
"I love that the Y serves all ages" => "Personal Reasons",
|
|
1775
|
+
"children are not allowed" => "Facility (General)",
|
|
1776
|
+
"Pool" => "Aquatics (General)",
|
|
1777
|
+
"good facilit" => "Facility (General)"
|
|
1778
|
+
|
|
1742
1779
|
}
|
|
1743
1780
|
end
|
|
1744
1781
|
end
|
|
1745
|
-
|
|
1782
|
+
=begin
|
|
1746
1783
|
|
|
1747
1784
|
"Adaptive Accessibility"
|
|
1748
1785
|
|
|
@@ -1756,6 +1793,8 @@ module TermCategories
|
|
|
1756
1793
|
|
|
1757
1794
|
"Adult Programs"
|
|
1758
1795
|
|
|
1796
|
+
"Equipment (General)"
|
|
1797
|
+
|
|
1759
1798
|
"Equipment (Weight Machines)"
|
|
1760
1799
|
|
|
1761
1800
|
"Equipment (Free Weights)"
|
|
@@ -1808,4 +1847,5 @@ module TermCategories
|
|
|
1808
1847
|
|
|
1809
1848
|
"Silver Sneakers"
|
|
1810
1849
|
|
|
1811
|
-
"Personal Training"
|
|
1850
|
+
"Personal Training"
|
|
1851
|
+
=end
|
data/lib/chime.rb
CHANGED
|
@@ -33,7 +33,7 @@ module Chime
|
|
|
33
33
|
|
|
34
34
|
#This method works off of phrases instead of just words
|
|
35
35
|
def self.category_phrases(array)
|
|
36
|
-
array.map{|e| TermCategories.get_term_categories.find(proc{[nil,"Undefined"]}){|k,v| e.downcase.include? k}.last}
|
|
36
|
+
array.map{|e| TermCategories.get_term_categories.find(proc{[nil,"Undefined"]}){|k,v| e.downcase.include? k.downcase}.last}
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
|
metadata
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chime
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- jonathanamccann
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-11-
|
|
11
|
+
date: 2013-11-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: shoulda
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - '>='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '0'
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - '>='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
@@ -67,19 +67,19 @@ dependencies:
|
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: 1.8.7
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
70
|
+
name: simplecov
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- - '
|
|
73
|
+
- - '>='
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 0
|
|
75
|
+
version: '0'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- - '
|
|
80
|
+
- - '>='
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 0
|
|
82
|
+
version: '0'
|
|
83
83
|
description: Text Analysis for Member Based Organizations
|
|
84
84
|
email: jonathanamccann@gmail.com
|
|
85
85
|
executables: []
|
|
@@ -119,17 +119,17 @@ require_paths:
|
|
|
119
119
|
- lib
|
|
120
120
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
|
-
- -
|
|
122
|
+
- - '>='
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
124
|
version: '0'
|
|
125
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
requirements:
|
|
127
|
-
- -
|
|
127
|
+
- - '>='
|
|
128
128
|
- !ruby/object:Gem::Version
|
|
129
129
|
version: '0'
|
|
130
130
|
requirements: []
|
|
131
131
|
rubyforge_project:
|
|
132
|
-
rubygems_version: 2.
|
|
132
|
+
rubygems_version: 2.1.10
|
|
133
133
|
signing_key:
|
|
134
134
|
specification_version: 4
|
|
135
135
|
summary: Text Analysis for Member Based Organizations
|