hyper-operation 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/examples/chat-app/Gemfile.lock +1 -1
- data/examples/five-letter-word-game/Gemfile.lock +1 -1
- data/examples/five-letter-word-game/app/hyperloop/operations/ops.rb +2 -2
- data/examples/five-letter-word-game/app/hyperloop/stores/store.rb +1 -1
- data/lib/hyper-operation.rb +1 -1
- data/lib/hyper-operation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 344a08b1fd7ca7f8a79f125a61a65efd0b3aba81
|
4
|
+
data.tar.gz: b6117c9e5341d27179eba0ce900b0f297cf0a0d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d548bd54f1af9565e4ecd786d754c2206964d6bbcded8a628b4b4e6fdd71b440abb7c2e8f84bf3996edcf212e056b2f5a786236a53f85c523d80dc2daaeed617
|
7
|
+
data.tar.gz: 92f1934159ab8cc398b3dea11640cacbae56f2f8b92727606e844352b9295a5843ec663399eb76f1ec78149c390ef65630ca5c3fd29d5e7076917aa8b779f8f8
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
hyper-operation (0.1
|
4
|
+
hyper-operation (0.5.1)
|
5
5
|
activerecord (>= 0.3.0)
|
6
6
|
hyper-component (>= 0.12.2)
|
7
7
|
hyperloop-config (>= 0.9.2)
|
@@ -105,12 +105,12 @@ GEM
|
|
105
105
|
hike (1.2.3)
|
106
106
|
http_parser.rb (0.6.0)
|
107
107
|
httpclient (2.8.3)
|
108
|
-
hyper-component (0.12.
|
109
|
-
hyper-react (>= 0.12.
|
108
|
+
hyper-component (0.12.3)
|
109
|
+
hyper-react (>= 0.12.3)
|
110
110
|
hyperloop-config (>= 0.9.2)
|
111
111
|
opal-rails (~> 0.9.0)
|
112
112
|
react-rails (< 1.10.0)
|
113
|
-
hyper-react (0.12.
|
113
|
+
hyper-react (0.12.3)
|
114
114
|
hyper-store (>= 0.2.1)
|
115
115
|
hyperloop-config (>= 0.9.2)
|
116
116
|
opal (>= 0.8.0)
|
@@ -131,7 +131,7 @@ GEM
|
|
131
131
|
opal
|
132
132
|
i18n (0.8.1)
|
133
133
|
ice_nine (0.11.2)
|
134
|
-
jquery-rails (4.
|
134
|
+
jquery-rails (4.3.1)
|
135
135
|
rails-dom-testing (>= 1, < 3)
|
136
136
|
railties (>= 4.2.0)
|
137
137
|
thor (>= 0.14, < 2.0)
|
@@ -151,7 +151,7 @@ GEM
|
|
151
151
|
mutations (0.8.1)
|
152
152
|
activesupport
|
153
153
|
nio4r (2.0.0)
|
154
|
-
nokogiri (1.7.
|
154
|
+
nokogiri (1.7.1)
|
155
155
|
mini_portile2 (~> 2.1.0)
|
156
156
|
opal (0.10.3)
|
157
157
|
hike (~> 1.2)
|
@@ -281,7 +281,7 @@ GEM
|
|
281
281
|
rack (>= 1, < 3)
|
282
282
|
thor (0.19.4)
|
283
283
|
thread_safe (0.3.6)
|
284
|
-
tilt (2.0.
|
284
|
+
tilt (2.0.7)
|
285
285
|
timecop (0.8.1)
|
286
286
|
tzinfo (1.2.2)
|
287
287
|
thread_safe (~> 0.1)
|
@@ -50,7 +50,7 @@ module Ops
|
|
50
50
|
# check words for validity
|
51
51
|
|
52
52
|
def five_unique_letters
|
53
|
-
return true if params.word.split('').uniq.join =~ /^[a-zA-Z]{5}$/
|
53
|
+
return true if params.word.downcase.split('').uniq.join =~ /^[a-zA-Z]{5}$/
|
54
54
|
abort "words and guesses must have 5 different letters"
|
55
55
|
end
|
56
56
|
|
@@ -58,7 +58,7 @@ module Ops
|
|
58
58
|
|
59
59
|
def check_clue
|
60
60
|
params.true_count =
|
61
|
-
(Set.new(params.their_word.split('')) & params.my_word.split('')).count
|
61
|
+
(Set.new(params.their_word.downcase.split('')) & params.my_word.downcase.split('')).count
|
62
62
|
end
|
63
63
|
|
64
64
|
# grab the ids from the two players
|
@@ -112,7 +112,7 @@ class Store < Hyperloop::Store
|
|
112
112
|
receives Ops::YouWin do |params|
|
113
113
|
puts "receiving Ops::YouWin(#{params})"
|
114
114
|
mutate.winner params.other_player
|
115
|
-
mutate.message params.message
|
115
|
+
mutate.message[my_id] = params.message
|
116
116
|
end
|
117
117
|
|
118
118
|
receives Ops::PlayAgain, :setup
|
data/lib/hyper-operation.rb
CHANGED
@@ -52,7 +52,7 @@ else
|
|
52
52
|
require 'hyper-operation/railway/validations'
|
53
53
|
require 'hyper-operation/transport/hyperloop_controller'
|
54
54
|
require 'hyper-operation/server_op'
|
55
|
-
Opal.use_gem 'mutations'
|
55
|
+
Opal.use_gem 'mutations', false
|
56
56
|
Opal.append_path File.expand_path('../sources/', __FILE__).untaint
|
57
57
|
Opal.append_path File.expand_path('../', __FILE__).untaint
|
58
58
|
Opal.append_path File.expand_path('../../vendor', __FILE__).untaint
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyper-operation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- catmando
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mutations
|