ecogem 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/.gitignore +2 -1
- data/README.md +14 -11
- data/ecogem.gemspec +1 -1
- data/lib/ecogem/cli/commands/install.rb +1 -0
- data/lib/ecogem/version.rb +1 -1
- metadata +4 -4
- data/lib/ecogem/cli/commands/update.rb +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 650559841043b0bc47a74e3e42073cc3117d7ef2
|
4
|
+
data.tar.gz: 52dd9a34ff244db76d16c6412391975a039cee9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f1dcc3ad0e771139a4da3a1e9d62b541d62877526c6f19f067b8965826f8c45a9787b41391c3cf32a697324e58110339fe2937d615b58f4e1d10827dbd6f549
|
7
|
+
data.tar.gz: 22681ee3328e0e8fa091f0bde11fca9f3da50ed37a2ee29c232beddf22795061a74605bc82018bf78d6acefe567ae2bec169ac80a75afab9cd6b537ce62903f7
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Supplements Bundler for installing private gems.
|
|
4
4
|
|
5
5
|
## Preface
|
6
6
|
|
7
|
-
When
|
7
|
+
When my gem A depends on my private gem B whose source is served from GitHub, I can write Gemfile with _:git_ option.
|
8
8
|
|
9
9
|
A's Gemfile:
|
10
10
|
|
@@ -58,7 +58,7 @@ Okay. The last option is Ecogem.
|
|
58
58
|
|
59
59
|
## Dependencies
|
60
60
|
|
61
|
-
* fork(2)
|
61
|
+
* fork(2)
|
62
62
|
* Windows and several other platforms are not supported.
|
63
63
|
|
64
64
|
* Ruby >= 2.1 and ~> 2.2
|
@@ -79,7 +79,7 @@ Also install Bundler if not installed:
|
|
79
79
|
|
80
80
|
## Usage
|
81
81
|
|
82
|
-
Rename your
|
82
|
+
Rename all your Gemfiles to Ecogemfiles and execute:
|
83
83
|
|
84
84
|
$ ecogem install
|
85
85
|
|
@@ -102,9 +102,9 @@ Then `ecogem install` will:
|
|
102
102
|
gem 'rake' # from rubygems.org
|
103
103
|
```
|
104
104
|
|
105
|
-
1. fetch gem-a's
|
105
|
+
1. fetch gem-a's Ecogemfile
|
106
106
|
|
107
|
-
gem-a's
|
107
|
+
gem-a's Ecogemfile:
|
108
108
|
|
109
109
|
```ruby
|
110
110
|
source 'https://rubygems.org'
|
@@ -112,9 +112,9 @@ Then `ecogem install` will:
|
|
112
112
|
gemspec
|
113
113
|
```
|
114
114
|
|
115
|
-
1. fetch gem-b's
|
115
|
+
1. fetch gem-b's Ecogemfile
|
116
116
|
|
117
|
-
gem-b's
|
117
|
+
gem-b's Ecogemfile:
|
118
118
|
|
119
119
|
```ruby
|
120
120
|
source 'https://rubygems.org'
|
@@ -126,10 +126,13 @@ Then `ecogem install` will:
|
|
126
126
|
Gemfile:
|
127
127
|
|
128
128
|
```ruby
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
129
|
+
require "ecogem"
|
130
|
+
|
131
|
+
source "https://rubygems.org"
|
132
|
+
|
133
|
+
gem 'gem-b', path: Ecogem.git_path("git@github.com:me/gem-b.git master")
|
134
|
+
gem 'gem-a', path: Ecogem.git_path("git@github.com:me/gem-a.git master")
|
135
|
+
gem 'rake'
|
133
136
|
```
|
134
137
|
|
135
138
|
1. and finally execute `bundle install` with the new Gemfile
|
data/ecogem.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = [""]
|
11
11
|
spec.summary = %q{Supplements Bundler for installing private gems.}
|
12
12
|
spec.description = %q{}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/moso2p/ecogem"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
data/lib/ecogem/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecogem
|
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
|
- mosop
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -57,7 +57,6 @@ files:
|
|
57
57
|
- lib/ecogem/cli.rb
|
58
58
|
- lib/ecogem/cli/args.rb
|
59
59
|
- lib/ecogem/cli/commands/install.rb
|
60
|
-
- lib/ecogem/cli/commands/update.rb
|
61
60
|
- lib/ecogem/config.rb
|
62
61
|
- lib/ecogem/config/entries.rb
|
63
62
|
- lib/ecogem/config/entries/git_sources.rb
|
@@ -78,7 +77,7 @@ files:
|
|
78
77
|
- lib/ecogem/util/config/value_container.rb
|
79
78
|
- lib/ecogem/version.rb
|
80
79
|
- lib/ecogem/workspace.rb
|
81
|
-
homepage:
|
80
|
+
homepage: https://github.com/moso2p/ecogem
|
82
81
|
licenses:
|
83
82
|
- MIT
|
84
83
|
metadata: {}
|
@@ -103,3 +102,4 @@ signing_key:
|
|
103
102
|
specification_version: 4
|
104
103
|
summary: Supplements Bundler for installing private gems.
|
105
104
|
test_files: []
|
105
|
+
has_rdoc:
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'bundler'
|
2
|
-
|
3
|
-
module Ecogem
|
4
|
-
class Cli
|
5
|
-
module Commands
|
6
|
-
class Update
|
7
|
-
def initialize(args)
|
8
|
-
@args = args
|
9
|
-
end
|
10
|
-
|
11
|
-
def execute
|
12
|
-
::Ecogem.new_workspace(@args) do |ws|
|
13
|
-
gemfile = "--gemfile=#{ws.gemfile.write.inspect}"
|
14
|
-
args = [*@args.bundler_args, gemfile].join(' ')
|
15
|
-
command = "bundle update #{args}"
|
16
|
-
system command
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|