en14960 0.1.6 → 0.1.7

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: c67498bb729209fdbcc4ef698e79f5c188a315d012a27f0daf7031c5b28ff670
4
- data.tar.gz: f66236adac1a34aca5acd16ca8224d53d54d7395c733a959ba2331244b7aa1d0
3
+ metadata.gz: 77350add62fa01df2e3e0ab0df56c7d381e9d2e6c6390cfbe85f20dfbd5a1abb
4
+ data.tar.gz: 8c444b24960123d8bf03e25a907dfe02e3b2bb7324888538df4a84025d940aa9
5
5
  SHA512:
6
- metadata.gz: ab09615f5545d20fabc178f2da0699a9feea2f0631ceef4d257568415524940ecdee9fb18b83dc716daa39147fe8dfa43db2161c98893e87c39c2d21669b00a1
7
- data.tar.gz: c55328b4ff2250ab7d330ac3672c501417e3c05444bc0a93d2262113cef3b7b5a0e598b9cf1e4667f7af5e85a550e3cc4c5a4d5d0014b074ae8d85df79d44971
6
+ metadata.gz: 86b5adab124bc6a65a39f0558787b06550a3f947fef0abd867ea48bb8726ba5f103f75123311cfecdd7ef4bfca94c2312929adf89308f1a4b8be79a6a389a7d9
7
+ data.tar.gz: '05404519c9063c05a945dce735532ee4e5feaa767325ddaad00bb94851d1d5715a19349fd5970eec9974be8d52009b4b728f9d5eeee4c6efa18464ee56c9f8d6'
data/README.md CHANGED
@@ -27,6 +27,27 @@ Or install it yourself as:
27
27
 
28
28
  $ gem install en14960
29
29
 
30
+ ## Live JS Ruby Environment
31
+
32
+ You can run this Gem on [RubyRuby.dev](https://runruby.dev) - just create a Gemfile with these contents:
33
+
34
+ ```ruby
35
+ source "https://rubygems.org"
36
+ gem "en14960"
37
+ ```
38
+
39
+ And then you can test the calculations like:
40
+
41
+ ```ruby
42
+ result = EN14960.calculate_anchors(
43
+ length: 5,
44
+ width: 4,
45
+ height: 3
46
+ )
47
+ puts result.value # => 8
48
+ puts result.breakdown
49
+ ```
50
+
30
51
  ## Usage
31
52
 
32
53
  ### Anchor Calculations
@@ -165,24 +186,6 @@ After checking out the repo, run `bundle install` to install dependencies. Then,
165
186
 
166
187
  To install this gem onto your local machine, run `bundle exec rake install`.
167
188
 
168
- ## Releasing
169
-
170
- This gem uses GitHub Actions for automated releases to RubyGems.
171
-
172
- To release a new version:
173
-
174
- 1. Update the version number in `lib/en14960/version.rb`
175
- 2. Commit the change: `git commit -am "Bump version to x.y.z"`
176
- 3. Create a tag: `git tag -a vx.y.z -m "Release version x.y.z"`
177
- 4. Push the tag: `git push origin vx.y.z`
178
-
179
- The GitHub Action will automatically:
180
- - Build the gem
181
- - Publish it to RubyGems
182
- - Create a GitHub release with the gem file attached
183
-
184
- **Note**: You need to set up RubyGems authentication in your GitHub repository settings. Add a repository secret named `GEM_HOST_API_KEY` with your RubyGems API key.
185
-
186
189
  ## Contributing
187
190
 
188
191
  Bug reports and pull requests are welcome on GitHub at https://github.com/chobbledotcom/en14960.
data/flake.nix CHANGED
@@ -34,6 +34,7 @@
34
34
  fi
35
35
 
36
36
  echo "Ruby $(ruby --version)"
37
+ git pull
37
38
  '';
38
39
  };
39
40
  }
@@ -66,6 +66,14 @@ module EN14960
66
66
  1800 => 2.0 # 0.5 users per m² for 1.8m height
67
67
  }.freeze
68
68
 
69
+ # User capacity constants - space required per user by height
70
+ USER_CAPACITY_CONSTANTS = {
71
+ space_per_user_1000mm: 1.0, # 1 m² per user for 1.0m height
72
+ space_per_user_1200mm: 1.33, # 1.33 m² per user for 1.2m height
73
+ space_per_user_1500mm: 1.66, # 1.66 m² per user for 1.5m height
74
+ space_per_user_1800mm: 2.0 # 2 m² per user for 1.8m height
75
+ }.freeze
76
+
69
77
  # Material safety standards (EN 14960:2019 & EN 71-3)
70
78
  MATERIAL_STANDARDS = {
71
79
  fabric: {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EN14960
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: en14960
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chobble.com
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-28 00:00:00.000000000 Z
11
+ date: 2025-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler