stanwood 0.1.11 ā 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +59 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/README.md +39 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bin/stanwood +1 -1
- data/lib/stanwood/configurator.rb +83 -0
- data/lib/stanwood/messanger.rb +156 -0
- data/lib/stanwood/project_creator.rb +41 -0
- data/lib/stanwood/version.rb +1 -1
- data/lib/stanwood.rb +5 -2
- data/spec/spec_helper.rb +14 -0
- data/spec/stanwood_spec.rb +9 -0
- data/stanwood.gemspec +27 -0
- metadata +45 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d070fb0ab2cef4352fa0bd0c7611cfda2b6ef6a
|
4
|
+
data.tar.gz: 52e1307c8447e582a20e0339e096aba611fefbf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f04134c49609ab74762da8b0ee2e4d780d37f345b62cbfd44430f78bb892bd9696be3ec8750a9af6f63923adf62fe0d402c05be28aaada06859d90133a78938f
|
7
|
+
data.tar.gz: 4449f3ac6c42681b39518b4dc203340c456b103be8b02ba4c569f89dea3c37d2b551cd1bdd074ad0b190afd3493c10c97bad99cebb34b93f82edb7011e5ec2b7
|
data/.gitignore
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
/docs/
|
2
|
+
|
3
|
+
*.gem
|
4
|
+
*.rbc
|
5
|
+
/.config
|
6
|
+
/coverage/
|
7
|
+
/InstalledFiles
|
8
|
+
/pkg/
|
9
|
+
/spec/reports/
|
10
|
+
/test/tmp/
|
11
|
+
/test/version_tmp/
|
12
|
+
/tmp/
|
13
|
+
|
14
|
+
## Specific to RubyMotion:
|
15
|
+
.dat*
|
16
|
+
.repl_history
|
17
|
+
build/
|
18
|
+
|
19
|
+
## Documentation cache and generated files:
|
20
|
+
/.yardoc/
|
21
|
+
/_yardoc/
|
22
|
+
/doc/
|
23
|
+
/rdoc/
|
24
|
+
|
25
|
+
## Environment normalisation:
|
26
|
+
/.bundle/
|
27
|
+
/lib/bundler/man/
|
28
|
+
|
29
|
+
# for a library or gem, you might want to ignore these files since the code is
|
30
|
+
# intended to run in multiple environments; otherwise, check them in:
|
31
|
+
# Gemfile.lock
|
32
|
+
# .ruby-version
|
33
|
+
# .ruby-gemset
|
34
|
+
|
35
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
36
|
+
.rvmrc
|
37
|
+
|
38
|
+
.DS_Store
|
39
|
+
.AppleDouble
|
40
|
+
.LSOverride
|
41
|
+
|
42
|
+
# Icon must end with two \r
|
43
|
+
Icon
|
44
|
+
|
45
|
+
|
46
|
+
# Thumbnails
|
47
|
+
._*
|
48
|
+
|
49
|
+
# Files that might appear on external disk
|
50
|
+
.Spotlight-V100
|
51
|
+
.Trashes
|
52
|
+
|
53
|
+
# Directories potentially created on remote AFP share
|
54
|
+
.AppleDB
|
55
|
+
.AppleDesktop
|
56
|
+
Network Trash Folder
|
57
|
+
Temporary Items
|
58
|
+
.apdisk
|
59
|
+
vendor
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -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 talezion@gmail.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
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Stanwood
|
2
|
+
|
3
|
+
// TODO
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'stanwood'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
```
|
15
|
+
$ bundle
|
16
|
+
```
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
```
|
20
|
+
$ gem install stanwood
|
21
|
+
```
|
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. Then, run `rake spec` to run the tests. 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]/stanwood. 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
|
+
## Code of Conduct
|
38
|
+
|
39
|
+
Everyone interacting in the Stanwood projectās codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/stanwood/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "stanwood"
|
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/setup
ADDED
data/bin/stanwood
CHANGED
@@ -0,0 +1,83 @@
|
|
1
|
+
require 'optparse'
|
2
|
+
require 'pathname'
|
3
|
+
require 'uri'
|
4
|
+
require 'stanwood/messanger'
|
5
|
+
require 'stanwood/project_creator'
|
6
|
+
require 'fileutils'
|
7
|
+
require 'colored2'
|
8
|
+
require 'colorize'
|
9
|
+
|
10
|
+
module Stanwood
|
11
|
+
|
12
|
+
class Configurator
|
13
|
+
|
14
|
+
attr_reader :project_name, :command, :message_bank, :platforms, :attribute, :project_creator
|
15
|
+
|
16
|
+
def initialize(argv)
|
17
|
+
@command = argv[0]
|
18
|
+
@project_name = argv[1]
|
19
|
+
@attribute = argv[2]
|
20
|
+
@platforms = {
|
21
|
+
"1" => "--ios",
|
22
|
+
"2" => "--android",
|
23
|
+
"3" => "--backend"
|
24
|
+
}
|
25
|
+
@message_bank = Messanger.new
|
26
|
+
@project_creator = ProjectCreator.new
|
27
|
+
should_execture()
|
28
|
+
end
|
29
|
+
|
30
|
+
def run()
|
31
|
+
decide_exectution()
|
32
|
+
end
|
33
|
+
|
34
|
+
def should_execture()
|
35
|
+
if @command.nil? || @command.empty?
|
36
|
+
@message_bank.prompt_command_error_message('No command found...')
|
37
|
+
exit
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
def decide_exectution()
|
42
|
+
if @command == "create"
|
43
|
+
create()
|
44
|
+
elsif @command == "install"
|
45
|
+
install()
|
46
|
+
elsif @command == "--help"
|
47
|
+
@message_bank.prompt_help_message("")
|
48
|
+
@message_bank.parse_command_line("")
|
49
|
+
elsif @command == "--version"
|
50
|
+
@message_bank.parse_command_line("")
|
51
|
+
elsif @command.include? "--"
|
52
|
+
@message_bank.prompt_option_error_message(@command)
|
53
|
+
else
|
54
|
+
@message_bank.prompt_command_error_message(@command)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def create()
|
59
|
+
if @platforms.has_value?(@attribute)
|
60
|
+
@project_creator.execute(@project_name, @attribute)
|
61
|
+
elsif @project_name == "--help"
|
62
|
+
@message_bank.prompt_help_message(@command)
|
63
|
+
elsif @platforms.has_value?(@project_name)
|
64
|
+
puts "Please include a PROJECT_NAME"
|
65
|
+
@message_bank.prompt_help_message(@command)
|
66
|
+
elsif @project_name.include? "--"
|
67
|
+
@message_bank.prompt_option_error_message(@project_name)
|
68
|
+
else
|
69
|
+
@message_bank.prompt_option_error_message(@attribute)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
def install()
|
74
|
+
if @platforms.has_value?(@project_name)
|
75
|
+
@project_creator.executeTemplates(@project_name)
|
76
|
+
elsif @project_name == "--help"
|
77
|
+
@message_bank.prompt_help_message(@command)
|
78
|
+
else
|
79
|
+
@message_bank.prompt_option_error_message(@project_name)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,156 @@
|
|
1
|
+
|
2
|
+
require 'colored2'
|
3
|
+
require 'colorize'
|
4
|
+
|
5
|
+
module Stanwood
|
6
|
+
class Messanger
|
7
|
+
|
8
|
+
attr_reader :configurator
|
9
|
+
|
10
|
+
def prompt_command_error_message(command)
|
11
|
+
puts "\n"
|
12
|
+
puts "[!] Unknown command: `".colorize(:red) + command.red + "`".colorize(:red)
|
13
|
+
puts "Did you mean: ".colorize(:red) + "create" + "?".colorize(:red)
|
14
|
+
puts "\nTo get help, run $ stanwood --help"
|
15
|
+
puts "\n"
|
16
|
+
end
|
17
|
+
|
18
|
+
def prompt_option_error_message(command)
|
19
|
+
|
20
|
+
if command.nil? || command.empty?
|
21
|
+
puts "\n"
|
22
|
+
puts "[!] Missing option".colorize(:red)
|
23
|
+
puts "Did you mean: ".colorize(:red) + "--help" + "?".colorize(:red)
|
24
|
+
puts "\nTo get help, run $ stanwood --help"
|
25
|
+
puts "\n"
|
26
|
+
elsif command == "--help" || command == "--version"
|
27
|
+
puts "\n"
|
28
|
+
puts "[!] Unknown option: `COMMAND ".colorize(:red) + command.colorize(:red) + "`".colorize(:red)
|
29
|
+
puts "Did you mean: ".colorize(:red) + "--help" + "?".colorize(:red)
|
30
|
+
puts "\nTo get help, run $ stanwood --help"
|
31
|
+
puts "\n"
|
32
|
+
prompt_help_message("")
|
33
|
+
else
|
34
|
+
puts "\n"
|
35
|
+
puts "[!] Unknown option: `".colorize(:red) + command.colorize(:red) + "`".colorize(:red)
|
36
|
+
puts "Did you mean: ".colorize(:red) + "--help" + "?".colorize(:red)
|
37
|
+
puts "\nTo get help, run $ stanwood --help"
|
38
|
+
puts "\n"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
# Add a switch message
|
43
|
+
def prompt_help_message(command)
|
44
|
+
|
45
|
+
case
|
46
|
+
when command.nil? || command.empty?
|
47
|
+
puts ""
|
48
|
+
puts "Usage:".bold.underlined
|
49
|
+
puts ""
|
50
|
+
puts " $ stanwood " + "COMMAND".colorize(:light_green)
|
51
|
+
puts " Stanwood, the stanwood architecture template manager"
|
52
|
+
puts "\n"
|
53
|
+
puts "Commands:".bold.underlined
|
54
|
+
puts ""
|
55
|
+
print " + create".colorize(:light_green) + " Create a new project template"
|
56
|
+
puts ""
|
57
|
+
print " + install".colorize(:light_green) + " Installs project templates"
|
58
|
+
puts "\n"
|
59
|
+
when command == "create"
|
60
|
+
puts ""
|
61
|
+
puts "Usage:".bold.underlined
|
62
|
+
puts ""
|
63
|
+
puts " $ stanwood " + "COMMAND".colorize(:light_green) + " PROJECT_NAME ".colorize(:light_blue) + "--PLATFORM".colorize(:light_green)
|
64
|
+
puts "\n Creates a stanwood project with predefined architecture components\n named " + "`NAME`".colorize(:light_blue) + " according to our best practices."
|
65
|
+
puts "\n"
|
66
|
+
when command == "install"
|
67
|
+
puts ""
|
68
|
+
puts "Usage:".bold.underlined
|
69
|
+
puts ""
|
70
|
+
puts " $ stanwood " + "COMMAND".colorize(:light_green) + " --PLATFORM".colorize(:light_green)
|
71
|
+
puts "\n Installs stanwood module templates"
|
72
|
+
puts "\n"
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
def parse_command_line(name)
|
77
|
+
|
78
|
+
OptionParser.new do |opt|
|
79
|
+
|
80
|
+
opt.banner = ''
|
81
|
+
opt.separator ''
|
82
|
+
opt.separator "Options".bold.underlined
|
83
|
+
opt.separator ''
|
84
|
+
|
85
|
+
opt.on('--ios', 'Sets iOS platform attribue') do
|
86
|
+
puts "\nššš We are working on this awesome feature. Stay tuned!!! ššš\n\n"
|
87
|
+
exit
|
88
|
+
end
|
89
|
+
|
90
|
+
opt.on('--backend', 'Sets Android platform attribue') do
|
91
|
+
puts "\nššš We are working on this awesome feature. Stay tuned!!! ššš\n\n"
|
92
|
+
exit
|
93
|
+
end
|
94
|
+
|
95
|
+
opt.on('--android', 'Sets API platform attribue') do
|
96
|
+
puts "\nššš We are working on this awesome feature. Stay tuned!!! ššš\n\n"
|
97
|
+
exit
|
98
|
+
end
|
99
|
+
|
100
|
+
opt.on('-v', '--version', 'Print version number') do
|
101
|
+
puts 'stanwood version: ' + Stanwood::VERSION
|
102
|
+
exit
|
103
|
+
end
|
104
|
+
|
105
|
+
opt.on('-h', '--help', 'Show help banner of specified command') do |topic|
|
106
|
+
puts opt
|
107
|
+
puts "\n"
|
108
|
+
exit
|
109
|
+
end
|
110
|
+
end.parse!
|
111
|
+
end
|
112
|
+
|
113
|
+
def ask_with_answers(question, possible_answers)
|
114
|
+
|
115
|
+
print "\n#{question}? ["
|
116
|
+
|
117
|
+
print_info = Proc.new {
|
118
|
+
|
119
|
+
possible_answers_string = possible_answers.each_with_index do |answer, i|
|
120
|
+
_answer = (i == 0) ? answer.underlined : answer
|
121
|
+
print " " + _answer
|
122
|
+
print(" /") if i != possible_answers.length-1
|
123
|
+
end
|
124
|
+
print " ]\n"
|
125
|
+
}
|
126
|
+
print_info.call
|
127
|
+
|
128
|
+
answer = ""
|
129
|
+
|
130
|
+
loop do
|
131
|
+
show_prompt
|
132
|
+
answer = gets.downcase.chomp
|
133
|
+
|
134
|
+
answer = "yes" if answer == "y"
|
135
|
+
answer = "no" if answer == "n"
|
136
|
+
|
137
|
+
# default to first answer
|
138
|
+
if answer == ""
|
139
|
+
answer = possible_answers[0].downcase
|
140
|
+
print answer.yellow
|
141
|
+
end
|
142
|
+
|
143
|
+
break if possible_answers.map { |a| a.downcase }.include? answer
|
144
|
+
|
145
|
+
print "\nPossible answers are ["
|
146
|
+
print_info.call
|
147
|
+
end
|
148
|
+
|
149
|
+
answer
|
150
|
+
end
|
151
|
+
|
152
|
+
def show_prompt
|
153
|
+
print " > ".green
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module Stanwood
|
2
|
+
|
3
|
+
class ProjectCreator
|
4
|
+
|
5
|
+
def execute(project_name, platform)
|
6
|
+
case
|
7
|
+
when platform == "--ios"
|
8
|
+
# system("echo Cloning Xcode Template")
|
9
|
+
# system("git clone git@github.com:stanwood/Xcode_Templates_iOS.git /echo tmp/xcode_template")
|
10
|
+
#
|
11
|
+
# system("Running...")
|
12
|
+
# system("chmod +x /tmp/xcode_template/Template/configure ", project_name)
|
13
|
+
#
|
14
|
+
# system("echo Finishing installation")
|
15
|
+
# system("rm -rf /tmp/xcode_template")
|
16
|
+
puts "\nššš We are working on this awesome feature for iOS. Stay tuned!!! ššš\n\n"
|
17
|
+
exit
|
18
|
+
when platform == "--backend"
|
19
|
+
puts "\nššš We are working on this awesome feature for Backend. Stay tuned!!! ššš\n\n"
|
20
|
+
exit
|
21
|
+
when platform == "--android"
|
22
|
+
puts "\nššš We are working on this awesome feature for Android. Stay tuned!!! ššš\n\n"
|
23
|
+
exit
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def executeTemplates(platform)
|
28
|
+
case
|
29
|
+
when platform == "--ios"
|
30
|
+
system("curl \"https://raw.githubusercontent.com/stanwood/Xcode_Templates_iOS/master/Script/install.sh\" | sudo bash")
|
31
|
+
exit
|
32
|
+
when platform == "--backend"
|
33
|
+
puts "\nššš We are working on this awesome feature for Backend. Stay tuned!!! ššš\n\n"
|
34
|
+
exit
|
35
|
+
when platform == "--android"
|
36
|
+
puts "\nššš We are working on this awesome feature for Android. Stay tuned!!! ššš\n\n"
|
37
|
+
exit
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
data/lib/stanwood/version.rb
CHANGED
data/lib/stanwood.rb
CHANGED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require "bundler/setup"
|
2
|
+
require "stanwood"
|
3
|
+
|
4
|
+
RSpec.configure do |config|
|
5
|
+
# Enable flags like --only-failures and --next-failure
|
6
|
+
config.example_status_persistence_file_path = ".rspec_status"
|
7
|
+
|
8
|
+
# Disable RSpec exposing methods globally on `Module` and `main`
|
9
|
+
config.disable_monkey_patching!
|
10
|
+
|
11
|
+
config.expect_with :rspec do |c|
|
12
|
+
c.syntax = :expect
|
13
|
+
end
|
14
|
+
end
|
data/stanwood.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "stanwood/version"
|
5
|
+
require 'date'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "stanwood"
|
9
|
+
s.version = Stanwood::VERSION
|
10
|
+
s.authors = ["Tal Zion"]
|
11
|
+
s.email = ["talezion@gmail.com"]
|
12
|
+
s.license = "MIT"
|
13
|
+
s.summary = "The STANWOOD Architecture Templates"
|
14
|
+
s.description = "STANWOOD manages stanwood related tempalte to support our architecture"
|
15
|
+
s.homepage = "https://github.com/gems/stanwood-xctemplate"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split($/)
|
18
|
+
s.executables << 'stanwood'
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
s.add_runtime_dependency 'colored2', '~> 3.1'
|
22
|
+
s.add_runtime_dependency 'colorize', '~> 0.8.1'
|
23
|
+
|
24
|
+
s.add_development_dependency "bundler", "~> 1.16"
|
25
|
+
s.add_development_dependency "rake", "~> 10.0"
|
26
|
+
s.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stanwood
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tal Zion
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: colored2
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: colorize
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.8.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.8.1
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: bundler
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,9 +88,24 @@ executables:
|
|
60
88
|
extensions: []
|
61
89
|
extra_rdoc_files: []
|
62
90
|
files:
|
91
|
+
- ".gitignore"
|
92
|
+
- ".rspec"
|
93
|
+
- ".travis.yml"
|
94
|
+
- CODE_OF_CONDUCT.md
|
95
|
+
- Gemfile
|
96
|
+
- README.md
|
97
|
+
- Rakefile
|
98
|
+
- bin/console
|
99
|
+
- bin/setup
|
63
100
|
- bin/stanwood
|
64
101
|
- lib/stanwood.rb
|
102
|
+
- lib/stanwood/configurator.rb
|
103
|
+
- lib/stanwood/messanger.rb
|
104
|
+
- lib/stanwood/project_creator.rb
|
65
105
|
- lib/stanwood/version.rb
|
106
|
+
- spec/spec_helper.rb
|
107
|
+
- spec/stanwood_spec.rb
|
108
|
+
- stanwood.gemspec
|
66
109
|
homepage: https://github.com/gems/stanwood-xctemplate
|
67
110
|
licenses:
|
68
111
|
- MIT
|