sawa 0.0.14 → 0.0.15

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: 160edfaee4747d442412047e54abea6f5c1988f6
4
- data.tar.gz: 5a3752cba2eb3dc90181623be3f39a028eff1adb
3
+ metadata.gz: 0c445629cbfe12a71771b7017dbae33c66b18ff3
4
+ data.tar.gz: 1590b7b9795e6fc7801d06a6ef4a443c47df0109
5
5
  SHA512:
6
- metadata.gz: 46f320b53d1f0453e18cd451d86daf54b99ce39972fcd616131e38978046ed84efe91f92fae453317b1bc3ba126b6a92d27d57ff971e5116bc6d2e6d811d3186
7
- data.tar.gz: c19355d2668196de086f05c0da5d4219b3456285b30fbcbf518ec00aa4d7bef198a68027371f6cd78cc9b787585f21ddc12ea5e036960b574fc97d54b91ac20e
6
+ metadata.gz: ffb2cb27cb17ee83be37d9287473ec034bc41049024ff201ebe43b6be5e8e02bfc256c598ce3762e79bdf205b1ef07d582508c988bc580c829117b5a329e1fc9
7
+ data.tar.gz: f98d2eb331b40ae7a42f34c0a653734c6cdcc11528e1bedf4fc333c1403694b8be554ee050a16493424272cd49d51a51aecca1db2b66767f274b625c30c8ccd6
data/bin/sawa CHANGED
@@ -31,8 +31,8 @@ class Sawa
31
31
  puts exec('git clone https://github.com/shouaya/sawaapp.git ' + file)
32
32
  exit
33
33
  end
34
-
35
- opts.on("-g", "--generate FILE", "generate source from file") do |file|
34
+
35
+ opts.on("-g", "--generate file1 file2", Array, "generate source from file") do |file|
36
36
  puts Sawa.new(file).generate_code
37
37
  exit
38
38
  end
@@ -67,7 +67,7 @@ class App extends Component {
67
67
  <Divider />
68
68
  <Route exact path="/" render={() => <Guide onLogin={this.onLogin.bind(this)} login={this.state.login} onError={this.onError.bind(this)}/>} />
69
69
  {{# sheet_arr}}
70
- <Route path='/{{resource_path}}' render={() => <{{page_name}} onError={this.onError.bind(this)}/>
70
+ <Route path='/{{resource_path}}' render={() => <{{page_name}} onError={this.onError.bind(this)}/>}/>
71
71
  {{/ sheet_arr}}
72
72
  </div>
73
73
  </Router>
data/lib/sawa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Sawa
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
data/lib/sawa.rb CHANGED
@@ -5,10 +5,10 @@ require 'yaml'
5
5
  class Sawa
6
6
  ROOT = Dir.pwd
7
7
  GEMROOT = File.dirname(File.expand_path(__FILE__))
8
- def initialize(options = {})
9
- @options = options
10
- @config = YAML.load_file("#{ROOT}/mini.yml")
11
- @work = MiniWork.new(@options, @config)
8
+ def initialize(options)
9
+ puts options
10
+ @config = YAML.load_file("#{ROOT}/#{options[1]}")
11
+ @work = MiniWork.new(options[0], @config)
12
12
  @JSRC_PATH = "#{ROOT}/www/src"
13
13
  @XML_PATH = "#{ROOT}/resources"
14
14
  @MODEL_PATH = "#{ROOT}/src/" + @config['packageModel'].split('.').join("/")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sawa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - shouaya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-21 00:00:00.000000000 Z
11
+ date: 2017-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler