crane_rails 0.0.5 → 0.0.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: cf5f9222f8effd34b34fffa519b5e3100575f101
4
- data.tar.gz: 4569df89fd6a27702c6a0e0c521b9064fa00630d
3
+ metadata.gz: 9bab09f76332d39b2994439533d97a801a6fbf74
4
+ data.tar.gz: d4fc820c5bda1858c29b0ec265d6ebf7a9e92187
5
5
  SHA512:
6
- metadata.gz: efba939925f038c35ca54aba2f3992e2d2f3f6089ad3df6b75354a18c9bcdb7f6e95fafbd958749810c2465c542eceb4a604932d07e973a15d5eb523605c45d1
7
- data.tar.gz: 961baecc34e4336482f6ad450839ca6b15cfc3f57ed8fc7e32cfae5ec74ac5486ca2b70f19bb563dd00b11359b66432f18a6893cecab75baac0f889d65051b78
6
+ metadata.gz: 63ca740382b8a9e901c36db292573f9ba7e165140c7df094a86eb522426cbcabd139765e6ee47ec6b22206a8962753b42cdff23515e61756623dbcddd99b07a6
7
+ data.tar.gz: 6fba3039516b46f5c5e04384559eb5c5e82616fc6b0ec9dc3530fde53d4d0d2ed1f017925f3af4139a234d3203253a2af8754487fc729521ef9ebb32b3c3e3f0
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ tmp/
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Declare your gem's dependencies in crane_rails.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # Declare any dependencies that are still in development here instead of in
9
+ # your gemspec. These might include edge Rails or gems from your path or
10
+ # Git. Remember to move these dependencies to your gemspec before releasing
11
+ # your gem to rubygems.org.
12
+
13
+ # To use debugger
14
+ # gem 'debugger'
data/Gemfile.lock ADDED
@@ -0,0 +1,39 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ crane_rails (0.0.6)
5
+ thor (= 0.18.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ aruba (0.5.4)
11
+ childprocess (>= 0.3.6)
12
+ cucumber (>= 1.1.1)
13
+ rspec-expectations (>= 2.7.0)
14
+ builder (3.2.2)
15
+ childprocess (0.5.1)
16
+ ffi (~> 1.0, >= 1.0.11)
17
+ cucumber (1.3.12)
18
+ builder (>= 2.1.2)
19
+ diff-lcs (>= 1.1.3)
20
+ gherkin (~> 2.12)
21
+ multi_json (>= 1.7.5, < 2.0)
22
+ multi_test (>= 0.1.1)
23
+ diff-lcs (1.2.5)
24
+ ffi (1.9.3)
25
+ gherkin (2.12.2)
26
+ multi_json (~> 1.3)
27
+ multi_json (1.9.2)
28
+ multi_test (0.1.1)
29
+ rspec-expectations (2.14.5)
30
+ diff-lcs (>= 1.1.3, < 2.0)
31
+ thor (0.18.1)
32
+
33
+ PLATFORMS
34
+ ruby
35
+
36
+ DEPENDENCIES
37
+ aruba
38
+ crane_rails!
39
+ cucumber
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # Crane::Rails
2
+
3
+ ## Installation
4
+
5
+ Add this line to your application's Gemfile:
6
+
7
+ gem 'crane_rails'
8
+
9
+ And then execute:
10
+
11
+ $ bundle
12
+
13
+ Or install it yourself as:
14
+
15
+ $ gem install crane_rails
16
+
17
+ ## Usage
18
+
19
+ Run this command in a rails project
20
+ ```
21
+ rails g crane:bootstrap
22
+ ```
23
+
24
+ When this is done it will create a ```.crane.yml``` file in ```Rails.root``` to set up crane and provide a one step development environment by running ```vagrant up```. The ```.crane.yml``` can also be used for ci with the command ```crane ci```
25
+
26
+ ## Contributing
27
+
28
+ 1. Fork it ( https://github.com/shicholas/crane_rails/fork )
29
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
30
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
31
+ 4. Push to the branch (`git push origin my-new-feature`)
32
+ 5. Create new Pull Request
33
+
34
+ ## License
35
+ MIT, © Nicholas Shook, 2014
data/bin/crane_rails ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require 'crane_rails/cli'
3
+ CraneRails::CLI.start
@@ -0,0 +1,24 @@
1
+ $:.push File.expand_path('../lib', __FILE__)
2
+
3
+ # Maintain your gem's version:
4
+ require 'crane_rails/version'
5
+
6
+ # Describe your gem and declare its dependencies:
7
+ Gem::Specification.new do |s|
8
+ s.name = 'crane_rails'
9
+ s.version = CraneRails::VERSION
10
+ s.authors = ['Nicholas Shook']
11
+ s.email = ['nicholas.shook@gmail.com']
12
+ s.homepage = 'https://github.com/shicholas/crane_rails'
13
+ s.summary = %q{Configures rails for docker with crane}
14
+ s.description = %q{Initialize this gem with `crane-rails bootstrap`}
15
+
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
19
+ s.require_path = 'lib'
20
+
21
+ s.add_dependency 'thor', '0.18.1'
22
+ s.add_development_dependency 'cucumber'
23
+ s.add_development_dependency 'aruba'
24
+ end
@@ -0,0 +1,24 @@
1
+ Feature: Generating Config Files
2
+ In order to generate initial files
3
+ As a user in the root of my rails application
4
+ I want bootstrap to generate my develeopment set-up
5
+
6
+ Scenario: Bootstrap
7
+ When I run `crane_rails bootstrap`
8
+ Then the following files should exist:
9
+ | Vagrantfile | Gemfile | Gemfile.lock |
10
+ Then the file "Vagrantfile" should contain:
11
+ """
12
+ Vagrant.configure('2') do |config|
13
+ config.vm.box = 'coreos'
14
+ config.vm.box_url = 'http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_vagrant.box'
15
+ """
16
+ Then the file "Gemfile" should contain:
17
+ """
18
+ gem 'rails'
19
+ """
20
+ Then the file "Gemfile.lock" should contain:
21
+ """
22
+ GEM
23
+ remote:
24
+ """
@@ -0,0 +1 @@
1
+ require 'aruba/cucumber'
@@ -1,3 +1,3 @@
1
1
  module CraneRails
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crane_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Shook
@@ -55,12 +55,21 @@ dependencies:
55
55
  description: Initialize this gem with `crane-rails bootstrap`
56
56
  email:
57
57
  - nicholas.shook@gmail.com
58
- executables: []
58
+ executables:
59
+ - crane_rails
59
60
  extensions: []
60
61
  extra_rdoc_files: []
61
62
  files:
63
+ - ".gitignore"
64
+ - Gemfile
65
+ - Gemfile.lock
62
66
  - MIT-LICENSE
67
+ - README.md
63
68
  - Rakefile
69
+ - bin/crane_rails
70
+ - crane_rails.gemspec
71
+ - features/generator.feature
72
+ - features/support/setup.rb
64
73
  - lib/crane_rails.rb
65
74
  - lib/crane_rails/cli.rb
66
75
  - lib/crane_rails/generators/bootstrap.rb