emerald-package-manager 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +22 -24
- data/bin/em +4 -1
- data/emerald.gemspec +1 -1
- data/emerald.yml +1 -0
- metadata +1 -2
- data/Rakefile +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ca9247a6ecf9b5aae0b2e98e2eee9bd039e3454412762ab48b9ba81e1adb189
|
4
|
+
data.tar.gz: 9737084aea18f15c3c8b8ebf3a6aeb892ffd0b95a216ed569b1e779a7bca7cc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 868aa209714f24a90bab4d1175c312e65908ef2deac71e4d782323cfc405452fe78aa516c73bc73d6e35438ec9074b2eff1e87d06cd23c585176db0b1206d111
|
7
|
+
data.tar.gz: 2d7a2d1ae2c228dc22f8d85ce0fd75950b9a5e9123d58f04582d66455f6f102483dc326ef5d89e9b260b749b427463ca49737d6529af4f5a82188f7580525264
|
data/README.md
CHANGED
@@ -1,36 +1,34 @@
|
|
1
1
|
# Emerald
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
What is Emerald?
|
3
|
+
1. A package manager? Well not really cause its not handling the dependency graph itself, just calling bundle commands...
|
4
|
+
2. A virtual environment? Yes probably. It is designed to scope dependency installation to the project level.
|
5
|
+
3. A statement about how much I love NPM? yes, also guilty. I found Ruby development ugly. I didnt like the package manager ecosystem and how I was expected to use it as a developer. You could consider this to be a description of what I think the interface should look like for a developer.
|
6
|
+
4. A personal learning project? most definitely! I am learning so much about the ruby ecosystem through this. And hey perhaps Ill actually tackle the dependency resolution part too!
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
9
|
```ruby
|
12
|
-
gem
|
10
|
+
gem install emerald-package-manager
|
13
11
|
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle install
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install emerald
|
22
|
-
|
23
12
|
## Usage
|
13
|
+
Add a file to the directory called `emerald.yml` with content like the following:
|
14
|
+
```yaml
|
15
|
+
gem_path: "gems"
|
16
|
+
scripts:
|
17
|
+
start: ruby ./helloworld.ruby
|
18
|
+
```
|
24
19
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
20
|
+
Then to install the gems simply run:
|
21
|
+
```bash
|
22
|
+
em install
|
23
|
+
```
|
24
|
+
this will install all your dependencies in the `gems` folder in your local directory
|
30
25
|
|
31
|
-
|
26
|
+
Then to run the script simply run
|
27
|
+
```bash
|
28
|
+
em do start
|
29
|
+
```
|
32
30
|
|
33
31
|
## Contributing
|
34
32
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/andrewschmidt-a/emerald.
|
36
34
|
|
data/bin/em
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require "thor"
|
3
3
|
require 'yaml'
|
4
|
+
$emerald_spec = YAML.load(File.open("emerald.yml").read)
|
4
5
|
gem_path="#{File.expand_path("./gems")}"
|
6
|
+
if defined?($emerald_spec['gem_path']) then
|
7
|
+
gem_path="#{File.expand_path($emerald_spec['gem_path'])}"
|
8
|
+
end
|
5
9
|
ENV["GEM_PATH"]=gem_path
|
6
10
|
ENV["GEM_HOME"]=gem_path
|
7
|
-
$emerald_spec = YAML.load(File.open("emerald.yml").read)
|
8
11
|
|
9
12
|
|
10
13
|
class CLI < Thor
|
data/emerald.gemspec
CHANGED
data/emerald.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emerald-package-manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Schmidt
|
@@ -21,7 +21,6 @@ files:
|
|
21
21
|
- ".gitignore"
|
22
22
|
- Gemfile
|
23
23
|
- README.md
|
24
|
-
- Rakefile
|
25
24
|
- bin/em
|
26
25
|
- emerald.gemspec
|
27
26
|
- emerald.yml
|
data/Rakefile
DELETED