skeletoruby 0.0.1 → 0.0.2

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
  SHA256:
3
- metadata.gz: 426574639aac92f45006effb1778a3d8cabbe2e1cf169e33ef0a03e765c1da89
4
- data.tar.gz: 467ce5e5bd46c81651a874c816bbbdc1000a0c86cadb1fbb3d55afbe54ddb0cf
3
+ metadata.gz: 2487475c30560d58ec6a3b7675ff777728ee17baf8592d383302f9376aeaed99
4
+ data.tar.gz: 1ebad581e5e1b0d328a5d712380b8dc90e14a40dee6dd3903a1f15a90dff307c
5
5
  SHA512:
6
- metadata.gz: 1da19c2bd8f97d2d6afa45d113c772b053384ee1fad45326ed622465cf6fe1b7c82828326ea6a6e24ba93a39ccb6faa60541df47e89c06b4713d5ddb746eca2a
7
- data.tar.gz: 6ef058f755cb4df450e974de8cdca7cf178f40fbcba5837abc6882fed69bb72fab728d38dd3b8fe38bfd64b22cb18fede0328e6a7f4ac0de1eae6683dc9883fb
6
+ metadata.gz: 634912b52ebdb79f50164107cead028ef45a7160b84491e3d4fe13161e88cfe855de8efccb3bfa50eaa50e0fc6a9b615dc051f61c0485b796f2f401a2d2feeb4
7
+ data.tar.gz: 983ffb39f9f2734b76bfad02c0fbf33821ab2a2eae8011364817b0a4a2340fb8724224aff9b8bd83b192d6d02a57aab4aebb1ecd5781b753862697bbde91020d
data/lib/skeletoruby.rb CHANGED
@@ -1 +1 @@
1
- require 'skeletoruby/skeleton_builder'
1
+ require 'skeletoruby/skeleton_builder'
@@ -4,7 +4,10 @@ module Skeletoruby
4
4
  module Commands
5
5
  class InitializeRspec
6
6
  def self.call(project_name)
7
- FileUtils.cd("#{project_name}") { `rspec --init` }
7
+ FileUtils.cd(project_name.to_s) do
8
+ `bundle install`
9
+ `rspec --init`
10
+ end
8
11
  end
9
12
  end
10
13
  end
@@ -2,7 +2,11 @@ module Skeletoruby
2
2
  module Commands
3
3
  class PrepareGemfile
4
4
  def self.call(project_name)
5
- File.open("#{project_name}/Gemfile", "w") { |file| file.puts "source 'https://rubygems.org'" }
5
+ File.open("#{project_name}/Gemfile", 'w') do |file|
6
+ file.puts "source 'https://rubygems.org'"
7
+ file.puts ''
8
+ file.puts "gem 'rspec'"
9
+ end
6
10
  end
7
11
  end
8
12
  end
@@ -2,7 +2,7 @@ module Skeletoruby
2
2
  module Commands
3
3
  class PrepareReadme
4
4
  def self.call(project_name)
5
- File.open("#{project_name}/README.md", "w") { |file| file.puts "## #{project_name.upcase}" }
5
+ File.open("#{project_name}/README.md", 'w') { |file| file.puts "## #{project_name.upcase}" }
6
6
  end
7
7
  end
8
8
  end
@@ -14,8 +14,8 @@ module Skeletoruby
14
14
  Skeletoruby::Commands::CreateLib,
15
15
  Skeletoruby::Commands::CreateGemfile,
16
16
  Skeletoruby::Commands::CreateReadme,
17
- Skeletoruby::Commands::InitializeRspec,
18
17
  Skeletoruby::Commands::PrepareGemfile,
18
+ Skeletoruby::Commands::InitializeRspec,
19
19
  Skeletoruby::Commands::PrepareReadme
20
20
  ]
21
21
 
@@ -30,4 +30,4 @@ module Skeletoruby
30
30
  commands.each { |command| command.call(@project_name) }
31
31
  end
32
32
  end
33
- end
33
+ end
@@ -11,4 +11,4 @@ module Skeletoruby
11
11
  say 'Done.'
12
12
  end
13
13
  end
14
- end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module Skeletoruby
2
- VERSION = '0.0.1'.freeze
3
- end
2
+ VERSION = '0.0.2'.freeze
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skeletoruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Avlonitis