bundler-talks 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # CHANGELOG
2
+
3
+ ## 0.0.2
4
+
5
+ Init version
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in gon.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # Bundler-talks gem — now your bundler can talk
2
+
3
+ ### This is beta now
4
+
5
+ This gem using base gem [talks](https://github.com/ruby-talks/talks). You can use it if you want to hear when `bundle install` or `bundle update` ends.
6
+
7
+ Sponsored by [Evil Martians](http://evilmartians.com)
8
+
9
+ ## Why?
10
+
11
+ Sometime when you have bad internet bundler works really slow. So this is works as notification of start and end in that case.
12
+
13
+ ## How?
14
+
15
+ This gem using gem `talks` and overwrites some of bundler methods when you call `bundler-talks` instead of `bundle` from your command line.
16
+
17
+ ### Using bundler-talks
18
+
19
+ ```bash
20
+ $ gem install bundler-talks
21
+ $ bundler-talks install # instead of just `bundle install`
22
+ $ bundler-talks update # instead of just `bundle update`
23
+ ```
24
+
25
+ You can work with `bundler-talks update/install` just the same as with original `bundle update/install` - with some options and customizations:
26
+
27
+ ```bash
28
+ $ bundler-talks update rails
29
+ # instead of
30
+ $ bundle update rails
31
+ ```
32
+
33
+ How to customize voices for `talks` you can find in [talks](https://github.com/ruby-talks/talks) repo.
34
+
35
+ More info later
36
+
37
+ ## Who?
38
+
39
+ I did it by myself
40
+
41
+ ### Contributors
42
+
43
+ * @gazay
44
+
45
+ ### A lot of thanks
46
+
47
+ You can help me with this fun gem and I'll gladly add you here, or above
48
+
49
+ ## License
50
+
51
+ The MIT License
52
+
53
+ Copyright (c) 2012 gazay
54
+
55
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
56
+
57
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
58
+
59
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
60
+
data/Rakefile ADDED
@@ -0,0 +1,9 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'bundler'
4
+ Bundler::GemHelper.install_tasks
5
+
6
+ desc 'Run all tests by default'
7
+ task :default do
8
+ system("rspec spec")
9
+ end
data/bin/bundler-talks ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ bundler_talks_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
4
+ $LOAD_PATH.unshift(bundler_talks_dir) unless $LOAD_PATH.include?(bundler_talks_dir)
5
+ require 'bundler-talks'
6
+
7
+ `bundle #{ARGV.join(' ')}`
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "bundler-talks/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "bundler-talks"
7
+ s.version = BundlerTalks::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ['gazay']
10
+ s.email = ['alex.gaziev@gmail.com']
11
+ s.homepage = "https://github.com/ruby-talks/bundler-talks"
12
+ s.summary = %q{Here combined talks functionalities for bundler}
13
+ s.description = %q{Here combined talks functionalities for bundler}
14
+
15
+ s.rubyforge_project = "bundler-talks"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+
22
+ s.add_dependency 'talks'
23
+ s.add_dependency 'bundler'
24
+ end
@@ -0,0 +1,20 @@
1
+ require 'bundler'
2
+
3
+ module Bundler
4
+ class CLI < Thor
5
+
6
+ original_install_method = instance_method :install
7
+ define_method :install do
8
+ Talks.info 'Bunlde install started'
9
+ original_install_method.bind(self).call
10
+ Talks.info 'Bunlde install ended'
11
+ end
12
+
13
+ original_update_method = instance_method :update
14
+ define_method :update do |*gems|
15
+ Talks.info 'Bunlde update started'
16
+ original_update_method.bind(self).call(*gems)
17
+ Talks.info 'Bunlde update ended'
18
+ end
19
+ end
20
+ end
File without changes
@@ -0,0 +1,3 @@
1
+ module BundlerTalks
2
+ VERSION = '0.0.2'
3
+ end
@@ -0,0 +1,5 @@
1
+ require 'talks'
2
+ require 'bundler-talks/patches'
3
+
4
+ module BundlerTalks
5
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bundler-talks
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - gazay
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-05-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: talks
16
+ requirement: !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: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: bundler
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: Here combined talks functionalities for bundler
47
+ email:
48
+ - alex.gaziev@gmail.com
49
+ executables:
50
+ - bundler-talks
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - CHANGELOG.md
55
+ - Gemfile
56
+ - README.md
57
+ - Rakefile
58
+ - bin/bundler-talks
59
+ - bundler-talks.gemspec
60
+ - lib/bundler-talks.rb
61
+ - lib/bundler-talks/patches.rb
62
+ - lib/bundler-talks/runner.rb
63
+ - lib/bundler-talks/version.rb
64
+ homepage: https://github.com/ruby-talks/bundler-talks
65
+ licenses: []
66
+ post_install_message:
67
+ rdoc_options: []
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ! '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ requirements: []
83
+ rubyforge_project: bundler-talks
84
+ rubygems_version: 1.8.24
85
+ signing_key:
86
+ specification_version: 3
87
+ summary: Here combined talks functionalities for bundler
88
+ test_files: []