choctop 0.12.1 → 0.13.0
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/.bundle/config +2 -0
- data/.bundle/environment.rb +276 -0
- data/{spec/spec.opts → .rspec} +0 -0
- data/Gemfile +26 -0
- data/Gemfile.lock +89 -0
- data/History.txt +5 -0
- data/Manifest.txt +27 -2
- data/README.rdoc +15 -2
- data/Rakefile +7 -15
- data/choctop.gemspec +71 -0
- data/features/dmg.feature +10 -0
- data/features/fixtures/App With Whitespace/App With Whitespace.xcodeproj/TemplateIcon.icns +0 -0
- data/features/fixtures/App With Whitespace/App With Whitespace.xcodeproj/project.pbxproj +276 -0
- data/features/fixtures/App With Whitespace/App With Whitespace_Prefix.pch +7 -0
- data/features/fixtures/App With Whitespace/English.lproj/InfoPlist.strings +0 -0
- data/features/fixtures/App With Whitespace/English.lproj/MainMenu.xib +3034 -0
- data/features/fixtures/App With Whitespace/Info.plist +30 -0
- data/features/fixtures/App With Whitespace/main.m +14 -0
- data/features/fixtures/MyBundle.tmbundle/Snippets/hello world.tmSnippet +16 -0
- data/features/fixtures/MyBundle.tmbundle/info.plist +10 -0
- data/features/fixtures/SampleApp/English.lproj/InfoPlist.strings +0 -0
- data/features/fixtures/SampleApp/English.lproj/MainMenu.xib +3034 -0
- data/features/fixtures/SampleApp/Info.plist +30 -0
- data/features/fixtures/SampleApp/README.txt +1 -0
- data/features/fixtures/SampleApp/SampleApp.xcodeproj/TemplateIcon.icns +0 -0
- data/features/fixtures/SampleApp/SampleApp.xcodeproj/project.pbxproj +284 -0
- data/features/fixtures/SampleApp/SampleApp_Prefix.pch +7 -0
- data/features/fixtures/SampleApp/main.m +14 -0
- data/features/step_definitions/generator_steps.rb +14 -0
- data/features/support/dmg_helpers.rb +14 -0
- data/features/support/env.rb +3 -5
- data/features/support/matchers.rb +7 -9
- data/lib/choctop.rb +26 -5
- data/lib/choctop/appcast.rb +2 -3
- data/lib/choctop/dmg.rb +19 -6
- data/lib/choctop/rake_tasks.rb +4 -0
- data/spec/dmg_spec.rb +37 -0
- data/spec/fixtures/Info.plist +30 -0
- data/spec/spec_helper.rb +3 -2
- data/spec/version_helper_spec.rb +26 -0
- metadata +108 -36
- data/tasks/rspec.rake +0 -21
    
        data/.bundle/config
    ADDED
    
    
| @@ -0,0 +1,276 @@ | |
| 1 | 
            +
            # DO NOT MODIFY THIS FILE
         | 
| 2 | 
            +
            # Generated by Bundler 0.9.26
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            require 'digest/sha1'
         | 
| 5 | 
            +
            require 'yaml'
         | 
| 6 | 
            +
            require 'pathname'
         | 
| 7 | 
            +
            require 'rubygems'
         | 
| 8 | 
            +
            Gem.source_index # ensure Rubygems is fully loaded in Ruby 1.9
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            module Gem
         | 
| 11 | 
            +
              class Dependency
         | 
| 12 | 
            +
                if !instance_methods.map { |m| m.to_s }.include?("requirement")
         | 
| 13 | 
            +
                  def requirement
         | 
| 14 | 
            +
                    version_requirements
         | 
| 15 | 
            +
                  end
         | 
| 16 | 
            +
                end
         | 
| 17 | 
            +
              end
         | 
| 18 | 
            +
            end
         | 
| 19 | 
            +
             | 
| 20 | 
            +
            module Bundler
         | 
| 21 | 
            +
              class Specification < Gem::Specification
         | 
| 22 | 
            +
                attr_accessor :relative_loaded_from
         | 
| 23 | 
            +
             | 
| 24 | 
            +
                def self.from_gemspec(gemspec)
         | 
| 25 | 
            +
                  spec = allocate
         | 
| 26 | 
            +
                  gemspec.instance_variables.each do |ivar|
         | 
| 27 | 
            +
                    spec.instance_variable_set(ivar, gemspec.instance_variable_get(ivar))
         | 
| 28 | 
            +
                  end
         | 
| 29 | 
            +
                  spec
         | 
| 30 | 
            +
                end
         | 
| 31 | 
            +
             | 
| 32 | 
            +
                def loaded_from
         | 
| 33 | 
            +
                  return super unless relative_loaded_from
         | 
| 34 | 
            +
                  source.path.join(relative_loaded_from).to_s
         | 
| 35 | 
            +
                end
         | 
| 36 | 
            +
             | 
| 37 | 
            +
                def full_gem_path
         | 
| 38 | 
            +
                  Pathname.new(loaded_from).dirname.expand_path.to_s
         | 
| 39 | 
            +
                end
         | 
| 40 | 
            +
              end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
              module SharedHelpers
         | 
| 43 | 
            +
                attr_accessor :gem_loaded
         | 
| 44 | 
            +
             | 
| 45 | 
            +
                def default_gemfile
         | 
| 46 | 
            +
                  gemfile = find_gemfile
         | 
| 47 | 
            +
                  gemfile or raise GemfileNotFound, "Could not locate Gemfile"
         | 
| 48 | 
            +
                  Pathname.new(gemfile)
         | 
| 49 | 
            +
                end
         | 
| 50 | 
            +
             | 
| 51 | 
            +
                def in_bundle?
         | 
| 52 | 
            +
                  find_gemfile
         | 
| 53 | 
            +
                end
         | 
| 54 | 
            +
             | 
| 55 | 
            +
                def env_file
         | 
| 56 | 
            +
                  default_gemfile.dirname.join(".bundle/environment.rb")
         | 
| 57 | 
            +
                end
         | 
| 58 | 
            +
             | 
| 59 | 
            +
              private
         | 
| 60 | 
            +
             | 
| 61 | 
            +
                def find_gemfile
         | 
| 62 | 
            +
                  return ENV['BUNDLE_GEMFILE'] if ENV['BUNDLE_GEMFILE']
         | 
| 63 | 
            +
             | 
| 64 | 
            +
                  previous = nil
         | 
| 65 | 
            +
                  current  = File.expand_path(Dir.pwd)
         | 
| 66 | 
            +
             | 
| 67 | 
            +
                  until !File.directory?(current) || current == previous
         | 
| 68 | 
            +
                    filename = File.join(current, 'Gemfile')
         | 
| 69 | 
            +
                    return filename if File.file?(filename)
         | 
| 70 | 
            +
                    current, previous = File.expand_path("..", current), current
         | 
| 71 | 
            +
                  end
         | 
| 72 | 
            +
                end
         | 
| 73 | 
            +
             | 
| 74 | 
            +
                def clean_load_path
         | 
| 75 | 
            +
                  # handle 1.9 where system gems are always on the load path
         | 
| 76 | 
            +
                  if defined?(::Gem)
         | 
| 77 | 
            +
                    me = File.expand_path("../../", __FILE__)
         | 
| 78 | 
            +
                    $LOAD_PATH.reject! do |p|
         | 
| 79 | 
            +
                      next if File.expand_path(p).include?(me)
         | 
| 80 | 
            +
                      p != File.dirname(__FILE__) &&
         | 
| 81 | 
            +
                        Gem.path.any? { |gp| p.include?(gp) }
         | 
| 82 | 
            +
                    end
         | 
| 83 | 
            +
                    $LOAD_PATH.uniq!
         | 
| 84 | 
            +
                  end
         | 
| 85 | 
            +
                end
         | 
| 86 | 
            +
             | 
| 87 | 
            +
                def reverse_rubygems_kernel_mixin
         | 
| 88 | 
            +
                  # Disable rubygems' gem activation system
         | 
| 89 | 
            +
                  ::Kernel.class_eval do
         | 
| 90 | 
            +
                    if private_method_defined?(:gem_original_require)
         | 
| 91 | 
            +
                      alias rubygems_require require
         | 
| 92 | 
            +
                      alias require gem_original_require
         | 
| 93 | 
            +
                    end
         | 
| 94 | 
            +
             | 
| 95 | 
            +
                    undef gem
         | 
| 96 | 
            +
                  end
         | 
| 97 | 
            +
                end
         | 
| 98 | 
            +
             | 
| 99 | 
            +
                def cripple_rubygems(specs)
         | 
| 100 | 
            +
                  reverse_rubygems_kernel_mixin
         | 
| 101 | 
            +
             | 
| 102 | 
            +
                  executables = specs.map { |s| s.executables }.flatten
         | 
| 103 | 
            +
                  Gem.source_index # ensure RubyGems is fully loaded
         | 
