guard-catalog 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: de8978773105547c6ef7535a39b2412ccaef151d
4
+ data.tar.gz: ed88435f88c3adf6094e9a56a5137e8a4b8cd493
5
+ SHA512:
6
+ metadata.gz: 89b9acb55241370adde333528a45cd5f56d9664cb0dcb0986b9a0ccec3113e02766e7d89a54005134c0b90967c11c297f546f9ef779df0af6b88db7277b651b0
7
+ data.tar.gz: e22d0a9b7c098c61ef6924371d73825ae4fb57d70689975368b86689dc7edefae18f0314b72bcd025e7f2c05c2cf55b9e9a5035ab5a4ff62ff28d2f0aec22543
@@ -0,0 +1 @@
1
+ *.gem
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
@@ -0,0 +1,47 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ guard-catalog (0.1.0)
5
+ guard (~> 2.6)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ celluloid (0.16.0)
11
+ timers (~> 4.0.0)
12
+ coderay (1.1.0)
13
+ ffi (1.9.3)
14
+ formatador (0.2.5)
15
+ guard (2.6.1)
16
+ formatador (>= 0.2.4)
17
+ listen (~> 2.7)
18
+ lumberjack (~> 1.0)
19
+ pry (>= 0.9.12)
20
+ thor (>= 0.18.1)
21
+ hitimes (1.2.2)
22
+ listen (2.7.9)
23
+ celluloid (>= 0.15.2)
24
+ rb-fsevent (>= 0.9.3)
25
+ rb-inotify (>= 0.9)
26
+ lumberjack (1.0.9)
27
+ method_source (0.8.2)
28
+ pry (0.10.1)
29
+ coderay (~> 1.1.0)
30
+ method_source (~> 0.8.1)
31
+ slop (~> 3.4)
32
+ rake (10.3.2)
33
+ rb-fsevent (0.9.4)
34
+ rb-inotify (0.9.5)
35
+ ffi (>= 0.5.0)
36
+ slop (3.6.0)
37
+ thor (0.19.1)
38
+ timers (4.0.1)
39
+ hitimes
40
+
41
+ PLATFORMS
42
+ ruby
43
+
44
+ DEPENDENCIES
45
+ bundler (~> 1.3)
46
+ guard-catalog!
47
+ rake
@@ -0,0 +1 @@
1
+ guard :catalog
@@ -0,0 +1,32 @@
1
+ # guard-catalog
2
+ *[Catalog](https://github.com/garno/catalog) prevents your folders from becoming a mess.*
3
+
4
+ # Installation
5
+
6
+ Before beginning, you'll need [guard](https://github.com/guard/guard) installed on your system :
7
+
8
+ ```
9
+ gem install guard
10
+ ```
11
+
12
+ Once completed, install `guard-catalog` :
13
+
14
+ ```
15
+ gem install guard-catalog
16
+ ```
17
+
18
+ Finally, generate a `Guardfile` in the folder you want to *catalog* :
19
+
20
+ ```
21
+ guard init catalog
22
+ ```
23
+
24
+ # Usage
25
+
26
+ This can't be use as of today, I need to complete the [catalog](https://github.com/garno/catalog) CLI before.
27
+ Stay tuned :)
28
+
29
+ ## License
30
+
31
+ Catalog is © 2014 Samuel Garneau and may be freely distributed under the MIT license. See the LICENSE.md file for more information.
32
+
@@ -0,0 +1,23 @@
1
+ lib = File.expand_path('../lib/guard', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+
4
+ require 'catalog'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'guard-catalog'
8
+ spec.version = Guard::Catalog::VERSION
9
+ spec.authors = ['Samuel Garneau']
10
+ spec.email = ['sam@garno.me']
11
+ spec.description = 'Automatic folder clean up with Catalog.'
12
+ spec.summary = 'Automatic folder clean up with Catalog.'
13
+ spec.homepage = 'https://github.com/garno/guard-catalog'
14
+ spec.license = 'BSD 3-Clause'
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.require_paths = ['lib/**/*']
18
+
19
+ spec.add_development_dependency 'bundler', '~> 1.3'
20
+ spec.add_development_dependency 'rake'
21
+
22
+ spec.add_dependency 'guard', '~> 2.6'
23
+ end
@@ -0,0 +1,33 @@
1
+ require 'guard'
2
+ require 'guard/plugin'
3
+
4
+ module Guard
5
+ class Catalog < Plugin
6
+ VERSION = '0.1.0'
7
+
8
+ def initialize(options = {})
9
+ options[:config] ||= File.expand_path('~/.catalog.yml')
10
+
11
+ super
12
+ end
13
+
14
+ def start
15
+ catalog
16
+ end
17
+
18
+ def run_on_additions(paths)
19
+ catalog
20
+ end
21
+
22
+ protected
23
+
24
+ def catalog
25
+ cmd = []
26
+ cmd << 'catalog'
27
+ cmd << "--path #{Dir.pwd}"
28
+ cmd << "--config #{options[:config]}" if options[:config]
29
+
30
+ `#{cmd}`
31
+ end
32
+ end
33
+ end
@@ -0,0 +1 @@
1
+ guard :catalog
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: guard-catalog
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Samuel Garneau
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-09-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: guard
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.6'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.6'
55
+ description: Automatic folder clean up with Catalog.
56
+ email:
57
+ - sam@garno.me
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - Gemfile
64
+ - Gemfile.lock
65
+ - Guardfile
66
+ - README.md
67
+ - guard-catalog.gemspec
68
+ - lib/guard/catalog.rb
69
+ - lib/guard/catalog/templates/Guardfile
70
+ homepage: https://github.com/garno/guard-catalog
71
+ licenses:
72
+ - BSD 3-Clause
73
+ metadata: {}
74
+ post_install_message:
75
+ rdoc_options: []
76
+ require_paths:
77
+ - lib/**/*
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ required_rubygems_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ requirements: []
89
+ rubyforge_project:
90
+ rubygems_version: 2.2.2
91
+ signing_key:
92
+ specification_version: 4
93
+ summary: Automatic folder clean up with Catalog.
94
+ test_files: []