flynn 0.0.8 → 0.0.9
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.
- data/.gitignore +2 -1
- data/flynn.gemspec +1 -1
- data/lib/flynn/recipes.rb +1 -0
- data/lib/flynn/recipes/refinerycms.rb +17 -0
- data/lib/flynn/version.rb +1 -1
- data/spec/flynn/recipes/basic_spec.rb +1 -1
- data/spec/flynn/recipes/gem_spec.rb +1 -1
- data/spec/flynn/recipes/node_web_spec.rb +1 -1
- data/spec/flynn/recipes/rails2_spec.rb +1 -1
- data/spec/flynn/recipes/rails3_spec.rb +1 -1
- data/spec/flynn/recipes/rails_edge_spec.rb +1 -1
- data/spec/flynn/recipes/refinerycms_spec.rb +28 -0
- data/spec/flynn/recipes/sinatra_spec.rb +1 -1
- data/spec/flynn/recipes_spec.rb +2 -1
- data/spec/spec_helper.rb +1 -0
- metadata +7 -3
data/.gitignore
CHANGED
data/flynn.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Luke Chadwick"]
|
10
10
|
s.email = ["luke.a.chadwick@gmail.com"]
|
11
|
-
s.homepage = ""
|
11
|
+
s.homepage = "http://github.com/vertis/flynn"
|
12
12
|
s.summary = %q{Flynn helps create ruby projects of different types}
|
13
13
|
s.description = %q{Whenever I start a new ruby project, I usually find myself repeating the same setup steps.
|
14
14
|
Flynn is a tool to help create common project types with sane defaults. }
|
data/lib/flynn/recipes.rb
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
module Flynn
|
4
|
+
module Recipes
|
5
|
+
class Refinerycms < RvmBase
|
6
|
+
def create(app_name, options=[])
|
7
|
+
RVM.gemset_create app_name
|
8
|
+
RVM.gemset_use! app_name
|
9
|
+
|
10
|
+
run("gem install refinerycms --no-rdoc --no-ri")
|
11
|
+
puts "Creating #{app_name}"
|
12
|
+
run("rvm gemset use #{app_name} && refinerycms #{app_name} #{options.join(" ")}")
|
13
|
+
create_project_rvmrc(app_name)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/flynn/version.rb
CHANGED
@@ -7,7 +7,7 @@ describe Flynn::Recipes::Basic do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
it "should create a new basic project with the correct name" do
|
10
|
-
Dir.chdir(
|
10
|
+
Dir.chdir(Dir.tmpdir)
|
11
11
|
subject.create('my_directory')
|
12
12
|
File.exists?('my_directory').should be_true
|
13
13
|
FileUtils.rm_r('my_directory')
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'fileutils'
|
3
|
+
|
4
|
+
describe Flynn::Recipes::Refinerycms do
|
5
|
+
it "should have a create method" do
|
6
|
+
subject.should respond_to(:create)
|
7
|
+
end
|
8
|
+
|
9
|
+
context "creating a refinerycms project" do
|
10
|
+
before(:all) do
|
11
|
+
Dir.chdir('tmp')
|
12
|
+
subject.create('my_refinerycms')
|
13
|
+
end
|
14
|
+
|
15
|
+
after(:all) do
|
16
|
+
FileUtils.rm_r('my_refinerycms')
|
17
|
+
Dir.chdir('..')
|
18
|
+
end
|
19
|
+
|
20
|
+
it "should create a new refinerycms project with the correct name" do
|
21
|
+
File.exists?('my_refinerycms').should be_true
|
22
|
+
end
|
23
|
+
|
24
|
+
it "should create an .rvmrc for the new application" do
|
25
|
+
File.exists?('my_refinerycms/.rvmrc').should be_true
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/spec/flynn/recipes_spec.rb
CHANGED
@@ -18,6 +18,7 @@ describe Flynn::Recipes do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
it "should return a list of all defined recipes" do
|
21
|
-
|
21
|
+
# TODO: This is a bit of a clunky spec
|
22
|
+
Flynn::Recipes.available_recipes.should == [:Basic, :Gem, :NodeWeb, :Rails2, :Rails3, :RailsEdge, :Sinatra, :Test]
|
22
23
|
end
|
23
24
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: flynn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.9
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Luke Chadwick
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-06-
|
13
|
+
date: 2011-06-12 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -85,6 +85,7 @@ files:
|
|
85
85
|
- lib/flynn/recipes/rails2.rb
|
86
86
|
- lib/flynn/recipes/rails3.rb
|
87
87
|
- lib/flynn/recipes/rails_edge.rb
|
88
|
+
- lib/flynn/recipes/refinerycms.rb
|
88
89
|
- lib/flynn/recipes/rvm_base.rb
|
89
90
|
- lib/flynn/recipes/sinatra.rb
|
90
91
|
- lib/flynn/version.rb
|
@@ -96,11 +97,13 @@ files:
|
|
96
97
|
- spec/flynn/recipes/rails2_spec.rb
|
97
98
|
- spec/flynn/recipes/rails3_spec.rb
|
98
99
|
- spec/flynn/recipes/rails_edge_spec.rb
|
100
|
+
- spec/flynn/recipes/refinerycms_spec.rb
|
99
101
|
- spec/flynn/recipes/sinatra_spec.rb
|
100
102
|
- spec/flynn/recipes_spec.rb
|
101
103
|
- spec/flynn_spec.rb
|
102
104
|
- spec/spec_helper.rb
|
103
|
-
|
105
|
+
- tmp/.gitkeep
|
106
|
+
homepage: http://github.com/vertis/flynn
|
104
107
|
licenses: []
|
105
108
|
|
106
109
|
post_install_message:
|
@@ -136,6 +139,7 @@ test_files:
|
|
136
139
|
- spec/flynn/recipes/rails2_spec.rb
|
137
140
|
- spec/flynn/recipes/rails3_spec.rb
|
138
141
|
- spec/flynn/recipes/rails_edge_spec.rb
|
142
|
+
- spec/flynn/recipes/refinerycms_spec.rb
|
139
143
|
- spec/flynn/recipes/sinatra_spec.rb
|
140
144
|
- spec/flynn/recipes_spec.rb
|
141
145
|
- spec/flynn_spec.rb
|