crane_rails 0.0.7 → 0.0.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7c334e2d81b87e42f59f359ae536de1311def11
4
- data.tar.gz: ec140f6d3f29998ae4259df0950d4e3318408794
3
+ metadata.gz: cb291e738cb9320e561654d100c68f3439080d0b
4
+ data.tar.gz: cda2d513c2be95e50fa079af3232f508b2fbc888
5
5
  SHA512:
6
- metadata.gz: 281e28802f05608ee1c7d46344d3de4e9a829ed006e0defe0c9c7f443212e0d6893c553c5c74fe663851c6ea25e5a6c21f9d74faee83bf367fd222992bf3322b
7
- data.tar.gz: d77de967489f3f386f2e7238b5007478933a592210ea1b88c10385ecdeb7aa3432d6f21fb1ef79e0e1224ecdf025ea48e4d1338669e53c514e38ad404a478daa
6
+ metadata.gz: 6f52ad7a1049f9fa57b46d7f711293a3ac795e1cc932ccde56676488b7ad0e5f06a9b7ee70d4f014690aa96dedae5e70f8b9f630c3fbf2f83349b94904730832
7
+ data.tar.gz: fa6b1dcd6cdf5b8bba8af4b2b8a79208749c1a46124d2273dcffb8a4ef4c723ddf3e53a5d9eaa0624c68bf6651f634fc8980772c7282ed51b613f01b7f35404c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- crane_rails (0.0.6)
4
+ crane_rails (0.0.7)
5
5
  thor (= 0.18.1)
6
6
 
7
7
  GEM
@@ -6,7 +6,7 @@ Feature: Generating Config Files
6
6
  Scenario: Bootstrap
7
7
  When I run `crane_rails bootstrap`
8
8
  Then the following files should exist:
9
- | Vagrantfile | Gemfile | Gemfile.lock |
9
+ | Vagrantfile | Gemfile | Gemfile.lock | config/database.yml |
10
10
  Then the file "Vagrantfile" should contain:
11
11
  """
12
12
  Vagrant.configure('2') do |config|
@@ -22,3 +22,18 @@ Feature: Generating Config Files
22
22
  GEM
23
23
  remote:
24
24
  """
25
+ Then the file "config/database-development.yml" should contain:
26
+ """
27
+ development:
28
+ adapter: postgresql
29
+ """
30
+ Then the file "config/database-test.yml" should contain:
31
+ """
32
+ test:
33
+ adapter: postgresql
34
+ """
35
+ Then the file "config/database-ci.yml" should contain:
36
+ """
37
+ ci:
38
+ adapter: postgresql
39
+ """
@@ -13,8 +13,12 @@ module CraneRails
13
13
  template 'Vagrantfile', 'Vagrantfile'
14
14
  remove_file 'Gemfile'
15
15
  remove_file 'Gemfile.lock'
16
+ remove_file 'config/database.yml'
16
17
  get 'https://raw.githubusercontent.com/shicholas/Dockerfile-rails/master/Gemfile', 'Gemfile'
17
18
  get 'https://raw.githubusercontent.com/shicholas/Dockerfile-rails/master/Gemfile.lock', 'Gemfile.lock'
19
+ get 'https://raw.githubusercontent.com/shicholas/Dockerfile-rails-server/master/database.yml', 'config/database-dev.yml'
20
+ get 'https://raw.githubusercontent.com/shicholas/Dockerfile-rails-guard/master/database.yml', 'config/database-test.yml'
21
+ get 'https://raw.githubusercontent.com/shicholas/Dockerfile-rails-ci/master/database.yml', 'config/database-ci.yml'
18
22
  end
19
23
 
20
24
  default_task :bootstrap
@@ -2,10 +2,10 @@ Vagrant.configure('2') do |config|
2
2
  config.vm.box = 'coreos'
3
3
  config.vm.box_url = 'http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_vagrant.box'
4
4
 
5
- # Uncomment below to enable NFS for sharing the host machine into the coreos-vagrant VM.
6
- config.ssh.forward_agent = true
7
- config.vm.network 'private_network', ip: '172.12.8.150'
8
- config.vm.synced_folder '.', '/home/core/share', id: 'core', :nfs => true, :mount_options => ['nolock,vers=3,udp']
5
+ config.vm.synced_folder '.', '/home/core/share', id: 'core', type: 'rsync'
6
+
7
+ # Rails server port
8
+ config.vm.provider 'forwarded_port', guest: 3000, host: 3000
9
9
 
10
10
  # Fix docker not being able to resolve private registry in VirtualBox
11
11
  config.vm.provider :virtualbox do |vb, override|
@@ -0,0 +1,49 @@
1
+ development:
2
+ adapter: postgresql
3
+ encoding: unicode
4
+ database: rails_development
5
+ pool: 5
6
+ username: rails
7
+ password: password
8
+
9
+ # Connect on a TCP socket. Omitted by default since the client uses a
10
+ # domain socket that doesn't need configuration. Windows does not have
11
+ # domain sockets, so uncomment these lines.
12
+ host: $PG_PORT_5432_TCP_ADDR
13
+
14
+ # The TCP port the server listens on. Defaults to 5432.
15
+ # If your server runs on a different port number, change accordingly.
16
+ port: 5432
17
+
18
+ # Schema search path. The server defaults to $user,public
19
+ #schema_search_path: myapp,sharedapp,public
20
+
21
+ # Minimum log levels, in increasing order:
22
+ # debug5, debug4, debug3, debug2, debug1,
23
+ # log, notice, warning, error, fatal, and panic
24
+ # Defaults to warning.
25
+ #min_messages: notice
26
+
27
+ # Warning: The database defined as "test" will be erased and
28
+ # re-generated from your development database when you run "rake".
29
+ # Do not set this db to the same as development or production.
30
+
31
+ test:
32
+ adapter: postgresql
33
+ encoding: unicode
34
+ database: rails_test
35
+ pool: 5
36
+ username: rails
37
+ password: password
38
+ host: $PG_PORT_5432_TCP_ADDR
39
+ port: 5432
40
+
41
+
42
+ # production:
43
+ # adapter: postgresql
44
+ # encoding: unicode
45
+ # database: rails_production
46
+ # pool: 5
47
+ # username: rails
48
+ # password: password
49
+
@@ -1,3 +1,3 @@
1
1
  module CraneRails
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crane_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Shook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-24 00:00:00.000000000 Z
11
+ date: 2014-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -66,7 +66,6 @@ files:
66
66
  - MIT-LICENSE
67
67
  - README.md
68
68
  - Rakefile
69
- - Vagrantfile
70
69
  - bin/crane_rails
71
70
  - crane_rails.gemspec
72
71
  - features/generator.feature
@@ -76,6 +75,7 @@ files:
76
75
  - lib/crane_rails/generators/bootstrap.rb
77
76
  - lib/crane_rails/templates/Vagrantfile
78
77
  - lib/crane_rails/templates/crane.yml
78
+ - lib/crane_rails/templates/database.yml
79
79
  - lib/crane_rails/version.rb
80
80
  homepage: https://github.com/shicholas/crane_rails
81
81
  licenses: []
data/Vagrantfile DELETED
@@ -1,28 +0,0 @@
1
- Vagrant.configure('2') do |config|
2
- config.vm.box = 'coreos'
3
- config.vm.box_url = 'http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_vagrant.box'
4
-
5
- # Uncomment below to enable NFS for sharing the host machine into the coreos-vagrant VM.
6
- config.ssh.forward_agent = true
7
- config.vm.network 'private_network', ip: '172.12.8.150'
8
- config.vm.synced_folder '.', '/home/core/share', id: 'core', :nfs => true, :mount_options => ['nolock,vers=3,udp']
9
-
10
- # Fix docker not being able to resolve private registry in VirtualBox
11
- config.vm.provider :virtualbox do |vb, override|
12
- vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
13
- vb.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
14
- end
15
-
16
- config.vm.provider :vmware_fusion do |vb, override|
17
- override.vm.box_url = 'http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_vagrant_vmware_fusion.box'
18
- end
19
-
20
- # plugin conflict
21
- if Vagrant.has_plugin?('vagrant-vbguest') then
22
- config.vbguest.auto_update = false
23
- end
24
-
25
- config.vm.provider 'shell', inline: <<-COMMANDS
26
- docker build --name=redis -d shicholas/redis
27
- COMMANDS
28
- end