appmap 0.26.0 → 0.26.1

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
  SHA256:
3
- metadata.gz: 75d21c5ea95115ab89fb0dd6674a601d19455473f787344d07f7a935aec58aec
4
- data.tar.gz: 9d76905534e5c3277c318376708224f318f6357ab41647a6a14a82edf63cbe54
3
+ metadata.gz: 969149d7dd70e1cdcf191b07a2f5e9a7678419474d7169ec2483071ef2ab8cde
4
+ data.tar.gz: ad3ea01e6a3397452a69fd263cd21e70a50647e69445c269b86a40abad2cae76
5
5
  SHA512:
6
- metadata.gz: c6ca34edd66c0cec51119cc2af49ea5824c91023e54ac1507493eebc3ef39d8308db2b013fdd83d9a1102fc3f6f791dbcec5cf7c75a0cda409d4ade695739815
7
- data.tar.gz: 3e5ff519cc8ce4964771806f20258590b607a48a497bb4f100a72ce31f0b40305542315ac3ecfdf1ec5b92723c30369041707327fdf2bf0ac35a5f526e77a969
6
+ metadata.gz: 323a5227476b547b8ef4fd8d1b35a5cfbf2d01ec46a0764f8a1e27c95a77c8aa3da8eb76eb971f13e9cb774976fdaa5a83462307730a4085a3e1a86f1f40be9f
7
+ data.tar.gz: 622710776a9e8a9adfb29a876904c03e208b5ef219e1d0ee538f27c4dc5d7b1fd4556347dd9419f6b7e3d617c5b316d099233fe00819047c345fde2d7cdebe68
data/.gitignore CHANGED
@@ -16,3 +16,4 @@ appmap.json
16
16
  .vscode
17
17
  .byebug_history
18
18
 
19
+ /test/fixtures/rspec_recorder/.bundle/
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # v0.26.1
2
+
3
+ * Fix a bug that caused duplicate entries in the list of frameworks that appear
4
+ in the `metadata` section of an appmap.
5
+
1
6
  # v0.26.0
2
7
 
3
8
  * **appmap upload** is removed. Upload functionality has been moved to
data/lib/appmap/rspec.rb CHANGED
@@ -11,7 +11,7 @@ module AppMap
11
11
  require 'appmap/command/record'
12
12
  @metadata ||= AppMap::Command::Record.detect_metadata
13
13
  @metadata.freeze
14
- @metadata.dup
14
+ @metadata.deep_dup
15
15
  end
16
16
 
17
17
  module FeatureAnnotations
@@ -214,7 +214,7 @@ module AppMap
214
214
  end
215
215
 
216
216
  def save(example_name, class_map, events: nil, feature_name: nil, feature_group_name: nil, labels: nil)
217
- metadata = RSpec.metadata.dup.tap do |m|
217
+ metadata = RSpec.metadata.tap do |m|
218
218
  m[:name] = example_name
219
219
  m[:app] = @config.name
220
220
  m[:feature] = feature_name if feature_name
@@ -3,7 +3,7 @@
3
3
  module AppMap
4
4
  URL = 'https://github.com/applandinc/appmap-ruby'
5
5
 
6
- VERSION = '0.26.0'
6
+ VERSION = '0.26.1'
7
7
 
8
8
  APPMAP_FORMAT_VERSION = '1.2'
9
9
  end
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'appmap', git: '../../..', branch: `git rev-parse --abbrev-ref HEAD`.strip
3
+ gem 'appmap', git: 'applandinc/appmap-ruby', branch: `git rev-parse --abbrev-ref HEAD`.strip
4
4
  gem 'byebug'
5
5
  gem 'rspec'
@@ -3,6 +3,18 @@ require 'appmap/rspec'
3
3
  require 'hello'
4
4
 
5
5
  describe Hello, feature_group: 'Saying hello' do
6
+ before do
7
+ # Trick appmap-ruby into thinking we're a Rails app.
8
+ stub_const('Rails', double('rails', version: 'fake.0'))
9
+ end
10
+
11
+ # The order of these examples is important. The tests check the
12
+ # appmap for 'says hello', and we want another example to get run
13
+ # before it.
14
+ it 'does not say goodbye', feature: 'Speak hello', appmap: true do
15
+ expect(Hello.new.say_hello).not_to eq('Goodbye!')
16
+ end
17
+
6
18
  it 'says hello', feature: 'Speak hello', appmap: true do
7
19
  expect(Hello.new.say_hello).to eq('Hello!')
8
20
  end
data/test/rspec_test.rb CHANGED
@@ -9,6 +9,7 @@ class RSpecTest < Minitest::Test
9
9
  Bundler.with_clean_env do
10
10
  Dir.chdir 'test/fixtures/rspec_recorder' do
11
11
  FileUtils.rm_rf 'tmp'
12
+ system 'bundle config --local local.appmap ../../..'
12
13
  system 'bundle'
13
14
  system({ 'APPMAP' => 'true' }, %(bundle exec rspec spec/#{test_name}.rb))
14
15
 
@@ -48,6 +49,10 @@ class RSpecTest < Minitest::Test
48
49
  assert_equal({ name: 'appmap', url: AppMap::URL, version: AppMap::VERSION }.stringify_keys, metadata['client'])
49
50
  assert_includes metadata.keys, 'recorder'
50
51
  assert_equal({ name: 'rspec' }.stringify_keys, metadata['recorder'])
52
+
53
+ assert_includes metadata.keys, 'frameworks'
54
+ rspec = metadata['frameworks'].select {|f| f['name'] == 'rspec'}
55
+ assert_equal 1, rspec.count
51
56
  end
52
57
  end
53
58
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.26.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Gilpin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-05 00:00:00.000000000 Z
11
+ date: 2020-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport