bundler_geminabox 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in bundler_geminabox.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # bundler_geminabox
2
+
3
+
4
+ ## What does it do?
5
+
6
+ It allows you to use the same friendly rake command that bundler provides for releasing gems.
7
+ ```rake release``` retains the same build/tag/push functionality, except its now being pushed to your private gem repository. yay!
8
+
9
+ ## Usage!
10
+
11
+ In your gemfile
12
+
13
+ ```ruby
14
+ gem "bundler_geminabox"
15
+ ```
16
+
17
+ In your gem's Rakefile, insert
18
+
19
+ ```ruby
20
+ require "bundler_geminabox"
21
+ BundlerGeminabox::GemHelper.install
22
+ ```
23
+
24
+ after
25
+
26
+ ```ruby
27
+ Bundler::GemHelper.install_tasks
28
+ ```
29
+
30
+ Then simply
31
+
32
+ ```bash
33
+ rake release
34
+ ```
35
+
36
+ And your gem should be built, git tagged and pushed to your geminabox server.
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,26 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "bundler_geminabox/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "bundler_geminabox"
7
+ s.version = BundlerGeminabox::VERSION
8
+ s.authors = ["Josh Krueger"]
9
+ s.email = ["joshsinbox@gmail.com"]
10
+ s.homepage = "http://github.com/joshkrueger/bundler_geminabox"
11
+ s.summary = %q{Release internal gems}
12
+ s.description = %q{Allows you to build/tag/push internal gems to a geminabox gem server with the same commands bundler's rake helpers provide. This just hijacks the process :)}
13
+
14
+ s.rubyforge_project = "bundler_geminabox"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ s.add_dependency "geminabox"
22
+
23
+ # specify any dependencies here; for example:
24
+ # s.add_development_dependency "rspec"
25
+ # s.add_runtime_dependency "rest-client"
26
+ end
@@ -0,0 +1,17 @@
1
+ # Lets just hijack the rubygem_push method.
2
+ # Should probably alias it so we can switch on a flag, but... whatever.
3
+ # I'll do it later.
4
+
5
+ module Bundler
6
+ class GemHelper
7
+ protected
8
+ def rubygem_push(path)
9
+ if Pathname.new("~/.gem/geminabox").expand_path.exist?
10
+ sh("gem inabox #{path}")
11
+ Bundler.ui.confirm "Pushed #{name} #{version} to your geminabox server."
12
+ else
13
+ raise "You do not have geminabox configured. Please run `gem inabox --configure`"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,3 @@
1
+ module BundlerGeminabox
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,11 @@
1
+ require "bundler_geminabox/version"
2
+
3
+
4
+ module BundlerGeminabox
5
+ # Your code goes here...
6
+ class GemHelper
7
+ def self.install
8
+ require "bundler_geminabox/ext/bundler/gem_helper"
9
+ end
10
+ end
11
+ end
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bundler_geminabox
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Josh Krueger
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-12-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: geminabox
16
+ requirement: &2164667580 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2164667580
25
+ description: Allows you to build/tag/push internal gems to a geminabox gem server
26
+ with the same commands bundler's rake helpers provide. This just hijacks the process
27
+ :)
28
+ email:
29
+ - joshsinbox@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - .gitignore
35
+ - Gemfile
36
+ - README.md
37
+ - Rakefile
38
+ - bundler_geminabox.gemspec
39
+ - lib/bundler_geminabox.rb
40
+ - lib/bundler_geminabox/ext/bundler/gem_helper.rb
41
+ - lib/bundler_geminabox/version.rb
42
+ homepage: http://github.com/joshkrueger/bundler_geminabox
43
+ licenses: []
44
+ post_install_message:
45
+ rdoc_options: []
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project: bundler_geminabox
62
+ rubygems_version: 1.8.6
63
+ signing_key:
64
+ specification_version: 3
65
+ summary: Release internal gems
66
+ test_files: []