dirt 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +22 -0
- data/Gemfile.lock +91 -0
- data/MIT-LICENSE +23 -0
- data/README.md +150 -0
- data/core/contexts/commit_git_repository.rb +56 -0
- data/core/contexts/create_basic_face.rb +60 -0
- data/core/contexts/create_default_structure.rb +57 -0
- data/core/contexts/create_git_repository.rb +45 -0
- data/core/contexts/roles/.gitkeep +0 -0
- data/core/contexts/roles/generating.rb +26 -0
- data/core/dirt.rb +14 -0
- data/core/models/.gitkeep +0 -0
- data/core/tests/behaviours/commit_files.feature +36 -0
- data/core/tests/behaviours/create_basic_face.feature +49 -0
- data/core/tests/behaviours/create_default_structure.feature +55 -0
- data/core/tests/behaviours/create_vcs_repository.feature +26 -0
- data/core/tests/behaviours/step_definitions/given.rb +18 -0
- data/core/tests/behaviours/step_definitions/then.rb +55 -0
- data/core/tests/behaviours/step_definitions/when.rb +21 -0
- data/core/tests/behaviours/support/env.rb +100 -0
- data/core/tests/behaviours/support/helpers.rb +21 -0
- data/core/tests/factories.rb +23 -0
- data/core/version.rb +3 -0
- data/faces/cli/bin/dirt +6 -0
- data/faces/cli/integrations/generate_context.feature +40 -0
- data/faces/cli/integrations/generate_face.feature +53 -0
- data/faces/cli/integrations/generate_model.feature +11 -0
- data/faces/cli/integrations/generate_project.feature +143 -0
- data/faces/cli/integrations/generate_role.feature +12 -0
- data/faces/cli/integrations/step_definitions/given.rb +16 -0
- data/faces/cli/integrations/step_definitions/then.rb +48 -0
- data/faces/cli/integrations/step_definitions/when.rb +28 -0
- data/faces/cli/integrations/support/env.rb +21 -0
- data/faces/cli/optparse/main.rb +143 -0
- data/faces/cli/thor/.gitkeep +0 -0
- data/templates/faces/web/template.helpers.rb +4 -0
- data/templates/template.Gemfile +18 -0
- data/templates/template.env.rb +13 -0
- data/templates/template.gitignore +21 -0
- data/templates/template.project_name.rb +14 -0
- metadata +104 -0
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gem 'dirt-core', '~> 2.2.1', git: 'git://github.com/TenjinInc/dirt-core.git'
|
4
|
+
gem 'activesupport'
|
5
|
+
|
6
|
+
group :development do
|
7
|
+
gem 'simplecov'
|
8
|
+
end
|
9
|
+
|
10
|
+
group :test do
|
11
|
+
gem 'rspec', '~> 2.14.1'
|
12
|
+
gem 'cucumber'
|
13
|
+
gem 'capybara'
|
14
|
+
gem 'launchy'
|
15
|
+
|
16
|
+
gem 'factory_girl', '~> 4.0'
|
17
|
+
gem 'parallel_tests'
|
18
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require './app/<project_name>.rb'
|
2
|
+
|
3
|
+
# Uncomment and add setup steps to be run before each test
|
4
|
+
# Before do
|
5
|
+
# end
|
6
|
+
|
7
|
+
World do
|
8
|
+
# Add your system environmental setup code here, if needed.
|
9
|
+
end
|
10
|
+
|
11
|
+
# Uncomment and add teardown steps to be run after each test
|
12
|
+
# After do
|
13
|
+
# end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile ~/.gitignore_global
|
6
|
+
|
7
|
+
# Ignore bundler config
|
8
|
+
/.bundle
|
9
|
+
|
10
|
+
# Ignore all logfiles and tempfiles.
|
11
|
+
*.log
|
12
|
+
tmp/*
|
13
|
+
|
14
|
+
# Rubymine stuff
|
15
|
+
.idea
|
16
|
+
|
17
|
+
# Ignore all gem files.
|
18
|
+
*.gem
|
19
|
+
|
20
|
+
core/config.yml
|
21
|
+
persist/database.yml
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
require 'dirt/core'
|
3
|
+
require 'active_support'
|
4
|
+
|
5
|
+
app_dir = Pathname.new(__FILE__).dirname
|
6
|
+
|
7
|
+
# require ALL the files!
|
8
|
+
Dir["#{app_dir}/**/*.rb"].reject { |f| f.include?('/faces/') || f.include?('/tests/') }.each do |file|
|
9
|
+
require file
|
10
|
+
end
|
11
|
+
|
12
|
+
module Dirt
|
13
|
+
PROJECT_ROOT = Pathname.new(File.dirname(__FILE__) + '/..').realpath
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dirt
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Robin Miller
|
9
|
+
autorequire:
|
10
|
+
bindir:
|
11
|
+
- faces/cli/bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2015-03-19 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: dirt-core
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.2.2
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 2.2.2
|
31
|
+
description: Make best practices easy. Come play in the Dirt.
|
32
|
+
email:
|
33
|
+
- robin@tenjin.ca
|
34
|
+
executables:
|
35
|
+
- dirt
|
36
|
+
extensions: []
|
37
|
+
extra_rdoc_files: []
|
38
|
+
files:
|
39
|
+
- Gemfile
|
40
|
+
- Gemfile.lock
|
41
|
+
- MIT-LICENSE
|
42
|
+
- README.md
|
43
|
+
- core/contexts/commit_git_repository.rb
|
44
|
+
- core/contexts/create_basic_face.rb
|
45
|
+
- core/contexts/create_default_structure.rb
|
46
|
+
- core/contexts/create_git_repository.rb
|
47
|
+
- core/contexts/roles/.gitkeep
|
48
|
+
- core/contexts/roles/generating.rb
|
49
|
+
- core/dirt.rb
|
50
|
+
- core/models/.gitkeep
|
51
|
+
- core/tests/behaviours/commit_files.feature
|
52
|
+
- core/tests/behaviours/create_basic_face.feature
|
53
|
+
- core/tests/behaviours/create_default_structure.feature
|
54
|
+
- core/tests/behaviours/create_vcs_repository.feature
|
55
|
+
- core/tests/behaviours/step_definitions/given.rb
|
56
|
+
- core/tests/behaviours/step_definitions/then.rb
|
57
|
+
- core/tests/behaviours/step_definitions/when.rb
|
58
|
+
- core/tests/behaviours/support/env.rb
|
59
|
+
- core/tests/behaviours/support/helpers.rb
|
60
|
+
- core/tests/factories.rb
|
61
|
+
- core/version.rb
|
62
|
+
- faces/cli/bin/dirt
|
63
|
+
- faces/cli/integrations/generate_context.feature
|
64
|
+
- faces/cli/integrations/generate_face.feature
|
65
|
+
- faces/cli/integrations/generate_model.feature
|
66
|
+
- faces/cli/integrations/generate_project.feature
|
67
|
+
- faces/cli/integrations/generate_role.feature
|
68
|
+
- faces/cli/integrations/step_definitions/given.rb
|
69
|
+
- faces/cli/integrations/step_definitions/then.rb
|
70
|
+
- faces/cli/integrations/step_definitions/when.rb
|
71
|
+
- faces/cli/integrations/support/env.rb
|
72
|
+
- faces/cli/optparse/main.rb
|
73
|
+
- faces/cli/thor/.gitkeep
|
74
|
+
- templates/faces/web/template.helpers.rb
|
75
|
+
- templates/template.Gemfile
|
76
|
+
- templates/template.env.rb
|
77
|
+
- templates/template.gitignore
|
78
|
+
- templates/template.project_name.rb
|
79
|
+
homepage: http://www.tenjin.ca
|
80
|
+
licenses:
|
81
|
+
- MIT
|
82
|
+
post_install_message:
|
83
|
+
rdoc_options: []
|
84
|
+
require_paths:
|
85
|
+
- dirt
|
86
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - ! '>='
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 1.9.3
|
92
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
94
|
+
requirements:
|
95
|
+
- - ! '>='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
requirements: []
|
99
|
+
rubyforge_project:
|
100
|
+
rubygems_version: 1.8.24
|
101
|
+
signing_key:
|
102
|
+
specification_version: 3
|
103
|
+
summary: ! 'DIRT: DCI Implementation in Ruby with TDD'
|
104
|
+
test_files: []
|