Skip to content

Commit 080cac3

Browse files
committed
Makefile updated
1 parent 0ef8a7e commit 080cac3

3 files changed

Lines changed: 10 additions & 23 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,5 @@ desktop.ini
9292

9393
# Ignore application configuration
9494
/config/application.yml
95+
96+
example-1

Makefile

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,8 @@
1-
# Install the gem locally
2-
install: build
3-
@echo "Installing featurevisor gem..."
4-
gem install featurevisor-*.gem
5-
@echo "Installation complete!"
1+
install:
2+
bundle install --path vendor/bundle
63

7-
# Build the gem package
84
build:
9-
@echo "Building featurevisor gem..."
105
gem build featurevisor.gemspec
11-
@echo "Build complete! Created: featurevisor-*.gem"
126

13-
# Run the test suite
147
test:
15-
@echo "Running tests..."
168
bundle exec rspec spec/
17-
@echo "Tests completed!"
18-
19-
# Clean up build artifacts
20-
clean:
21-
@echo "Cleaning up build artifacts..."
22-
rm -f featurevisor-*.gem
23-
@echo "Cleanup complete!"

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -642,21 +642,21 @@ f.close()
642642
This package also provides a CLI tool for running your Featurevisor [project](https://featurevisor.com/docs/projects/)'s test specs and benchmarking against this Ruby SDK.
643643

644644
- Global installation: you can access it as `featurevisor`
645-
- Local installation: you can access it as `vendor/bundle/ruby/X.Y.Z/bin/featurevisor`
645+
- Local installation: you can access it as `bundle exec featurevisor`
646646
- From this repository: you can access it as `bin/featurevisor`
647647

648648
### Test
649649

650650
Learn more about testing [here](https://featurevisor.com/docs/testing/).
651651

652652
```bash
653-
featurevisor test --projectDirectoryPath="/absolute/path/to/your/featurevisor/project"
653+
$ bundle exec featurevisor test --projectDirectoryPath="/absolute/path/to/your/featurevisor/project"
654654
```
655655

656656
Additional options that are available:
657657

658658
```bash
659-
featurevisor test \
659+
$ bundle exec featurevisor test \
660660
--projectDirectoryPath="/absolute/path/to/your/featurevisor/project" \
661661
--quiet|verbose \
662662
--onlyFailures \
@@ -669,7 +669,7 @@ featurevisor test \
669669
Learn more about benchmarking [here](https://featurevisor.com/docs/cmd/#benchmarking).
670670

671671
```bash
672-
featurevisor benchmark \
672+
$ bundle exec featurevisor benchmark \
673673
--projectDirectoryPath="/absolute/path/to/your/featurevisor/project" \
674674
--environment="production" \
675675
--feature="myFeatureKey" \
@@ -682,7 +682,7 @@ featurevisor benchmark \
682682
Learn more about assessing distribution [here](https://featurevisor.com/docs/cmd/#assess-distribution).
683683

684684
```bash
685-
featurevisor assess-distribution \
685+
$ bundle exec featurevisor assess-distribution \
686686
--projectDirectoryPath="/absolute/path/to/your/featurevisor/project" \
687687
--environment=production \
688688
--feature=foo \
@@ -702,7 +702,7 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
702702
### Running tests
703703

704704
```bash
705-
bundle exec rspec
705+
$ bundle exec rspec
706706
```
707707

708708
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).

0 commit comments

Comments
 (0)