heroku-rails-saas 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +39 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +46 -0
- data/LICENSE +65 -0
- data/README.md +211 -0
- data/Rakefile +43 -0
- data/TODO +0 -0
- data/heroku-rails.gemspec +38 -0
- data/lib/generators/heroku/config_generator.rb +19 -0
- data/lib/generators/templates/heroku.rake +33 -0
- data/lib/generators/templates/heroku.yml +52 -0
- data/lib/heroku-rails.rb +4 -0
- data/lib/heroku-rails/config.rb +146 -0
- data/lib/heroku-rails/hash_recursive_merge.rb +11 -0
- data/lib/heroku-rails/railtie.rb +8 -0
- data/lib/heroku-rails/runner.rb +278 -0
- data/lib/heroku/rails/tasks.rb +246 -0
- data/spec/fixtures/awesomeapp.yml +32 -0
- data/spec/fixtures/heroku-config.yml +16 -0
- data/spec/fixtures/mediocreapp.yml +14 -0
- data/spec/heroku/rails/heroku_config_spec.rb +157 -0
- data/spec/heroku/rails/heroku_runner_spec.rb +15 -0
- data/spec/spec_helper.rb +17 -0
- metadata +109 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module HerokuRails
|
4
|
+
describe Runner do
|
5
|
+
describe "each_heroku_app" do
|
6
|
+
it "should return my apps" do
|
7
|
+
pending
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should not return a production app if @environment is not specified and there's only one app" do
|
11
|
+
pending
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'heroku-rails'
|
2
|
+
require 'bundler/setup'
|
3
|
+
|
4
|
+
|
5
|
+
RSpec.configure do |c|
|
6
|
+
# setup fixtures path
|
7
|
+
c.before(:all) do
|
8
|
+
@fixture_path = Pathname.new(File.join(File.dirname(__FILE__), "/fixtures"))
|
9
|
+
raise "Fixture folder not found: #{@fixture_path}" unless @fixture_path.directory?
|
10
|
+
end
|
11
|
+
|
12
|
+
# returns the file path of a fixture setting file
|
13
|
+
def config_path(filename)
|
14
|
+
@fixture_path.join(filename)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
metadata
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: heroku-rails-saas
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Elijah Miller
|
9
|
+
- Glenn Roberts
|
10
|
+
- Jacques Crocker
|
11
|
+
- Lance Sanchez
|
12
|
+
autorequire:
|
13
|
+
bindir: bin
|
14
|
+
cert_chain: []
|
15
|
+
date: 2012-04-27 00:00:00.000000000Z
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
18
|
+
name: heroku
|
19
|
+
requirement: &2165027600 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ! '>='
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 2.24.1
|
25
|
+
type: :runtime
|
26
|
+
prerelease: false
|
27
|
+
version_requirements: *2165027600
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rspec
|
30
|
+
requirement: &2165026140 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
32
|
+
requirements:
|
33
|
+
- - ~>
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '2.0'
|
36
|
+
type: :development
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: *2165026140
|
39
|
+
description: Manage multiple Heroku instances/apps for a single Rails app using Rake.
|
40
|
+
email: railsjedi@gmail.com
|
41
|
+
executables: []
|
42
|
+
extensions: []
|
43
|
+
extra_rdoc_files:
|
44
|
+
- LICENSE
|
45
|
+
- README.md
|
46
|
+
- TODO
|
47
|
+
- CHANGELOG
|
48
|
+
files:
|
49
|
+
- lib/generators/heroku/config_generator.rb
|
50
|
+
- lib/generators/templates/heroku.rake
|
51
|
+
- lib/generators/templates/heroku.yml
|
52
|
+
- lib/heroku/rails/tasks.rb
|
53
|
+
- lib/heroku-rails/config.rb
|
54
|
+
- lib/heroku-rails/hash_recursive_merge.rb
|
55
|
+
- lib/heroku-rails/railtie.rb
|
56
|
+
- lib/heroku-rails/runner.rb
|
57
|
+
- lib/heroku-rails.rb
|
58
|
+
- spec/fixtures/awesomeapp.yml
|
59
|
+
- spec/fixtures/heroku-config.yml
|
60
|
+
- spec/fixtures/mediocreapp.yml
|
61
|
+
- spec/heroku/rails/heroku_config_spec.rb
|
62
|
+
- spec/heroku/rails/heroku_runner_spec.rb
|
63
|
+
- spec/spec_helper.rb
|
64
|
+
- heroku-rails.gemspec
|
65
|
+
- Gemfile
|
66
|
+
- Gemfile.lock
|
67
|
+
- CHANGELOG
|
68
|
+
- LICENSE
|
69
|
+
- Rakefile
|
70
|
+
- README.md
|
71
|
+
- TODO
|
72
|
+
homepage: http://github.com/darkbushido/heroku-rails-saas
|
73
|
+
licenses: []
|
74
|
+
post_install_message:
|
75
|
+
rdoc_options:
|
76
|
+
- --charset=UTF-8
|
77
|
+
require_paths:
|
78
|
+
- lib
|
79
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
+
none: false
|
81
|
+
requirements:
|
82
|
+
- - ! '>='
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
segments:
|
86
|
+
- 0
|
87
|
+
hash: -3823282791944155865
|
88
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
segments:
|
95
|
+
- 0
|
96
|
+
hash: -3823282791944155865
|
97
|
+
requirements: []
|
98
|
+
rubyforge_project: none
|
99
|
+
rubygems_version: 1.8.6
|
100
|
+
signing_key:
|
101
|
+
specification_version: 3
|
102
|
+
summary: Deployment and configuration tools for Heroku/Rails
|
103
|
+
test_files:
|
104
|
+
- spec/fixtures/awesomeapp.yml
|
105
|
+
- spec/fixtures/heroku-config.yml
|
106
|
+
- spec/fixtures/mediocreapp.yml
|
107
|
+
- spec/heroku/rails/heroku_config_spec.rb
|
108
|
+
- spec/heroku/rails/heroku_runner_spec.rb
|
109
|
+
- spec/spec_helper.rb
|