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 ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
data/Gemfile ADDED
@@ -0,0 +1 @@
1
+ gem 'rake'
data/Gemfile.lock ADDED
@@ -0,0 +1,9 @@
1
+ GEM
2
+ specs:
3
+ rake (0.9.2.2)
4
+
5
+ PLATFORMS
6
+ ruby
7
+
8
+ DEPENDENCIES
9
+ rake
data/README.md CHANGED
@@ -1,9 +1,11 @@
1
- # Railblazer - spend less time setting up apps locally and on CI servers
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. `build`: build script that can be used by Jenkins
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
- # build
30
+ # blaze
29
31
 
30
- `build` 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.
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
- build
47
+ blaze
46
48
  ```
47
49
 
48
50
  # db_config
File without changes
@@ -1,3 +1,5 @@
1
+ require 'set'
2
+
1
3
  module Railblazer
2
4
  class AdapterDetection
3
5
  ADAPTERS = {
@@ -1,3 +1,3 @@
1
1
  module Railblazer
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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
- - build
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/build
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/adapter_spec.rb
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/adapter_spec.rb
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