guardrc 0.1

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/.gitignore ADDED
@@ -0,0 +1 @@
1
+ .DS_Store
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Keyvan Fatehi
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # Guardrc
2
+
3
+ ## Description
4
+ Guardrc allows one to have custom Guardfile commands in a different file than the Guardfile. Useful for different developers with different Guardfile preferences to be able to customize without removing/ignoring the Guardfile from git entirely.
5
+
6
+ ## Purpose
7
+ I generally commit and do not ignore the Guardfile.
8
+ I don't like to see GNTP notifications, but my collaborator does.
9
+ The solution? Use another file, call it whatever you want, gitignore it, and load it in the Guardfile
10
+
11
+ ## Usage
12
+ Create the file `.guardrc.rb` in your project (you can name it anything, .guardrc.rb is an example)
13
+ Add the gem with bundler
14
+ Next, in your Guardfile, require guardrc and eval your external file with Guardrc's help
15
+ ```ruby
16
+ require 'guardrc'
17
+ eval Guardrc.at('.guardrc.rb')
18
+ ```
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
data/guardrc.gemspec ADDED
@@ -0,0 +1,17 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/guardrc/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Keyvan Fatehi"]
6
+ gem.email = ["keyvanfatehi@gmail.com"]
7
+ gem.description = "Guardrc allows one to have custom Guardfile commands in a different file than the Guardfile. Useful for different developers with different Guardfile preferences to be able to customize without removing/ignoring the Guardfile from git entirely."
8
+ gem.summary = "Eval Guardfile commands in an external file from the Guardfile"
9
+ gem.homepage = "https://github.com/keyvanfatehi/guardrc"
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "guardrc"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = Guardrc::VERSION
17
+ end
@@ -0,0 +1,10 @@
1
+ module Guardrc
2
+ def Guardrc.at(path)
3
+ @path = path
4
+ if File.exists?(path)
5
+ File.open(@path, 'r') { |f| f.read }
6
+ else
7
+ "puts 'Guardrc not found: #{path} not loaded'"
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,3 @@
1
+ module Guardrc
2
+ VERSION = "0.1"
3
+ end
data/lib/guardrc.rb ADDED
@@ -0,0 +1,2 @@
1
+ require "guardrc/version"
2
+ require "guardrc/guardrc"
metadata ADDED
@@ -0,0 +1,56 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: guardrc
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Keyvan Fatehi
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-24 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Guardrc allows one to have custom Guardfile commands in a different file
15
+ than the Guardfile. Useful for different developers with different Guardfile preferences
16
+ to be able to customize without removing/ignoring the Guardfile from git entirely.
17
+ email:
18
+ - keyvanfatehi@gmail.com
19
+ executables: []
20
+ extensions: []
21
+ extra_rdoc_files: []
22
+ files:
23
+ - .gitignore
24
+ - Gemfile
25
+ - LICENSE
26
+ - README.md
27
+ - Rakefile
28
+ - guardrc.gemspec
29
+ - lib/guardrc.rb
30
+ - lib/guardrc/guardrc.rb
31
+ - lib/guardrc/version.rb
32
+ homepage: https://github.com/keyvanfatehi/guardrc
33
+ licenses: []
34
+ post_install_message:
35
+ rdoc_options: []
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ required_rubygems_version: !ruby/object:Gem::Requirement
45
+ none: false
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ requirements: []
51
+ rubyforge_project:
52
+ rubygems_version: 1.8.24
53
+ signing_key:
54
+ specification_version: 3
55
+ summary: Eval Guardfile commands in an external file from the Guardfile
56
+ test_files: []