guard-flay 0.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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Y2NiYzU0YWE5YWRhMjQ3YzEzYzM3Mzc0ZjViNDljNDg3OWRkOGQ1Yw==
5
+ data.tar.gz: !binary |-
6
+ ODIxOTNiODFmZDNkMDNiNWNhOTQ1ZWE4NTVjMWZhMTY4M2Y3OGViNg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YzlmYjg0YzE2YTIyNDlmM2U1NTI4ODc0ODU4OTg0YTA2NGUxNTYyYTBhNjMy
10
+ MjZkZmU4MTI0NDlmYjZiNDc2NGE3MzUwZmYxNGUwOGVjMzYxOTJiZjFmNWE5
11
+ MTE0NTgyZTM5YzY4YWJhODE2MDIyODVmYzJlNDY1NDI3ZDI5Yzc=
12
+ data.tar.gz: !binary |-
13
+ MDdmNjRkZGVlMmY5Y2NmMTViOWMwOTA5MDdhNzgwMDEzMjU1ZTYxOWIxMTYx
14
+ NjRkZGYyMmUxY2ZlOGVmNjdhNGQ3YmUzZDIwMTZkNWE3Zjg4MmE1MzM4YThh
15
+ ZWQyNjRhNDU1NGEzMzQ2MTViMmQyYTUyODYwMzYyODcxNDBlOGY=
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in guard-flay.gemspec
4
+ gemspec
@@ -0,0 +1,8 @@
1
+ guard :flay do
2
+ watch(%r{^lib/(.+)\.rb$})
3
+
4
+ # Rails example
5
+ watch(%r{^app/(.+)\.rb$})
6
+ watch(%r{^app/(.*)(\.erb|\.haml)$})
7
+ watch('config/routes.rb')
8
+ end
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Péricles Dias
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.
@@ -0,0 +1,54 @@
1
+ # Guard::Flay [![Dependency Status](https://gemnasium.com/pericles/guard-flay.png)](https://gemnasium.com/pericles/guard-flay)
2
+
3
+ Flay guard flays every file on change.
4
+
5
+ * Compatible with Bundler 1.0.x
6
+
7
+ ## Install
8
+
9
+ Please be sure to have [Guard](https://github.com/guard/guard) installed before continue.
10
+
11
+ Add it to your Gemfile (inside development group):
12
+
13
+ ``` ruby
14
+ group :development do
15
+ gem 'guard-flay', git: 'git://github.com/pericles/guard-flay.git'
16
+ end
17
+ ```
18
+
19
+ Add guard definition to your Guardfile by running this command:
20
+
21
+ ```
22
+ $ guard init flay
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ Please read [Guard usage doc](https://github.com/guard/guard#readme)
28
+
29
+ ## Guardfile
30
+
31
+ ```ruby
32
+ guard :flay do
33
+ watch(%r{^lib/(.+)\.rb$})
34
+
35
+ # Rails example
36
+ watch(%r{^app/(.+)\.rb$})
37
+ watch(%r{^app/(.*)(\.erb|\.haml)$})
38
+ watch('config/routes.rb')
39
+ end
40
+ ```
41
+
42
+ Please read [Guard doc](https://github.com/guard/guard#readme) for more information about the Guardfile DSL.
43
+
44
+ ## Development
45
+
46
+ * Source hosted at [GitHub](https://github.com/pericles/guard-flay)
47
+ * Report issues/Questions/Feature requests on [GitHub Issues](https://github.com/pericles/guard-flay/issues)
48
+
49
+ Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change
50
+ you make.
51
+
52
+ ## Authors
53
+
54
+ [Péricles Dias](https://github.com/pericles)
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'guard/flay/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "guard-flay"
8
+ spec.version = Guard::FlayVersion::VERSION
9
+ spec.authors = ["Péricles Dias"]
10
+ spec.email = ["pericles.dias@gmail.com"]
11
+ spec.description = "Guard::Flay automatically run flay."
12
+ spec.summary = "Guard gem for Flay"
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.required_rubygems_version = '>= 2.0.6'
22
+ spec.rubyforge_project = 'guard-flay'
23
+
24
+ spec.add_dependency 'guard', '>= 1.8'
25
+ spec.add_dependency 'flay', '~> 2.4.0'
26
+ spec.add_dependency 'flay-haml', '~> 0.0.3'
27
+
28
+ spec.add_development_dependency "bundler", "~> 1.3"
29
+ spec.add_development_dependency "rake"
30
+ end
@@ -0,0 +1,18 @@
1
+ require 'guard'
2
+ require 'guard/guard'
3
+
4
+ module Guard
5
+ class Flay < Guard
6
+ autoload :Processor, 'guard/flay/processor'
7
+
8
+ def start; end
9
+
10
+ def reload; end
11
+
12
+ def run_all; end
13
+
14
+ def run_on_changes(paths)
15
+ Processor.process paths
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,17 @@
1
+ require 'flay'
2
+
3
+ module Guard
4
+ class Flay
5
+ class Processor
6
+ def self.process(paths)
7
+ UI.info "Running flay for files: '#{paths.join('\', \'')}'", reset: true
8
+
9
+ flay = ::Flay.new(::Flay.parse_options)
10
+ files = ::Flay.expand_dirs_to_files(paths)
11
+ flay.process(*files)
12
+ flay.report
13
+ puts
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,8 @@
1
+ guard :flay do
2
+ watch(%r{^lib/(.+)\.rb$})
3
+
4
+ # Rails example
5
+ watch(%r{^app/(.+)\.rb$})
6
+ watch(%r{^app/(.*)(\.erb|\.haml)$})
7
+ watch('config/routes.rb')
8
+ end
@@ -0,0 +1,5 @@
1
+ module Guard
2
+ module FlayVersion
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,126 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: guard-flay
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Péricles Dias
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: guard
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '1.8'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '1.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: flay
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 2.4.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 2.4.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: flay-haml
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 0.0.3
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.0.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Guard::Flay automatically run flay.
84
+ email:
85
+ - pericles.dias@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - .gitignore
91
+ - Gemfile
92
+ - Guardfile
93
+ - LICENSE.txt
94
+ - README.md
95
+ - Rakefile
96
+ - guard-flay.gemspec
97
+ - lib/guard/flay.rb
98
+ - lib/guard/flay/processor.rb
99
+ - lib/guard/flay/templates/Guardfile
100
+ - lib/guard/flay/version.rb
101
+ homepage: ''
102
+ licenses:
103
+ - MIT
104
+ metadata: {}
105
+ post_install_message:
106
+ rdoc_options: []
107
+ require_paths:
108
+ - lib
109
+ required_ruby_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: 2.0.6
119
+ requirements: []
120
+ rubyforge_project: guard-flay
121
+ rubygems_version: 2.2.2
122
+ signing_key:
123
+ specification_version: 4
124
+ summary: Guard gem for Flay
125
+ test_files: []
126
+ has_rdoc: