Sha256: 53e5988940824257de6f37aafb41d2266a70ca81f81bc56dd7a0ad4dc945fffe

Contents?: true

Size: 682 Bytes

Versions: 42

Compression:

Stored size: 682 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
  module TestHelpers
    module FileSearching
      def all_rb_files
        pattern = File.expand_path(gem_root + "/**/*.{rb,rhtml}")
        Dir[pattern]
      end

      def all_rb_and_js_files
        pattern = File.expand_path(gem_root + "/**/*.{rb,js}")
        Dir[pattern]
      end

      def all_files
        pattern = File.expand_path(gem_root + "/**/*")
        Dir[pattern]
      end

      def gem_root
        File.expand_path(File.dirname(__FILE__) + "/../../")
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 2 rubygems

Version Path
newrelic_rpm-3.13.1.300 test/helpers/file_searching.rb
newrelic_rpm-3.13.0.299 test/helpers/file_searching.rb
newrelic_rpm-3.12.1.298 test/helpers/file_searching.rb
newrelic_rpm-3.12.0.288 test/helpers/file_searching.rb
newrelic_rpm-3.11.2.286 test/helpers/file_searching.rb
newrelic_rpm-3.11.1.284 test/helpers/file_searching.rb
newrelic_rpm-3.11.0.283 test/helpers/file_searching.rb
newrelic_rpm-3.10.0.279 test/helpers/file_searching.rb
newrelic_rpm-3.9.9.275 test/helpers/file_searching.rb
newrelic_rpm-3.9.8.273 test/helpers/file_searching.rb
newrelic_rpm-3.9.7.266 test/helpers/file_searching.rb
newrelic_rpm-3.9.6.257 test/helpers/file_searching.rb
newrelic_rpm-3.9.5.251 test/helpers/file_searching.rb
newrelic_rpm-3.9.4.245 test/helpers/file_searching.rb
newrelic_rpm-3.9.3.241 test/helpers/file_searching.rb
newrelic_rpm-3.9.2.239 test/helpers/file_searching.rb
newrelic_rpm-3.9.1.236 test/helpers/file_searching.rb
newrelic_rpm-3.9.0.229 test/helpers/file_searching.rb
newrelic_rpm-3.8.1.221 test/helpers/file_searching.rb
newrelic_rpm-3.8.0.218 test/helpers/file_searching.rb