pandora-frameworks 0.1.1 → 0.1.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 +4 -4
- data/README.md +13 -3
- data/assets/example.png +0 -0
- data/assets/header.png +0 -0
- data/lib/pandora/client/main.rb +3 -3
- data/lib/pandora/commands/create.rb +5 -1
- data/lib/pandora/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 453e0ad6c882857b9b415ca20578c8c00e9b6ba9
|
4
|
+
data.tar.gz: 53f7920178628a45698cd4f0fb5e825f74e39b2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65fd14b52f7a63bc6c5571a4ec1e8b53618079bbbf95a1deb0e43953091ddcf25c97d190853d0215a01188b7e58b06caf7d72948227e49aadc0d34c2c5d20fec
|
7
|
+
data.tar.gz: 0208b1a9c85e361f4945ccaf9348479bd7a8f7e7ef6a80c0c14da378cd827383c076682810c283c561eaf4b10a87a1ba38c89cebdf5e53337ee892a53df0c1df
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+

|
2
|
+
|
3
|
+
[](https://travis-ci.org/frameworkoriented/pandora)
|
2
4
|
|
3
5
|
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/pandora`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
6
|
|
@@ -18,11 +20,19 @@ And then execute:
|
|
18
20
|
|
19
21
|
Or install it yourself as:
|
20
22
|
|
21
|
-
$ gem install pandora
|
23
|
+
$ gem install pandora-frameworks
|
22
24
|
|
23
25
|
## Usage
|
24
26
|
|
25
|
-
|
27
|
+
### Creating a framework
|
28
|
+
|
29
|
+
You can easily create a framework with the create command. It creates a framework project that includes an example project and an example playground:
|
30
|
+
|
31
|
+
```bash
|
32
|
+
pandora create NAME
|
33
|
+
```
|
34
|
+
|
35
|
+

|
26
36
|
|
27
37
|
## Development
|
28
38
|
|
data/assets/example.png
ADDED
Binary file
|
data/assets/header.png
ADDED
Binary file
|
data/lib/pandora/client/main.rb
CHANGED
@@ -5,9 +5,9 @@ module Pandora
|
|
5
5
|
module Client
|
6
6
|
class Main < Thor
|
7
7
|
|
8
|
-
desc "create CORE", "create a CORE framework"
|
9
|
-
def create(name)
|
10
|
-
Pandora::Commands::Create.new(Dir.pwd, name).execute
|
8
|
+
desc "create CORE ORGANIZATION", "create a CORE framework"
|
9
|
+
def create(name, organization)
|
10
|
+
Pandora::Commands::Create.new(Dir.pwd, name, organization).execute
|
11
11
|
end
|
12
12
|
|
13
13
|
private
|
@@ -11,10 +11,12 @@ module Pandora
|
|
11
11
|
# Initializes the command
|
12
12
|
# @param [String] directory where the framework will be created.
|
13
13
|
# @param [String] framework name.
|
14
|
+
# @param [String] framework organization.
|
14
15
|
# @return [Create] initialized command.
|
15
|
-
def initialize(path, name)
|
16
|
+
def initialize(path, name, organization)
|
16
17
|
@path = path
|
17
18
|
@name = name
|
19
|
+
@organization = organization
|
18
20
|
@url = "https://github.com/frameworkoriented/template/archive/master.zip"
|
19
21
|
end
|
20
22
|
|
@@ -25,6 +27,7 @@ module Pandora
|
|
25
27
|
self.rename_files(self.framework_path)
|
26
28
|
self.rename_files_content
|
27
29
|
puts "Enjoy #{@name} FRAMEWORK! #yatusabes".colorize(:light_yellow)
|
30
|
+
system "pedropinerabuendia.xcuserdatad"
|
28
31
|
system "open #{project_path}"
|
29
32
|
end
|
30
33
|
|
@@ -71,6 +74,7 @@ module Pandora
|
|
71
74
|
.each do |file_path|
|
72
75
|
text = File.read(file_path)
|
73
76
|
new_contents = text.gsub("XXXXX", @name)
|
77
|
+
new_contents = new_contents.gsub("YYYYY", @organization)
|
74
78
|
File.open(file_path, "w") {|file| file.puts new_contents }
|
75
79
|
end
|
76
80
|
puts "=> Contents renamed".colorize(:green)
|
data/lib/pandora/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pandora-frameworks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Piñera Buendía
|
@@ -195,6 +195,8 @@ files:
|
|
195
195
|
- Makefile
|
196
196
|
- README.md
|
197
197
|
- Rakefile
|
198
|
+
- assets/example.png
|
199
|
+
- assets/header.png
|
198
200
|
- bin/console
|
199
201
|
- bin/setup
|
200
202
|
- exe/pandora
|