make_me_a_gem_called 0.0.15 → 0.0.16

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: 412c4a6db50d7e4a9b4f1daf32a306c6ef021467
4
- data.tar.gz: 10d8c73844cacfd7576807217b54ac03caac9462
3
+ metadata.gz: d9180a5c39b5f415ac7cfd299606c5ea303d3883
4
+ data.tar.gz: 53e8937946cb0e20aed143f5f3b782d4fc9cb42a
5
5
  SHA512:
6
- metadata.gz: 5e17e7c5889765936abd415da138a10385c0282948fe6a9fc7308c799c43537dfdf7ba8ec4a31c10ebe425074481a46e0a027fd66f201bfaad1629380142380a
7
- data.tar.gz: 9a8ce576e7151c3b271037c15b8252e6efd9bba49495cb4c8742fafd18a44df3563a6e94e8b7870ab694bc823d2ffd434a88fd207348f59230fdd7aeed80486b
6
+ metadata.gz: 6595df9fc31cc740b66e822f2756fc4cd5af6b2ac240412e24dce7ac465cf8631175ad078ae0df8c9a5975d0b791931d8531c0101d67ceb811fd8c0ba8c5096f
7
+ data.tar.gz: 991fbc86cb94faf8cbe6f7dc9d8ffc3910f8599f0247d58e3a9d5ec5991a4da7b65a862b0244d27649e79077fba22f215fcdc65e5105cfe416c07bbf58ae639b
@@ -1,3 +1,3 @@
1
1
  class MakeMeAGemCalled
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
@@ -25,8 +25,8 @@ class MakeMeAGemCalled
25
25
  end
26
26
 
27
27
  def add_require_relative_to_main_file
28
- system("sed -i \\'\\' 1d #{@name}/lib/#{@name}.rb")
29
- system("echo require_relative \\'#{@name}/version\\' >> #{@name}/lib/#{@name}.rb")
28
+ system("sed -i \'\' 1d #{@name}/lib/#{@name}.rb")
29
+ system("echo -e require_relative \\'#{@name}/version\\'\\n | cat - #{@name}/lib/#{@name}.rb > temp && temp #{@name}/lib/#{@name}.rb")
30
30
  end
31
31
 
32
32
  def command_line_question
@@ -69,7 +69,7 @@ class MakeMeAGemCalled
69
69
  end
70
70
 
71
71
  def add_to_rake_file
72
- system("echo \"Dir.glob(\\'tasks/**/*.rake\\').each(&method(:import))\" >> #{@name}/Rakefile")
72
+ system("echo \"Dir.glob(\'tasks/**/*.rake\').each(&method(:import))\" >> #{@name}/Rakefile")
73
73
  end
74
74
 
75
75
  def instructions
data/test.txt CHANGED
@@ -1,8 +1,6 @@
1
- unrequire spec_helper
1
+ task goes here
2
2
 
3
-
4
-
5
- cdc
6
- this is a test
7
- 'this is a test'
8
- require 'this is a test'
3
+ task goes here/n
4
+ task goes here\n
5
+ task goes here
6
+ require 'this is a new test'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: make_me_a_gem_called
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Giles