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.
Files changed (7) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -24
  3. data/bin/em +4 -1
  4. data/emerald.gemspec +1 -1
  5. data/emerald.yml +1 -0
  6. metadata +1 -2
  7. data/Rakefile +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebf02cd35622f4e4de55992ab66973b9862fb9b0d13aa38f205b01228c84f75a
4
- data.tar.gz: 95f6eb41963a16b19cfa40318d39e5a8c6acc46bf2358735bb43710b0d8420af
3
+ metadata.gz: 0ca9247a6ecf9b5aae0b2e98e2eee9bd039e3454412762ab48b9ba81e1adb189
4
+ data.tar.gz: 9737084aea18f15c3c8b8ebf3a6aeb892ffd0b95a216ed569b1e779a7bca7cc7
5
5
  SHA512:
6
- metadata.gz: 31f9e2a4c633a50466f55428ccf8a5c15e7c7e22b404def9a0c59f8c516961bee301bd010fe04b7748709cda7971ba636f3cac5773c835a3470fad7eb370193f
7
- data.tar.gz: b7e1d0c8ab8a9c2ae6177a17dc9b297461f8ad2a9a230a8687047a673e113d734b084de65000f10e13eacb3122be8d506aec38303d036ea9708ebcf1579c337b
6
+ metadata.gz: 868aa209714f24a90bab4d1175c312e65908ef2deac71e4d782323cfc405452fe78aa516c73bc73d6e35438ec9074b2eff1e87d06cd23c585176db0b1206d111
7
+ data.tar.gz: 2d7a2d1ae2c228dc22f8d85ce0fd75950b9a5e9123d58f04582d66455f6f102483dc326ef5d89e9b260b749b427463ca49737d6529af4f5a82188f7580525264
data/README.md CHANGED
@@ -1,36 +1,34 @@
1
1
  # Emerald
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/emerald`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
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 'emerald'
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
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
- 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).
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/[USERNAME]/emerald.
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "emerald-package-manager"
5
- spec.version = "0.0.1"
5
+ spec.version = "0.0.2"
6
6
  spec.authors = ["Andrew Schmidt"]
7
7
  spec.email = ["Andrew.mkniger@gmail.com"]
8
8
 
@@ -1,2 +1,3 @@
1
+ gem_path: "gems"
1
2
  scripts:
2
3
  start: ruby ./helloworld.ruby
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.1
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
@@ -1,2 +0,0 @@
1
- require "bundler/gem_tasks"
2
- task :default => :spec