Commit Graph

101 Commits

Author SHA1 Message Date
Peter Wagenet 8b5b55d9b0 Update dependencies 2019-07-30 11:25:43 -07:00
Peter Wagenet ed7a3bb730 Bump Bundler version 2019-07-30 10:52:19 -07:00
Peter Wagenet ca60150948
Revert "Allow calling init seperately" 2019-07-29 13:12:56 -07:00
konstin 538a1c9fa9 Add an option to pass extra arguments to cargo
This is e.g. useful for conditional compilation with features
2018-06-14 17:43:32 +02:00
konstin 6733f74b0d Use cargo metadata to determine the target directory
The command otherwise failed when used with cargo workspaces
2018-06-14 17:43:32 +02:00
Terence Lee 088a636192 allow private constructor. also add docopt example
You can do this by setting:

```
def initialize(helix, ...) {
}
```

Right now this only works on the constructor and only unexported is
supported.
2018-06-14 00:09:09 -07:00
Godfrey Chan 68b9daeeee v0.7.5 2018-06-04 16:15:00 -04:00
Godfrey Chan 98b003c5bb v0.7.4 2018-06-02 10:43:45 +09:00
Godfrey Chan be0cffa442
Merge pull request #151 from tildeio/fix-build
Don't run tests (etc) if the build fails
2018-06-01 18:03:31 -07:00
Godfrey Chan 0dbe9d5b4f Don't run tests (etc) if the build fails 2018-06-02 09:02:10 +09:00
Godfrey Chan faaa6b1b26 Safer string coercions
Previously, we blindly assume Ruby strings are UTF-8 and turn them
into Rust Strings (which *are* assumed to be UTF-8). This is clearly
unsafe so this commit adds some checks to cofirm that and generate
type errors appropiately.
2018-06-02 08:42:12 +09:00
Godfrey Chan bda5141f37 v0.7.3 2018-03-06 11:38:04 -08:00
Sean Griffin 3a24bf2124 Export another smattering of random functions/constants 2018-01-25 16:27:09 -07:00
Sean Griffin 91fe2c5828 Use `NIL_P` instead of `RB_NIL_P`
`RB_NIL_P` is new in Ruby 2.4. Even though we're linking to the older
name, I think it still makes sense to expose the newer name to Rust.
2017-12-04 13:30:38 -07:00
Sean Griffin b5965c87d1 Expose `RB_NIL_P` and `RTEST` in libcruby
These seem to be the appropriate way to check for `nil` and truthiness
of an object using the C API. I would assume that additional changes
have to happen since this touches the runtime extension, but I'm not
sure what to do.
2017-11-30 06:19:27 -07:00
Peter Wagenet 1880ece06b Looser version requirement for Thor
This matches how Rails does it.
2017-10-10 16:17:20 -07:00
Godfrey Chan f4dcbf6ea1 v0.7.2 2017-10-09 22:53:01 -07:00
Godfrey Chan 65a98c65d1 v0.7.1 2017-10-06 15:51:12 -07:00
Godfrey Chan 5ce16e9550 Add hash <-> HashMap coercion 2017-10-06 14:54:11 -07:00
Godfrey Chan 37b2f2f3e9 v0.7.0 2017-10-03 19:30:50 -05:00
mortyccp e2cf3df819 Fix incorrect native_lib name format bug
For project name with more then one '-' using `sub` will only replace
the first occurence. This cause `copy_native` to be failed due to
`File.exist?` check failed. Use `gsub` instead to fix.
2017-09-28 20:17:12 -07:00
Ashe Connor 41064303ef
Use 'tomlrb' instead of 'toml' gem 2017-09-21 12:38:04 +10:00
Terence Lee 2864f15db3
v0.6.4 2017-09-05 17:03:37 -05:00
Terence Lee f38bbdbf60
Need to use the right dlltool for the respective arch
Apparently, `-m` still includes some 64 bit objects when running
dlltool. It leads to a linking error when compiling on 32-bit windows:

```
helix-runtime-0-6-3.i386.lib(dnekh.o) : fatal error LNK1112: module
machine type 'x64' conflicts with target machine type 'X86'
```

When analyzing the 32-bit lib file, you can see the 64-bit objects.

```
$ objdump -f helix-runtime-0-6-2.i386.lib
In archive helix-runtime-0-6-2.i386.lib:

dfrzt.o:     file format pe-x86-64
architecture: i386:x86-64, flags 0x00000038:
HAS_DEBUG, HAS_SYMS, HAS_LOCALS
start address 0x0000000000000000

dfrzh.o:     file format pe-x86-64
architecture: i386:x86-64, flags 0x00000039:
HAS_RELOC, HAS_DEBUG, HAS_SYMS, HAS_LOCALS
start address 0x0000000000000000

dfrzs00056.o:     file format pe-i386
architecture: i386, flags 0x00000039:
HAS_RELOC, HAS_DEBUG, HAS_SYMS, HAS_LOCALS
start address 0x00000000
```

This fix ensures we only run the 32-bit dlltool when building the 32-bit
native lib file
2017-08-31 20:33:53 -05:00
Godfrey Chan 5e5f2d9f70 v0.6.3 2017-08-30 21:37:09 -07:00
Godfrey Chan e43599a1bf v0.6.2 2017-08-28 23:10:49 -07:00
Godfrey Chan e47b390d97 Deprecate passing project name to `BuildTask`
Since we already have the `Cargo.toml`, we don't actually need the
user to pass the project name. Further more, the build task doesn't
actually work correctly if you pass any name _other than_ what is
in your `Cargo.toml` (as seen in #92).

Fixes #110.
2017-08-28 23:09:11 -07:00
Peter Wagenet 44be98056e Fix generator bundling 2017-07-21 10:31:58 -07:00
Ville Lautanala ba58f81ad8 Use build task name as project name (#92)
Use build task name as Project name
2017-07-13 12:49:58 -07:00
Peter Wagenet f9de4e4cce Fix paths with dashes 2017-05-18 10:39:59 -07:00
Peter Wagenet d60164c18e Bump version 2017-05-18 10:02:59 -07:00
Peter Wagenet fb07cc361c Fix path in copy_dll task 2017-05-18 09:59:08 -07:00
Peter Wagenet 0b31b18680 Bump Version 2017-05-03 11:42:57 -07:00
Alyssa Ross 6d3c1d6da4 Add metadata to gemspec 2017-04-27 22:29:05 +01:00
Peter Wagenet 894150d04e Merge pull request #79 from mhelmetag/78/fix_minor_ruby_warnings
Fix var shadowing and ambiguous args in ruby warnings
2017-04-27 07:40:22 -07:00
Peter Wagenet c5589e3933 Better handle unbuilt helix_runtime/native 2017-04-27 07:34:46 -07:00
Max Helmetag 289992982d fix var shadowing and ambiguous args in ruby warnings 2017-04-27 00:45:07 -07:00
Peter Wagenet faeace9828 Version Bump 2017-04-26 09:24:52 -07:00
Peter Wagenet 71da1b30ac Minor fix to child crate detection 2017-04-26 09:23:13 -07:00
Peter Wagenet 00d8300fb2 Fix lib.rs generator 2017-04-24 10:01:59 -07:00
Peter Wagenet c5703eb6b9 Bump version, rename helix crate 2017-04-24 09:31:18 -07:00
Godfrey Chan 067156d9ca Bump version 2017-04-22 16:10:20 -07:00
Godfrey Chan 026bae5d94 Update generator templates 2017-04-22 16:10:15 -07:00
Yehuda Katz d668a31150 Rename declare_types! to ruby! 2017-04-21 17:54:52 -07:00
Peter Wagenet d09c796ea3 Add ParentBuildTask descriptions 2017-04-19 16:51:34 -07:00
Peter Wagenet dee69897df Bump version 2017-04-19 12:07:16 -07:00
Peter Wagenet d0a3a9e37a Add helix CLI tool for generating projects
Also introduces the concept of parent projects which have child crates
2017-04-19 10:41:02 -07:00
Peter Wagenet 93f0a2ee31 Extract out Project model 2017-04-19 10:40:47 -07:00
Peter Wagenet 2f5780dcac More flexible Rake version specification 2017-04-17 18:55:41 -07:00
Peter Wagenet 5293d7e466 Improved version number handling 2017-04-17 18:55:08 -07:00