sawa 0.0.3 → 0.0.4

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: 863315e58ff876e3c62a7b83c8fa12ba9752c9c0
4
- data.tar.gz: 9923f694c218df588e5e3998811c4e516323f2d5
3
+ metadata.gz: c47bbe5403c7588283749222d8c9a28f2d47b4df
4
+ data.tar.gz: e91c8364730c5a6defb4a37ac9b8a9062ed18976
5
5
  SHA512:
6
- metadata.gz: f0a4a4aa27723f9b860f0b42815b131046fc1fa1b677a028506cca932ef55e39492ece0070b7d346268edaa12722043ddd9a6cd518f210ba3cee9c837956dac9
7
- data.tar.gz: ff632cc8e7945133a156f3a61c6d07781de2b5a7d06845740317aca37d7e2021aae2773a33f5b852840c628cb973fd1bae21779ef0091ec613ba16d3fbf98e41
6
+ metadata.gz: 3a08f62d6d1cb7ad63eca276adae1162d5b79cbb3ef3d2df1f03d97fec25fea98a0ea4d86efe6a65e4510eaa7a3ae6c4082467f3faa71288751eb50baa54072a
7
+ data.tar.gz: eb89e5761f4c21dc3b4495eeaba9ae29b73ecabbd1647b78b602e653dd4841dcb0dd9ae1ecab3046140b713bec11d1ab668522a6f337841e620d3566144908d7
data/README.md CHANGED
@@ -1,41 +1,36 @@
1
- # Sawa
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/sawa`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'sawa'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install sawa
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/sawa. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
-
37
-
38
- ## License
39
-
40
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
1
+ # Sawa
2
+
3
+ install it yourself as:
4
+
5
+ $ gem install sawa
6
+
7
+ ## Usage
8
+
9
+ create new crud project:
10
+
11
+ $ sawa -n demo
12
+
13
+ create new crud project:
14
+
15
+ $ cd demo
16
+ $ sawa -g model.xls
17
+ $ ant compile
18
+
19
+ run api server (*before run api you must fix db config in mini.yml)
20
+
21
+ $ sawa -s
22
+
23
+ [http://localhost:9000/](http://localhost:9000)
24
+
25
+ run client
26
+
27
+ $ cd www
28
+ $ npm install
29
+ $ npm start
30
+
31
+ [http://localhost:3000/](http://localhost:3000)
32
+
33
+ ## License
34
+
35
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
36
+
@@ -25,7 +25,7 @@ class MiniResource
25
25
  if @row[@idx_role] == nil or @row[@idx_role] == ""
26
26
  nil
27
27
  else
28
- "\"" + @row[@idx_role].split(",").join("\",\"") + "\""
28
+ "\"" + @row[@idx_role].split(",").join(",") + "\""
29
29
  end
30
30
  end
31
31
 
@@ -18,7 +18,7 @@ class MiniSheet < Mustache
18
18
  @idx_unique = 3
19
19
  @idx_nullable = 4
20
20
  @idx_jsonignore = 5
21
- @idx_title = 6
21
+ @idx_mtitle = 6
22
22
  @idx_mappedBy = 7
23
23
  @idx_refColumn = 8
24
24
  @idx_isList = 5
@@ -87,7 +87,7 @@ class MiniSheet < Mustache
87
87
  arr = []
88
88
  @sheet.each do |row|
89
89
  if row[0] == "m" and row[@idx_jsonignore] == "1"
90
- arr.push "#{@sheet.row(0)[@idx_path]}.#{row[@idx_name]}=#{row[@idx_type]},#{row[@idx_nullable]},#{row[@idx_title]}"
90
+ arr.push "#{@sheet.row(0)[@idx_path]}.#{row[@idx_name]}=#{row[@idx_type]},#{row[@idx_nullable]},#{row[@idx_mtitle]}"
91
91
  end
92
92
  end
93
93
  arr
data/lib/sawa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Sawa
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/sawa-0.0.3.gem ADDED
Binary file
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - shouaya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-08 00:00:00.000000000 Z
11
+ date: 2017-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -127,7 +127,7 @@ files:
127
127
  - lib/sawa/tpl/property.mustache
128
128
  - lib/sawa/tpl/resource.mustache
129
129
  - lib/sawa/version.rb
130
- - sawa-0.0.2.gem
130
+ - sawa-0.0.3.gem
131
131
  - sawa.gemspec
132
132
  homepage: https://github.com/shouaya/sawagem
133
133
  licenses:
data/sawa-0.0.2.gem DELETED
Binary file