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 +4 -4
- data/README.md +21 -18
- data/flake.nix +1 -0
- data/lib/en14960/constants.rb +8 -0
- data/lib/en14960/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77350add62fa01df2e3e0ab0df56c7d381e9d2e6c6390cfbe85f20dfbd5a1abb
|
4
|
+
data.tar.gz: 8c444b24960123d8bf03e25a907dfe02e3b2bb7324888538df4a84025d940aa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/en14960/constants.rb
CHANGED
@@ -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: {
|
data/lib/en14960/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2025-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|