pressure_cooker 0.1.2 → 0.1.3
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.
- checksums.yaml +8 -8
- data/bin/cook_gem.rb +16 -0
- data/lib/pressure_cooker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzhkYTQ2OGM1MDc4Y2RlMWNjMTY5ZDBhY2RlMDliMWZkZmUyMTU2Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmFlMjIyMTFlZjFjNWE3MTM4YmI3MDFiZDlkMTM2NTg2MzFkN2ZlYQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmZhNDM3Yjg0ODNjZGFkNmJmYzQxZjU1ZDJiZDJjNzBmNjcxNWMyMmI5YmQw
|
10
|
+
NWZkMzVjOTA2ODQ3MjVjNTdhZmYzOTk1MDRlMjFjMWI1ZmVmODkyMWE5OTc4
|
11
|
+
NDhkNDE3NzhlYWY1MzM1NGI4ZWVhZWViZDc4MDA0MGU4MjQwMGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzBjY2NkZjQ0ZGZkNWY5NjZiYTYwODMyMzk5YjUzYzBiZWU4MTg3YWU4Mjhj
|
14
|
+
MmFiNzFhYjQwYjY2MzAzZDA0ZTUyMWM0NTkwNDRhYzQxZmJkYjQ2N2NjNzI3
|
15
|
+
MTViNzc4NzJjMDQyYTYxMTFjYjRlMTliN2U4YzUwMDg1NGZjZTQ=
|
data/bin/cook_gem.rb
CHANGED
@@ -23,14 +23,30 @@ system "mkdir bin"
|
|
23
23
|
puts
|
24
24
|
system "rspec --init"
|
25
25
|
|
26
|
+
# require our gem in spec_helper
|
27
|
+
system 'mv spec/spec_helper.rb spec/_spec_helper.rb'
|
28
|
+
old_spec_helper = File.open('spec/_spec_helper.rb', 'r')
|
29
|
+
File.open("spec/spec_helper.rb", 'w') do |spec_helper|
|
30
|
+
spec_helper.puts "require '#{gem_name}'"
|
31
|
+
old_spec_helper.lines.each do |line|
|
32
|
+
spec_helper.puts line
|
33
|
+
end
|
34
|
+
end
|
35
|
+
system 'rm spec/_spec_helper.rb'
|
36
|
+
|
37
|
+
# add smoke_spec.rb for basic
|
26
38
|
smoke_spec = File.new("spec/smoke_spec.rb", 'w')
|
27
39
|
smoke_spec.puts '# smoke test'
|
40
|
+
smoke_spec.puts "require 'spec_helper'"
|
41
|
+
smoke_spec.puts
|
28
42
|
smoke_spec.puts "describe #{gem_module} do"
|
29
43
|
smoke_spec.puts " it 'has a version' do"
|
30
44
|
smoke_spec.puts " expect(#{gem_module}::VERSION).to match(/^\\d+\\.\\d+\\.\\d+$/)"
|
31
45
|
smoke_spec.puts " end"
|
32
46
|
smoke_spec.puts "end"
|
33
47
|
smoke_spec.close
|
48
|
+
|
49
|
+
# add dir for future specs
|
34
50
|
system "mkdir spec/#{gem_name}"
|
35
51
|
|
36
52
|
# update gemspec with dependencies
|