crane_rails 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c51d8457b4998c228a0ab70f2d811925cc583d6
4
- data.tar.gz: a81105576b0b26cd286022ac478c8006d8e29163
3
+ metadata.gz: d9b544a06f99258499db8599d58000de34e9a52a
4
+ data.tar.gz: 714397711ded9801d39070d85ea10c2fc76a7bc9
5
5
  SHA512:
6
- metadata.gz: ed354362f1c46f3ce01ef285552ed757c789aa079281f8cfca381f337134a8188c34bde9b92d39454251354a4e85e14299ba3fed08c5dac5f488adf0f1515bfe
7
- data.tar.gz: eb3e7a63bd0df83b6dbcf3dee46705a7df0a2f7e544527e4ec0fc01c12369627c6a64fb87abffcb0124cf8639370389db7c4b7cf61c7b96f814466582fb8816f
6
+ metadata.gz: 4ea895a481ffe239e8c19e1e7f06c324584536eaa1dc2d9deb4bbe4d50e4b3a6d0e62a3c7289de319faddbfa489824dbbd12e9369f33e4cdfff6f3353dc5b07b
7
+ data.tar.gz: fb33063c92805e8f5fd754667e586b36f094c9252a667795098eed432eb49a25261511a59b891c02c9c6e9826d3a4cb792bc6c02a0d77c34e340b90898f16063
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- crane_rails (0.2.6)
4
+ crane_rails (0.3.5)
5
5
  thor (= 0.18.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,4 +1,27 @@
1
- # Crane::Rails
1
+ # CraneRails
2
+
3
+ *Warning* This is opinionated! Like hella opinionated.
4
+
5
+ This gem gives you the files you need to run my ideal development environment for my ideal development stack:
6
+
7
+ * Rails-API (Back-end)
8
+ * Yeoman-Angular (Front-end)
9
+ * Postgresql
10
+ * Elasticsearch
11
+ * Nginix
12
+
13
+ With a file organization like this:
14
+
15
+ ```
16
+ front-end/
17
+ # yeoman-angular app
18
+ back-end/
19
+ # rails-api app
20
+ Vagrantfile
21
+ tmuxinator-sample.yml
22
+ ```
23
+
24
+ You can find my images that I use to build these containers at my [Docker Index Page](https://index.docker.io/u/shicholas/)
2
25
 
3
26
  ## Prerequisites
4
27
 
@@ -13,33 +36,34 @@ This gem makes the assumption you have the following installed:
13
36
  ```
14
37
  gem install crane_rails
15
38
  ```
39
+
16
40
  There is really no point in adding this gem to your gemfile as it will override your current Gemfile
17
41
 
18
42
  ## Usage
19
43
 
20
- Run this command in the root of a rails project
44
+ Run this command in the root of the file structure described above (aka not Rails.root!)
21
45
 
22
46
  ```
23
- rails new docker_is_awesome -T --skip-bundle --database=postgresql
24
- cd docker_is_awesome
25
- rails g crane:bootstrap
47
+ crane_rails bootstrap
26
48
  ```
27
49
 
28
50
  Next comes Tmuxinator
29
51
 
52
+ move the tmuxinator-sample file to the tmuxinator directory
53
+
30
54
  ```
31
- mv tmuxinator-sample.yml ~/.tmuxinator/rails.yml
32
- tmuxinator start rails
55
+ mv tmuxinator-sample.yml ~/.tmuxinator/crane.yml
33
56
  ```
34
57
 
58
+ and then start rails in vagrant with docker!!
59
+
60
+ ```
61
+ tmuxinator start crane
62
+ ```
35
63
 
36
64
  ## Contributing
37
65
 
38
- 1. Fork it ( https://github.com/shicholas/crane_rails/fork )
39
- 2. Create your feature branch (`git checkout -b my-new-feature`)
40
- 3. Commit your changes (`git commit -am 'Add some feature'`)
41
- 4. Push to the branch (`git push origin my-new-feature`)
42
- 5. Create new Pull Request
66
+ Please let me know how I can make this better, even if it's just adding a github issue sans code.
43
67
 
44
68
  ## License
45
69
  MIT, © Nicholas Shook, 2014
data/crane_rails.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
19
19
  s.require_path = 'lib'
20
20
 
21
- s.add_dependency 'thor', '0.18.1'
21
+ s.add_dependency 'thor'
22
22
  s.add_development_dependency 'cucumber'
23
23
  s.add_development_dependency 'aruba'
24
24
  end
@@ -10,14 +10,15 @@ module CraneRails
10
10
 
11
11
  desc 'bootstrap', 'Generates a files for rails app'
12
12
  def bootstrap
13
+ # These two files set up a CoreOS vagrantfile for docker
13
14
  template 'Vagrantfile', 'Vagrantfile'
15
+ template 'override-plugin.rb', 'override-plugin.rb'
14
16
 
15
17
  get 'https://raw.githubusercontent.com/shicholas/Dockerfile-rails/master/Gemfile', 'Gemfile'
16
18
  get 'https://raw.githubusercontent.com/shicholas/Dockerfile-rails/master/Gemfile.lock', 'Gemfile.lock'
17
19
 
20
+ # Had to copy file because '#template' won't copy erb
18
21
  copy_file '../templates/database.yml', 'config/database.yml'
19
-
20
- template 'override-plugin.rb', 'override-plugin.rb'
21
22
  template 'rails.yml', 'tmuxinator-sample.yml'
22
23
  template 'Guardfile', 'Guardfile'
23
24
  end
@@ -6,11 +6,16 @@ Vagrant.configure('2') do |config|
6
6
 
7
7
  config.vm.synced_folder './', '/home/core/rails', id: 'core', type: 'rsync'
8
8
 
9
- config.vm.network 'forwarded_port', guest: 3000, host: 3000
9
+ config.vm.network 'forwarded_port', guest: 8080, host: 80
10
10
 
11
11
  config.vm.provision 'shell', inline: <<-COMMANDS
12
- docker run --name=pg -d shicholas/postgresql
13
12
  docker pull shicholas/rails-server
14
13
  docker pull shicholas/rails-guard
14
+ docker pull shicholas/rails-feature-tests
15
+ docker pull shicholas/rails-console
16
+ docker pull shicholas/rails-bash
17
+ docker pull shicholas/mysql-rails
18
+ docker pull shicholas/datomic
19
+ docker pull shicholas/redis-server
15
20
  COMMANDS
16
21
  end
@@ -1,3 +1,3 @@
1
1
  module CraneRails
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crane_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
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-27 00:00:00.000000000 Z
11
+ date: 2014-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.1
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.18.1
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cucumber
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements: []
100
100
  rubyforge_project:
101
- rubygems_version: 2.2.1
101
+ rubygems_version: 2.2.2
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Configures rails for docker with crane