You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+22-16
Original file line number
Diff line number
Diff line change
@@ -24,23 +24,13 @@ We have also suffixed predicate methods with a question mark, as per the Ruby co
24
24
25
25
This gem uses FFI to link directly into the H3 library (written in C).
26
26
27
-
Before using the gem, you will need to install the C lib at https://github.com/uber/h3.
27
+
The H3 library is packaged with the gem and is built as a native extension. H3 is not installed system-wide, so it will not interfere with any other versions you may have installed previously.
28
28
29
-
Install the build dependencies as instructed here: https://github.com/uber/h3#install-build-time-dependencies
30
-
31
-
Do *not* follow the Compilation Steps. Instead, use the following:
32
-
33
-
git clone git@github.com:uber/h3.git h3_build
34
-
cd h3_build
35
-
cmake . -DBUILD_SHARED_LIBS=true
36
-
make
37
-
sudo make install
38
-
39
-
The key difference is the `BUILD_SHARED_LIBS` option.
29
+
Before installing the gem, please install the build dependencies for your system as instructed here: https://github.com/uber/h3#install-build-time-dependencies
40
30
41
31
## Installing
42
32
43
-
You can install the gem directly using
33
+
You can install the gem directly from RubyGems.org using
There is a full reference available here: https://www.rubydoc.info/github/StuartApp/h3_ruby/H3
67
+
Please read [the Gem Documentation](https://www.rubydoc.info/github/StuartApp/h3_ruby/H3) for a full reference of available methods.
68
+
69
+
## Development
70
+
71
+
The development environment requires the H3 library to be compiled from source before tests can be executed.
72
+
73
+
This is done automatically by the test suite. However, Rake tasks are provided to handle building H3 in a more fine-grained manner.
74
+
75
+
### Building H3
76
+
77
+
rake build
78
+
79
+
You can remove the compiled H3 library with `rake clean`, or rebuild it with `rake rebuild`.
80
+
81
+
### Running Tests
82
+
83
+
The test suite exercises all the H3 functions.
78
84
79
-
## Running Specs
85
+
rake spec
80
86
81
-
rake
87
+
Be aware that errors may be encountered if you have a locally cached H3 binary that's older than the version targeted. Try `rake rebuild` and re-run `rake spec` if this occurs.
0 commit comments