source_press 0.0.2 → 0.0.3
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 +4 -4
- data/bin/srcpress +1 -1
- data/lib/source_press.rb +22 -20
- data/lib/source_press/config.rb +1 -1
- data/lib/source_press/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f295f385dfc556bc0c37d2fe5aab9c7c733869dc
|
4
|
+
data.tar.gz: 4bd335aa61ab0704370e6ef27c0a17aeb5d34d9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b158817595bcb13086fb5a7493129ec184df0cd49e359f59e75100f0f6e3256e6b5728cda10a0f8be76ff78315fa9f5097bd43fa448bccf7eba241019604952
|
7
|
+
data.tar.gz: 0007ef2b47d432d4430ba6172d8693b59bcc724fcf12107030a36c1d662c1012544cd3b0c031e01e103ca792ed9f615719527a86439d18958509f37a08a84dd4
|
data/bin/srcpress
CHANGED
data/lib/source_press.rb
CHANGED
@@ -2,29 +2,31 @@ require_relative "source_press/version"
|
|
2
2
|
require_relative "source_press/press"
|
3
3
|
require_relative "source_press/config"
|
4
4
|
|
5
|
-
|
6
|
-
#
|
7
|
-
#
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
5
|
+
class SourcePress
|
6
|
+
#
|
7
|
+
# Runs compiler
|
8
|
+
#
|
9
|
+
def start_press(config_file, is_silent)
|
10
|
+
settings = Press::Settings.new(config_file)
|
11
|
+
Press::Compiler.new(settings, is_silent).run
|
12
|
+
end
|
12
13
|
|
13
|
-
#
|
14
|
-
# Main entry point
|
15
|
-
#
|
16
|
-
def main(args)
|
17
|
-
|
18
|
-
|
14
|
+
#
|
15
|
+
# Main entry point
|
16
|
+
#
|
17
|
+
def main(args = [])
|
18
|
+
is_silent = false
|
19
|
+
config = ".press.yml"
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
unless args.empty?
|
22
|
+
abort(SourcePress::VERSION) if args[0] == "-v"
|
23
|
+
is_silent = args.include?("--silent")
|
23
24
|
|
24
|
-
|
25
|
-
|
25
|
+
m = args[0].match(/config=(.*)/)
|
26
|
+
config = m[1].strip unless m.nil?
|
26
27
|
|
27
|
-
|
28
|
+
Config.generate(config) if args[0].strip == "gen-config"
|
29
|
+
end
|
30
|
+
start_press(config, is_silent)
|
28
31
|
end
|
29
|
-
start_press(config, is_silent)
|
30
32
|
end
|
data/lib/source_press/config.rb
CHANGED
data/lib/source_press/version.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: source_press
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- D Stillwwater
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Easily combine multiple source files into a single file, works on any
|
14
|
-
language as long as .press.yml is configured correctly.
|
14
|
+
language as long as .press.yml is configured correctly. Run with `$ srcpress`
|
15
15
|
email: stillwwater@gmail.com
|
16
16
|
executables:
|
17
17
|
- srcpress
|