stanwood 0.3.0 β 0.4.0
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 +4 -4
- data/LICENSE.md +21 -0
- data/README.md +25 -4
- data/lib/stanwood/create.sh +24 -0
- data/lib/stanwood/project_creator.rb +2 -9
- data/lib/stanwood/version.rb +1 -1
- data/stanwood.gemspec +2 -2
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dba245a4ae432b6540613c29a996afa3351f08cd
|
4
|
+
data.tar.gz: 584f5d8cb934f231b63df81fe704984ecf5c65a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ab4b794a9e7efe451b9c853ddc2e8236f8fb3abec4701b6a48660284cf86905c47533689b3a6035020d3303ecdfadc86ea9443bdfb85faf89fc05b27af1e604
|
7
|
+
data.tar.gz: 33a7f452600e600021d43b05624028007d9a3d02765a260b1492ea80be4f1299b3d6c61370f21f47066c06755d28863ff5fdae7614f389df9fe7adb671f61183
|
data/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Stanwood GmbH
|
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
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[](https://badge.fury.io/rb/stanwood)
|
4
4
|
|
5
|
-
|
5
|
+
stanwood Command line tool support stanwood architecture, generates base projects with boiler plate code, and necessary templates.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -19,13 +19,30 @@ And then execute:
|
|
19
19
|
|
20
20
|
Or install it yourself as:
|
21
21
|
```
|
22
|
-
$ gem install stanwood
|
22
|
+
$ sudo gem install stanwood
|
23
23
|
```
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
27
|
-
|
27
|
+
**Usage:**
|
28
|
+
```
|
29
|
+
$ stanwood COMMAND
|
30
|
+
Stanwood, the stanwood architecture template manager
|
31
|
+
```
|
32
|
+
**Commands:**
|
33
|
+
```
|
34
|
+
+ create Create a new project template
|
35
|
+
+ install Installs project templates
|
36
|
+
```
|
28
37
|
|
38
|
+
**Options:**
|
39
|
+
```
|
40
|
+
--ios Sets iOS platform attribue
|
41
|
+
--backend Sets Android platform attribue
|
42
|
+
--android Sets API platform attribue
|
43
|
+
-v, --version Print version number
|
44
|
+
-h, --help Show help banner of specified command
|
45
|
+
```
|
29
46
|
## Development
|
30
47
|
|
31
48
|
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.
|
@@ -34,8 +51,12 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
34
51
|
|
35
52
|
## Contributing
|
36
53
|
|
37
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
54
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/stanwood/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.
|
38
55
|
|
39
56
|
## Code of Conduct
|
40
57
|
|
41
58
|
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).
|
59
|
+
|
60
|
+
## Licence
|
61
|
+
|
62
|
+
stanwood is under MIT licence. See the [LICENSE](https://github.com/stanwood/stanwood-xctemplate/blob/master/LICENSE.md) file for more info.
|
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
echo "Shell is working $1"
|
4
|
+
|
5
|
+
# Clone xcode templates
|
6
|
+
echo "Cloning project tempalte..."
|
7
|
+
git clone git@github.com:stanwood/Xcode_Templates_iOS.git creat_xcode_template
|
8
|
+
cd creat_xcode_template/Template/
|
9
|
+
|
10
|
+
echo "Executing command..."
|
11
|
+
ruby configure $1
|
12
|
+
|
13
|
+
cd ..
|
14
|
+
echo "Preparing final steps..."
|
15
|
+
mv $1 ..
|
16
|
+
cd ..
|
17
|
+
|
18
|
+
echo "Finishing installation!"
|
19
|
+
rm -rf creat_xcode_template
|
20
|
+
|
21
|
+
echo "Openning ${purple}$1/$1.xcworkspace..."
|
22
|
+
open "$1/$1.xcworkspace"
|
23
|
+
|
24
|
+
echo "${purple}$1 is ready!"
|
@@ -6,15 +6,8 @@ module Stanwood
|
|
6
6
|
case
|
7
7
|
when platform == "--ios"
|
8
8
|
puts "\nπππ"
|
9
|
-
|
10
|
-
system("sh
|
11
|
-
# system("git clone git@github.com:stanwood/Xcode_Templates_iOS.git /echo tmp/xcode_template")
|
12
|
-
#
|
13
|
-
# system("Running...")
|
14
|
-
# system("chmod +x ruby /tmp/xcode_template/Template/configure ", project_name)
|
15
|
-
#
|
16
|
-
# system("echo Finishing installation")
|
17
|
-
# system("rm -rf /tmp/xcode_template")
|
9
|
+
path = File.join(__dir__, 'create.sh')
|
10
|
+
system("sh " + path + " " + project_name)
|
18
11
|
puts "\nπππ"
|
19
12
|
exit
|
20
13
|
when platform == "--backend"
|
data/lib/stanwood/version.rb
CHANGED
data/stanwood.gemspec
CHANGED
@@ -11,8 +11,8 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.email = ["talezion@gmail.com"]
|
12
12
|
s.license = "MIT"
|
13
13
|
s.summary = "The STANWOOD Architecture Templates"
|
14
|
-
s.description = "STANWOOD manages stanwood related
|
15
|
-
s.homepage = "https://github.com/
|
14
|
+
s.description = "STANWOOD manages stanwood related templates to support our architecture"
|
15
|
+
s.homepage = "https://github.com/stanwood/stanwood-xctemplate/"
|
16
16
|
|
17
17
|
s.files = `git ls-files`.split($/)
|
18
18
|
s.executables << 'stanwood'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stanwood
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored2
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3.0'
|
83
|
-
description: STANWOOD manages stanwood related
|
83
|
+
description: STANWOOD manages stanwood related templates to support our architecture
|
84
84
|
email:
|
85
85
|
- talezion@gmail.com
|
86
86
|
executables:
|
@@ -94,6 +94,7 @@ files:
|
|
94
94
|
- CODE_OF_CONDUCT.md
|
95
95
|
- Gemfile
|
96
96
|
- Gemfile.lock
|
97
|
+
- LICENSE.md
|
97
98
|
- README.md
|
98
99
|
- Rakefile
|
99
100
|
- bin/console
|
@@ -101,13 +102,14 @@ files:
|
|
101
102
|
- bin/stanwood
|
102
103
|
- lib/stanwood.rb
|
103
104
|
- lib/stanwood/configurator.rb
|
105
|
+
- lib/stanwood/create.sh
|
104
106
|
- lib/stanwood/messanger.rb
|
105
107
|
- lib/stanwood/project_creator.rb
|
106
108
|
- lib/stanwood/version.rb
|
107
109
|
- spec/spec_helper.rb
|
108
110
|
- spec/stanwood_spec.rb
|
109
111
|
- stanwood.gemspec
|
110
|
-
homepage: https://github.com/
|
112
|
+
homepage: https://github.com/stanwood/stanwood-xctemplate/
|
111
113
|
licenses:
|
112
114
|
- MIT
|
113
115
|
metadata: {}
|