pandora-frameworks 0.1.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 +7 -0
- data/.gitignore +12 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/Makefile +8 -0
- data/README.md +41 -0
- data/Rakefile +12 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/pandora +5 -0
- data/lib/pandora.rb +4 -0
- data/lib/pandora/client/main.rb +23 -0
- data/lib/pandora/commands/commands.rb +3 -0
- data/lib/pandora/commands/create.rb +93 -0
- data/lib/pandora/commands/lint.rb +22 -0
- data/lib/pandora/commands/setup.rb +43 -0
- data/lib/pandora/models/app.rb +64 -0
- data/lib/pandora/models/file.rb +29 -0
- data/lib/pandora/models/framework.rb +41 -0
- data/lib/pandora/models/models.rb +3 -0
- data/lib/pandora/version.rb +3 -0
- data/pandora.gemspec +35 -0
- metadata +237 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 70ee48efd5977b2a35bec1800f61f030382b336f
|
4
|
+
data.tar.gz: e08ba9035e7c2c6de587afd5effb769d8619fca5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 931b0dbe7e25de4ed0a2de41263fd75f05cf90ee8b28e865fd6c188f2439623e056f73e7f27d76d3744a080bb8583860e94d422e92d3f49c484d3a3ed30c9ddf
|
7
|
+
data.tar.gz: 1681c3f90a569c8cb941dcdb9fac4719da7bf17dcde7c52571acc442f6ba5b2b4711e703ef4be887319905b8b88c626b17ee83c0f7be13c34ab58d38e0cb0bb1
|
data/.gitignore
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 pepibumur@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/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Pedro Piñera Buendía
|
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/Makefile
ADDED
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Pandora
|
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/pandora`. 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 'pandora-frameworks'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install pandora
|
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]/pandora. 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,12 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require 'rake/testtask'
|
3
|
+
|
4
|
+
desc 'Execute pandora tests'
|
5
|
+
Rake::TestTask.new(:test) do |t|
|
6
|
+
t.libs << 'lib' << 'test'
|
7
|
+
t.pattern = 'test/**/*_test.rb'
|
8
|
+
t.verbose = false
|
9
|
+
end
|
10
|
+
|
11
|
+
desc 'Default: Execute tests'
|
12
|
+
task default: :test
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "pandora"
|
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
|
data/bin/setup
ADDED
data/exe/pandora
ADDED
data/lib/pandora.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'thor'
|
2
|
+
require_relative "../commands/create"
|
3
|
+
|
4
|
+
module Pandora
|
5
|
+
module Client
|
6
|
+
class Main < Thor
|
7
|
+
|
8
|
+
desc "create CORE", "create a CORE framework"
|
9
|
+
def create(name)
|
10
|
+
Pandora::Commands::Create.new(Dir.pwd, name).execute
|
11
|
+
end
|
12
|
+
|
13
|
+
private
|
14
|
+
|
15
|
+
def project_path(name, path)
|
16
|
+
raise "Project should be the folder, not the .xcodeproj file" if path.include? ".xcodeproj"
|
17
|
+
path ||= Dir.expand_path("./#{name}")
|
18
|
+
Dir.join(path, "#{name}.xcodeproj")
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
require 'xcodeproj'
|
2
|
+
require 'rest-client'
|
3
|
+
require 'zip'
|
4
|
+
require 'fileutils'
|
5
|
+
require 'colorize'
|
6
|
+
|
7
|
+
module Pandora
|
8
|
+
module Commands
|
9
|
+
class Create
|
10
|
+
|
11
|
+
# Initializes the command
|
12
|
+
# @param [String] directory where the framework will be created.
|
13
|
+
# @param [String] framework name.
|
14
|
+
# @return [Create] initialized command.
|
15
|
+
def initialize(path, name)
|
16
|
+
@path = path
|
17
|
+
@name = name
|
18
|
+
@url = "https://github.com/frameworkoriented/template/archive/master.zip"
|
19
|
+
end
|
20
|
+
|
21
|
+
# Executes the command
|
22
|
+
def execute
|
23
|
+
self.download_template
|
24
|
+
self.unzip_template
|
25
|
+
self.rename_files(self.framework_path)
|
26
|
+
self.rename_files_content
|
27
|
+
puts "Enjoy #{@name} FRAMEWORK! #yatusabes".colorize(:light_yellow)
|
28
|
+
system "open #{project_path}"
|
29
|
+
end
|
30
|
+
|
31
|
+
protected
|
32
|
+
|
33
|
+
def download_template
|
34
|
+
puts "=> Downloading framework template".colorize(:green)
|
35
|
+
response = RestClient.get(@url)
|
36
|
+
File.delete(self.zip_path) if File.exist?(self.zip_path)
|
37
|
+
zip_file = File.new(self.zip_path, "wb")
|
38
|
+
zip_file << response.body
|
39
|
+
zip_file.close
|
40
|
+
puts "=> Framework template downloaded".colorize(:green)
|
41
|
+
end
|
42
|
+
|
43
|
+
def unzip_template
|
44
|
+
puts "=> Uncompressing template".colorize(:green)
|
45
|
+
Zip::File.open(self.zip_path) do |zip_file|
|
46
|
+
zip_file.each do |f|
|
47
|
+
fpath = File.join(@path, f.name)
|
48
|
+
zip_file.extract(f, fpath) unless File.exist?(fpath)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
FileUtils.remove(self.zip_path) if File.exist?(self.zip_path)
|
52
|
+
FileUtils.remove_dir self.framework_path if File.exist?(self.framework_path)
|
53
|
+
FileUtils.mv File.join(@path, "template-master"), self.framework_path
|
54
|
+
puts '=> Template uncompressed'.colorize(:green)
|
55
|
+
end
|
56
|
+
|
57
|
+
def rename_files(path)
|
58
|
+
Dir[File.join(path, "*")].each do |file_path|
|
59
|
+
file_new_path = file_path.gsub("Cuca", @name)
|
60
|
+
FileUtils.mv file_path, file_new_path if file_path != file_new_path
|
61
|
+
if File.directory?(file_new_path)
|
62
|
+
self.rename_files(file_new_path)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
def rename_files_content
|
68
|
+
puts "=> Renaming files content".colorize(:green)
|
69
|
+
Dir[File.join(@path, "**/*")]
|
70
|
+
.select { |fn| !File.directory?(fn) }
|
71
|
+
.each do |file_path|
|
72
|
+
text = File.read(file_path)
|
73
|
+
new_contents = text.gsub("Cuca", @name)
|
74
|
+
File.open(file_path, "w") {|file| file.puts new_contents }
|
75
|
+
end
|
76
|
+
puts "=> Contents renamed".colorize(:green)
|
77
|
+
end
|
78
|
+
|
79
|
+
def project_path
|
80
|
+
File.join(self.framework_path, "#{@name}.xcworkspace")
|
81
|
+
end
|
82
|
+
|
83
|
+
def framework_path
|
84
|
+
File.join(@path, "#{@name}")
|
85
|
+
end
|
86
|
+
|
87
|
+
def zip_path
|
88
|
+
File.join(@path, "#{@name}.zip")
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Pandora
|
2
|
+
module Commands
|
3
|
+
class Lint
|
4
|
+
|
5
|
+
# File that has to be validated.
|
6
|
+
attr_reader :file
|
7
|
+
|
8
|
+
# Initializes the command with the file that has to be validated.
|
9
|
+
# @param [File] file that has to be validated
|
10
|
+
# @return [Lint] initialized command.
|
11
|
+
def initialize(file)
|
12
|
+
@file = file
|
13
|
+
end
|
14
|
+
|
15
|
+
# Executes the command
|
16
|
+
def execute
|
17
|
+
# TODO
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
module Pandora
|
2
|
+
module Commands
|
3
|
+
class Setup
|
4
|
+
|
5
|
+
# File that specifies the setup to be created
|
6
|
+
attr_reader :file
|
7
|
+
|
8
|
+
# Initializes the command with the file whose setup must be created.
|
9
|
+
# @param [File] file that specifies the setup to be created.
|
10
|
+
# @return [Setup] initialized command.
|
11
|
+
def initialize(file)
|
12
|
+
@file = file
|
13
|
+
end
|
14
|
+
|
15
|
+
# Executes the command
|
16
|
+
def execute
|
17
|
+
self.create_projects
|
18
|
+
self.setup_workspace
|
19
|
+
self.link_dependencies
|
20
|
+
self.embed_frameworks
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
def create_projects
|
26
|
+
# TODO
|
27
|
+
end
|
28
|
+
|
29
|
+
def setup_workspace
|
30
|
+
# TODO
|
31
|
+
end
|
32
|
+
|
33
|
+
def link_dependencies
|
34
|
+
# TODO
|
35
|
+
end
|
36
|
+
|
37
|
+
def embed_frameworks
|
38
|
+
# TODO
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
module Pandora
|
2
|
+
module Models
|
3
|
+
class App
|
4
|
+
|
5
|
+
# Application name
|
6
|
+
attr_reader :name
|
7
|
+
|
8
|
+
# Project directory (.xcodeproj)
|
9
|
+
attr_reader :project_path
|
10
|
+
|
11
|
+
# Workspace directory (.xcworkspace)
|
12
|
+
attr_reader :workspace_path
|
13
|
+
|
14
|
+
# Application target name
|
15
|
+
attr_reader :target_name
|
16
|
+
|
17
|
+
# Application test target name
|
18
|
+
attr_reader :test_target_name
|
19
|
+
|
20
|
+
# Application dependencies
|
21
|
+
attr_reader :dependencies
|
22
|
+
|
23
|
+
# Initializes an App.
|
24
|
+
# @param [String] application name.
|
25
|
+
# @param [String] project path.
|
26
|
+
# @param [String] workspace path.
|
27
|
+
# @param [String] application main target name.
|
28
|
+
# @param [String] application main tests target name.
|
29
|
+
# @param [String] dependencies.
|
30
|
+
# @raise [StandardError] if any of the attributes has a wrong format.
|
31
|
+
# @return [App] initialized App.
|
32
|
+
def initialize(name, project_path, workspace_path, target_name, test_target_name, dependencies)
|
33
|
+
@name = name
|
34
|
+
@project_path = project_path
|
35
|
+
raise "Wrong project path. It should be a .xcodeproj" unless @project_path.include?(".xcodeproj")
|
36
|
+
@workspace_path = workspace_path
|
37
|
+
raise "Wrong workspace path. It should be a .xcworkspace" unless @workspace_path.include?(".xcworkspace")
|
38
|
+
@target_name = target_name
|
39
|
+
@test_target_name = test_target_name
|
40
|
+
@dependencies = dependencies
|
41
|
+
raise "Dependencies must be an array" unless @dependencies.kind_of? Array
|
42
|
+
end
|
43
|
+
|
44
|
+
# Initializes an App from a YAML hash.
|
45
|
+
# @param [String] application name.
|
46
|
+
# @param [Hash] hash that represents the app.
|
47
|
+
# @raise [StandardError] if any of the required attributes are missing (project_path, workspace_path, target_name)
|
48
|
+
# @return [App] initialized App.
|
49
|
+
def self.from_yml(name, yml)
|
50
|
+
project_path = yml["project_path"]
|
51
|
+
raise "The app #{name} doesn't include project_path attribute" unless project_path
|
52
|
+
workspace_path = yml["workspace_path"]
|
53
|
+
raise "The app #{name} doesn't include workspace_path attribute" unless workspace_path
|
54
|
+
target_name = yml["target_name"]
|
55
|
+
raise "The app #{name} doesn't include target_name attribute" unless target_name
|
56
|
+
test_target_name = yml["test_target_name"]
|
57
|
+
dependencies = yml["dependencies"]
|
58
|
+
dependencies ||= []
|
59
|
+
App.new(name, project_path, workspace_path, target_name, test_target_name, dependencies)
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require_relative 'app'
|
2
|
+
require_relative 'framework'
|
3
|
+
|
4
|
+
module Pandora
|
5
|
+
module Models
|
6
|
+
class File
|
7
|
+
|
8
|
+
attr_reader :apps, :frameworks
|
9
|
+
|
10
|
+
# Initializes the pandora file from a YAML file.
|
11
|
+
# @param [Hash/Arry] YAML file that represents the file.
|
12
|
+
# @raise [StandardError] if there's an error in the file definition.
|
13
|
+
# @return [PandoraFile] initialized pandora file.
|
14
|
+
def initialize(yml)
|
15
|
+
yml_apps = yml["apps"]
|
16
|
+
yml_apps ||= []
|
17
|
+
@apps = yml_apps.map { |app_name, app|
|
18
|
+
App.from_yml(app_name.to_s, app)
|
19
|
+
}
|
20
|
+
yml_frameworks = yml["frameworks"]
|
21
|
+
yml_frameworks ||= []
|
22
|
+
@frameworks = yml_frameworks.map { |framework_name, framework|
|
23
|
+
Framework.from_yml(framework_name.to_s, framework)
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module Pandora
|
2
|
+
module Models
|
3
|
+
class Framework
|
4
|
+
|
5
|
+
# Framework name
|
6
|
+
attr_reader :name
|
7
|
+
|
8
|
+
# Project path (.xcodeproj)
|
9
|
+
attr_reader :project_path
|
10
|
+
|
11
|
+
# Array of dependencies (names)
|
12
|
+
attr_reader :dependencies
|
13
|
+
|
14
|
+
# Initializes the framework from a YML hash.
|
15
|
+
# @param [String] framework name.
|
16
|
+
# @param [String] project path.
|
17
|
+
# @param [[String]] framework dependencies list.
|
18
|
+
# @return [Framework] initialized Framework.
|
19
|
+
def initialize(name, project_path, dependencies)
|
20
|
+
@name = name
|
21
|
+
@project_path = project_path
|
22
|
+
raise "Wrong project path. It should be a .xcodeproj" unless @project_path.include?(".xcodeproj")
|
23
|
+
@dependencies = dependencies
|
24
|
+
end
|
25
|
+
|
26
|
+
# Initializes a Framework from a YAML dictionary.
|
27
|
+
# @param [String] framework name.
|
28
|
+
# @param [Hash] dictionary that represents the framework
|
29
|
+
# @raise [StandardError] if the dictionary doesn't include a project_path
|
30
|
+
# @return [Framework] initialized Framework.
|
31
|
+
def self.from_yml(name, yml)
|
32
|
+
project_path = yml["project_path"]
|
33
|
+
raise "Project not specified for framework #{name}" unless project_path
|
34
|
+
dependencies = yml["dependencies"]
|
35
|
+
dependencies ||= []
|
36
|
+
Framework.new(name, project_path, dependencies)
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
data/pandora.gemspec
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'pandora/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "pandora-frameworks"
|
8
|
+
spec.version = Pandora::VERSION
|
9
|
+
spec.authors = ["Pedro Piñera Buendía"]
|
10
|
+
spec.email = ["pepibumur@gmail.com"]
|
11
|
+
spec.summary = %q{Tool for automating frameworks creation & integration}
|
12
|
+
spec.homepage = "http://frameworkoriented.io"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
16
|
+
f.match(%r{^(test|spec|features)/})
|
17
|
+
end
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_dependency 'git', '~> 1.3'
|
23
|
+
spec.add_dependency 'xcodeproj', '~> 1.3'
|
24
|
+
spec.add_dependency "rest-client", '~> 2.0'
|
25
|
+
spec.add_dependency "rubyzip", "~> 1.2"
|
26
|
+
spec.add_dependency "colorize", "~> 0.8"
|
27
|
+
|
28
|
+
spec.add_development_dependency 'maxitest', '~> 2.2'
|
29
|
+
spec.add_development_dependency 'shoulda-context', "~> 1.2"
|
30
|
+
spec.add_development_dependency 'coveralls', "~> 0.8"
|
31
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
32
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
33
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
34
|
+
spec.add_development_dependency "byebug"
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,237 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pandora-frameworks
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Pedro Piñera Buendía
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-10-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: git
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: xcodeproj
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rest-client
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubyzip
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.2'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: colorize
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.8'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.8'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: maxitest
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '2.2'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '2.2'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: shoulda-context
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.2'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.2'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: coveralls
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.8'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.8'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: bundler
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '1.13'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '1.13'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rake
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '10.0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '10.0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rspec
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '3.0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '3.0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: byebug
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
description:
|
182
|
+
email:
|
183
|
+
- pepibumur@gmail.com
|
184
|
+
executables:
|
185
|
+
- pandora
|
186
|
+
extensions: []
|
187
|
+
extra_rdoc_files: []
|
188
|
+
files:
|
189
|
+
- ".byebug_history"
|
190
|
+
- ".gitignore"
|
191
|
+
- ".travis.yml"
|
192
|
+
- CODE_OF_CONDUCT.md
|
193
|
+
- Gemfile
|
194
|
+
- LICENSE.txt
|
195
|
+
- Makefile
|
196
|
+
- README.md
|
197
|
+
- Rakefile
|
198
|
+
- bin/console
|
199
|
+
- bin/setup
|
200
|
+
- exe/pandora
|
201
|
+
- lib/pandora.rb
|
202
|
+
- lib/pandora/client/main.rb
|
203
|
+
- lib/pandora/commands/commands.rb
|
204
|
+
- lib/pandora/commands/create.rb
|
205
|
+
- lib/pandora/commands/lint.rb
|
206
|
+
- lib/pandora/commands/setup.rb
|
207
|
+
- lib/pandora/models/app.rb
|
208
|
+
- lib/pandora/models/file.rb
|
209
|
+
- lib/pandora/models/framework.rb
|
210
|
+
- lib/pandora/models/models.rb
|
211
|
+
- lib/pandora/version.rb
|
212
|
+
- pandora.gemspec
|
213
|
+
homepage: http://frameworkoriented.io
|
214
|
+
licenses:
|
215
|
+
- MIT
|
216
|
+
metadata: {}
|
217
|
+
post_install_message:
|
218
|
+
rdoc_options: []
|
219
|
+
require_paths:
|
220
|
+
- lib
|
221
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
222
|
+
requirements:
|
223
|
+
- - ">="
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: '0'
|
226
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
|
+
requirements:
|
228
|
+
- - ">="
|
229
|
+
- !ruby/object:Gem::Version
|
230
|
+
version: '0'
|
231
|
+
requirements: []
|
232
|
+
rubyforge_project:
|
233
|
+
rubygems_version: 2.6.7
|
234
|
+
signing_key:
|
235
|
+
specification_version: 4
|
236
|
+
summary: Tool for automating frameworks creation & integration
|
237
|
+
test_files: []
|