guard-abletonset 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.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 763dc50ca19d8c544f2c034cfd7e2ffd01435115
|
4
|
+
data.tar.gz: 986a38c44c6e8c0b4b4c32ca9fbc8255b495e1a1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f5e4764a2205b5457efb7a1fade88e8f4d5a55c38d7868d91a812f2f428b1b4385afa2234fb01f0cb1add4d5f851008cb0e67e605a40b2121dcf06805d4f93d1
|
7
|
+
data.tar.gz: 1a0d7efa76d220b639c32e9a0bf1c68f7caab8a782f6186b388c92b3e6bb2f4ce24d5f336f00124597b673b9591f05902bbc8aaa9dc53debf6fbedb0b5eb9587
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require 'guard'
|
2
|
+
require 'guard/guard'
|
3
|
+
|
4
|
+
require 'zlib'
|
5
|
+
|
6
|
+
module Guard
|
7
|
+
class Abletonset < Guard
|
8
|
+
|
9
|
+
# Initialize a Guard.
|
10
|
+
# @param [Array<Guard::Watcher>] watchers the Guard file watchers
|
11
|
+
# @param [Hash] options the custom Guard options
|
12
|
+
def initialize(watchers = [], options = {})
|
13
|
+
super
|
14
|
+
end
|
15
|
+
|
16
|
+
# Call once when Guard starts. Please override initialize method to init stuff.
|
17
|
+
# @raise [:task_has_failed] when start has failed
|
18
|
+
def start
|
19
|
+
end
|
20
|
+
|
21
|
+
# Called when `stop|quit|exit|s|q|e + enter` is pressed (when Guard quits).
|
22
|
+
# @raise [:task_has_failed] when stop has failed
|
23
|
+
def stop
|
24
|
+
end
|
25
|
+
|
26
|
+
# Called when `reload|r|z + enter` is pressed.
|
27
|
+
# This method should be mainly used for "reload" (really!) actions like reloading passenger/spork/bundler/...
|
28
|
+
# @raise [:task_has_failed] when reload has failed
|
29
|
+
def reload
|
30
|
+
end
|
31
|
+
|
32
|
+
# Called when just `enter` is pressed
|
33
|
+
# This method should be principally used for long action like running all specs/tests/...
|
34
|
+
# @raise [:task_has_failed] when run_all has failed
|
35
|
+
def run_all
|
36
|
+
end
|
37
|
+
|
38
|
+
# Called on file(s) modifications that the Guard watches.
|
39
|
+
# @param [Array<String>] paths the changes files or paths
|
40
|
+
# @raise [:task_has_failed] when run_on_change has failed
|
41
|
+
def run_on_change(paths)
|
42
|
+
paths.each do |path|
|
43
|
+
Zlib::GzipReader.open(path) do |gz|
|
44
|
+
File.open(path + '.xml', 'w') do |file|
|
45
|
+
file << gz.read
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# Called on file(s) deletions that the Guard watches.
|
52
|
+
# @param [Array<String>] paths the deleted files or paths
|
53
|
+
# @raise [:task_has_failed] when run_on_change has failed
|
54
|
+
def run_on_deletion(paths)
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
end
|
metadata
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: guard-abletonset
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- jzgdev
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-07-09 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.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.1'
|
27
|
+
description: Converts Ableton Live .als files to XML as they're saved.
|
28
|
+
email:
|
29
|
+
- jzg.dev@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- lib/guard/guard-abletonset.rb
|
35
|
+
- lib/guard/guard-abletonset/templates/Guardfile
|
36
|
+
- lib/guard/guard-abletonset/version.rb
|
37
|
+
homepage: ''
|
38
|
+
licenses: []
|
39
|
+
metadata: {}
|
40
|
+
post_install_message:
|
41
|
+
rdoc_options: []
|
42
|
+
require_paths:
|
43
|
+
- lib
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
requirements: []
|
55
|
+
rubyforge_project:
|
56
|
+
rubygems_version: 2.6.6
|
57
|
+
signing_key:
|
58
|
+
specification_version: 4
|
59
|
+
summary: Parse Ableton Live Set file .als as XML so you can use git with your .als
|
60
|
+
files.
|
61
|
+
test_files: []
|