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 +4 -4
- data/lib/skeletoruby.rb +1 -1
- data/lib/skeletoruby/commands/initialize_rspec.rb +4 -1
- data/lib/skeletoruby/commands/prepare_gemfile.rb +5 -1
- data/lib/skeletoruby/commands/prepare_readme.rb +1 -1
- data/lib/skeletoruby/skeleton_builder.rb +2 -2
- data/lib/skeletoruby/thor_commands.rb +1 -1
- data/lib/skeletoruby/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2487475c30560d58ec6a3b7675ff777728ee17baf8592d383302f9376aeaed99
|
4
|
+
data.tar.gz: 1ebad581e5e1b0d328a5d712380b8dc90e14a40dee6dd3903a1f15a90dff307c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
@@ -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",
|
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",
|
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
|
data/lib/skeletoruby/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Skeletoruby
|
2
|
-
VERSION = '0.0.
|
3
|
-
end
|
2
|
+
VERSION = '0.0.2'.freeze
|
3
|
+
end
|