bundleinabox 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWM2MjMxMGE1NjNiMTBkMTRkMGZkODRhOWU4NWQxMDM3MjM1OWFlYg==
4
+ ODkxMjdmNGFlNDFjZmQ3ZmE5NzU4ZmI2NzBjOTc0YzNjY2VhZWQ1ZQ==
5
5
  data.tar.gz: !binary |-
6
- Yzc5MTYyMjJkNzhmNTY0MDQ4YTljZTdmMjA3ZGJiY2E1ZmQ2YzlmMA==
6
+ MTQ2OWQ2YmVmNjI3YTUxNDc4MzU1MzBhYjA4NGZhYTJjZjY1NDhiNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YWNlZjM5MGJjZDE4Y2I0NGVlYTgzMDAyNDM1Zjg3YWYzODEzZmM5ZTZlMTE2
10
- NGUyNjZlZDI1Nzg4NmU4MzVhNjliNTYwZjIxNmUxNTczOTA4YWNmMDNhZGVj
11
- OWI2MGNkNWZkOWQ3NWRkYzBlNTZiN2VhMmE3ZDU5YzZlN2FhZjg=
9
+ ODY0NDBmMTU0OTAwMDQzYTQzMDUyYjU2NzFjN2ZkOWVhZjdjZDk0ZTJjN2E5
10
+ ZjgxMjFjNGZmOTkzNGI3NmM0YjM3NjVjNDEzMzM0ZWY1MjAxMDE5ZDU1YTBl
11
+ NWUxZGYxZTM0ZjQzODc0ZTkwMTg1MmVhMDQ3MzA4NTQ5NDFlMjg=
12
12
  data.tar.gz: !binary |-
13
- NDk0ZTExOWE3ODM0ZGE5NmM5NmM4YjU3MmJmMDhiMjgwMTg0ZDM4ZmY3MTU5
14
- ZjdiNzM0MzA2NzY2MDdmYTdjOWEzMGY3Njc1ZGQ4YWJhNmI1ZjNjNTc2MDZh
15
- ZjE4ZTc5ZTQ3NjhhN2NhM2MyZmExNjc2YmUwM2E1YzEzZjhlZGI=
13
+ MWFjM2NmYTE3N2YwNTZmNDU1N2VhYTFlNTE5MzQ1NTM2Y2M1NDg3NDE0NDBh
14
+ ODQwNjgyNTM1NjZmZjEwYTc3MzAxZTI1NDhjNDlhZTg4OGQyZDEyNDM2MDVl
15
+ MGZlZTI1ZDc3ODAzZTVmMWRiZmUxZGQ5MThkMTJiYzFiY2RiMmY=
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Bundleinabox
2
2
 
3
- TODO: Write a gem description
3
+ bundle gems into geminabox
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,9 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ cd PROJECT_USING_BUNLDER
22
+ bundleinabox
23
+
22
24
 
23
25
  ## Contributing
24
26
 
data/bin/bundleinabox CHANGED
@@ -1,15 +1,23 @@
1
1
  #!/usr/bin/env ruby
2
- $:.push(File.expand_path(File.dirname(__FILE__) + '/../lib'))
3
2
 
4
- require 'bundleinabox'
3
+ require 'thor'
4
+ require_relative '../lib/bundleinabox'
5
5
 
6
6
  Signal.trap("INT") { exit 1 } # Exit cleanly from an early interrupt
7
+ ENV["THOR_DEBUG"] = "1" # Force Thor to raise exceptions so we can exit non-zero.
7
8
 
8
- FileUtils.mkdir_p 'vendor/cache' # create vendor/cache for bundler
9
+ class BundleinaboxCommands < Thor
10
+ default_task :sync
9
11
 
10
- ENV["THOR_DEBUG"] = "1" # Force Thor to raise exceptions so we can exit non-zero.
12
+ desc "sync", "sync the gems from current project to gem server"
13
+ def sync
14
+ Bundleinabox.sync
15
+ end
11
16
 
12
- Bundler.with_friendly_errors { Bundler::CLI.start } # run bundler
17
+ desc "host http://localhost:8080", "set the host for geminabox"
18
+ def host(host)
19
+ Bundleinabox.host(host)
20
+ end
21
+ end
13
22
 
14
- # upload gems to geminabox
15
- Gem::Commands::InaboxCommand.new.send_gems(Dir.foreach('vendor/cache').reject{|f| !f.match(/\.gem$/)}.map{|f| "vendor/cache/#{f}"})
23
+ BundleinaboxCommands.start(ARGV)
data/bundleinabox.gemspec CHANGED
@@ -8,16 +8,17 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Bundleinabox::VERSION
9
9
  spec.authors = ["Ming Liu"]
10
10
  spec.email = ["liuming@lmws.net"]
11
- spec.description = %q{}
12
- spec.summary = %q{bundle gems into geminabox}
13
- spec.homepage = ""
11
+ spec.description = %q{Cache .gem files with bundler and push them up to a gem server with geminabox}
12
+ spec.summary = spec.description
13
+ spec.homepage = "https://github.com/liuming/bundleinabox"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
- spec.add_dependency "geminabox", "~> 0.11.0"
21
- spec.add_dependency "bundler", "~> 1.3"
20
+ spec.add_dependency "geminabox", "~> 0.11.1"
21
+ spec.add_dependency "bundler", "~> 1.3.5"
22
+ spec.add_dependency "thor", "~> 0.18.1"
22
23
  spec.add_development_dependency "rake"
23
24
  end
data/lib/bundleinabox.rb CHANGED
@@ -11,5 +11,14 @@ require 'rubygems/commands/inabox_command'
11
11
  require "bundleinabox/version"
12
12
 
13
13
  module Bundleinabox
14
- # Your code goes here...
14
+ def self.sync
15
+ # run bundler package
16
+ Bundler.with_friendly_errors { Bundler::CLI.start(['package']) }
17
+ # upload gems to geminabox
18
+ Gem::Commands::InaboxCommand.new.send_gems(Dir.foreach('vendor/cache').reject{|f| !f.match(/\.gem$/)}.map{|f| "vendor/cache/#{f}"})
19
+ end
20
+
21
+ def self.host(host)
22
+ Gem::Commands::InaboxCommand.new.geminabox_host = host
23
+ end
15
24
  end
@@ -1,3 +1,3 @@
1
1
  module Bundleinabox
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundleinabox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ming Liu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-29 00:00:00.000000000 Z
11
+ date: 2013-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: geminabox
@@ -16,28 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.11.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 0.11.0
26
+ version: 0.11.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '1.3'
33
+ version: 1.3.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '1.3'
40
+ version: 1.3.5
41
+ - !ruby/object:Gem::Dependency
42
+ name: thor
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 0.18.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.18.1
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +66,7 @@ dependencies:
52
66
  - - ! '>='
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
55
- description: ''
69
+ description: Cache .gem files with bundler and push them up to a gem server with geminabox
56
70
  email:
57
71
  - liuming@lmws.net
58
72
  executables:
@@ -69,7 +83,7 @@ files:
69
83
  - bundleinabox.gemspec
70
84
  - lib/bundleinabox.rb
71
85
  - lib/bundleinabox/version.rb
72
- homepage: ''
86
+ homepage: https://github.com/liuming/bundleinabox
73
87
  licenses:
74
88
  - MIT
75
89
  metadata: {}
@@ -92,5 +106,5 @@ rubyforge_project:
92
106
  rubygems_version: 2.0.7
93
107
  signing_key:
94
108
  specification_version: 4
95
- summary: bundle gems into geminabox
109
+ summary: Cache .gem files with bundler and push them up to a gem server with geminabox
96
110
  test_files: []