standard-procedure-signal 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e2b62bb8e8557f431279fe19f3b4534f89125e5bcef004491c7265b7252b93d
4
- data.tar.gz: 32f1b4faef1393beb8d4fa9a519420bc7f8fa75f4d148ad7c1fb5950a7b97c1b
3
+ metadata.gz: 616cd930586c5ccb4f1c765c62a7263d45905f5f28cbfe9eaa54aca3870d0b09
4
+ data.tar.gz: 1fdcdfd26133fb21658a094b2375d7c033e11a232ca7ce0428044303c02150ad
5
5
  SHA512:
6
- metadata.gz: 32b85c15212935273bbe77459458241b457986f9312abb0ad97be97745796d941d13b60c992d09b9ff041aec96c7bedabf27c56074bd811725b608d0884a42b6
7
- data.tar.gz: c8bd12a00b2e7526fb269e0304f427a26ea223135c26c3f136631006d6451936efccfacbcbd92577eae83a862764227b6a35cc4a839c28ca1e14035d70233859
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
+ 4b52ba8db1ffe69a01d4ea9abcdb1dfe63f37b18a4cad89c347b0919b90c32038bd170266be1a5440f993a73d09109216354d97bff3e21f05b42019f8f9da441
@@ -1,4 +1,4 @@
1
- if defined?(Signal) && Signal.is_a?(Class)
1
+ if RUBY_ENGINE == "opal"
2
2
  class Signal
3
3
  extend StandardProcedure::Signal
4
4
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module StandardProcedure
4
4
  module Signal
5
- VERSION = "0.2.1"
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.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rahoul Baruah
@@ -34,6 +34,7 @@ files:
34
34
  - checksums/standard-procedure-signal-0.1.2.gem.sha512
35
35
  - checksums/standard-procedure-signal-0.2.0.gem.sha512
36
36
  - checksums/standard-procedure-signal-0.2.1.gem.sha512
37
+ - checksums/standard-procedure-signal-0.3.0.gem.sha512
37
38
  - lib/standard_procedure/signal.rb
38
39
  - lib/standard_procedure/signal/attribute.rb
39
40
  - lib/standard_procedure/signal/attribute/array.rb