standard-procedure-signal 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f6832d51eb537fe7c3fb46ffeddf42c0cace64f77a2caae6499ee85688caf55
4
- data.tar.gz: be9c55a822d3d053d176f57b51e21b7e0de1ad8a3817257b096ff9f6b228d82a
3
+ metadata.gz: 616cd930586c5ccb4f1c765c62a7263d45905f5f28cbfe9eaa54aca3870d0b09
4
+ data.tar.gz: 1fdcdfd26133fb21658a094b2375d7c033e11a232ca7ce0428044303c02150ad
5
5
  SHA512:
6
- metadata.gz: bedb9d1523ce359dfafe85fff3865055f48aeb4e8def1e585ba63b7d75de1bdd62e8107b26b2e7277e997f1b7bbf1d5fb41c78f505a5af051e3ffd408afba3a7
7
- data.tar.gz: dabbde43de2d4b1a62da7bb7b389a8dcb0b3c8c27136da3cc8f3a0b316fa5ddab4592c87cbb18cf36d3b7160b48fe58bcfc4e3889b747f5181feb33d5ed5fe17
6
+ metadata.gz: 9e3bb22024d2892fb4201abc46632ceae09e3017247efd9b71658ed6b09cd28ec833761a59ea19f3ab5666a25f722701c64985b1eca37eb9ff89bf720c6b4ac5
7
+ data.tar.gz: ba0e2b682ba308f69cab17e31e85cff00370b7c53e118c56ca6a7d270f603b70e08b2d2c1f7f458385128909dac2eec005420631f3c7c81a8dc6c40e455eb105
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.3.0] - 2023-09-14
2
+
3
+ - Added opal-rspec to ensure that everything works OK when running in a browser context
4
+
1
5
  ## [0.2.0] - 2023-09-14
2
6
 
3
7
  - Improved the API by extending the ruby Signal module
data/README.md CHANGED
@@ -191,6 +191,15 @@ Then
191
191
 
192
192
  require "standard_procedure/signal"
193
193
 
194
+ ## Tests
195
+
196
+ The gem uses rspec for testing.
197
+
198
+ `bundle exec rake spec` will run the specs in the traditional ruby environment.
199
+
200
+ `bundle exec rake opal_spec` will run the specs in Opal.
201
+ This starts a web-server, listening on port 3000. To view the test results, navigate to http://localhost:3000/
202
+
194
203
  ## Contributing
195
204
 
196
205
  Bug reports and pull requests are welcome on GitHub at https://github.com/standard-procedure/standard-procedure-signal. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/standard-procedure/standard-procedure-signal/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -8,3 +8,17 @@ RSpec::Core::RakeTask.new(:spec)
8
8
  require "standard/rake"
9
9
 
10
10
  task default: %i[spec standard]
11
+
12
+ require "opal"
13
+ Opal.append_path "lib"
14
+ require "opal/rspec/rake_task"
15
+ Opal::Config.source_map_enabled = true
16
+ Opal::Config.esm = false
17
+
18
+ Opal::RSpec::RakeTask.new(:opal_spec) do |server, task|
19
+ server.append_path "lib"
20
+ task.default_path = "spec"
21
+ task.requires = ["spec_helper"]
22
+ task.files = FileList["spec/**/*_spec.rb"]
23
+ task.runner = :server
24
+ end
@@ -0,0 +1 @@
1
+ 1bb814ae125df8b61cfff43cc7492c05d1dee3e23c6fe644c9a3d733b5ad291a36dac3c0a6e788669de64a83ba8499e52df73a8a0bf098eaa06f12eff1e94d1d
@@ -0,0 +1 @@
1
+ 4b52ba8db1ffe69a01d4ea9abcdb1dfe63f37b18a4cad89c347b0919b90c32038bd170266be1a5440f993a73d09109216354d97bff3e21f05b42019f8f9da441
@@ -1,3 +1,9 @@
1
- module Signal
2
- extend StandardProcedure::Signal
1
+ if RUBY_ENGINE == "opal"
2
+ class Signal
3
+ extend StandardProcedure::Signal
4
+ end
5
+ else
6
+ module Signal
7
+ extend StandardProcedure::Signal
8
+ end
3
9
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module StandardProcedure
4
4
  module Signal
5
- VERSION = "0.2.0"
5
+ VERSION = "0.3.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard-procedure-signal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rahoul Baruah
@@ -33,6 +33,8 @@ files:
33
33
  - checksums/standard-procedure-signal-0.1.2.1.gem.sha512
34
34
  - checksums/standard-procedure-signal-0.1.2.gem.sha512
35
35
  - checksums/standard-procedure-signal-0.2.0.gem.sha512
36
+ - checksums/standard-procedure-signal-0.2.1.gem.sha512
37
+ - checksums/standard-procedure-signal-0.3.0.gem.sha512
36
38
  - lib/standard_procedure/signal.rb
37
39
  - lib/standard_procedure/signal/attribute.rb
38
40
  - lib/standard_procedure/signal/attribute/array.rb