en14960 0.1.6 → 0.1.8

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: 9a499cbd58c45486a20fa936b0b24993b8b3a8725ddf887ba5cc6c60f1acde44
4
+ data.tar.gz: 0f43ff3d54951b01bbb9bf129886c5075e1ff89948b28daf7184b44eb319dc18
5
5
  SHA512:
6
- metadata.gz: ab09615f5545d20fabc178f2da0699a9feea2f0631ceef4d257568415524940ecdee9fb18b83dc716daa39147fe8dfa43db2161c98893e87c39c2d21669b00a1
7
- data.tar.gz: c55328b4ff2250ab7d330ac3672c501417e3c05444bc0a93d2262113cef3b7b5a0e598b9cf1e4667f7af5e85a550e3cc4c5a4d5d0014b074ae8d85df79d44971
6
+ metadata.gz: ceabc28647ef710885f3782080b965d6ac84f8b2e2acccdd099a5b59f1c62945d23ddad5aa99ada254cf6cb973d9a0a235beba1adb8e502d5200eabf7fa56620
7
+ data.tar.gz: 30d7d252d232df2ecd9d878608a810d9568389781ffd00a24d5ed73449c585ad3213746de17dac741e1b37a72ada20d655e15aa34ecc7d53c026be9270ea8dc0
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
@@ -42,7 +63,7 @@ puts result.breakdown
42
63
  # ["Sides area", "5m (L) × 3m (H) = 15m²"],
43
64
  # ["Front & back anchor counts", "((12.0 × 114.0 * 1.5) ÷ 1600.0 = 2"],
44
65
  # ["Left & right anchor counts", "((15.0 × 114.0 * 1.5) ÷ 1600.0 = 2"],
45
- # ["Required anchors", "(2 + 2) × 2 = 8"]
66
+ # ["Calculated total anchors", "(2 + 2) × 2 = 8"]
46
67
  # ]
47
68
  ```
48
69
 
@@ -119,8 +140,8 @@ You can also use the calculator modules directly:
119
140
  ```ruby
120
141
  # Using AnchorCalculator directly
121
142
  result = EN14960::Calculators::AnchorCalculator.calculate(
122
- length: 10,
123
- width: 8,
143
+ length: 10,
144
+ width: 8,
124
145
  height: 4
125
146
  )
126
147
 
@@ -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
  }
@@ -52,7 +52,7 @@ module EN14960
52
52
  ["Sides area", "#{length}m (L) × #{height}m (H) = #{sides_area}m²"],
53
53
  ["Front & back anchor counts", formula_front],
54
54
  ["Left & right anchor counts", formula_sides],
55
- ["Required anchors", "(#{required_front} + #{required_sides}) × 2 = #{calculated_total}"]
55
+ ["Calculated total anchors", "(#{required_front} + #{required_sides}) × 2 = #{calculated_total}"]
56
56
  ]
57
57
 
58
58
  # Add minimum requirement note if applicable
@@ -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.8"
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.8
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-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler