railblazer 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +9 -0
- data/README.md +7 -5
- data/bin/{build → blaze} +0 -0
- data/lib/railblazer/adapter_detection.rb +2 -0
- data/lib/railblazer/version.rb +1 -1
- data/spec/railblazer/{adapter_spec.rb → adapter_detection_spec.rb} +0 -0
- metadata +8 -5
data/.travis.yml
ADDED
data/Gemfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
gem 'rake'
|
data/Gemfile.lock
ADDED
data/README.md
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
-
# Railblazer
|
1
|
+
# Railblazer: Quick local and CI Rails app configuration
|
2
|
+
|
3
|
+
[![Build Status](https://secure.travis-ci.org/stackbuilders/railblazer.png)](http://travis-ci.org/stackbuilders/railblazer)
|
2
4
|
|
3
5
|
Railblazer helps you to spend less time setting up Rails apps by providing three scripts:
|
4
6
|
|
5
7
|
1. `app_adapter`: given a Gemfile, detects whether the application runs on mysql, mysql2, or postgres
|
6
|
-
2. `
|
8
|
+
2. `blaze`: build script that can be used by Jenkins
|
7
9
|
3. `db_config`: outputs a database.yml when given an adapter and app name.
|
8
10
|
|
9
11
|
In other words, Railblazer tries to take the work out of setting up things like builds on CI servers, assuming you're using RVM and bundler in your applications.
|
@@ -25,9 +27,9 @@ app_adapter ~/Code/project/Gemfile
|
|
25
27
|
This will return a string like `mysql2` without a trailing newline (for easier inclusion in other scripts). The program will raise an error if exactly one adapter is not found. It currently only
|
26
28
|
works with applications that use the mysql, mysql2, or postgres (pg) adapters.
|
27
29
|
|
28
|
-
#
|
30
|
+
# blaze
|
29
31
|
|
30
|
-
`
|
32
|
+
`blaze` is a shell script that can be used by Jenkins. It assumes that for your build you don't want to run migrations, and that instead we should just drop the test db, re-create it, and load the schema.rb file.
|
31
33
|
|
32
34
|
It also does the following, which we find useful in our CI builds:
|
33
35
|
|
@@ -42,7 +44,7 @@ invoked from Jenkins.
|
|
42
44
|
Example usage:
|
43
45
|
|
44
46
|
```
|
45
|
-
|
47
|
+
blaze
|
46
48
|
```
|
47
49
|
|
48
50
|
# db_config
|
data/bin/{build → blaze}
RENAMED
File without changes
|
data/lib/railblazer/version.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railblazer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -17,17 +17,20 @@ email:
|
|
17
17
|
- justin@stackbuilders.com
|
18
18
|
executables:
|
19
19
|
- app_adapter
|
20
|
-
-
|
20
|
+
- blaze
|
21
21
|
- db_config
|
22
22
|
extensions: []
|
23
23
|
extra_rdoc_files: []
|
24
24
|
files:
|
25
25
|
- .gitignore
|
26
|
+
- .travis.yml
|
27
|
+
- Gemfile
|
28
|
+
- Gemfile.lock
|
26
29
|
- LICENSE
|
27
30
|
- README.md
|
28
31
|
- Rakefile
|
29
32
|
- bin/app_adapter
|
30
|
-
- bin/
|
33
|
+
- bin/blaze
|
31
34
|
- bin/db_config
|
32
35
|
- lib/railblazer.rb
|
33
36
|
- lib/railblazer/adapter_detection.rb
|
@@ -35,7 +38,7 @@ files:
|
|
35
38
|
- lib/railblazer/minimal_gemfile.rb
|
36
39
|
- lib/railblazer/version.rb
|
37
40
|
- railblazer.gemspec
|
38
|
-
- spec/railblazer/
|
41
|
+
- spec/railblazer/adapter_detection_spec.rb
|
39
42
|
- spec/railblazer/config_generator_spec.rb
|
40
43
|
- spec/railblazer/minimal_gemfile_spec.rb
|
41
44
|
- spec/spec_helper.rb
|
@@ -67,7 +70,7 @@ signing_key:
|
|
67
70
|
specification_version: 3
|
68
71
|
summary: Tools to automate builds for Stack Builders CI server
|
69
72
|
test_files:
|
70
|
-
- spec/railblazer/
|
73
|
+
- spec/railblazer/adapter_detection_spec.rb
|
71
74
|
- spec/railblazer/config_generator_spec.rb
|
72
75
|
- spec/railblazer/minimal_gemfile_spec.rb
|
73
76
|
- spec/spec_helper.rb
|