-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from blockfrost/mmahut/previewpreprod
feat: preview and preprod
- Loading branch information
Showing
8 changed files
with
167 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: "Nix build" | ||
on: | ||
pull_request: | ||
push: | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v18 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- run: nix-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
with import <nixpkgs> {}; | ||
let | ||
gems = bundlerEnv { | ||
name = "blockfrost-ruby"; | ||
inherit ruby; | ||
gemdir = ./.; | ||
}; | ||
in stdenv.mkDerivation { | ||
name = "blockfrost-ruby"; | ||
src = ./.; | ||
|
||
installPhase = '' | ||
mkdir -p $out | ||
cp -r $src $out | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{ | ||
blockfrost-ruby = { | ||
groups = ["default"]; | ||
platforms = []; | ||
source = { | ||
path = ./.; | ||
type = "path"; | ||
}; | ||
version = "0.1.1"; | ||
}; | ||
diff-lcs = { | ||
groups = ["default"]; | ||
platforms = []; | ||
source = { | ||
remotes = ["https://rubygems.org"]; | ||
sha256 = "0rwvjahnp7cpmracd8x732rjgnilqv2sx7d1gfrysslc3h039fa9"; | ||
type = "gem"; | ||
}; | ||
version = "1.5.0"; | ||
}; | ||
dotenv = { | ||
groups = ["default"]; | ||
platforms = []; | ||
source = { | ||
remotes = ["https://rubygems.org"]; | ||
sha256 = "1n0pi8x8ql5h1mijvm8lgn6bhq4xjb5a500p5r1krq4s6j9lg565"; | ||
type = "gem"; | ||
}; | ||
version = "2.8.1"; | ||
}; | ||
rake = { | ||
groups = ["default"]; | ||
platforms = []; | ||
source = { | ||
remotes = ["https://rubygems.org"]; | ||
sha256 = "15whn7p9nrkxangbs9hh75q585yfn66lv0v2mhj6q6dl6x8bzr2w"; | ||
type = "gem"; | ||
}; | ||
version = "13.0.6"; | ||
}; | ||
rspec = { | ||
dependencies = ["rspec-core" "rspec-expectations" "rspec-mocks"]; | ||
groups = ["default"]; | ||
platforms = []; | ||
source = { | ||
remotes = ["https://rubygems.org"]; | ||
sha256 = "171rc90vcgjl8p1bdrqa92ymrj8a87qf6w20x05xq29mljcigi6c"; | ||
type = "gem"; | ||
}; | ||
version = "3.12.0"; | ||
}; | ||
rspec-core = { | ||
dependencies = ["rspec-support"]; | ||
groups = ["default"]; | ||
platforms = []; | ||
source = { | ||
remotes = ["https://rubygems.org"]; | ||
sha256 = "1ibb81slc35q5yp276sixp3yrvj9q92wlmi1glbnwlk6g49z8rn4"; | ||
type = "gem"; | ||
}; | ||
version = "3.12.0"; | ||
}; | ||
rspec-expectations = { | ||
dependencies = ["diff-lcs" "rspec-support"]; | ||
groups = ["default"]; | ||
platforms = []; | ||
source = { | ||
remotes = ["https://rubygems.org"]; | ||
sha256 = "0qldsmjhqr4344zdlamzggr3y98wdk2c4hihkhwx8imk800gkl8v"; | ||
type = "gem"; | ||
}; | ||
version = "3.12.0"; | ||
}; | ||
rspec-mocks = { | ||
dependencies = ["diff-lcs" "rspec-support"]; | ||
groups = ["default"]; | ||
platforms = []; | ||
source = { | ||
remotes = ["https://rubygems.org"]; | ||
sha256 = "1yvwnb0x5d6d4ff3wlgahk0wcw72ic51gd2snr1xxc5ify41kabv"; | ||
type = "gem"; | ||
}; | ||
version = "3.12.0"; | ||
}; | ||
rspec-support = { | ||
groups = ["default"]; | ||
platforms = []; | ||
source = { | ||
remotes = ["https://rubygems.org"]; | ||
sha256 = "12y52zwwb3xr7h91dy9k3ndmyyhr3mjcayk0nnarnrzz8yr48kfx"; | ||
type = "gem"; | ||
}; | ||
version = "3.12.0"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Blockfrostruby | ||
VERSION = '0.1.0' | ||
VERSION = '0.1.1' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
with (import <nixpkgs> {}); | ||
let | ||
ruby = ruby_3_1; | ||
env = bundlerEnv { | ||
name = "blockfrost-ruby-env"; | ||
inherit ruby; | ||
gemdir = ./.; | ||
}; | ||
in stdenv.mkDerivation { | ||
name = "blockfrost-ruby"; | ||
buildInputs = [ env ruby nodejs git rubyPackages_3_1.rake rubyPackages_3_1.rspec ]; | ||
} |