| 104 | 
            +
             | 
| 105 | 
            +
                 ::Kernel.class_eval do
         | 
| 106 | 
            +
                    private
         | 
| 107 | 
            +
                    def gem(*) ; end
         | 
| 108 | 
            +
                  end
         | 
| 109 | 
            +
             | 
| 110 | 
            +
                  ::Kernel.send(:define_method, :gem) do |dep, *reqs|
         | 
| 111 | 
            +
                    if executables.include? File.basename(caller.first.split(':').first)
         | 
| 112 | 
            +
                      return
         | 
| 113 | 
            +
                    end
         | 
| 114 | 
            +
                    opts = reqs.last.is_a?(Hash) ? reqs.pop : {}
         | 
| 115 | 
            +
             | 
| 116 | 
            +
                    unless dep.respond_to?(:name) && dep.respond_to?(:requirement)
         | 
| 117 | 
            +
                      dep = Gem::Dependency.new(dep, reqs)
         | 
| 118 | 
            +
                    end
         | 
| 119 | 
            +
             | 
| 120 | 
            +
                    spec = specs.find  { |s| s.name == dep.name }
         | 
| 121 | 
            +
             | 
| 122 | 
            +
                    if spec.nil?
         | 
| 123 | 
            +
                      e = Gem::LoadError.new "#{dep.name} is not part of the bundle. Add it to Gemfile."
         | 
| 124 | 
            +
                      e.name = dep.name
         | 
| 125 | 
            +
                      e.version_requirement = dep.requirement
         | 
| 126 | 
            +
                      raise e
         | 
| 127 | 
            +
                    elsif dep !~ spec
         | 
| 128 | 
            +
                      e = Gem::LoadError.new "can't activate #{dep}, already activated #{spec.full_name}. " \
         | 
| 129 | 
            +
                                             "Make sure all dependencies are added to Gemfile."
         | 
| 130 | 
            +
                      e.name = dep.name
         | 
| 131 | 
            +
                      e.version_requirement = dep.requirement
         | 
| 132 | 
            +
                      raise e
         | 
| 133 | 
            +
                    end
         | 
| 134 | 
            +
             | 
| 135 | 
            +
                    true
         | 
| 136 | 
            +
                  end
         | 
| 137 | 
            +
             | 
| 138 | 
            +
                  # === Following hacks are to improve on the generated bin wrappers ===
         | 
| 139 | 
            +
             | 
| 140 | 
            +
                  # Yeah, talk about a hack
         | 
| 141 | 
            +
                  source_index_class = (class << Gem::SourceIndex ; self ; end)
         | 
| 142 | 
            +
                  source_index_class.send(:define_method, :from_gems_in) do |*args|
         | 
| 143 | 
            +
                    source_index = Gem::SourceIndex.new
         | 
| 144 | 
            +
                    source_index.spec_dirs = *args
         | 
| 145 | 
            +
                    source_index.add_specs(*specs)
         | 
| 146 | 
            +
                    source_index
         | 
| 147 | 
            +
                  end
         | 
| 148 | 
            +
             | 
| 149 | 
            +
                  # OMG more hacks
         | 
| 150 | 
            +
                  gem_class = (class << Gem ; self ; end)
         | 
| 151 | 
            +
                  gem_class.send(:define_method, :bin_path) do |name, *args|
         | 
| 152 | 
            +
                    exec_name, *reqs = args
         | 
| 153 | 
            +
             | 
| 154 | 
            +
                    spec = nil
         | 
| 155 | 
            +
             | 
| 156 | 
            +
                    if exec_name
         | 
| 157 | 
            +
                      spec = specs.find { |s| s.executables.include?(exec_name) }
         | 
| 158 | 
            +
                      spec or raise Gem::Exception, "can't find executable #{exec_name}"
         | 
| 159 | 
            +
                    else
         | 
| 160 | 
            +
                      spec = specs.find  { |s| s.name == name }
         | 
| 161 | 
            +
                      exec_name = spec.default_executable or raise Gem::Exception, "no default executable for #{spec.full_name}"
         | 
| 162 | 
            +
                    end
         | 
| 163 | 
            +
             | 
| 164 | 
            +
                    gem_bin = File.join(spec.full_gem_path, spec.bindir, exec_name)
         | 
| 165 | 
            +
                    gem_from_path_bin = File.join(File.dirname(spec.loaded_from), spec.bindir, exec_name)
         | 
| 166 | 
            +
                    File.exist?(gem_bin) ? gem_bin : gem_from_path_bin
         | 
| 167 | 
            +
                  end
         | 
| 168 | 
            +
                end
         | 
| 169 | 
            +
             | 
| 170 | 
            +
                extend self
         | 
| 171 | 
            +
              end
         | 
| 172 | 
            +
            end
         | 
| 173 | 
            +
             | 
| 174 | 
            +
            module Bundler
         | 
| 175 | 
            +
              ENV_LOADED   = true
         | 
| 176 | 
            +
              LOCKED_BY    = '0.9.26'
         | 
| 177 | 
            +
              FINGERPRINT  = "2fa03535b60734ba6b435e984c1a4f65377fddae"
         | 
| 178 | 
            +
              HOME         = '/Users/drnic/.bundle/ruby/1.8/bundler'
         | 
| 179 | 
            +
              AUTOREQUIRES = {:default=>[["RedCloth", false], ["awesome_print", false], ["builder", false], ["escape", false]], :newgem=>[["hoe", false]], :development=>[["bundler", false], ["cucumber", false], ["rspec", false]]}
         | 
| 180 | 
            +
              SPECS        = [
         | 
| 181 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/rake-0.8.7.gemspec", :name=>"rake", :load_paths=>["/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib"]},
         | 
| 182 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/RedCloth-4.2.3.gemspec", :name=>"RedCloth", :load_paths=>["/Library/Ruby/Gems/1.8/gems/RedCloth-4.2.3/lib", "/Library/Ruby/Gems/1.8/gems/RedCloth-4.2.3/ext", "/Library/Ruby/Gems/1.8/gems/RedCloth-4.2.3/lib/case_sensitive_require"]},
         | 
| 183 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/activesupport-2.3.8.gemspec", :name=>"activesupport", :load_paths=>["/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib"]},
         | 
| 184 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/awesome_print-0.2.1.gemspec", :name=>"awesome_print", :load_paths=>["/Library/Ruby/Gems/1.8/gems/awesome_print-0.2.1/lib"]},
         | 
| 185 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/builder-2.1.2.gemspec", :name=>"builder", :load_paths=>["/Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib"]},
         | 
| 186 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/bundler-0.9.26.gemspec", :name=>"bundler", :load_paths=>["/Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib"]},
         | 
| 187 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/diff-lcs-1.1.2.gemspec", :name=>"diff-lcs", :load_paths=>["/Library/Ruby/Gems/1.8/gems/diff-lcs-1.1.2/lib"]},
         | 
| 188 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/trollop-1.16.2.gemspec", :name=>"trollop", :load_paths=>["/Library/Ruby/Gems/1.8/gems/trollop-1.16.2/lib"]},
         | 
| 189 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/gherkin-2.0.2.gemspec", :name=>"gherkin", :load_paths=>["/Library/Ruby/Gems/1.8/gems/gherkin-2.0.2/lib"]},
         | 
| 190 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/json_pure-1.4.3.gemspec", :name=>"json_pure", :load_paths=>["/Library/Ruby/Gems/1.8/gems/json_pure-1.4.3/lib"]},
         | 
| 191 | 
            +
                    {:loaded_from=>"/Users/drnic/.bundle/ruby/1.8/specifications/term-ansicolor-1.0.5.gemspec", :name=>"term-ansicolor", :load_paths=>["/Users/drnic/.bundle/ruby/1.8/gems/term-ansicolor-1.0.5/lib"]},
         | 
| 192 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/cucumber-0.8.3.gemspec", :name=>"cucumber", :load_paths=>["/Library/Ruby/Gems/1.8/gems/cucumber-0.8.3/lib"]},
         | 
| 193 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/escape-0.0.4.gemspec", :name=>"escape", :load_paths=>["/Library/Ruby/Gems/1.8/gems/escape-0.0.4/lib"]},
         | 
| 194 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/rubyforge-2.0.4.gemspec", :name=>"rubyforge", :load_paths=>["/Library/Ruby/Gems/1.8/gems/rubyforge-2.0.4/lib"]},
         | 
| 195 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/hoe-2.6.1.gemspec", :name=>"hoe", :load_paths=>["/Library/Ruby/Gems/1.8/gems/hoe-2.6.1/lib"]},
         | 
| 196 | 
            +
                    {:loaded_from=>"/Users/drnic/.bundle/ruby/1.8/specifications/rubigen-1.5.5.gemspec", :name=>"rubigen", :load_paths=>["/Users/drnic/.bundle/ruby/1.8/gems/rubigen-1.5.5/lib"]},
         | 
| 197 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/syntax-1.0.0.gemspec", :name=>"syntax", :load_paths=>["/Library/Ruby/Gems/1.8/gems/syntax-1.0.0/lib"]},
         | 
| 198 | 
            +
                    {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/newgem-1.5.3.gemspec", :name=>"newgem", :load_paths=>["/Library/Ruby/Gems/1.8/gems/newgem-1.5.3/lib"]},
         | 
| 199 | 
            +
                    {:loaded_from=>"/Users/drnic/.bundle/ruby/1.8/specifications/rspec-core-2.0.0.beta.15.gemspec", :name=>"rspec-core", :load_paths=>["/Users/drnic/.bundle/ruby/1.8/gems/rspec-core-2.0.0.beta.15/lib"]},
         | 
| 200 | 
            +
                    {:loaded_from=>"/Users/drnic/.bundle/ruby/1.8/specifications/rspec-expectations-2.0.0.beta.15.gemspec", :name=>"rspec-expectations", :load_paths=>["/Users/drnic/.bundle/ruby/1.8/gems/rspec-expectations-2.0.0.beta.15/lib"]},
         | 
| 201 | 
            +
                    {:loaded_from=>"/Users/drnic/.bundle/ruby/1.8/specifications/rspec-mocks-2.0.0.beta.15.gemspec", :name=>"rspec-mocks", :load_paths=>["/Users/drnic/.bundle/ruby/1.8/gems/rspec-mocks-2.0.0.beta.15/lib"]},
         | 
| 202 | 
            +
                    {:loaded_from=>"/Users/drnic/.bundle/ruby/1.8/specifications/rspec-2.0.0.beta.15.gemspec", :name=>"rspec", :load_paths=>["/Users/drnic/.bundle/ruby/1.8/gems/rspec-2.0.0.beta.15/lib"]},
         | 
| 203 | 
            +
                  ].map do |hash|
         | 
| 204 | 
            +
                if hash[:virtual_spec]
         | 
| 205 | 
            +
                  spec = eval(hash[:virtual_spec], TOPLEVEL_BINDING, "<virtual spec for '#{hash[:name]}'>")
         | 
| 206 | 
            +
                else
         | 
| 207 | 
            +
                  dir = File.dirname(hash[:loaded_from])
         | 
| 208 | 
            +
                  spec = Dir.chdir(dir){ eval(File.read(hash[:loaded_from]), TOPLEVEL_BINDING, hash[:loaded_from]) }
         | 
| 209 | 
            +
                end
         | 
| 210 | 
            +
                spec.loaded_from = hash[:loaded_from]
         | 
| 211 | 
            +
                spec.require_paths = hash[:load_paths]
         | 
| 212 | 
            +
                if spec.loaded_from.include?(HOME)
         | 
| 213 | 
            +
                  Bundler::Specification.from_gemspec(spec)
         | 
| 214 | 
            +
                else
         | 
| 215 | 
            +
                  spec
         | 
| 216 | 
            +
                end
         | 
| 217 | 
            +
              end
         | 
| 218 | 
            +
             | 
| 219 | 
            +
              extend SharedHelpers
         | 
| 220 | 
            +
             | 
| 221 | 
            +
              def self.configure_gem_path_and_home(specs)
         | 
| 222 | 
            +
                # Fix paths, so that Gem.source_index and such will work
         | 
| 223 | 
            +
                paths = specs.map{|s| s.installation_path }
         | 
| 224 | 
            +
                paths.flatten!; paths.compact!; paths.uniq!; paths.reject!{|p| p.empty? }
         | 
| 225 | 
            +
                ENV['GEM_PATH'] = paths.join(File::PATH_SEPARATOR)
         | 
| 226 | 
            +
                ENV['GEM_HOME'] = paths.first
         | 
| 227 | 
            +
                Gem.clear_paths
         | 
| 228 | 
            +
              end
         | 
| 229 | 
            +
             | 
| 230 | 
            +
              def self.match_fingerprint
         | 
| 231 | 
            +
                lockfile = File.expand_path('../../Gemfile.lock', __FILE__)
         | 
| 232 | 
            +
                lock_print = YAML.load(File.read(lockfile))["hash"] if File.exist?(lockfile)
         | 
| 233 | 
            +
                gem_print = Digest::SHA1.hexdigest(File.read(File.expand_path('../../Gemfile', __FILE__)))
         | 
| 234 | 
            +
             | 
| 235 | 
            +
                unless gem_print == lock_print
         | 
| 236 | 
            +
                  abort 'Gemfile changed since you last locked. Please run `bundle lock` to relock.'
         | 
| 237 | 
            +
                end
         | 
| 238 | 
            +
             | 
| 239 | 
            +
                unless gem_print == FINGERPRINT
         | 
| 240 | 
            +
                  abort 'Your bundled environment is out of date. Run `bundle install` to regenerate it.'
         | 
| 241 | 
            +
                end
         | 
| 242 | 
            +
              end
         | 
| 243 | 
            +
             | 
| 244 | 
            +
              def self.setup(*groups)
         | 
| 245 | 
            +
                match_fingerprint
         | 
| 246 | 
            +
                clean_load_path
         | 
| 247 | 
            +
                cripple_rubygems(SPECS)
         | 
| 248 | 
            +
                configure_gem_path_and_home(SPECS)
         | 
| 249 | 
            +
                SPECS.each do |spec|
         | 
| 250 | 
            +
                  Gem.loaded_specs[spec.name] = spec
         | 
| 251 | 
            +
                  spec.require_paths.each do |path|
         | 
| 252 | 
            +
                    $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)
         | 
| 253 | 
            +
                  end
         | 
| 254 | 
            +
                end
         | 
| 255 | 
            +
                self
         | 
| 256 | 
            +
              end
         | 
| 257 | 
            +
             | 
| 258 | 
            +
              def self.require(*groups)
         | 
| 259 | 
            +
                groups = [:default] if groups.empty?
         | 
| 260 | 
            +
                groups.each do |group|
         | 
| 261 | 
            +
                  (AUTOREQUIRES[group.to_sym] || []).each do |file, explicit|
         | 
| 262 | 
            +
                    if explicit
         | 
| 263 | 
            +
                      Kernel.require file
         | 
| 264 | 
            +
                    else
         | 
| 265 | 
            +
                      begin
         | 
| 266 | 
            +
                        Kernel.require file
         | 
| 267 | 
            +
                      rescue LoadError
         | 
| 268 | 
            +
                      end
         | 
| 269 | 
            +
                    end
         | 
| 270 | 
            +
                  end
         | 
| 271 | 
            +
                end
         | 
| 272 | 
            +
              end
         | 
| 273 | 
            +
             | 
| 274 | 
            +
              # Set up load paths unless this file is being loaded after the Bundler gem
         | 
| 275 | 
            +
              setup unless defined?(Bundler::GEM_LOADED)
         | 
| 276 | 
            +
            end
         | 
    
        data/{spec/spec.opts → .rspec}
    RENAMED
    
    | 
            File without changes
         | 
    
        data/Gemfile
    ADDED
    
    | @@ -0,0 +1,26 @@ | |
| 1 | 
            +
            source :gemcutter
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            gem 'builder','2.1.2'
         | 
| 4 | 
            +
            gem 'awesome_print', '0.2.1'
         | 
| 5 | 
            +
            gem 'RedCloth', '4.2.3'
         | 
| 6 | 
            +
            gem 'escape', '0.0.4'
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            group :newgem do
         | 
| 9 | 
            +
              gem 'hoe', '>= 2.6.1'
         | 
| 10 | 
            +
              gem 'newgem', '>= 1.5.2', :require => nil
         | 
| 11 | 
            +
            end
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            group :development do
         | 
| 14 | 
            +
              gem 'bundler'
         | 
| 15 | 
            +
              gem 'rspec', ">= 2.0.0.beta"
         | 
| 16 | 
            +
              gem 'cucumber', '0.8.3'
         | 
| 17 | 
            +
            end
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            group :spec do
         | 
| 20 | 
            +
              gem 'rspec', ">= 2.0.0.beta"
         | 
| 21 | 
            +
            end
         | 
| 22 | 
            +
             | 
| 23 | 
            +
            group :cucumber do
         | 
| 24 | 
            +
              gem 'rspec', ">= 2.0.0.beta"
         | 
| 25 | 
            +
              gem 'cucumber', '0.8.3'
         | 
| 26 | 
            +
            end
         | 
    
        data/Gemfile.lock
    ADDED
    
    | @@ -0,0 +1,89 @@ | |
| 1 | 
            +
            --- 
         | 
| 2 | 
            +
            dependencies: 
         | 
| 3 | 
            +
              escape: 
         | 
| 4 | 
            +
                group: 
         | 
| 5 | 
            +
                - :default
         | 
| 6 | 
            +
                version: = 0.0.4
         | 
| 7 | 
            +
              rspec: 
         | 
| 8 | 
            +
                group: 
         | 
| 9 | 
            +
                - :cucumber
         | 
| 10 | 
            +
                version: ">= 2.0.0.beta"
         | 
| 11 | 
            +
              newgem: 
         | 
| 12 | 
            +
                group: 
         | 
| 13 | 
            +
                - :newgem
         | 
| 14 | 
            +
                version: ">= 1.5.2"
         | 
| 15 | 
            +
                require: []
         | 
| 16 | 
            +
             | 
| 17 | 
            +
              awesome_print: 
         | 
| 18 | 
            +
                group: 
         | 
| 19 | 
            +
                - :default
         | 
| 20 | 
            +
                version: = 0.2.1
         | 
| 21 | 
            +
              bundler: 
         | 
| 22 | 
            +
                group: 
         | 
| 23 | 
            +
                - :development
         | 
| 24 | 
            +
                version: ">= 0"
         | 
| 25 | 
            +
              hoe: 
         | 
| 26 | 
            +
                group: 
         | 
| 27 | 
            +
                - :newgem
         | 
| 28 | 
            +
                version: ">= 2.6.1"
         | 
| 29 | 
            +
              cucumber: 
         | 
| 30 | 
            +
                group: 
         | 
| 31 | 
            +
                - :cucumber
         | 
| 32 | 
            +
                version: = 0.8.3
         | 
| 33 | 
            +
              builder: 
         | 
| 34 | 
            +
                group: 
         | 
| 35 | 
            +
                - :default
         | 
| 36 | 
            +
                version: = 2.1.2
         | 
| 37 | 
            +
              RedCloth: 
         | 
| 38 | 
            +
                group: 
         | 
| 39 | 
            +
                - :default
         | 
| 40 | 
            +
                version: = 4.2.3
         | 
| 41 | 
            +
            specs: 
         | 
| 42 | 
            +
            - rake: 
         | 
| 43 | 
            +
                version: 0.8.7
         | 
| 44 | 
            +
            - RedCloth: 
         | 
| 45 | 
            +
                version: 4.2.3
         | 
| 46 | 
            +
            - activesupport: 
         | 
| 47 | 
            +
                version: 2.3.8
         | 
| 48 | 
            +
            - awesome_print: 
         | 
| 49 | 
            +
                version: 0.2.1
         | 
| 50 | 
            +
            - builder: 
         | 
| 51 | 
            +
                version: 2.1.2
         | 
| 52 | 
            +
            - bundler: 
         | 
| 53 | 
            +
                version: 0.9.26
         | 
| 54 | 
            +
            - diff-lcs: 
         | 
| 55 | 
            +
                version: 1.1.2
         | 
| 56 | 
            +
            - trollop: 
         | 
| 57 | 
            +
                version: 1.16.2
         | 
| 58 | 
            +
            - gherkin: 
         | 
| 59 | 
            +
                version: 2.0.2
         | 
| 60 | 
            +
            - json_pure: 
         | 
| 61 | 
            +
                version: 1.4.3
         | 
| 62 | 
            +
            - term-ansicolor: 
         | 
| 63 | 
            +
                version: 1.0.5
         | 
| 64 | 
            +
            - cucumber: 
         | 
| 65 | 
            +
                version: 0.8.3
         | 
| 66 | 
            +
            - escape: 
         | 
| 67 | 
            +
                version: 0.0.4
         | 
| 68 | 
            +
            - rubyforge: 
         | 
| 69 | 
            +
                version: 2.0.4
         | 
| 70 | 
            +
            - hoe: 
         | 
| 71 | 
            +
                version: 2.6.1
         | 
| 72 | 
            +
            - rubigen: 
         | 
| 73 | 
            +
                version: 1.5.5
         | 
| 74 | 
            +
            - syntax: 
         | 
| 75 | 
            +
                version: 1.0.0
         | 
| 76 | 
            +
            - newgem: 
         | 
| 77 | 
            +
                version: 1.5.3
         | 
| 78 | 
            +
            - rspec-core: 
         | 
| 79 | 
            +
                version: 2.0.0.beta.15
         | 
| 80 | 
            +
            - rspec-expectations: 
         | 
| 81 | 
            +
                version: 2.0.0.beta.15
         | 
| 82 | 
            +
            - rspec-mocks: 
         | 
| 83 | 
            +
                version: 2.0.0.beta.15
         | 
| 84 | 
            +
            - rspec: 
         | 
| 85 | 
            +
                version: 2.0.0.beta.15
         | 
| 86 | 
            +
            hash: 2fa03535b60734ba6b435e984c1a4f65377fddae
         | 
