-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from rambler-digital-solutions/feature/task-168
implemented basic DSL, `hooks` and `validate`
- Loading branch information
Showing
83 changed files
with
403 additions
and
2,615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.rakeTasks | ||
encodings.xml | ||
Gemfile.lock | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--format documentation | ||
--color | ||
--format documentation | ||
-r ./spec/spec_helper.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
AllCops: | ||
Exclude: | ||
- 'bin/**/*' | ||
- 'spec/**/*' | ||
- '*.gemspec' | ||
- 'vendor/**/*' | ||
|
||
Rails: | ||
Enabled: false | ||
|
||
AlignParameters: | ||
Enabled: false | ||
|
||
Metrics/LineLength: | ||
Max: 100 | ||
|
||
Metrics/MethodLength: | ||
Max: 20 | ||
|
||
Style/IndentHash: | ||
EnforcedStyle: consistent | ||
|
||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
|
||
Style/SpaceInsideHashLiteralBraces: | ||
Enabled: true | ||
Exclude: | ||
- spec/**/* | ||
|
||
Style/BlockComments: | ||
Enabled: false | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
|
||
Documentation: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
require 'generamba' | ||
|
||
Generamba::CLI::Application.start(ARGV) | ||
Rake.application.run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
# coding: utf-8 | ||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'generamba/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'generamba' | ||
spec.version = Generamba::VERSION | ||
spec.authors = ['Egor Tolstoy', 'Andrey Zarembo', 'Beniamin Sarkisyan'] | ||
spec.authors = ['Egor Tolstoy', 'Andrey Zarembo', 'Beniamin Sarkisyan', 'Anton Prokhorov'] | ||
spec.email = '[email protected]' | ||
|
||
spec.summary = 'Advanced code generator for Xcode projects with a nice and flexible template system.' | ||
|
@@ -20,19 +19,10 @@ Gem::Specification.new do |spec| | |
|
||
spec.required_ruby_version = '>= 2.2' | ||
|
||
spec.add_runtime_dependency 'thor', '0.19.1' | ||
spec.add_runtime_dependency 'xcodeproj', '1.2.0' | ||
spec.add_runtime_dependency 'liquid', '3.0.6' | ||
spec.add_runtime_dependency 'git', '1.2.9.1' | ||
spec.add_runtime_dependency 'cocoapods-core', '1.0.1' | ||
spec.add_runtime_dependency 'terminal-table', '1.4.5' | ||
spec.add_runtime_dependency 'rake', '~> 10.5' | ||
|
||
spec.add_development_dependency 'bundler', '~> 1.10' | ||
spec.add_development_dependency 'rake', '~> 10.0' | ||
spec.add_development_dependency 'rspec', '~> 3.4' | ||
spec.add_development_dependency 'fakefs', '~> 0.6.1' | ||
# ActiveSupport dependency is not used by dashramba; instead some other dependency | ||
# requires it. We lock it to 4.2.7 so as to avoid using 5.0, which is | ||
# not compatible with older versions of Ruby. | ||
spec.add_development_dependency 'activesupport', '~> 4.2.7' | ||
spec.add_development_dependency 'bundler', '~> 1.10' | ||
spec.add_development_dependency 'rspec', '~> 3.4' | ||
spec.add_development_dependency 'rubocop', '~> 0.42' | ||
spec.add_development_dependency 'pry-byebug', '~> 3.4' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
module Generamba | ||
require 'generamba/constants/constants.rb' | ||
require 'generamba/constants/rambafile_constants.rb' | ||
require 'generamba/constants/rambaspec_constants.rb' | ||
require 'generamba/cli/cli.rb' | ||
require 'generamba/code_generation/code_module.rb' | ||
require 'generamba/code_generation/module_template.rb' | ||
require 'generamba/code_generation/content_generator.rb' | ||
require 'generamba/code_generation/rambafile_generator.rb' | ||
require 'generamba/module_generator.rb' | ||
require 'generamba/template/processor/template_processor.rb' | ||
require 'generamba/template/installer/template_installer_factory' | ||
require 'generamba/configuration/user_preferences.rb' | ||
require 'generamba/template/creator/template_creator.rb' | ||
require 'generamba/tools/string-colorize.rb' | ||
end | ||
require 'rake' | ||
require 'generamba/version' | ||
|
||
require 'generamba/dsl/validators' | ||
require 'generamba/dsl/hooks' | ||
require 'generamba/dsl/attributes' | ||
require 'generamba/dsl/methods' | ||
|
||
require 'generamba/rake/application' | ||
require 'generamba/rake/dsl' | ||
require 'generamba/rake/rake' | ||
require 'generamba/rake/task' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.