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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8db1e828d1c55e0c59b0a6539f5dcad050122978b58aaa58c50c81df127d7ba5
4
- data.tar.gz: a607dc324fbb937d62d805ebb3ca78ca1e1ace3f2e76f5d2be5f3f91286414aa
3
+ metadata.gz: 79b8ea897640c1880eba12958af7e580b0fe7e416b8eced9e156ff433f872105
4
+ data.tar.gz: 7d3b0320620954bb403c8e831ee0eac3a897df73eea8d42ef85d118e89e42864
5
5
  SHA512:
6
- metadata.gz: d1126a636ca4025172739c045f2db368570fd81d0a9f74d871a9804f605afe194e3a9183ac1f508dd9a69b5583cb8aa3a122c0164657d3e18aa9b8ada316132a
7
- data.tar.gz: 453b4607afe93437cdbacb39156bcb9915e0fba5d40f4bce6337d2974af211efcf79c478e1f292f4cd853aeb7a023a831941c81b561973f5acf2b9b78d031b6a
6
+ metadata.gz: 1c3a88e272fb1f177f4ed2d9aeadc9cb0265d9e88c4fb04eb8f4c40c0fe09af5db9c431f5ed0ccedb6a235e358f9bf11792630799d9b6a430998313d66304103
7
+ data.tar.gz: 1208d85ebc0e5a6540b02fbbc7645a068f387f786650e025a066f475f30d31c8f4ed3b8bbb8e8a7b788b043078568fabb81cd9119a4dbfa049451ce18298f802
@@ -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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wag (0.1.0)
4
+ wag (0.1.1)
5
5
  dry-inflector (~> 0.2.0)
6
6
 
7
7
  GEM
@@ -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#{WAG::Inflector.inflector.camelize(instruction_name)}"
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
@@ -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#{WAG::Inflector.inflector.camelize(instruction_name)}"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WAG
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
@@ -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 = 'Hippcratic'
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.0
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-01 00:00:00.000000000 Z
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
- - Hippcratic
275
+ - Hippocratic
276
276
  metadata:
277
277
  homepage_uri: https://gitlab.com/jimsy/wag
278
278
  source_code_uri: https://gitlab.com/jimsy/wag