kermit 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,11 @@
1
+ ## 1.0.3 (Aug 21, 2012)
2
+
3
+ Bugfixes:
4
+
5
+ - deletes an upset message of log that apperars when a corrupt user was found
6
+ - changes the config.example.yml file, the trackwords was wrong
7
+ - changes the path of the log.txt, it seems like that was pretty problematic if the log folder hasn't been created at the moment of start the app
8
+
1
9
  ## 1.0.2 (Aug 18, 2012)
2
10
 
3
11
  Bugfixes:
data/README.md CHANGED
@@ -8,7 +8,7 @@ It also allows different streams serve under a common way to treat data as a sin
8
8
 
9
9
  ## Intro
10
10
 
11
- kermitpfc-core is based on a series of classes to be used to ensure proper functionality of the social network you want to implement, these classes are Adapter to collect social network statuses, Converter to parse the previous statuses in the USMF model (with their respective classes). To facilitate the publish action of USMF, JSON service is used with the help of the Redis Pub / Sub module (which implements the core, Redis must be installed in server mode).
11
+ Kermitpfc-core is based on a series of classes to be used to ensure proper functionality of the social network you want to implement, these classes are Adapter to collect social network statuses, Converter to parse the previous statuses in the USMF model (with their respective classes). To facilitate the publish action of USMF, JSON service is used with the help of the Redis Pub / Sub module (which implements the core, Redis must be installed in server mode).
12
12
 
13
13
 
14
14
  ## How to use
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -22,9 +22,9 @@ twitter:
22
22
  path: /1/statuses/filter.json
23
23
  track: # [Keywords you want Twitter tracks and filter the Stream (one for each stream)]
24
24
  #specific keyword for each twitter stream
25
- 1: a
25
+ track1: a
26
26
  #another keyword to track
27
- 2: b
27
+ track2: b
28
28
  #Your Twitter username
29
29
  login:
30
30
  #Your Twitter password
@@ -21,11 +21,7 @@ module Logging
21
21
  # solve the problem with path controversia in the log file
22
22
  # @return [Logger] the logger with the correct path of log.txt
23
23
  def self.logger
24
- begin
25
- @logger ||= Logger.new('../log/log.txt','monthly')
26
- rescue
27
- @logger ||= Logger.new('./log/log.txt','monthly')
28
- end
24
+ @logger ||= Logger.new('log.txt','monthly')
29
25
  end
30
26
 
31
27
  end
@@ -50,18 +50,6 @@ class USMF
50
50
  "min_rating" => min_rating,
51
51
  "max_rating" => max_rating
52
52
  }
53
- begin
54
-
55
- unless :user == nil
56
- res["user"] = user.to_hash
57
- end
58
-
59
- rescue
60
-
61
- res["user"] = nil
62
- logger.error("A corrupt user was found")
63
-
64
- end
65
53
 
66
54
  l = []
67
55
 
@@ -89,7 +77,34 @@ class USMF
89
77
 
90
78
  res["to_users"] = tu
91
79
 
92
- end
80
+ end
81
+ begin
82
+
83
+ unless :user == nil
84
+ res["user"] = user.to_hash
85
+ end
86
+
87
+ rescue
88
+
89
+ res["user"] = nil
90
+ #Sometimes a corrupt user was found
91
+
92
+ res = nil
93
+
94
+ end
95
+
96
+ begin
97
+
98
+ unless :user == nil
99
+ res["user"] = user.to_hash
100
+ end
101
+
102
+ rescue
103
+
104
+ #Sometimes a corrupt user was found
105
+ res = nil
106
+
107
+ end
93
108
 
94
109
  res
95
110
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kermit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-18 00:00:00.000000000 +02:00
12
+ date: 2012-08-21 00:00:00.000000000 +02:00
13
13
  default_executable: kermit
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
17
- requirement: &73473890 !ruby/object:Gem::Requirement
17
+ requirement: &70358160 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 0.9.2.2
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *73473890
25
+ version_requirements: *70358160
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: em-http-request
28
- requirement: &73473080 !ruby/object:Gem::Requirement
28
+ requirement: &70357480 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - =
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 0.2.7
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *73473080
36
+ version_requirements: *70357480
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: em-websocket
39
- requirement: &73470900 !ruby/object:Gem::Requirement
39
+ requirement: &70355130 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 0.3.8
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *73470900
47
+ version_requirements: *70355130
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: redis
50
- requirement: &73436220 !ruby/object:Gem::Requirement
50
+ requirement: &70325240 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 3.0.1
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *73436220
58
+ version_requirements: *70325240
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: json
61
- requirement: &73435450 !ruby/object:Gem::Requirement
61
+ requirement: &70324470 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 1.7.3
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *73435450
69
+ version_requirements: *70324470
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: twitter-stream
72
- requirement: &73434940 !ruby/object:Gem::Requirement
72
+ requirement: &70323810 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: 0.1.16
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *73434940
80
+ version_requirements: *70323810
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: settingslogic
83
- requirement: &73434300 !ruby/object:Gem::Requirement
83
+ requirement: &70322860 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ~>
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: 2.0.8
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *73434300
91
+ version_requirements: *70322860
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: commander
94
- requirement: &73431190 !ruby/object:Gem::Requirement
94
+ requirement: &70319680 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ~>
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: 4.1.2
100
100
  type: :runtime
101
101
  prerelease: false
102
- version_requirements: *73431190
102
+ version_requirements: *70319680
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: rdoc
105
- requirement: &73430020 !ruby/object:Gem::Requirement
105
+ requirement: &70318720 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ~>
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: '3.12'
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *73430020
113
+ version_requirements: *70318720
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: jeweler
116
- requirement: &73397690 !ruby/object:Gem::Requirement
116
+ requirement: &70284990 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ~>
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: 1.8.4
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *73397690
124
+ version_requirements: *70284990
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
- requirement: &73396310 !ruby/object:Gem::Requirement
127
+ requirement: &70284080 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ~>
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: 2.11.0
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *73396310
135
+ version_requirements: *70284080
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: yard
138
- requirement: &73395390 !ruby/object:Gem::Requirement
138
+ requirement: &70283050 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ~>
@@ -143,7 +143,7 @@ dependencies:
143
143
  version: 0.8.2.1
144
144
  type: :development
145
145
  prerelease: false
146
- version_requirements: *73395390
146
+ version_requirements: *70283050
147
147
  description: Allows to retrieve info from diferent Data Streams for data mining purpouses
148
148
  email: daniel.machado.fernandez@gmail.com
149
149
  executables:
@@ -238,7 +238,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
238
238
  version: '0'
239
239
  segments:
240
240
  - 0
241
- hash: 585196637
241
+ hash: 530269037
242
242
  required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  none: false
244
244
  requirements: