This file is indexed.

/usr/lib/ruby/1.8/twitter/meta.rb is in libtwitter-ruby1.8 0.7.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# meta.rb contains <tt>Twitter::Meta</tt> and related classes that
# help define the metadata of the <tt>Twitter4R</tt> project.

#require('rubygems')
require('erb')

class Twitter::Meta #:nodoc:
  attr_accessor :root_dir
  attr_reader :gem_spec, :project_files, :spec_files

  # Initializer for Twitter::Meta class.  Takes <tt>root_dir</tt> as parameter.
  def initialize(root_dir)
    @root_dir = root_dir
  end

  # Returns package information defined in <tt>root_dir</tt>/pkg-info.yml
  def pkg_info
    yaml_file = File.join(@root_dir, 'pkg-info.yml')
    ryaml = ERB.new(File.read(yaml_file), 0)
    s = ryaml.result(binding)
    YAML.load(s)
  end
  
  # Returns RubyGems spec information
  def spec_info
    self.pkg_info['spec'] if self.pkg_info
  end
  
  # Returns list of project files
  def project_files
    @project_files ||= Dir.glob(File.join(@root_dir, 'lib/**/*.rb'))
    @project_files
  end
  
  # Returns list of specification files
  def spec_files
    @spec_files ||= Dir.glob(File.join(@root_dir, 'spec/**/*_spec.rb'))
    @spec_files
  end
  
  # Returns RubyGem specification for Twitter4R project
  def gem_spec
    @gem_spec ||= Gem::Specification.new do |spec|
      self.spec_info.each do |key, val|
        if val.is_a?(Hash)
          val.each do |k, v|
            spec.send(key, k, v)
          end
        else
          spec.send("#{key}=", val)
        end
      end
    end
    @gem_spec
  end
end