guard-fasterer 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3e26a2634413c61f7155d82cbc47a1932cf2719f
4
+ data.tar.gz: f5dd5d9ac28c933641daca0dadd6b1a5e21e2e29
5
+ SHA512:
6
+ metadata.gz: b91cbe53021a6b206695caf05ba77774f7672e0d2dac6e395881ce8f9f8782de269bb52d8713a2f20ba98d53af138cf57e900d10cc2eeb6824ff7ec8f3ea48cd
7
+ data.tar.gz: 000c476d22b060c2a8b120553c28126a823db03b7a83250192f6bd7ee16ed992e5f71bad7edc21c6e68c46a81f1f6b8c445f5e37e320858a1aee65a229cc010c
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Matthias Döring
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ Guard::Fasterer
2
+ =================
3
+
4
+ Guard gem for Fasterer
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ gem 'guard-fasterer'
11
+
12
+ And then execute:
13
+
14
+ $ bundle
15
+
16
+ Or install it yourself as:
17
+
18
+ $ gem install guard-fasterer
19
+
20
+ ## Usage
21
+
22
+ Add guard definition:
23
+
24
+ $ guard init fasterer
25
+
26
+ Setup your project for [fasterer gem](https://github.com/DamirSvrtan/fasterer#configuration)
27
+
28
+ ## Links
29
+
30
+ * [Guard](https://github.com/guard/guard#readme)
31
+ * [Fasterer](https://github.com/DamirSvrtan/fasterer#readme)
@@ -0,0 +1,52 @@
1
+ require 'guard/fasterer/version'
2
+
3
+ module Guard
4
+ class Fasterer < Plugin
5
+ def initialize(options = {})
6
+ super
7
+
8
+ @options = { run_on_start: false,
9
+ bundler: File.exist?("#{Dir.pwd}/Gemfile")
10
+ }.merge(options)
11
+ end
12
+
13
+ def bundler?
14
+ @options[:bundler]
15
+ end
16
+
17
+ def run_on_start?
18
+ @options[:run_on_start]
19
+ end
20
+
21
+ def start
22
+ Kernel.system(fasterer_command) if run_on_start?
23
+ true
24
+ end
25
+
26
+ def stop
27
+ true
28
+ end
29
+
30
+ def reload
31
+ true
32
+ end
33
+
34
+ def run_all
35
+ Kernel.system(fasterer_command)
36
+ end
37
+
38
+ def run_on_change(_paths)
39
+ system(fasterer_command)
40
+ end
41
+
42
+ private
43
+
44
+ def fasterer_command
45
+ cmd = []
46
+ cmd << 'bundle exec' if bundler?
47
+ cmd << 'fasterer'
48
+
49
+ cmd.join(' ')
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,3 @@
1
+ guard 'fasterer' do
2
+ watch(%r{^app/.*.rb})
3
+ end
@@ -0,0 +1,5 @@
1
+ module Guard
2
+ module FastererVersion
3
+ VERSION = '0.1.0'
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,133 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: guard-fasterer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Matthias Döring
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-08-27 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: 2.13.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 2.13.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: guard-compat
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.2.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 1.2.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: fasterer
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.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.1'
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.10'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.10'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Guard gem for fasterer - automatically runs fasterer
98
+ email:
99
+ - matt@foryourcontent.de
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - LICENSE.txt
105
+ - README.md
106
+ - lib/guard/fasterer.rb
107
+ - lib/guard/fasterer/templates/Guardfile
108
+ - lib/guard/fasterer/version.rb
109
+ homepage: https://github.com/matt-hh/guard-fasterer
110
+ licenses:
111
+ - MIT
112
+ metadata: {}
113
+ post_install_message:
114
+ rdoc_options: []
115
+ require_paths:
116
+ - lib
117
+ required_ruby_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ required_rubygems_version: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ requirements: []
128
+ rubyforge_project:
129
+ rubygems_version: 2.4.5.1
130
+ signing_key:
131
+ specification_version: 4
132
+ summary: Guard gem for fasterer
133
+ test_files: []