reciper 0.0.1 → 0.0.2

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/Gemfile CHANGED
@@ -1,4 +1,7 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gem "rspec"
4
- gem "rake"
4
+ gem "rake"
5
+
6
+ # Specify your gem's dependencies in reciper.gemspec
7
+ gemspec
@@ -1,5 +1,10 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ reciper (0.0.1)
5
+
1
6
  GEM
2
- remote: http://rubygems.org/
7
+ remote: https://rubygems.org/
3
8
  specs:
4
9
  diff-lcs (1.1.3)
5
10
  rake (0.9.2.2)
@@ -17,4 +22,5 @@ PLATFORMS
17
22
 
18
23
  DEPENDENCIES
19
24
  rake
25
+ reciper!
20
26
  rspec
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -19,7 +19,7 @@ module Reciper
19
19
 
20
20
  def run_tests(options={})
21
21
  Dir.chdir(@ruby_app_path) do
22
- response = `rspec spec`
22
+ response = `bundle exec rspec spec`
23
23
 
24
24
  if response =~ /([.FE]+)/
25
25
  $1.split("").reject { |char| char == "." }.size
@@ -32,7 +32,7 @@ module Reciper
32
32
 
33
33
  def run_rake_task(task)
34
34
  Dir.chdir(@ruby_app_path) do
35
- spawn("rake #{task}", :err=> "/dev/null", :out => "/dev/null")
35
+ spawn("bundle exec rake #{task}", :out => "/dev/null", :err => "/dev/null")
36
36
 
37
37
  Process.wait
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module Reciper
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rake"
4
+ gem "rspec"
@@ -0,0 +1,12 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ rake (0.9.2.2)
5
+ rspec-core (2.9.0)
6
+
7
+ PLATFORMS
8
+ ruby
9
+
10
+ DEPENDENCIES
11
+ rake
12
+ rspec-core
@@ -50,7 +50,6 @@ describe Reciper::Helpers do
50
50
 
51
51
  FileUtils.rm("spec/fixtures/ruby_app/file.rb")
52
52
  end
53
-
54
53
  end
55
54
 
56
55
  describe ".run_tests" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reciper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-05 00:00:00.000000000 Z
12
+ date: 2012-04-09 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: An awesome way to write recipes for a book chapter
15
15
  email:
@@ -21,6 +21,7 @@ files:
21
21
  - Gemfile
22
22
  - Gemfile.lock
23
23
  - LICENSE
24
+ - Rakefile
24
25
  - lib/reciper.rb
25
26
  - lib/reciper/helpers.rb
26
27
  - lib/reciper/version.rb
@@ -28,6 +29,8 @@ files:
28
29
  - spec/fixtures/recipe/failing_spec.rb
29
30
  - spec/fixtures/recipe/file.rb
30
31
  - spec/fixtures/recipe/my_name.rb
32
+ - spec/fixtures/ruby_app/Gemfile
33
+ - spec/fixtures/ruby_app/Gemfile.lock
31
34
  - spec/fixtures/ruby_app/Rakefile
32
35
  - spec/fixtures/ruby_app/lib/my_class.rb
33
36
  - spec/fixtures/ruby_app/spec/true_spec.rb
@@ -61,6 +64,8 @@ test_files:
61
64
  - spec/fixtures/recipe/failing_spec.rb
62
65
  - spec/fixtures/recipe/file.rb
63
66
  - spec/fixtures/recipe/my_name.rb
67
+ - spec/fixtures/ruby_app/Gemfile
68
+ - spec/fixtures/ruby_app/Gemfile.lock
64
69
  - spec/fixtures/ruby_app/Rakefile
65
70
  - spec/fixtures/ruby_app/lib/my_class.rb
66
71
  - spec/fixtures/ruby_app/spec/true_spec.rb