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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4c28e7cb975c2ce09a0904d7bbb1eeac86ad3ea
4
- data.tar.gz: 87d62ab895efa8b10754a6aedcfbe952ff069250
3
+ metadata.gz: 453e0ad6c882857b9b415ca20578c8c00e9b6ba9
4
+ data.tar.gz: 53f7920178628a45698cd4f0fb5e825f74e39b2f
5
5
  SHA512:
6
- metadata.gz: 720fbc0b23a17ac317d986882874b50d77da89650b36af8c37448242edcb5520909ef139ff93f6a90be1b525c2671e6eab410852044cb36115059a34da427552
7
- data.tar.gz: a3e67c6649c7fb39e1dd4cd2600f70d49648a5e9d405aa0557a1943e2ea6db15af78c31cc7fadd26f69646dcf7527a81715ab7bf571c222ee94fe5357f6b1ce0
6
+ metadata.gz: 65fd14b52f7a63bc6c5571a4ec1e8b53618079bbbf95a1deb0e43953091ddcf25c97d190853d0215a01188b7e58b06caf7d72948227e49aadc0d34c2c5d20fec
7
+ data.tar.gz: 0208b1a9c85e361f4945ccaf9348479bd7a8f7e7ef6a80c0c14da378cd827383c076682810c283c561eaf4b10a87a1ba38c89cebdf5e53337ee892a53df0c1df
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Pandora
1
+ ![headers](assets/header.png)
2
+
3
+ [![Build Status](https://travis-ci.org/frameworkoriented/pandora.svg?branch=master)](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
- TODO: Write usage instructions here
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
+ ![headers](assets/example.png)
26
36
 
27
37
  ## Development
28
38
 
Binary file
data/assets/header.png ADDED
Binary file
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Pandora
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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