wag 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +17 -0
- data/Gemfile.lock +1 -1
- data/lib/wag/f32_instructions.rb +1 -1
- data/lib/wag/f64_instructions.rb +1 -1
- data/lib/wag/version.rb +1 -1
- data/wag.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79b8ea897640c1880eba12958af7e580b0fe7e416b8eced9e156ff433f872105
|
4
|
+
data.tar.gz: 7d3b0320620954bb403c8e831ee0eac3a897df73eea8d42ef85d118e89e42864
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c3a88e272fb1f177f4ed2d9aeadc9cb0265d9e88c4fb04eb8f4c40c0fe09af5db9c431f5ed0ccedb6a235e358f9bf11792630799d9b6a430998313d66304103
|
7
|
+
data.tar.gz: 1208d85ebc0e5a6540b02fbbc7645a068f387f786650e025a066f475f30d31c8f4ed3b8bbb8e8a7b788b043078568fabb81cd9119a4dbfa049451ce18298f802
|
data/.gitlab-ci.yml
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
image: ruby:latest
|
2
2
|
|
3
|
+
stages:
|
4
|
+
- test
|
5
|
+
- release
|
6
|
+
|
3
7
|
before_script:
|
4
8
|
- apt-get update && apt-get install wabt && rm -rf /var/cache/apt
|
5
9
|
- bundle install
|
@@ -13,3 +17,16 @@ rubocop:
|
|
13
17
|
stage: test
|
14
18
|
script:
|
15
19
|
- bundle exec rspec
|
20
|
+
|
21
|
+
release:
|
22
|
+
stage: release
|
23
|
+
only:
|
24
|
+
- /^v[0-9]+\.[0-9]+\.[0-9]+$/
|
25
|
+
except:
|
26
|
+
- branches
|
27
|
+
script:
|
28
|
+
- gem build
|
29
|
+
artifacts:
|
30
|
+
name: "wag-$CI_COMMIT_TAG.gem"
|
31
|
+
paths:
|
32
|
+
- wag-*.gem
|
data/Gemfile.lock
CHANGED
data/lib/wag/f32_instructions.rb
CHANGED
@@ -9,7 +9,7 @@ module WAG
|
|
9
9
|
%i[load store const eq ne lt gt le ge abs neg ceil floor trunc nearest
|
10
10
|
sqrt add sub mul div min max copysign convert_i32_s convert_i32_u
|
11
11
|
convert_i64_s convert_i64_u reinterpret_i32].each do |instruction_name|
|
12
|
-
camelised_name = "F32
|
12
|
+
camelised_name = "F32::#{WAG::Inflector.inflector.camelize(instruction_name)}"
|
13
13
|
define_method(instruction_name) do |*args, &block|
|
14
14
|
instruction = WAG::Instruction.const_get(camelised_name).new(*args)
|
15
15
|
@instructions << instruction
|
data/lib/wag/f64_instructions.rb
CHANGED
@@ -9,7 +9,7 @@ module WAG
|
|
9
9
|
%i[load store const eq ne lt gt le ge abs neg ceil floor trunc nearest sqrt
|
10
10
|
add sub mul div min max copysign convert_i32_s convert_i32_u
|
11
11
|
convert_i64_s convert_i64_u promote_f32 reinterpret_i64].each do |instruction_name|
|
12
|
-
camelised_name = "F64
|
12
|
+
camelised_name = "F64::#{WAG::Inflector.inflector.camelize(instruction_name)}"
|
13
13
|
define_method(instruction_name) do |*args, &block|
|
14
14
|
instruction = WAG::Instruction.const_get(camelised_name).new(*args)
|
15
15
|
@instructions << instruction
|
data/lib/wag/version.rb
CHANGED
data/wag.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = 'WebAssembly Generator'
|
12
12
|
spec.description = 'Generate and compile WebAssembly code from Ruby'
|
13
13
|
spec.homepage = 'https://gitlab.com/jimsy/wag'
|
14
|
-
spec.license = '
|
14
|
+
spec.license = 'Hippocratic'
|
15
15
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
16
16
|
|
17
17
|
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Harton
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-inflector
|
@@ -272,7 +272,7 @@ files:
|
|
272
272
|
- wag.gemspec
|
273
273
|
homepage: https://gitlab.com/jimsy/wag
|
274
274
|
licenses:
|
275
|
-
-
|
275
|
+
- Hippocratic
|
276
276
|
metadata:
|
277
277
|
homepage_uri: https://gitlab.com/jimsy/wag
|
278
278
|
source_code_uri: https://gitlab.com/jimsy/wag
|