one_pager 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/bin/one_pager +3 -2
- data/lib/one_pager/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48a3415db4d5a7dfbaf2f9850e0b26f8eaaab8d20c2ac3219c1c1b2ab12b872e
|
4
|
+
data.tar.gz: 1805aa605bcf9442ed65f1a7e5c51cccd70f66da30f2d4d9ecc04cdf9ec18763
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c6dd3a35598d3f7c1c195766de1262868ebe12b086e4313f064ea7b8ad539dbb1598be44ff8bcb74d313d4c6640a7ce4df975160ec415424883ede686e85541
|
7
|
+
data.tar.gz: 0a2b8b2a571a8e82c676e59f95bf3070864429dea5162b09105bad878b47f8119eeb27fc11cbfe6506d748f36600ea9fcff3c578576b6bc02ad9d1747718c0d6
|
data/.gitignore
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
pkg/
|
data/Gemfile.lock
CHANGED
data/bin/one_pager
CHANGED
@@ -38,6 +38,7 @@ class App
|
|
38
38
|
c.action do |global_options,options,args|
|
39
39
|
|
40
40
|
system 'mkdir', '-p', 'docs/one-pagers'
|
41
|
+
system 'mkdir', '-p', '.one-pager'
|
41
42
|
|
42
43
|
File.open('.one-pager/config.json', 'w') { |file| file.write(DEFAULT_CONFIGURATION_TEMPLATE) }
|
43
44
|
|
@@ -54,8 +55,8 @@ class App
|
|
54
55
|
|
55
56
|
c.action do |global_options,options,args|
|
56
57
|
filename = "#{args[0].downcase.gsub(" ", "_")}.md"
|
57
|
-
template = if File.exists?(".one-pager.json")
|
58
|
-
JSON.read(".one-pager.json")["template"]
|
58
|
+
template = if File.exists?(".one-pager/config.json")
|
59
|
+
JSON.read(".one-pager/config.json")["template"]
|
59
60
|
elsif options[:template]
|
60
61
|
options[:template]
|
61
62
|
else
|
data/lib/one_pager/version.rb
CHANGED