chartspec 0.0.6 → 0.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 24cfaa604d3d446a47b4caeae756627df553c10e
4
- data.tar.gz: 835a894b657f9db5ce9e39c466861150abc9e871
3
+ metadata.gz: 8f443152f4af9b7d51d90acb33d2b68ba4492dd5
4
+ data.tar.gz: 82a31469817588baca2d38f2e14f1e292dfd2e0e
5
5
  SHA512:
6
- metadata.gz: 50249f305f147233199cf313e441589b5ef62bece32812f879f481d932633a5cfc414e852b20f2f12cb789794f35ee7ff25553f98f7c85dd10da95e9964a9c7f
7
- data.tar.gz: 3c79cce6185f90e84f55b1c6fde3d21ef9a22bc1a3838ebbb86bcc83fa3c924af804a58396b29ea41f7322cd47c38c7f4f02db8d9119594071a705c4851a4ab0
6
+ metadata.gz: 243c877c4be49d7098cf0e20c3778aab349369fcf44df40581342630c44ca423345d80d5eba6f7f7b374c586a7db2583d714ba69a8b7d690d0acfc8d00a2583e
7
+ data.tar.gz: effddac83c3393a5a2605a5d1f4b16f6c63f72ccad02c10e4bf5a9c79e4ee968c1c67bc9608a95e627a7b1bb20546ddbdd577179286f4134e50941ae4412b1e0
@@ -1,3 +1,5 @@
1
1
  require "chartspec/version"
2
2
  require "chartspec/formatter"
3
- requires"chartspec/ext/turnip/rspec" if defined? Turnip
3
+ if Gem::Specification::find_all_by_name('turnip').any?
4
+ require "chartspec/ext/turnip/rspec"
5
+ end
@@ -29,7 +29,7 @@ module Turnip
29
29
  steps = background_steps + scenario.steps
30
30
  tags = (feature.tags + scenario.tags).uniq
31
31
 
32
- example.metadata[:turnip] = { steps: steps, tags: tags }
32
+ example.metadata[:chartspec_turnip] = { steps: steps, tags: tags }
33
33
  end
34
34
  end
35
35
  end
@@ -58,7 +58,7 @@ module Chartspec
58
58
 
59
59
  def example_passed(passed)
60
60
  putc RSpec::Core::Formatters::ConsoleCodes.wrap('.', :success)
61
- @printer.print_example_passed(passed.example.description, passed.example.execution_result.run_time, passed.example.metadata[:turnip])
61
+ @printer.print_example_passed(passed.example.description, passed.example.execution_result.run_time, passed.example.metadata[:chartspec_turnip])
62
62
  @db.add(
63
63
  passed.example.metadata[:file_path],
64
64
  passed.example.example_group,
@@ -74,12 +74,12 @@ module Chartspec
74
74
  @header_red = true
75
75
  end
76
76
  @printer.print_example_failed(@example_number, failure.example.metadata[:file_path], failure.example.description, failure.example.execution_result.run_time,
77
- failure.example.exception.message, failure.example.exception.backtrace, failure.example.metadata[:turnip])
77
+ failure.example.exception.message, failure.example.exception.backtrace, failure.example.metadata[:chartspec_turnip])
78
78
  end
79
79
 
80
80
  def example_pending(pending)
81
81
  putc RSpec::Core::Formatters::ConsoleCodes.wrap('*', :pending)
82
- @printer.print_example_pending(pending.example.description, pending.example.execution_result.pending_message, pending.example.metadata[:turnip])
82
+ @printer.print_example_pending(pending.example.description, pending.example.execution_result.pending_message, pending.example.metadata[:chartspec_turnip])
83
83
  end
84
84
 
85
85
  def dump_failures(notification)
@@ -1,3 +1,3 @@
1
1
  module Chartspec
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -62,14 +62,13 @@
62
62
  $(window).bind('resize', function(event, ui) {
63
63
  chart.replot( { resetAxes: true } );
64
64
  });
65
-
66
- $(document).ready(function(){
67
- $(".show_backtrace").click(function() {
68
- $($(this).attr('href')).removeClass('hide');
69
- $(this).hide();
70
- });
71
- });
72
65
  }
66
+ $(document).ready(function(){
67
+ $(".show_backtrace").click(function() {
68
+ $($(this).attr('href')).removeClass('hide');
69
+ $(this).hide();
70
+ });
71
+ });
73
72
  </script>
74
73
  </head>
75
74
  <body>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chartspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - AlexVangelov