sawa 0.0.2

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f39eefee142eb6f59e65b1fe0d82fd45efbedf5b
4
+ data.tar.gz: 2303cb3b6570dd0acbdf24e4cbe42bd8cbd8032f
5
+ SHA512:
6
+ metadata.gz: c0465d195d08de3e741dabc4a0d8203324385aa8a05cc7825d45a7a099708fab5dd6b76e995a18fee81fdead4c88a74dc0c7361bf2155d9e3ee7ce4c9033fb88
7
+ data.tar.gz: 2ca23f63bd56b9e64e9ee168ebcdc4ed79a2789f36a53ad9becf6851244156aff9ac1dd9e81332cec3b14371f4ddb948d8a9ac1ef2b3b423ab4c872a3f3bffba
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at favaserver@163.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in sawa.gemspec
4
+ gemspec
5
+ spreadsheet
6
+ json
7
+ mustache
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 shouaya
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
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
+
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "sawa"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/sawa ADDED
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'sawa'
4
+ require 'sawa/version'
5
+
6
+ class Sawa
7
+ class CLI
8
+ # Return a structure describing the options.
9
+ def self.parse_options(args)
10
+ opts = OptionParser.new do |opts|
11
+ opts.banner = "Usage: sawa [-c] [-t] [-e] [-r library] FILE ..."
12
+
13
+ opts.on("-v", "--version", "Print the version") do |v|
14
+ puts "Sawa v#{Sawa::VERSION}"
15
+ exit
16
+ end
17
+
18
+ opts.on_tail("-h", "--help", "Show this message") do
19
+ puts opts
20
+ exit
21
+ end
22
+ end
23
+
24
+ opts.separator ""
25
+
26
+ opts.parse!(args)
27
+ end
28
+ end
29
+ end
30
+
31
+ # Help is the default.
32
+ ARGV << '-h' if ARGV.empty? && $stdin.tty?
33
+
34
+ # Process options
35
+ Mustache::CLI.parse_options(ARGV) if $stdin.tty?
36
+
37
+ # Still here - process rest of ARGF
38
+ Mustache::CLI.process_files(ARGF)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,90 @@
1
+ class MiniProperty
2
+ @row
3
+ @sheet
4
+ @idx_type
5
+ @idx_name
6
+ @idx_unique
7
+ @idx_nullable
8
+ @idx_jsonignore
9
+ @idx_title
10
+ @idx_mappedBy
11
+ @idx_refColumn
12
+
13
+ def initialize(row, sheet)
14
+ @row = row
15
+ @sheet = sheet
16
+ @idx_type = 1
17
+ @idx_name = 2
18
+ @idx_unique = 3
19
+ @idx_nullable = 4
20
+ @idx_jsonignore = 5
21
+ @idx_title = 6
22
+ @idx_mappedBy = 7
23
+ @idx_refColumn = 8
24
+ end
25
+
26
+ def resource_name
27
+ @sheet.resource_path
28
+ end
29
+
30
+ def name
31
+ @row[@idx_name]
32
+ end
33
+
34
+ def type
35
+ @row[@idx_type]
36
+ end
37
+
38
+ def type_js
39
+ if @row[@idx_type] == "java.lang.String"
40
+ return "txt"
41
+ end
42
+ if @row[@idx_type] == "java.lang.Integer" or @row[@idx_type] == "java.lang.Short" or @row[@idx_type] == "java.lang.Long" or @row[@idx_type] == "java.lang.Float" or @row[@idx_type] == "java.lang.Double"
43
+ return "num"
44
+ end
45
+ if @row[@idx_type].start_with?("java.util.List")
46
+ return "list"
47
+ end
48
+ return "obj"
49
+ end
50
+
51
+ def unique
52
+ @row[@idx_unique] == "1"
53
+ end
54
+
55
+ def nullable
56
+ @row[@idx_nullable] == "1"
57
+ end
58
+
59
+ def jsonignore
60
+ @row[@idx_jsonignore] == "1"
61
+ end
62
+
63
+ def title
64
+ @row[@idx_title]
65
+ end
66
+
67
+ def is_column
68
+ @row[@idx_unique] != "-"
69
+ end
70
+
71
+ def has_mapped
72
+ @row[@idx_mappedBy] == "1:1" or @row[@idx_mappedBy] == "1:n" or @row[@idx_mappedBy] == "n:1"
73
+ end
74
+
75
+ def join_column
76
+ @row[@idx_refColumn]
77
+ end
78
+
79
+ def is_onetomany
80
+ @row[@idx_mappedBy] == "1:n"
81
+ end
82
+
83
+ def is_manytoone
84
+ @row[@idx_mappedBy] == "n:1"
85
+ end
86
+
87
+ def is_onetoone
88
+ @row[@idx_mappedBy] == "1:1"
89
+ end
90
+ end
@@ -0,0 +1,111 @@
1
+ class MiniResource
2
+ @row
3
+ @sheet
4
+ @idx_method
5
+ @idx_process
6
+ @idx_role
7
+ @idx_desc
8
+ @idx_islist
9
+ @idx_param
10
+ @idx_path
11
+ @idx_httpM
12
+
13
+ def initialize(row, sheet)
14
+ @row = row
15
+ @sheet = sheet
16
+ @idx_method = 1
17
+ @idx_process = 2
18
+ @idx_role = 3
19
+ @idx_desc = 4
20
+ @idx_islist = 5
21
+ @idx_param = 6
22
+ @idx_path = 7
23
+ @idx_httpM = 8
24
+ end
25
+
26
+ def resource_method
27
+ @row[@idx_method]
28
+ end
29
+
30
+ def resource_process
31
+ @row[@idx_process]
32
+ end
33
+
34
+ def resource_role
35
+ if @row[@idx_role] == nil or @row[@idx_role] == ""
36
+ nil
37
+ else
38
+ "\"" + @row[@idx_role].split(",").join("\",\"") + "\""
39
+ end
40
+ end
41
+
42
+ def resource_desc
43
+ @row[@idx_desc]
44
+ end
45
+
46
+ def resource_islist
47
+ @row[@idx_islist] == "1"
48
+ end
49
+
50
+ def resource_param_type
51
+ vals = []
52
+ prms = @row[@idx_param].split(",")
53
+ prms.map do |prm|
54
+ if prm.strip == "@query"
55
+ vals.push("MiniQuery query")
56
+ elsif prm.strip == "@role"
57
+ vals.push("OperatorRole role")
58
+ elsif prm.strip == "@obj"
59
+ vals.push("#{@sheet.model_name} obj")
60
+ else
61
+ vals.push(prm)
62
+ end
63
+ end
64
+ vals.join(",")
65
+ end
66
+
67
+ def resource_param_value
68
+ vals = []
69
+ prms = @row[@idx_param].split(",")
70
+ prms.map do |prm|
71
+ tmp = prm.split(" ")
72
+ vals.push(tmp[tmp.length - 1].gsub(/@/, ''))
73
+ end
74
+ if !@row[@idx_process].start_with?("super.")
75
+ vals.push("this")
76
+ end
77
+ vals.join(",")
78
+ end
79
+
80
+ def resource_param_full
81
+ vals = []
82
+ prms = @row[@idx_param].split(",")
83
+ prms.map do |prm|
84
+ if prm.strip == "@query"
85
+ vals.push("MiniQuery query")
86
+ elsif prm.strip == "@role"
87
+ vals.push("@Auth OperatorRole role")
88
+ elsif prm.strip == "@obj"
89
+ vals.push("#{@sheet.model_name} obj")
90
+ else
91
+ arr = prm.split(" ")
92
+ s = arr[arr.length - 1]
93
+ if @row[@idx_path].include?("#{s}")
94
+ vals.push("@PathParam(\"#{s}\") #{prm.strip}")
95
+ else
96
+ vals.push("@QueryParam(\"#{s}\") #{prm.strip}")
97
+ end
98
+ end
99
+ end
100
+ vals.join(",")
101
+ end
102
+
103
+ def resource_path
104
+ @row[@idx_path]
105
+ end
106
+
107
+ def resource_httpM
108
+ @row[@idx_httpM]
109
+ end
110
+
111
+ end
data/lib/MiniSheet.rb ADDED
@@ -0,0 +1,209 @@
1
+ require 'mustache'
2
+ require 'spreadsheet'
3
+ require './lib/MiniProperty.rb'
4
+ require './lib/MiniResource.rb'
5
+
6
+ class MiniSheet < Mustache
7
+ @sheet
8
+ @config
9
+ @idx_path
10
+ @idx_title
11
+ @idx_method
12
+ @idx_process
13
+ @idx_role
14
+ @idx_type
15
+ @idx_name
16
+ @idx_unique
17
+ @idx_nullable
18
+ @idx_jsonignore
19
+ @idx_title
20
+ @idx_mappedBy
21
+ @idx_refColumn
22
+ @idx_isList
23
+ @idx_param
24
+
25
+ def initialize(sheet, config)
26
+ @sheet = sheet
27
+ @config = config
28
+ @idx_path = 2
29
+ @idx_title = 3
30
+ @idx_method = 1
31
+ @idx_process = 2
32
+ @idx_role = 3
33
+ @idx_type = 1
34
+ @idx_name = 2
35
+ @idx_unique = 3
36
+ @idx_nullable = 4
37
+ @idx_jsonignore = 5
38
+ @idx_title = 6
39
+ @idx_mappedBy = 7
40
+ @idx_refColumn = 8
41
+ @idx_isList = 5
42
+ @idx_param = 6
43
+ end
44
+
45
+ def name
46
+ @sheet.name
47
+ end
48
+
49
+ def rows_model
50
+ get_model_rows(@sheet)
51
+ end
52
+
53
+ def rows_path
54
+ get_path_rows(@sheet)
55
+ end
56
+
57
+ def package_api
58
+ @config['packageApi']
59
+ end
60
+
61
+ def package_dao
62
+ @config['packageDao']
63
+ end
64
+
65
+ def package_model
66
+ @config['packageModel']
67
+ end
68
+
69
+ def package_resource
70
+ @config['packageResource']
71
+ end
72
+
73
+ def table_name
74
+ @sheet.name
75
+ end
76
+
77
+ def model_name
78
+ getName("model", @sheet.name)
79
+ end
80
+
81
+ def resource_path
82
+ @sheet.row(0)[@idx_path]
83
+ end
84
+
85
+ def model_title
86
+ @sheet.row(0)[@idx_title]
87
+ end
88
+
89
+ def dao_name
90
+ getName("dao", @sheet.name)
91
+ end
92
+
93
+ def resource_name
94
+ getName("resource", @sheet.name)
95
+ end
96
+ def page_name
97
+ getName("page", @sheet.name)
98
+ end
99
+ def api_name
100
+ getName("if", @sheet.name)
101
+ end
102
+
103
+ def model_property_metas
104
+ arr = []
105
+ @sheet.each do |row|
106
+ if row[0] == "m" and row[@idx_jsonignore] == "1"
107
+ arr.push "#{@sheet.row(0)[@idx_path]}.#{row[@idx_name]}=#{row[@idx_type]},#{row[@idx_nullable]},#{row[@idx_title]}"
108
+ end
109
+ end
110
+ arr
111
+ end
112
+
113
+ def model_imports
114
+ arr = []
115
+ @sheet.each do |row|
116
+ if row[0] != "m"
117
+ next
118
+ end
119
+
120
+ if row[@idx_jsonignore] == "1" and !arr.include?("import com.fasterxml.jackson.annotation.JsonIgnore;")
121
+ arr.push "import com.fasterxml.jackson.annotation.JsonIgnore;"
122
+ end
123
+ if row[@idx_mappedBy] == "1:n" and !arr.include?("import javax.persistence.OneToMany;")
124
+ arr.push "import javax.persistence.OneToMany;"
125
+ end
126
+ if row[@idx_mappedBy] == "1:n" and !arr.include?("import com.fasterxml.jackson.annotation.JsonManagedReference;")
127
+ arr.push "import com.fasterxml.jackson.annotation.JsonManagedReference;"
128
+ end
129
+ if row[@idx_mappedBy] == "1:n" and !arr.include?("import org.hibernate.annotations.Where;")
130
+ arr.push "import org.hibernate.annotations.Where;"
131
+ end
132
+
133
+ if row[@idx_mappedBy] == "n:1" and !arr.include?("import javax.persistence.ManyToOne;")
134
+ arr.push "import javax.persistence.ManyToOne;"
135
+ end
136
+ if row[@idx_mappedBy] == "n:1" and !arr.include?("import com.fasterxml.jackson.annotation.JsonBackReference;")
137
+ arr.push "import com.fasterxml.jackson.annotation.JsonBackReference;"
138
+ end
139
+ if row[@idx_mappedBy] == "n:1" and !arr.include?("import javax.persistence.JoinColumn;")
140
+ arr.push "import javax.persistence.JoinColumn;"
141
+ end
142
+
143
+ if row[@idx_mappedBy] == "1:1" and !arr.include?("import javax.persistence.OneToOne;")
144
+ arr.push "import javax.persistence.OneToOne;"
145
+ end
146
+ if row[@idx_mappedBy] == "1:1" and !arr.include?("import javax.persistence.JoinColumn;")
147
+ arr.push "import javax.persistence.JoinColumn;"
148
+ end
149
+ end
150
+ arr
151
+ end
152
+
153
+ def resource_imports
154
+ arr = []
155
+ @sheet.each do |row|
156
+ if row[0] != "p"
157
+ next
158
+ end
159
+ if row[@idx_jsonignore] == "1" and !arr.include?("import java.util.List;")
160
+ arr.push "import java.util.List;"
161
+ end
162
+ end
163
+ arr
164
+ end
165
+
166
+ def api_imports
167
+ arr = []
168
+ @sheet.each do |row|
169
+ if row[0] != "p"
170
+ next
171
+ end
172
+ if row[@idx_isList] == "1" and !arr.include?("import java.util.List;")
173
+ arr.push "import java.util.List;"
174
+ end
175
+ if row[@idx_param].include?("@role") and !arr.include?("import io.dropwizard.auth.Auth;")
176
+ arr.push "import io.dropwizard.auth.Auth;"
177
+ end
178
+ end
179
+ arr
180
+ end
181
+
182
+ private
183
+ def getName(type, sheetName)
184
+ perfix = sheetName.split("_")
185
+ perfix[0].capitalize + perfix[1].capitalize + type.capitalize
186
+ end
187
+
188
+ private
189
+ def get_model_rows(sheet)
190
+ rows_model = []
191
+ sheet.each do |row|
192
+ if row[0] == "m"
193
+ rows_model.push(MiniProperty.new(row, self))
194
+ end
195
+ end
196
+ rows_model
197
+ end
198
+
199
+ private
200
+ def get_path_rows(sheet)
201
+ rows_path = []
202
+ sheet.each do |row|
203
+ if row[0] == "p"
204
+ rows_path.push(MiniResource.new(row, self))
205
+ end
206
+ end
207
+ rows_path
208
+ end
209
+ end
data/lib/MiniWork.rb ADDED
@@ -0,0 +1,36 @@
1
+ # coding: UTF-8
2
+ require 'spreadsheet'
3
+ require 'mustache'
4
+ require './lib/MiniSheet.rb'
5
+
6
+ class MiniWork < Mustache
7
+
8
+ @book
9
+
10
+ @sheets
11
+
12
+ def initialize(file, config)
13
+ @book = Spreadsheet.open(file, 'r')
14
+ @sheets = Hash.new()
15
+ @book.worksheets.each do |sheet|
16
+ @sheets[sheet.name] = MiniSheet.new(sheet, config)
17
+ end
18
+ end
19
+
20
+ def sheets
21
+ @sheets
22
+ end
23
+
24
+ def sheet_arr
25
+ arr = []
26
+ @sheets.each do |name, sheet|
27
+ arr.push(sheet)
28
+ end
29
+ arr
30
+ end
31
+
32
+ def sheet(name)
33
+ @sheets[name]
34
+ end
35
+
36
+ end
@@ -0,0 +1,3 @@
1
+ module Sawa
2
+ VERSION = "0.0.2"
3
+ end
data/lib/sawa.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "sawa/version"
2
+
3
+ module Sawa
4
+ # Your code goes here...
5
+ end
data/sawa.gemspec ADDED
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'sawa/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "sawa"
8
+ spec.version = Sawa::VERSION
9
+ spec.authors = ["shouaya"]
10
+ spec.email = ["favaserver@gmail.com"]
11
+
12
+ spec.summary = %q{"rest system build with sawa"}
13
+ spec.description = %q{"https://github.com/shouaya/moa/blob/master/README.md"}
14
+ spec.homepage = "https://github.com/shouaya/sawagem"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host
19
+ # if spec.respond_to?(:metadata)
20
+ # spec.metadata['allowed_push_host'] = "http://rubygems.org"
21
+ # else
22
+ # raise "RubyGems 2.0 or newer is required to protect against " \
23
+ # "public gem pushes."
24
+ # end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.14"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_dependency "spreadsheet", '~> 1.1', '>= 1.1.4'
36
+ spec.add_dependency "json", '~> 1.8', '>= 1.8.3'
37
+ spec.add_dependency "mustache", '~> 1.0', '>= 1.0.5'
38
+ end
metadata ADDED
@@ -0,0 +1,148 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sawa
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - shouaya
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-06-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: spreadsheet
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.1'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 1.1.4
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '1.1'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 1.1.4
61
+ - !ruby/object:Gem::Dependency
62
+ name: json
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.8'
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 1.8.3
71
+ type: :runtime
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '1.8'
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: 1.8.3
81
+ - !ruby/object:Gem::Dependency
82
+ name: mustache
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '1.0'
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 1.0.5
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '1.0'
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 1.0.5
101
+ description: '"https://github.com/shouaya/moa/blob/master/README.md"'
102
+ email:
103
+ - favaserver@gmail.com
104
+ executables: []
105
+ extensions: []
106
+ extra_rdoc_files: []
107
+ files:
108
+ - ".gitignore"
109
+ - CODE_OF_CONDUCT.md
110
+ - Gemfile
111
+ - LICENSE.txt
112
+ - README.md
113
+ - Rakefile
114
+ - bin/console
115
+ - bin/sawa
116
+ - bin/setup
117
+ - lib/MiniProperty.rb
118
+ - lib/MiniResource.rb
119
+ - lib/MiniSheet.rb
120
+ - lib/MiniWork.rb
121
+ - lib/sawa.rb
122
+ - lib/sawa/version.rb
123
+ - sawa.gemspec
124
+ homepage: https://github.com/shouaya/sawagem
125
+ licenses:
126
+ - MIT
127
+ metadata: {}
128
+ post_install_message:
129
+ rdoc_options: []
130
+ require_paths:
131
+ - lib
132
+ required_ruby_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ requirements: []
143
+ rubyforge_project:
144
+ rubygems_version: 2.5.2
145
+ signing_key:
146
+ specification_version: 4
147
+ summary: '"rest system build with sawa"'
148
+ test_files: []