design-storyboard 0.8.2 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd70f23c7735992bce1ddc981b1b60200e749534
4
- data.tar.gz: bfdc6f0b9fea43bf3f0105968d19d41668ec9b11
3
+ metadata.gz: 29dc8b5a787823d5d17a4155906248812e57c3fd
4
+ data.tar.gz: 74aa0cc54eaeab3bb31e2be874c694f55338c6ee
5
5
  SHA512:
6
- metadata.gz: d66eaf1cf0d741494f4e9255f9d91bb97509f98669235199b24969d9e31d30bb9e9d61f264781874e7d4902ae7aee0d9dc127d88e20c3a6d42f3e45f2aeb6175
7
- data.tar.gz: 10baa3489c15105369872e5736fd70994f685b37d9bf9bb2b34d4e06f598487a8fa616d3db5fa9353fce691edc0dadda6b84af253660b6372877c404bf6810ba
6
+ metadata.gz: 0b7ef3e48f18bd0760a8fbccc7d856fe5ece59e262e6db76880706bfd8ecd7d2f590e91327dccc86dc222c189204d26346fca63ca6bd7314bda6bcf08419e3dd
7
+ data.tar.gz: 3812e7997be5881e0a96bfe9889d28abd255d585fea4217d3bfcb85e8f758102c1356f578e54791a5744c8deb1f6bab543c1c7cf1b9479bac5d0bca161f26d46
data/README.md CHANGED
@@ -17,7 +17,7 @@ gem install design-storyboard
17
17
  # How to use?
18
18
 
19
19
  ```shell
20
- story build [Storyboard-File.txt]
20
+ story build STORY_FILE_PATH
21
21
  ```
22
22
  or try 「story help」for more information.
23
23
 
@@ -21,4 +21,18 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.7"
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
23
  spec.add_development_dependency "thor", "~> 0.18"
24
+
25
+ spec.post_install_message = <<EOS
26
+ ---------------------------------------
27
+ Thanks for installing!
28
+ A new command `story` was added, enjoy!
29
+
30
+ $ story help
31
+ Commands:
32
+ story build [STORY_FILE_PATH] # Build storyboard (html) from story file.
33
+ story build [STORY_FILE_PATH] --open # Save file and open storeboard file with browser (Mac Only)
34
+ story version # Prints version
35
+
36
+ ---------------------------------------
37
+ EOS
24
38
  end
@@ -6,13 +6,21 @@ require 'design_storyboard/version'
6
6
 
7
7
  module DesignStoryboard
8
8
  class Cli < Thor
9
- desc 'build [STORY_FILE_PATH]', 'Build storyboard (html) from file.'
10
9
 
10
+ option :open, :type => :boolean
11
+ desc 'build [STORY_FILE_PATH] --open', 'Build storyboard (html) from file.'
11
12
  def build(path)
12
13
  Setting[:story_file_path] = path
13
14
  Setting.update_dump_data_path
15
+ Setting[:auto_open] = true if options[:open]
14
16
 
15
17
  DesignStoryboard.build
16
18
  end
19
+
20
+ desc 'version', 'Prints version'
21
+ def version
22
+ puts VERSION
23
+ end
24
+
17
25
  end
18
26
  end
@@ -81,6 +81,12 @@ module DesignStoryboard
81
81
 
82
82
  title 'Here you are'
83
83
  attention Setting[:dump_file_path]
84
+
85
+ open_browser if Setting[:auto_open]
86
+ end
87
+
88
+ def open_browser
89
+ `open "#{Setting[:dump_file_path]}"`
84
90
  end
85
91
 
86
92
  end
@@ -31,5 +31,6 @@ module DesignStoryboard
31
31
 
32
32
  Setting[:story_file_path] = ''
33
33
  Setting[:dump_file_path] = ''
34
- Setting[:page_title] = ''
34
+ Setting[:page_title] = ''
35
+ Setting[:auto_open] = false
35
36
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module DesignStoryboard
4
- VERSION = "0.8.2"
4
+ VERSION = "0.8.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: design-storyboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guanting Chen (guanting886)
@@ -78,7 +78,18 @@ homepage: https://github.com/guanting886/
78
78
  licenses:
79
79
  - MIT
80
80
  metadata: {}
81
- post_install_message:
81
+ post_install_message: |
82
+ ---------------------------------------
83
+ Thanks for installing!
84
+ A new command `story` was added, enjoy!
85
+
86
+ $ story help
87
+ Commands:
88
+ story build [STORY_FILE_PATH] # Build storyboard (html) from story file.
89
+ story build [STORY_FILE_PATH] --open # Save file and open storeboard file with browser (Mac Only)
90
+ story version # Prints version
91
+
92
+ ---------------------------------------
82
93
  rdoc_options: []
83
94
  require_paths:
84
95
  - lib