hyper-operation 0.5.0 → 0.5.1

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: 80b83a4beab429639a9f927f1cc6e805110d1c55
4
- data.tar.gz: 7a7a984505e2fd86a66c0decd841c1519acc2de3
3
+ metadata.gz: 344a08b1fd7ca7f8a79f125a61a65efd0b3aba81
4
+ data.tar.gz: b6117c9e5341d27179eba0ce900b0f297cf0a0d4
5
5
  SHA512:
6
- metadata.gz: 2a41d6614df0f291c77c5d4fbb46ff85a6ea6cbcfc67893eb0529c9c13eee07402980ec2573351b5a87a81fb885dccd3d1ba9b825a633867f20ef2875ae68dc7
7
- data.tar.gz: 067a0db897dbc9e7cdc4494314e13b05d44ed2e3c00a8630f7c2e0d48a31cd706e81a2c03afdc87ad5ccef29c54e25617c6b2fe56b61850d5978bfebd1286b04
6
+ metadata.gz: d548bd54f1af9565e4ecd786d754c2206964d6bbcded8a628b4b4e6fdd71b440abb7c2e8f84bf3996edcf212e056b2f5a786236a53f85c523d80dc2daaeed617
7
+ data.tar.gz: 92f1934159ab8cc398b3dea11640cacbae56f2f8b92727606e844352b9295a5843ec663399eb76f1ec78149c390ef65630ca5c3fd29d5e7076917aa8b779f8f8
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hyper-operation (0.1.0)
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.2)
109
- hyper-react (>= 0.12.0)
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.2)
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.2.2)
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.0.1)
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.6)
284
+ tilt (2.0.7)
285
285
  timecop (0.8.1)
286
286
  tzinfo (1.2.2)
287
287
  thread_safe (~> 0.1)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- hyper-operation (0.1.0)
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)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- hyper-operation (0.1.0)
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)
@@ -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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Hyperloop
2
2
  class Operation
3
- VERSION = '0.5.0'
3
+ VERSION = '0.5.1'
4
4
  end
5
5
  end
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.0
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-18 00:00:00.000000000 Z
11
+ date: 2017-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mutations