clingfilm 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +84 -75
- data/clingfilm.gemspec +3 -3
- data/lib/clingfilm/messaging_wrapper.rb +4 -4
- data/spec/clingfilm/messaging_wrapper_spec.rb +4 -4
- data/spec/support/logging_helper.rb +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODdlMTFjZDc4ZjRmNTNjZWVjZThhNTQ5OGM2MjY2MTEwMTM3NDc3Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDU1ODc0YTgzMTIwZjAzNzUzMzA5NTQ3ZDI5MGY0ZjUxMGViYWU4Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTg2ZDAwMzU4YTVmNmEwNjUwZTcxNThjNWIxMzgyYzMwOTY5N2VjNzIyMTQw
|
10
|
+
NWI3N2YwZGZkNDNmZGE0Mjg3N2FlOTFlMTQ2MjY0OTM1NTBiMmY5NWEyNmQ2
|
11
|
+
NzU3MTk1NDc3ZDI4ZWVkMGEzMmFmZGM1NTE4MWU4ZmFiZDY3YTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWYzNmZhYjMwZjhmMDYzN2YwNmFhYWUwMDFmNmE0NmNlZmFiYTExYzY1Yjg4
|
14
|
+
MzQ4YWI3MmY3ZWU1NjdhNzA5YzgzMTM4NjM3ZmI0NTQ4N2NiYjhhMzY4MDk3
|
15
|
+
Yzg4ODRjMzE2OWFjZDJmMjRmYzU0MGI3ODNhMThjMjJkMzA1ODQ=
|
data/Gemfile.lock
CHANGED
@@ -1,98 +1,104 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activesupport (4.
|
5
|
-
i18n (~> 0.6, >= 0.6.
|
6
|
-
|
7
|
-
|
4
|
+
activesupport (4.1.0)
|
5
|
+
i18n (~> 0.6, >= 0.6.9)
|
6
|
+
json (~> 1.7, >= 1.7.7)
|
7
|
+
minitest (~> 5.1)
|
8
8
|
thread_safe (~> 0.1)
|
9
|
-
tzinfo (~>
|
10
|
-
arrayfields (4.9.
|
11
|
-
atomic (1.1.14)
|
9
|
+
tzinfo (~> 1.1)
|
10
|
+
arrayfields (4.9.2)
|
12
11
|
awesome_print (1.2.0)
|
13
|
-
|
14
|
-
cane (2.6.0)
|
12
|
+
cane (2.6.1)
|
15
13
|
parallel
|
16
14
|
celluloid (0.15.2)
|
17
15
|
timers (~> 1.1.0)
|
16
|
+
celluloid-io (0.15.0)
|
17
|
+
celluloid (>= 0.15.0)
|
18
|
+
nio4r (>= 0.5.0)
|
18
19
|
chronic (0.10.2)
|
19
|
-
churn (0.0.
|
20
|
+
churn (0.0.35)
|
20
21
|
chronic (>= 0.2.3)
|
21
22
|
hirb
|
22
23
|
json_pure
|
23
24
|
main
|
25
|
+
rest-client (>= 1.6.0)
|
24
26
|
ruby_parser (~> 3.0)
|
25
27
|
sexp_processor (~> 4.1)
|
26
|
-
code_analyzer (0.4.
|
28
|
+
code_analyzer (0.4.5)
|
27
29
|
sexp_processor
|
28
|
-
code_metrics (0.1.
|
29
|
-
coderay (1.0
|
30
|
+
code_metrics (0.1.3)
|
31
|
+
coderay (1.1.0)
|
30
32
|
colored (1.2)
|
31
|
-
diff-lcs (1.2.
|
33
|
+
diff-lcs (1.2.5)
|
34
|
+
docile (1.1.3)
|
32
35
|
erubis (2.7.0)
|
33
|
-
fattr (2.2.
|
34
|
-
ffi (1.9.
|
36
|
+
fattr (2.2.2)
|
37
|
+
ffi (1.9.3)
|
35
38
|
flay (2.4.0)
|
36
39
|
ruby_parser (~> 3.0)
|
37
40
|
sexp_processor (~> 4.0)
|
38
|
-
flog (4.
|
41
|
+
flog (4.2.0)
|
39
42
|
ruby_parser (~> 3.1, > 3.1.0)
|
40
|
-
sexp_processor (~> 4.
|
43
|
+
sexp_processor (~> 4.4)
|
41
44
|
formatador (0.2.4)
|
42
|
-
guard (
|
45
|
+
guard (2.6.0)
|
43
46
|
formatador (>= 0.2.4)
|
44
|
-
listen (~>
|
45
|
-
lumberjack (
|
46
|
-
pry (>= 0.9.
|
47
|
-
thor (>= 0.
|
48
|
-
guard-bundler (
|
47
|
+
listen (~> 2.7)
|
48
|
+
lumberjack (~> 1.0)
|
49
|
+
pry (>= 0.9.12)
|
50
|
+
thor (>= 0.18.1)
|
51
|
+
guard-bundler (2.0.0)
|
49
52
|
bundler (~> 1.0)
|
50
|
-
guard (~>
|
51
|
-
guard-rspec (
|
52
|
-
guard (
|
53
|
-
rspec (
|
53
|
+
guard (~> 2.2)
|
54
|
+
guard-rspec (4.2.8)
|
55
|
+
guard (~> 2.1)
|
56
|
+
rspec (>= 2.14, < 4.0)
|
54
57
|
hirb (0.7.1)
|
55
|
-
i18n (0.6.
|
56
|
-
|
57
|
-
|
58
|
+
i18n (0.6.9)
|
59
|
+
json (1.8.1)
|
60
|
+
json_pure (1.8.1)
|
61
|
+
listen (2.7.1)
|
62
|
+
celluloid (>= 0.15.2)
|
63
|
+
celluloid-io (>= 0.15.0)
|
58
64
|
rb-fsevent (>= 0.9.3)
|
59
65
|
rb-inotify (>= 0.9)
|
60
|
-
rb-kqueue (>= 0.2)
|
61
66
|
little-plugger (1.1.3)
|
62
|
-
logging (1.8.
|
67
|
+
logging (1.8.2)
|
63
68
|
little-plugger (>= 1.1.3)
|
64
|
-
multi_json (>= 1.
|
65
|
-
lumberjack (1.0.
|
66
|
-
main (
|
69
|
+
multi_json (>= 1.8.4)
|
70
|
+
lumberjack (1.0.5)
|
71
|
+
main (6.0.0)
|
67
72
|
arrayfields (>= 4.7.4)
|
68
73
|
chronic (>= 0.6.2)
|
69
74
|
fattr (>= 2.2.0)
|
70
75
|
map (>= 5.1.0)
|
71
|
-
map (6.5.
|
76
|
+
map (6.5.3)
|
72
77
|
method_source (0.8.2)
|
73
|
-
metric_fu (4.
|
74
|
-
bluff
|
78
|
+
metric_fu (4.10.0)
|
75
79
|
cane (~> 2.5, >= 2.5.2)
|
76
|
-
churn (~> 0.0.
|
80
|
+
churn (~> 0.0.35)
|
77
81
|
code_metrics (~> 0.1)
|
78
82
|
coderay
|
79
83
|
flay (~> 2.1, >= 2.0.1)
|
80
84
|
flog (~> 4.1, >= 4.1.1)
|
81
|
-
metric_fu-Saikuro (
|
85
|
+
metric_fu-Saikuro (~> 1.1, >= 1.1.3)
|
82
86
|
multi_json
|
83
87
|
rails_best_practices (~> 1.14, >= 1.14.3)
|
84
88
|
redcard
|
85
|
-
reek (~> 1.3, >= 1.3.
|
89
|
+
reek (~> 1.3, >= 1.3.4)
|
86
90
|
roodi (~> 3.1)
|
87
|
-
metric_fu-Saikuro (1.1.
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
91
|
+
metric_fu-Saikuro (1.1.3)
|
92
|
+
mime-types (2.2)
|
93
|
+
minitest (5.3.2)
|
94
|
+
multi_json (1.9.2)
|
95
|
+
nio4r (1.0.0)
|
96
|
+
parallel (1.0.0)
|
97
|
+
pry (0.9.12.6)
|
98
|
+
coderay (~> 1.0)
|
93
99
|
method_source (~> 0.8)
|
94
100
|
slop (~> 3.4)
|
95
|
-
rails_best_practices (1.
|
101
|
+
rails_best_practices (1.15.2)
|
96
102
|
activesupport
|
97
103
|
awesome_print
|
98
104
|
code_analyzer (>= 0.4.3)
|
@@ -101,45 +107,48 @@ GEM
|
|
101
107
|
i18n
|
102
108
|
require_all
|
103
109
|
ruby-progressbar
|
104
|
-
|
105
|
-
|
106
|
-
rb-
|
107
|
-
|
108
|
-
rb-kqueue (0.2.0)
|
110
|
+
rainbow (2.0.0)
|
111
|
+
rake (10.2.2)
|
112
|
+
rb-fsevent (0.9.4)
|
113
|
+
rb-inotify (0.9.3)
|
109
114
|
ffi (>= 0.5.0)
|
110
115
|
redcard (1.1.0)
|
111
|
-
reek (1.3.
|
112
|
-
|
113
|
-
|
116
|
+
reek (1.3.7)
|
117
|
+
rainbow
|
118
|
+
ruby2ruby (~> 2.0.8)
|
119
|
+
ruby_parser (~> 3.3)
|
114
120
|
sexp_processor
|
115
|
-
require_all (1.3.
|
116
|
-
|
121
|
+
require_all (1.3.2)
|
122
|
+
rest-client (1.6.7)
|
123
|
+
mime-types (>= 1.16)
|
124
|
+
roodi (3.3.1)
|
117
125
|
ruby_parser (~> 3.2, >= 3.2.2)
|
118
126
|
rspec (2.14.1)
|
119
127
|
rspec-core (~> 2.14.0)
|
120
128
|
rspec-expectations (~> 2.14.0)
|
121
129
|
rspec-mocks (~> 2.14.0)
|
122
|
-
rspec-core (2.14.
|
123
|
-
rspec-expectations (2.14.
|
130
|
+
rspec-core (2.14.8)
|
131
|
+
rspec-expectations (2.14.5)
|
124
132
|
diff-lcs (>= 1.1.3, < 2.0)
|
125
|
-
rspec-mocks (2.14.
|
126
|
-
ruby-progressbar (1.2
|
127
|
-
ruby2ruby (2.0.
|
133
|
+
rspec-mocks (2.14.6)
|
134
|
+
ruby-progressbar (1.4.2)
|
135
|
+
ruby2ruby (2.0.8)
|
128
136
|
ruby_parser (~> 3.1)
|
129
137
|
sexp_processor (~> 4.0)
|
130
|
-
ruby_parser (3.
|
138
|
+
ruby_parser (3.5.0)
|
131
139
|
sexp_processor (~> 4.1)
|
132
|
-
sexp_processor (4.3
|
133
|
-
simplecov (0.
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
140
|
+
sexp_processor (4.4.3)
|
141
|
+
simplecov (0.8.2)
|
142
|
+
docile (~> 1.1.0)
|
143
|
+
multi_json
|
144
|
+
simplecov-html (~> 0.8.0)
|
145
|
+
simplecov-html (0.8.0)
|
146
|
+
slop (3.5.0)
|
147
|
+
thor (0.19.1)
|
148
|
+
thread_safe (0.3.3)
|
141
149
|
timers (1.1.0)
|
142
|
-
tzinfo (
|
150
|
+
tzinfo (1.1.0)
|
151
|
+
thread_safe (~> 0.1)
|
143
152
|
|
144
153
|
PLATFORMS
|
145
154
|
ruby
|
data/clingfilm.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "clingfilm"
|
7
|
-
spec.version = '0.4.
|
7
|
+
spec.version = '0.4.1'
|
8
8
|
spec.authors = ["Adam Whittingham"]
|
9
9
|
spec.email = ["adam.whittingham@gmail.com"]
|
10
10
|
spec.description = %q{A light and easy way of working concurrently with Ruby, built on top of Celluloid}
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_runtime_dependency "celluloid", ">= 0.14.0"
|
20
|
+
spec.add_runtime_dependency "celluloid", "~> 0.14", ">= 0.14.0"
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
-
spec.add_development_dependency "rake"
|
22
|
+
spec.add_development_dependency "rake", "~> 10"
|
23
23
|
end
|
@@ -20,16 +20,16 @@ module Clingfilm
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def handle_message(channel, message)
|
23
|
-
info
|
24
|
-
debug "<< #{channel} = #{message}"
|
23
|
+
info "#{@content.class} <- #{channel}"
|
24
|
+
debug "#{@content} << #{channel} = #{message}"
|
25
25
|
result = @content.update(message)
|
26
26
|
announce_updated(result) if result
|
27
27
|
end
|
28
28
|
|
29
29
|
def announce_updated message
|
30
30
|
publish(@channel, message)
|
31
|
-
info "-> #{@channel}"
|
32
|
-
debug ">> #{@channel} = #{message}"
|
31
|
+
info "#{@content.class} -> #{@channel}"
|
32
|
+
debug "#{@content} >> #{@channel} = #{message}"
|
33
33
|
end
|
34
34
|
|
35
35
|
def depends_on channel
|
@@ -85,13 +85,13 @@ describe Clingfilm::MessagingWrapper, :celluloid do
|
|
85
85
|
wrapped.stub(update: :output)
|
86
86
|
MessageHelper.new.publish(input_channel, :update)
|
87
87
|
sleep 0.1
|
88
|
-
log_output.should include "INFO
|
88
|
+
log_output.should include "INFO Celluloid : #{wrapped.class} -> #{output_channel}"
|
89
89
|
end
|
90
90
|
|
91
91
|
it 'logs when a message is received' do
|
92
92
|
MessageHelper.new.publish(input_channel, :update)
|
93
93
|
sleep 0.1
|
94
|
-
log_output.should include "INFO
|
94
|
+
log_output.should include "INFO Celluloid : #{wrapped.class} <- #{input_channel}"
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
@@ -99,13 +99,13 @@ describe Clingfilm::MessagingWrapper, :celluloid do
|
|
99
99
|
it 'logs what it announces' do
|
100
100
|
MessageHelper.new.publish(input_channel, :update)
|
101
101
|
sleep 0.1
|
102
|
-
log_output.should include "DEBUG
|
102
|
+
log_output.should include "DEBUG Celluloid : #{wrapped} >> #{output_channel} = true"
|
103
103
|
end
|
104
104
|
|
105
105
|
it 'logs the messages are received' do
|
106
106
|
MessageHelper.new.publish(input_channel,:update)
|
107
107
|
sleep 0.1
|
108
|
-
log_output.should include "DEBUG
|
108
|
+
log_output.should include "DEBUG Celluloid : #{wrapped} << #{input_channel} = update"
|
109
109
|
end
|
110
110
|
end
|
111
111
|
|
metadata
CHANGED
@@ -1,19 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clingfilm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Whittingham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.14'
|
17
20
|
- - ! '>='
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 0.14.0
|
@@ -21,6 +24,9 @@ dependencies:
|
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.14'
|
24
30
|
- - ! '>='
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: 0.14.0
|
@@ -42,16 +48,16 @@ dependencies:
|
|
42
48
|
name: rake
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- -
|
51
|
+
- - ~>
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
53
|
+
version: '10'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
|
-
- -
|
58
|
+
- - ~>
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
60
|
+
version: '10'
|
55
61
|
description: A light and easy way of working concurrently with Ruby, built on top
|
56
62
|
of Celluloid
|
57
63
|
email:
|