rails-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,48 @@
1
+ # Rails-talks gem — now your rails repo and applications can talk with you :)
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 your rails repo and applications
6
+ tasks start and when they end.
7
+
8
+ ## Why?
9
+
10
+ This idea appears on reddotrubyconf just as is :) I just thought about slow specs in rails and decided that I want to hear when they end.
11
+
12
+ ## How?
13
+
14
+ This gem using gem `talks` and overwrites some of rails methods when you call `rails-talks` instead of `rake` from your command line.
15
+
16
+ ### Using spec-talks
17
+
18
+ ```bash
19
+ $ gem install rails-talks
20
+ $ rails-talks test # instead of just `bundle exec rake test`
21
+ ```
22
+
23
+ More info later
24
+
25
+ ## Who?
26
+
27
+ I did it by myself
28
+
29
+ ### Contributors
30
+
31
+ * @gazay
32
+
33
+ ### A lot of thanks
34
+
35
+ You can help me with this fun gem and I'll gladly add you here, or above
36
+
37
+ ## License
38
+
39
+ The MIT License
40
+
41
+ Copyright (c) 2012 gazay
42
+
43
+ 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:
44
+
45
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
46
+
47
+ 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.
48
+
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/rails-talks ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ rails_talks_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
4
+ $LOAD_PATH.unshift(rails_talks_dir) unless $LOAD_PATH.include?(rails_talks_dir)
5
+ require 'rails-talks'
6
+
7
+ if ARGV.first && ARGV.first == 'test'
8
+ RailsTalks.test ARGV
9
+ else
10
+ RailsTalks.run ARGV
11
+ end
@@ -0,0 +1,13 @@
1
+ require 'talks'
2
+ require 'rails-talks/patches'
3
+ require 'rails-talks/runner'
4
+
5
+ module RailsTalks
6
+ class << self
7
+
8
+ def test(opts)
9
+ Runner.run_tests opts
10
+ end
11
+
12
+ end
13
+ end
File without changes
@@ -0,0 +1,13 @@
1
+ module RailsTalks
2
+ module Runner
3
+ class << self
4
+
5
+ def run_tests(opts)
6
+ Talks.info 'Rails tests started'
7
+ system "bundle exec rake test #{opts[1..-1].join(' ')}"
8
+ Talks.info 'Rails tests ended'
9
+ end
10
+
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ module RailsTalks
2
+ VERSION = '0.0.2'
3
+ end
@@ -0,0 +1,23 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "rails-talks/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "rails-talks"
7
+ s.version = RailsTalks::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/rails-talks"
12
+ s.summary = %q{Here combined talks functionalities for rails repo and rails projects}
13
+ s.description = %q{Rails repo tests will talk to you and some of tasks too, if you configure them}
14
+
15
+ s.rubyforge_project = "rails-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
+ end
metadata ADDED
@@ -0,0 +1,73 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails-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
+ description: Rails repo tests will talk to you and some of tasks too, if you configure
31
+ them
32
+ email:
33
+ - alex.gaziev@gmail.com
34
+ executables:
35
+ - rails-talks
36
+ extensions: []
37
+ extra_rdoc_files: []
38
+ files:
39
+ - CHANGELOG.md
40
+ - Gemfile
41
+ - README.md
42
+ - Rakefile
43
+ - bin/rails-talks
44
+ - lib/rails-talks.rb
45
+ - lib/rails-talks/patches.rb
46
+ - lib/rails-talks/runner.rb
47
+ - lib/rails-talks/version.rb
48
+ - rails-talks.gemspec
49
+ homepage: https://github.com/ruby-talks/rails-talks
50
+ licenses: []
51
+ post_install_message:
52
+ rdoc_options: []
53
+ require_paths:
54
+ - lib
55
+ required_ruby_version: !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ! '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ requirements: []
68
+ rubyforge_project: rails-talks
69
+ rubygems_version: 1.8.24
70
+ signing_key:
71
+ specification_version: 3
72
+ summary: Here combined talks functionalities for rails repo and rails projects
73
+ test_files: []