| 87 | 
            +
            sources: 
         | 
| 88 | 
            +
            - Rubygems: 
         | 
| 89 | 
            +
                uri: http://gemcutter.org
         | 
    
        data/History.txt
    CHANGED
    
    
    
        data/Manifest.txt
    CHANGED
    
    | @@ -1,3 +1,8 @@ | |
| 1 | 
            +
            .bundle/config
         | 
| 2 | 
            +
            .bundle/environment.rb
         | 
| 3 | 
            +
            .rspec
         | 
| 4 | 
            +
            Gemfile
         | 
| 5 | 
            +
            Gemfile.lock
         | 
| 1 6 | 
             
            History.txt
         | 
| 2 7 | 
             
            Manifest.txt
         | 
| 3 8 | 
             
            README.rdoc
         | 
| @@ -12,8 +17,26 @@ assets/sky_background.jpg | |
| 12 17 | 
             
            assets/vanillia_dmg_icon.png
         | 
| 13 18 | 
             
            assets/wood.jpg
         | 
| 14 19 | 
             
            bin/install_choctop
         | 
| 20 | 
            +
            choctop.gemspec
         | 
| 15 21 | 
             
            features/development.feature
         | 
| 16 22 | 
             
            features/dmg.feature
         | 
| 23 | 
            +
            features/fixtures/App With Whitespace/App With Whitespace.xcodeproj/TemplateIcon.icns
         | 
| 24 | 
            +
            features/fixtures/App With Whitespace/App With Whitespace.xcodeproj/project.pbxproj
         | 
| 25 | 
            +
            features/fixtures/App With Whitespace/App With Whitespace_Prefix.pch
         | 
| 26 | 
            +
            features/fixtures/App With Whitespace/English.lproj/InfoPlist.strings
         | 
| 27 | 
            +
            features/fixtures/App With Whitespace/English.lproj/MainMenu.xib
         | 
| 28 | 
            +
            features/fixtures/App With Whitespace/Info.plist
         | 
| 29 | 
            +
            features/fixtures/App With Whitespace/main.m
         | 
| 30 | 
            +
            features/fixtures/MyBundle.tmbundle/Snippets/hello world.tmSnippet
         | 
| 31 | 
            +
            features/fixtures/MyBundle.tmbundle/info.plist
         | 
| 32 | 
            +
            features/fixtures/SampleApp/English.lproj/InfoPlist.strings
         | 
| 33 | 
            +
            features/fixtures/SampleApp/English.lproj/MainMenu.xib
         | 
| 34 | 
            +
            features/fixtures/SampleApp/Info.plist
         | 
| 35 | 
            +
            features/fixtures/SampleApp/README.txt
         | 
| 36 | 
            +
            features/fixtures/SampleApp/SampleApp.xcodeproj/TemplateIcon.icns
         | 
| 37 | 
            +
            features/fixtures/SampleApp/SampleApp.xcodeproj/project.pbxproj
         | 
| 38 | 
            +
            features/fixtures/SampleApp/SampleApp_Prefix.pch
         | 
| 39 | 
            +
            features/fixtures/SampleApp/main.m
         | 
| 17 40 | 
             
            features/fixtures/custom_assets/appicon.icns
         | 
| 18 41 | 
             
            features/initial_generator.feature
         | 
| 19 42 | 
             
            features/rake_tasks.feature
         | 
| @@ -25,6 +48,7 @@ features/step_definitions/generator_steps.rb | |
| 25 48 | 
             
            features/step_definitions/remote_steps.rb
         | 
| 26 49 | 
             
            features/step_definitions/xcode_steps.rb
         | 
| 27 50 | 
             
            features/support/common.rb
         | 
| 51 | 
            +
            features/support/dmg_helpers.rb
         | 
| 28 52 | 
             
            features/support/env.rb
         | 
| 29 53 | 
             
            features/support/matchers.rb
         | 
| 30 54 | 
             
            lib/choctop.rb
         | 
| @@ -36,6 +60,7 @@ script/console | |
| 36 60 | 
             
            script/destroy
         | 
| 37 61 | 
             
            script/generate
         | 
| 38 62 | 
             
            spec/choctop_spec.rb
         | 
| 39 | 
            -
            spec/ | 
| 63 | 
            +
            spec/dmg_spec.rb
         | 
| 64 | 
            +
            spec/fixtures/Info.plist
         | 
| 40 65 | 
             
            spec/spec_helper.rb
         | 
| 41 | 
            -
             | 
| 66 | 
            +
            spec/version_helper_spec.rb
         |