ktlacaelel-gemi 0.1.1 → 0.1.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.
data/README.rdoc CHANGED
@@ -1,9 +1,53 @@
1
- = gemi
1
+ = Gemi
2
2
 
3
- Description goes here.
3
+ Gemi Gem-installer.
4
+
5
+ Ever had gems that have nothing to do with your rails app, and want to
6
+ keep them in sync?
7
+
8
+ Put your gems in a yaml file, and gemi will install them for you!
9
+ By Kazuyoshi Tlacaelel
10
+
11
+ $ sudo gemi gems.yml
12
+ Successfully installed ruby-openid-2.1.4
13
+ 1 gem installed
14
+ Installing ri documentation for ruby-openid-2.1.4...
15
+ Installing RDoc documentation for ruby-openid-2.1.4...
16
+
17
+ == Dependancies
18
+
19
+ * require 'yaml'
20
+
21
+ == Features
22
+
23
+ Prepare your configuration into a yaml file
24
+
25
+ $ cat gems.yml
26
+ gems:
27
+ - name: ruby-openid
28
+ version: 2.1.4
29
+ native: 0
30
+
31
+ Install gems using gemi
32
+
33
+ $ sudo gemi gems.yml
34
+ Successfully installed ruby-openid-2.1.4
35
+ 1 gem installed
36
+ Installing ri documentation for ruby-openid-2.1.4...
37
+ Installing RDoc documentation for ruby-openid-2.1.4...
38
+
39
+ == Future thoughts
40
+
41
+ * allow yaml file to specify various gem-sources
42
+ * allow gem-options in yaml file for gems with native-extensions
43
+
44
+ == Tests?
45
+
46
+ Right now the api is really, really simple. and all of its components
47
+ are tested
4
48
 
5
49
  == Note on Patches/Pull Requests
6
-
50
+
7
51
  * Fork the project.
8
52
  * Make your feature addition or bug fix.
9
53
  * Add tests for it. This is important so I don't break it in a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/gemi.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gemi}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kazuyoshi tlacaelel"]
data/lib/gem.rb CHANGED
@@ -30,6 +30,10 @@ module Gemi
30
30
  @gem_hash.keys.include? key
31
31
  end
32
32
 
33
+ def to_command
34
+ "gem install #{@name} --version #{@version}"
35
+ end
36
+
33
37
  end
34
38
 
35
39
  end
data/lib/installer.rb CHANGED
@@ -26,7 +26,8 @@ module Gemi
26
26
  if gem.native?
27
27
  puts "Skipped #{gem.name} because of native extensions"
28
28
  else
29
- puts `gem install #{gem.name} --version #{gem.version}`
29
+ puts gem.to_command
30
+ puts `#{gem.to_command}`
30
31
  end
31
32
  end
32
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ktlacaelel-gemi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kazuyoshi tlacaelel
@@ -56,6 +56,7 @@ files:
56
56
  - test/test_helper.rb
57
57
  has_rdoc: false
58
58
  homepage: http://github.com/ktlacaelel/gemi
59
+ licenses:
59
60
  post_install_message:
60
61
  rdoc_options:
61
62
  - --charset=UTF-8
@@ -76,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
77
  requirements: []
77
78
 
78
79
  rubyforge_project:
79
- rubygems_version: 1.2.0
80
+ rubygems_version: 1.3.5
80
81
  signing_key:
81
82
  specification_version: 3
82
83
  summary: Gemi Gem installer