rails_development_toolkit 0.0.1

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.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
data/README ADDED
@@ -0,0 +1,5 @@
1
+ Rails Development Toolkit
2
+ =========================
3
+
4
+ rake development:config:prepare # Build templates from current development config files (existing files will be overwritten)
5
+ rake development:config:setup # Build development config files from templates (existing files will be overwritten)
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,2 @@
1
+ require 'rails_development_toolkit/version'
2
+ require 'rails_development_toolkit/railtie' if defined?(Rails)
@@ -0,0 +1,10 @@
1
+ require 'rails'
2
+ module RailsDevelopmentToolkit
3
+ class Railtie < Rails::Railtie
4
+ railtie_name :rails_development_toolkit
5
+
6
+ rake_tasks do
7
+ load 'rails_development_toolkit/railties/rails_development_toolkit.rake'
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,28 @@
1
+ namespace :development do
2
+ namespace :config do
3
+
4
+ CONF_FILES = ["database.yml", "environments/development.rb"]
5
+ CONF_DIR = Rails.root.join("config")
6
+
7
+ desc "Build development config files from templates (existing files will be overwritten)"
8
+ task :setup do
9
+ CONF_FILES.each do |file_name|
10
+ source_file_path = CONF_DIR.join("#{file_name}.template")
11
+ next unless File.exists?(source_file_path)
12
+ destination_file_path = CONF_DIR.join(file_name)
13
+ cp source_file_path, destination_file_path
14
+ end
15
+ end
16
+
17
+ desc "Build templates from current development config files (existing files will be overwritten)"
18
+ task :prepare do
19
+ CONF_FILES.each do |file_name|
20
+ source_file_path = CONF_DIR.join(file_name)
21
+ next unless File.exists?(source_file_path)
22
+ destination_file_path = CONF_DIR.join("#{file_name}.template")
23
+ cp source_file_path, destination_file_path
24
+ end
25
+ end
26
+
27
+ end
28
+ end
@@ -0,0 +1,3 @@
1
+ module RailsDevelopmentToolkit
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "rails_development_toolkit/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "rails_development_toolkit"
7
+ s.version = RailsDevelopmentToolkit::VERSION
8
+ s.authors = ["ingeniarius"]
9
+ s.email = ["mail@ingeniarius.name"]
10
+ s.homepage = "https://github.com/ingeniarius/rails_development_toolkit"
11
+ s.summary = %q{Rails Development Toolkit}
12
+ s.description = %q{Rake tasks for Rails development process management}
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
+ s.require_paths = ["lib"]
18
+
19
+ s.add_dependency "rake"
20
+ end
metadata ADDED
@@ -0,0 +1,87 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_development_toolkit
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - ingeniarius
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-12-08 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rake
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ description: Rake tasks for Rails development process management
35
+ email:
36
+ - mail@ingeniarius.name
37
+ executables: []
38
+
39
+ extensions: []
40
+
41
+ extra_rdoc_files: []
42
+
43
+ files:
44
+ - .gitignore
45
+ - Gemfile
46
+ - README
47
+ - Rakefile
48
+ - lib/rails_development_toolkit.rb
49
+ - lib/rails_development_toolkit/railtie.rb
50
+ - lib/rails_development_toolkit/railties/rails_development_toolkit.rake
51
+ - lib/rails_development_toolkit/version.rb
52
+ - rails_development_toolkit.gemspec
53
+ homepage: https://github.com/ingeniarius/rails_development_toolkit
54
+ licenses: []
55
+
56
+ post_install_message:
57
+ rdoc_options: []
58
+
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ hash: 3
67
+ segments:
68
+ - 0
69
+ version: "0"
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
78
+ version: "0"
79
+ requirements: []
80
+
81
+ rubyforge_project:
82
+ rubygems_version: 1.8.11
83
+ signing_key:
84
+ specification_version: 3
85
+ summary: Rails Development Toolkit
86
+ test_files: []
87
+