librarianp 0.6.4 → 1.0.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.
- checksums.yaml +5 -5
 - data/.gitignore +1 -0
 - data/.travis.yml +4 -6
 - data/CHANGELOG.md +7 -0
 - data/Gemfile +0 -2
 - data/README.md +1 -1
 - data/VERSION +1 -1
 - data/lib/librarian/cli.rb +1 -1
 - data/lib/librarian/dependency.rb +1 -1
 - data/librarianp.gemspec +6 -4
 - data/spec/functional/source/git/repository_spec.rb +3 -3
 - data/spec/functional/source/git_spec.rb +2 -2
 - data/spec/unit/action/clean_spec.rb +10 -10
 - data/spec/unit/action/ensure_spec.rb +3 -3
 - data/spec/unit/action/install_spec.rb +18 -18
 - data/spec/unit/action/resolve_spec.rb +4 -4
 - data/spec/unit/algorithms_spec.rb +3 -3
 - data/spec/unit/dependency/requirement_spec.rb +9 -8
 - data/spec/unit/environment_spec.rb +2 -2
 - data/spec/unit/lockfile/parser_spec.rb +1 -1
 - metadata +11 -12
 - data/Gemfile.lock +0 -233
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 2 
     | 
    
         
            +
            SHA256:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 01ebdbe74e4883d9dbd1b042307b395f5d62bc69bb0e4a49f002438bcd62cbc2
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: a0b41c7ed1dc96c41bbd2a290ff08b7aef31c1de39a12fca3a768861e6951ff9
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: cc33792de21cfa8b351a3098bdfbfb659c08a8aa369e5e29f4a3ddf6ea3384d878293b959294c4fefdae59b59e9c8207a004d9e42a444804f4fb362867a6d515
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 3d21e30a41fe594c6255f80d07595ea07b46e18ec352f8340bffa19d1031c30fd0c4890810e88a5f2cc3ce650c8a9587a2eb15d3a21d5dbe9748f3fb0ee5d002
         
     | 
    
        data/.gitignore
    CHANGED
    
    
    
        data/.travis.yml
    CHANGED
    
    | 
         @@ -1,11 +1,8 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            sudo: false
         
     | 
| 
       2 
1 
     | 
    
         
             
            language: ruby
         
     | 
| 
       3 
     | 
    
         
            -
            script: bundle exec rake
         
     | 
| 
       4 
2 
     | 
    
         
             
            rvm:
         
     | 
| 
       5 
     | 
    
         
            -
              - '2. 
     | 
| 
       6 
     | 
    
         
            -
              - '2. 
     | 
| 
       7 
     | 
    
         
            -
              - '2. 
     | 
| 
       8 
     | 
    
         
            -
              - '2.0'
         
     | 
| 
      
 3 
     | 
    
         
            +
              - '2.4'
         
     | 
| 
      
 4 
     | 
    
         
            +
              - '2.5'
         
     | 
| 
      
 5 
     | 
    
         
            +
              - '2.6'
         
     | 
| 
       9 
6 
     | 
    
         
             
            deploy:
         
     | 
| 
       10 
7 
     | 
    
         
             
              provider: rubygems
         
     | 
| 
       11 
8 
     | 
    
         
             
              api_key:
         
     | 
| 
         @@ -13,3 +10,4 @@ deploy: 
     | 
|
| 
       13 
10 
     | 
    
         
             
              gem: librarianp
         
     | 
| 
       14 
11 
     | 
    
         
             
              on:
         
     | 
| 
       15 
12 
     | 
    
         
             
                tags: true
         
     | 
| 
      
 13 
     | 
    
         
            +
                rvm: '2.6'
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/Gemfile
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            Librarian [](https://travis-ci.org/voxpupuli/librarian) 
     | 
| 
      
 1 
     | 
    
         
            +
            Librarian [](https://travis-ci.org/voxpupuli/librarian)
         
     | 
| 
       2 
2 
     | 
    
         
             
            =========
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            This is a forked version published as `librarianp` with improvements in order to support `librarian-puppet`.
         
     | 
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            0. 
     | 
| 
      
 1 
     | 
    
         
            +
            1.0.0
         
     | 
    
        data/lib/librarian/cli.rb
    CHANGED
    
    | 
         @@ -192,7 +192,7 @@ module Librarian 
     | 
|
| 
       192 
192 
     | 
    
         
             
                  debug { "Git: #{Source::Git::Repository.bin}" }
         
     | 
| 
       193 
193 
     | 
    
         
             
                  debug { "Git Version: #{Source::Git::Repository.git_version}" }
         
     | 
| 
       194 
194 
     | 
    
         
             
                  debug { "Git Environment Variables:" }
         
     | 
| 
       195 
     | 
    
         
            -
                  git_env = ENV.to_a.select{|(k, v)| k =~ /\ 
     | 
| 
      
 195 
     | 
    
         
            +
                  git_env = ENV.to_a.select{|(k, v)| k =~ /\AGIT_/}.sort_by{|(k, v)| k}
         
     | 
| 
       196 
196 
     | 
    
         
             
                  if git_env.empty?
         
     | 
| 
       197 
197 
     | 
    
         
             
                    debug { "  (empty)" }
         
     | 
| 
       198 
198 
     | 
    
         
             
                  else
         
     | 
    
        data/lib/librarian/dependency.rb
    CHANGED
    
    | 
         @@ -125,7 +125,7 @@ module Librarian 
     | 
|
| 
       125 
125 
     | 
    
         | 
| 
       126 
126 
     | 
    
         
             
                  # A version range: >=1.0 <2.0
         
     | 
| 
       127 
127 
     | 
    
         
             
                  def range_requirement(arg)
         
     | 
| 
       128 
     | 
    
         
            -
                    arg.match(/(>=? ?\d+(?:\.\d+){0,2}) 
     | 
| 
      
 128 
     | 
    
         
            +
                    arg.match(/(>=? ?\d+(?:\.\d+){0,2})\s*(<=? ?\d+(?:\.\d+){0,2})/)
         
     | 
| 
       129 
129 
     | 
    
         
             
                  end
         
     | 
| 
       130 
130 
     | 
    
         | 
| 
       131 
131 
     | 
    
         
             
                  # A string with .x: 1.x, 2.1.x
         
     | 
    
        data/librarianp.gemspec
    CHANGED
    
    | 
         @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) 
     | 
|
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
            Gem::Specification.new do |gem|
         
     | 
| 
       6 
6 
     | 
    
         
             
              gem.name          = "librarianp"
         
     | 
| 
       7 
     | 
    
         
            -
              gem.version       = File.read(File.expand_path( 
     | 
| 
      
 7 
     | 
    
         
            +
              gem.version       = File.read(File.expand_path('VERSION', __dir__)).strip
         
     | 
| 
       8 
8 
     | 
    
         
             
              gem.authors       = ["Jay Feldblum", "Carlos Sanchez"]
         
     | 
| 
       9 
9 
     | 
    
         
             
              gem.email         = ["y_feldblum@yahoo.com", "carlos@apache.org"]
         
     | 
| 
       10 
10 
     | 
    
         
             
              gem.summary       = %q{A Framework for Bundlers.}
         
     | 
| 
         @@ -17,10 +17,12 @@ Gem::Specification.new do |gem| 
     | 
|
| 
       17 
17 
     | 
    
         
             
              gem.test_files    = gem.files.grep(%r{^(test|spec|features)/})
         
     | 
| 
       18 
18 
     | 
    
         
             
              gem.require_paths = ["lib"]
         
     | 
| 
       19 
19 
     | 
    
         | 
| 
       20 
     | 
    
         
            -
              gem. 
     | 
| 
      
 20 
     | 
    
         
            +
              gem.required_ruby_version = '~> 2.4'
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
              gem.add_dependency "thor", "~> 1.0"
         
     | 
| 
       21 
23 
     | 
    
         | 
| 
       22 
24 
     | 
    
         
             
              gem.add_development_dependency "rake"
         
     | 
| 
       23 
     | 
    
         
            -
              gem.add_development_dependency "rspec", "~>  
     | 
| 
      
 25 
     | 
    
         
            +
              gem.add_development_dependency "rspec", "~> 3.0"
         
     | 
| 
       24 
26 
     | 
    
         
             
              gem.add_development_dependency "json"
         
     | 
| 
       25 
     | 
    
         
            -
              gem.add_development_dependency "fakefs", "~> 0 
     | 
| 
      
 27 
     | 
    
         
            +
              gem.add_development_dependency "fakefs", "~> 1.0"
         
     | 
| 
       26 
28 
     | 
    
         
             
            end
         
     | 
| 
         @@ -40,20 +40,20 @@ describe Librarian::Source::Git::Repository do 
     | 
|
| 
       40 
40 
     | 
    
         
             
                  # master
         
     | 
| 
       41 
41 
     | 
    
         
             
                  FileUtils.touch "butter.txt"
         
     | 
| 
       42 
42 
     | 
    
         
             
                  git! %W[add butter.txt]
         
     | 
| 
       43 
     | 
    
         
            -
                  git! %W[commit -m #{"Initial Commit"}]
         
     | 
| 
      
 43 
     | 
    
         
            +
                  git! %W[commit -m #{"Initial Commit"} --no-gpg-sign]
         
     | 
| 
       44 
44 
     | 
    
         | 
| 
       45 
45 
     | 
    
         
             
                  # branch
         
     | 
| 
       46 
46 
     | 
    
         
             
                  git! %W[checkout -b #{branch} --quiet]
         
     | 
| 
       47 
47 
     | 
    
         
             
                  FileUtils.touch "jam.txt"
         
     | 
| 
       48 
48 
     | 
    
         
             
                  git! %W[add jam.txt]
         
     | 
| 
       49 
     | 
    
         
            -
                  git! %W[commit -m #{"Branch Commit"}]
         
     | 
| 
      
 49 
     | 
    
         
            +
                  git! %W[commit -m #{"Branch Commit"} --no-gpg-sign]
         
     | 
| 
       50 
50 
     | 
    
         
             
                  git! %W[checkout master --quiet]
         
     | 
| 
       51 
51 
     | 
    
         | 
| 
       52 
52 
     | 
    
         
             
                  # tag/atag
         
     | 
| 
       53 
53 
     | 
    
         
             
                  git! %W[checkout -b deletable --quiet]
         
     | 
| 
       54 
54 
     | 
    
         
             
                  FileUtils.touch "jelly.txt"
         
     | 
| 
       55 
55 
     | 
    
         
             
                  git! %W[add jelly.txt]
         
     | 
| 
       56 
     | 
    
         
            -
                  git! %W[commit -m #{"Tag Commit"}]
         
     | 
| 
      
 56 
     | 
    
         
            +
                  git! %W[commit -m #{"Tag Commit"} --no-gpg-sign]
         
     | 
| 
       57 
57 
     | 
    
         
             
                  git! %W[tag #{tag}]
         
     | 
| 
       58 
58 
     | 
    
         
             
                  git! %W[tag -am #{"Annotated Tag Commit"} #{atag}]
         
     | 
| 
       59 
59 
     | 
    
         
             
                  git! %W[checkout master --quiet]
         
     | 
| 
         @@ -54,7 +54,7 @@ describe Librarian::Source::Git do 
     | 
|
| 
       54 
54 
     | 
    
         
             
                    git! %W[config user.email simba@savannah-pride.gov]
         
     | 
| 
       55 
55 
     | 
    
         
             
                    FileUtils.touch "butter.txt"
         
     | 
| 
       56 
56 
     | 
    
         
             
                    git! %W[add butter.txt]
         
     | 
| 
       57 
     | 
    
         
            -
                    git! %W[commit -m #{"Initial Commit"}]
         
     | 
| 
      
 57 
     | 
    
         
            +
                    git! %W[commit -m #{"Initial Commit"} --no-gpg-sign]
         
     | 
| 
       58 
58 
     | 
    
         
             
                  end
         
     | 
| 
       59 
59 
     | 
    
         
             
                end
         
     | 
| 
       60 
60 
     | 
    
         | 
| 
         @@ -150,7 +150,7 @@ describe Librarian::Source::Git do 
     | 
|
| 
       150 
150 
     | 
    
         
             
                    Dir.chdir(git_source_path) do
         
     | 
| 
       151 
151 
     | 
    
         
             
                      FileUtils.touch "jam.txt"
         
     | 
| 
       152 
152 
     | 
    
         
             
                      git! %w[add jam.txt]
         
     | 
| 
       153 
     | 
    
         
            -
                      git! %W[commit -m #{"Some Jam"}]
         
     | 
| 
      
 153 
     | 
    
         
            +
                      git! %W[commit -m #{"Some Jam"} --no-gpg-sign]
         
     | 
| 
       154 
154 
     | 
    
         
             
                    end
         
     | 
| 
       155 
155 
     | 
    
         
             
                  end
         
     | 
| 
       156 
156 
     | 
    
         | 
| 
         @@ -7,7 +7,7 @@ module Librarian 
     | 
|
| 
       7 
7 
     | 
    
         
             
                let(:action) { described_class.new(env) }
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
9 
     | 
    
         
             
                before do
         
     | 
| 
       10 
     | 
    
         
            -
                  action. 
     | 
| 
      
 10 
     | 
    
         
            +
                  allow(action).to receive(:debug)
         
     | 
| 
       11 
11 
     | 
    
         
             
                end
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
       13 
13 
     | 
    
         
             
                describe "#run" do
         
     | 
| 
         @@ -21,12 +21,12 @@ module Librarian 
     | 
|
| 
       21 
21 
     | 
    
         
             
                    describe "clearing the cache path" do
         
     | 
| 
       22 
22 
     | 
    
         | 
| 
       23 
23 
     | 
    
         
             
                      before do
         
     | 
| 
       24 
     | 
    
         
            -
                        action. 
     | 
| 
      
 24 
     | 
    
         
            +
                        allow(action).to receive(:clean_install_path)
         
     | 
| 
       25 
25 
     | 
    
         
             
                      end
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
27 
     | 
    
         
             
                      context "when the cache path is missing" do
         
     | 
| 
       28 
28 
     | 
    
         
             
                        before do
         
     | 
| 
       29 
     | 
    
         
            -
                          env. 
     | 
| 
      
 29 
     | 
    
         
            +
                          allow(env).to receive_message_chain(:cache_path, :exist?).and_return(false)
         
     | 
| 
       30 
30 
     | 
    
         
             
                        end
         
     | 
| 
       31 
31 
     | 
    
         | 
| 
       32 
32 
     | 
    
         
             
                        it "should not try to clear the cache path" do
         
     | 
| 
         @@ -36,7 +36,7 @@ module Librarian 
     | 
|
| 
       36 
36 
     | 
    
         | 
| 
       37 
37 
     | 
    
         
             
                      context "when the cache path is present" do
         
     | 
| 
       38 
38 
     | 
    
         
             
                        before do
         
     | 
| 
       39 
     | 
    
         
            -
                          env. 
     | 
| 
      
 39 
     | 
    
         
            +
                          allow(env).to receive_message_chain(:cache_path, :exist?).and_return(true)
         
     | 
| 
       40 
40 
     | 
    
         
             
                        end
         
     | 
| 
       41 
41 
     | 
    
         | 
| 
       42 
42 
     | 
    
         
             
                        it "should try to clear the cache path" do
         
     | 
| 
         @@ -49,12 +49,12 @@ module Librarian 
     | 
|
| 
       49 
49 
     | 
    
         
             
                    describe "clearing the install path" do
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
       51 
51 
     | 
    
         
             
                      before do
         
     | 
| 
       52 
     | 
    
         
            -
                        action. 
     | 
| 
      
 52 
     | 
    
         
            +
                        allow(action).to receive(:clean_cache_path)
         
     | 
| 
       53 
53 
     | 
    
         
             
                      end
         
     | 
| 
       54 
54 
     | 
    
         | 
| 
       55 
55 
     | 
    
         
             
                      context "when the install path is missing" do
         
     | 
| 
       56 
56 
     | 
    
         
             
                        before do
         
     | 
| 
       57 
     | 
    
         
            -
                          env. 
     | 
| 
      
 57 
     | 
    
         
            +
                          allow(env).to receive_message_chain(:install_path, :exist?).and_return(false)
         
     | 
| 
       58 
58 
     | 
    
         
             
                        end
         
     | 
| 
       59 
59 
     | 
    
         | 
| 
       60 
60 
     | 
    
         
             
                        it "should not try to clear the install path" do
         
     | 
| 
         @@ -64,15 +64,15 @@ module Librarian 
     | 
|
| 
       64 
64 
     | 
    
         | 
| 
       65 
65 
     | 
    
         
             
                      context "when the install path is present" do
         
     | 
| 
       66 
66 
     | 
    
         
             
                        before do
         
     | 
| 
       67 
     | 
    
         
            -
                          env. 
     | 
| 
      
 67 
     | 
    
         
            +
                          allow(env).to receive_message_chain(:install_path, :exist?).and_return(true)
         
     | 
| 
       68 
68 
     | 
    
         
             
                        end
         
     | 
| 
       69 
69 
     | 
    
         | 
| 
       70 
70 
     | 
    
         
             
                        it "should try to clear the install path" do
         
     | 
| 
       71 
71 
     | 
    
         
             
                          children = [double, double, double]
         
     | 
| 
       72 
72 
     | 
    
         
             
                          children.each do |child|
         
     | 
| 
       73 
     | 
    
         
            -
                            child. 
     | 
| 
      
 73 
     | 
    
         
            +
                            allow(child).to receive(:file?).and_return(false)
         
     | 
| 
       74 
74 
     | 
    
         
             
                          end
         
     | 
| 
       75 
     | 
    
         
            -
                          env. 
     | 
| 
      
 75 
     | 
    
         
            +
                          allow(env).to receive_message_chain(:install_path, :children).and_return(children)
         
     | 
| 
       76 
76 
     | 
    
         | 
| 
       77 
77 
     | 
    
         
             
                          children.each do |child|
         
     | 
| 
       78 
78 
     | 
    
         
             
                            expect(child).to receive(:rmtree).exactly(:once)
         
     | 
| 
         @@ -81,7 +81,7 @@ module Librarian 
     | 
|
| 
       81 
81 
     | 
    
         | 
| 
       82 
82 
     | 
    
         
             
                        it "should only try to clear out directories from the install path, not files" do
         
     | 
| 
       83 
83 
     | 
    
         
             
                          children = [double(:file? => false), double(:file? => true), double(:file? => true)]
         
     | 
| 
       84 
     | 
    
         
            -
                          env. 
     | 
| 
      
 84 
     | 
    
         
            +
                          allow(env).to receive_message_chain(:install_path, :children).and_return(children)
         
     | 
| 
       85 
85 
     | 
    
         | 
| 
       86 
86 
     | 
    
         
             
                          children.select(&:file?).each do |child|
         
     | 
| 
       87 
87 
     | 
    
         
             
                            expect(child).to receive(:rmtree).never
         
     | 
| 
         @@ -10,13 +10,13 @@ module Librarian 
     | 
|
| 
       10 
10 
     | 
    
         
             
                let(:action) { described_class.new(env) }
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                before do
         
     | 
| 
       13 
     | 
    
         
            -
                  env. 
     | 
| 
      
 13 
     | 
    
         
            +
                  allow(env).to receive(:specfile_name).and_return("Specfile")
         
     | 
| 
       14 
14 
     | 
    
         
             
                end
         
     | 
| 
       15 
15 
     | 
    
         | 
| 
       16 
16 
     | 
    
         
             
                describe "#run" do
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
18 
     | 
    
         
             
                  context "when the environment does not know its project path" do
         
     | 
| 
       19 
     | 
    
         
            -
                    before { env. 
     | 
| 
      
 19 
     | 
    
         
            +
                    before { allow(env).to receive(:project_path).and_return(nil) }
         
     | 
| 
       20 
20 
     | 
    
         | 
| 
       21 
21 
     | 
    
         
             
                    it "should raise an error describing that the specfile is mising" do
         
     | 
| 
       22 
22 
     | 
    
         
             
                      expect { action.run }.to raise_error(Error, "Cannot find Specfile!")
         
     | 
| 
         @@ -24,7 +24,7 @@ module Librarian 
     | 
|
| 
       24 
24 
     | 
    
         
             
                  end
         
     | 
| 
       25 
25 
     | 
    
         | 
| 
       26 
26 
     | 
    
         
             
                  context "when the environment knows its project path" do
         
     | 
| 
       27 
     | 
    
         
            -
                    before { env. 
     | 
| 
      
 27 
     | 
    
         
            +
                    before { allow(env).to receive(:project_path) { Dir.tmpdir } }
         
     | 
| 
       28 
28 
     | 
    
         | 
| 
       29 
29 
     | 
    
         
             
                    it "should not raise an error" do
         
     | 
| 
       30 
30 
     | 
    
         
             
                      expect { action.run }.to_not raise_error
         
     | 
| 
         @@ -15,7 +15,7 @@ module Librarian 
     | 
|
| 
       15 
15 
     | 
    
         | 
| 
       16 
16 
     | 
    
         
             
                      context "when the specfile is missing" do
         
     | 
| 
       17 
17 
     | 
    
         
             
                        before do
         
     | 
| 
       18 
     | 
    
         
            -
                          env. 
     | 
| 
      
 18 
     | 
    
         
            +
                          allow(env).to receive_message_chain(:specfile_path, :exist?) { false }
         
     | 
| 
       19 
19 
     | 
    
         
             
                        end
         
     | 
| 
       20 
20 
     | 
    
         | 
| 
       21 
21 
     | 
    
         
             
                        it "should raise an error explaining that the specfile is missing" do
         
     | 
| 
         @@ -25,8 +25,8 @@ module Librarian 
     | 
|
| 
       25 
25 
     | 
    
         | 
| 
       26 
26 
     | 
    
         
             
                      context "when the specfile is present but the lockfile is missing" do
         
     | 
| 
       27 
27 
     | 
    
         
             
                        before do
         
     | 
| 
       28 
     | 
    
         
            -
                          env. 
     | 
| 
       29 
     | 
    
         
            -
                          env. 
     | 
| 
      
 28 
     | 
    
         
            +
                          allow(env).to receive_message_chain(:specfile_path, :exist?) { true }
         
     | 
| 
      
 29 
     | 
    
         
            +
                          allow(env).to receive_message_chain(:lockfile_path, :exist?) { false }
         
     | 
| 
       30 
30 
     | 
    
         
             
                        end
         
     | 
| 
       31 
31 
     | 
    
         | 
| 
       32 
32 
     | 
    
         
             
                        it "should raise an error explaining that the lockfile is missing" do
         
     | 
| 
         @@ -36,9 +36,9 @@ module Librarian 
     | 
|
| 
       36 
36 
     | 
    
         | 
| 
       37 
37 
     | 
    
         
             
                      context "when the specfile and lockfile are present but inconsistent" do
         
     | 
| 
       38 
38 
     | 
    
         
             
                        before do
         
     | 
| 
       39 
     | 
    
         
            -
                          env. 
     | 
| 
       40 
     | 
    
         
            -
                          env. 
     | 
| 
       41 
     | 
    
         
            -
                          action. 
     | 
| 
      
 39 
     | 
    
         
            +
                          allow(env).to receive_message_chain(:specfile_path, :exist?) { true }
         
     | 
| 
      
 40 
     | 
    
         
            +
                          allow(env).to receive_message_chain(:lockfile_path, :exist?) { true }
         
     | 
| 
      
 41 
     | 
    
         
            +
                          allow(action).to receive(:spec_consistent_with_lock?) { false }
         
     | 
| 
       42 
42 
     | 
    
         
             
                        end
         
     | 
| 
       43 
43 
     | 
    
         | 
| 
       44 
44 
     | 
    
         
             
                        it "should raise an error explaining the inconsistenty" do
         
     | 
| 
         @@ -48,10 +48,10 @@ module Librarian 
     | 
|
| 
       48 
48 
     | 
    
         | 
| 
       49 
49 
     | 
    
         
             
                      context "when the specfile and lockfile are present and consistent" do
         
     | 
| 
       50 
50 
     | 
    
         
             
                        before do
         
     | 
| 
       51 
     | 
    
         
            -
                          env. 
     | 
| 
       52 
     | 
    
         
            -
                          env. 
     | 
| 
       53 
     | 
    
         
            -
                          action. 
     | 
| 
       54 
     | 
    
         
            -
                          action. 
     | 
| 
      
 51 
     | 
    
         
            +
                          allow(env).to receive_message_chain(:specfile_path, :exist?) { true }
         
     | 
| 
      
 52 
     | 
    
         
            +
                          allow(env).to receive_message_chain(:lockfile_path, :exist?) { true }
         
     | 
| 
      
 53 
     | 
    
         
            +
                          allow(action).to receive(:spec_consistent_with_lock?) { true }
         
     | 
| 
      
 54 
     | 
    
         
            +
                          allow(action).to receive(:perform_installation)
         
     | 
| 
       55 
55 
     | 
    
         
             
                        end
         
     | 
| 
       56 
56 
     | 
    
         | 
| 
       57 
57 
     | 
    
         
             
                        it "should not raise an error" do
         
     | 
| 
         @@ -72,10 +72,10 @@ module Librarian 
     | 
|
| 
       72 
72 
     | 
    
         
             
                      let(:install_path) { double }
         
     | 
| 
       73 
73 
     | 
    
         | 
| 
       74 
74 
     | 
    
         
             
                      before do
         
     | 
| 
       75 
     | 
    
         
            -
                        env. 
     | 
| 
       76 
     | 
    
         
            -
                        action. 
     | 
| 
       77 
     | 
    
         
            -
                        action. 
     | 
| 
       78 
     | 
    
         
            -
                        action. 
     | 
| 
      
 75 
     | 
    
         
            +
                        allow(env).to receive(:install_path) { install_path }
         
     | 
| 
      
 76 
     | 
    
         
            +
                        allow(action).to receive(:check_preconditions)
         
     | 
| 
      
 77 
     | 
    
         
            +
                        allow(action).to receive(:destructive?) { true }
         
     | 
| 
      
 78 
     | 
    
         
            +
                        allow(action).to receive_message_chain(:lock, :manifests) { manifests }
         
     | 
| 
       79 
79 
     | 
    
         
             
                      end
         
     | 
| 
       80 
80 
     | 
    
         | 
| 
       81 
81 
     | 
    
         
             
                      after do
         
     | 
| 
         @@ -85,7 +85,7 @@ module Librarian 
     | 
|
| 
       85 
85 
     | 
    
         
             
                      it "should sort and install the manifests" do
         
     | 
| 
       86 
86 
     | 
    
         
             
                        expect(ManifestSet).to receive(:sort).with(manifests).exactly(:once).ordered { sorted_manifests }
         
     | 
| 
       87 
87 
     | 
    
         | 
| 
       88 
     | 
    
         
            -
                        install_path. 
     | 
| 
      
 88 
     | 
    
         
            +
                        allow(install_path).to receive(:exist?) { false }
         
     | 
| 
       89 
89 
     | 
    
         
             
                        expect(install_path).to receive(:mkpath).exactly(:once).ordered
         
     | 
| 
       90 
90 
     | 
    
         | 
| 
       91 
91 
     | 
    
         
             
                        sorted_manifests.each do |manifest|
         
     | 
| 
         @@ -94,10 +94,10 @@ module Librarian 
     | 
|
| 
       94 
94 
     | 
    
         
             
                      end
         
     | 
| 
       95 
95 
     | 
    
         | 
| 
       96 
96 
     | 
    
         
             
                      it "should recreate the install path if it already exists" do
         
     | 
| 
       97 
     | 
    
         
            -
                        action. 
     | 
| 
       98 
     | 
    
         
            -
                        action. 
     | 
| 
      
 97 
     | 
    
         
            +
                        allow(action).to receive(:sorted_manifests) { sorted_manifests }
         
     | 
| 
      
 98 
     | 
    
         
            +
                        allow(action).to receive(:install_manifests)
         
     | 
| 
       99 
99 
     | 
    
         | 
| 
       100 
     | 
    
         
            -
                        install_path. 
     | 
| 
      
 100 
     | 
    
         
            +
                        allow(install_path).to receive(:exist?) { true }
         
     | 
| 
       101 
101 
     | 
    
         
             
                        expect(install_path).to receive(:rmtree)
         
     | 
| 
       102 
102 
     | 
    
         
             
                        expect(install_path).to receive(:mkpath)
         
     | 
| 
       103 
103 
     | 
    
         
             
                      end
         
     | 
| 
         @@ -15,7 +15,7 @@ module Librarian 
     | 
|
| 
       15 
15 
     | 
    
         
             
                let(:source2) { Librarian::Mock::Source::Mock.new(env, "source2", {}) }
         
     | 
| 
       16 
16 
     | 
    
         | 
| 
       17 
17 
     | 
    
         
             
                before do
         
     | 
| 
       18 
     | 
    
         
            -
                  env. 
     | 
| 
      
 18 
     | 
    
         
            +
                  allow(env).to receive_messages(:specfile => double(:read => spec))
         
     | 
| 
       19 
19 
     | 
    
         
             
                end
         
     | 
| 
       20 
20 
     | 
    
         | 
| 
       21 
21 
     | 
    
         
             
                describe "#run" do
         
     | 
| 
         @@ -35,9 +35,9 @@ module Librarian 
     | 
|
| 
       35 
35 
     | 
    
         
             
                      end
         
     | 
| 
       36 
36 
     | 
    
         | 
| 
       37 
37 
     | 
    
         
             
                      it "should merge duplicated dependencies" do
         
     | 
| 
       38 
     | 
    
         
            -
                        Dependency. 
     | 
| 
       39 
     | 
    
         
            -
                        Librarian::Logger. 
     | 
| 
       40 
     | 
    
         
            -
                        action. 
     | 
| 
      
 38 
     | 
    
         
            +
                        allow_any_instance_of(Dependency).to receive_messages(:manifests => [manifest])
         
     | 
| 
      
 39 
     | 
    
         
            +
                        allow_any_instance_of(Librarian::Logger).to receive(:info)
         
     | 
| 
      
 40 
     | 
    
         
            +
                        allow(action).to receive(:persist_resolution)
         
     | 
| 
       41 
41 
     | 
    
         
             
                        resolution = action.run
         
     | 
| 
       42 
42 
     | 
    
         
             
                        expect(resolution.dependencies).to eq([dependency2])
         
     | 
| 
       43 
43 
     | 
    
         
             
                      end
         
     | 
| 
         @@ -5,7 +5,7 @@ module Librarian 
     | 
|
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
                describe AdjacencyListDirectedGraph do
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
     | 
    
         
            -
                  describe  
     | 
| 
      
 8 
     | 
    
         
            +
                  describe 'cyclic?' do
         
     | 
| 
       9 
9 
     | 
    
         
             
                    subject(:result) { described_class.cyclic?(graph) }
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
                    context "with an empty graph" do
         
     | 
| 
         @@ -45,7 +45,7 @@ module Librarian 
     | 
|
| 
       45 
45 
     | 
    
         | 
| 
       46 
46 
     | 
    
         
             
                  end
         
     | 
| 
       47 
47 
     | 
    
         | 
| 
       48 
     | 
    
         
            -
                  describe  
     | 
| 
      
 48 
     | 
    
         
            +
                  describe 'feedback_arc_set' do
         
     | 
| 
       49 
49 
     | 
    
         
             
                    subject(:result) { described_class.feedback_arc_set(graph) }
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
       51 
51 
     | 
    
         
             
                    context "with an empty graph" do
         
     | 
| 
         @@ -85,7 +85,7 @@ module Librarian 
     | 
|
| 
       85 
85 
     | 
    
         | 
| 
       86 
86 
     | 
    
         
             
                  end
         
     | 
| 
       87 
87 
     | 
    
         | 
| 
       88 
     | 
    
         
            -
                  describe  
     | 
| 
      
 88 
     | 
    
         
            +
                  describe 'tsort_cyclic' do
         
     | 
| 
       89 
89 
     | 
    
         
             
                    subject(:result) { described_class.tsort_cyclic(graph) }
         
     | 
| 
       90 
90 
     | 
    
         | 
| 
       91 
91 
     | 
    
         
             
                    context "with an empty graph" do
         
     | 
| 
         @@ -10,27 +10,28 @@ describe Librarian::Dependency::Requirement do 
     | 
|
| 
       10 
10 
     | 
    
         
             
              end
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
              it 'should handle nil versions' do
         
     | 
| 
       13 
     | 
    
         
            -
                described_class.new(nil).to_gem_requirement. 
     | 
| 
      
 13 
     | 
    
         
            +
                expect(described_class.new(nil).to_gem_requirement).to eq(Gem::Requirement.new)
         
     | 
| 
       14 
14 
     | 
    
         
             
              end
         
     | 
| 
       15 
15 
     | 
    
         | 
| 
       16 
16 
     | 
    
         
             
              it 'should handle nil versions in arrays' do
         
     | 
| 
       17 
     | 
    
         
            -
                described_class.new([nil]).to_gem_requirement. 
     | 
| 
      
 17 
     | 
    
         
            +
                expect(described_class.new([nil]).to_gem_requirement).to eq(Gem::Requirement.new)
         
     | 
| 
       18 
18 
     | 
    
         
             
              end
         
     | 
| 
       19 
19 
     | 
    
         | 
| 
       20 
20 
     | 
    
         
             
              it 'should handle .x versions' do
         
     | 
| 
       21 
     | 
    
         
            -
                described_class.new('1.x').to_gem_requirement. 
     | 
| 
       22 
     | 
    
         
            -
                described_class.new('1.0.x').to_gem_requirement. 
     | 
| 
      
 21 
     | 
    
         
            +
                expect(described_class.new('1.x').to_gem_requirement).to eq(Gem::Requirement.new('~> 1.0'))
         
     | 
| 
      
 22 
     | 
    
         
            +
                expect(described_class.new('1.0.x').to_gem_requirement).to eq(Gem::Requirement.new('~> 1.0.0'))
         
     | 
| 
       23 
23 
     | 
    
         
             
              end
         
     | 
| 
       24 
24 
     | 
    
         | 
| 
       25 
25 
     | 
    
         
             
              it 'should handle version ranges' do
         
     | 
| 
       26 
     | 
    
         
            -
                described_class.new('>=1.1.0 <2.0.0').to_gem_requirement. 
     | 
| 
      
 26 
     | 
    
         
            +
                expect(described_class.new('>=1.1.0 <2.0.0').to_gem_requirement).to eq(Gem::Requirement.new(['>=1.1.0', '<2.0.0']))
         
     | 
| 
      
 27 
     | 
    
         
            +
                expect(described_class.new('>=1.1.0  <2.0.0').to_gem_requirement).to eq(Gem::Requirement.new(['>=1.1.0', '<2.0.0']))
         
     | 
| 
       27 
28 
     | 
    
         
             
              end
         
     | 
| 
       28 
29 
     | 
    
         | 
| 
       29 
30 
     | 
    
         
             
              it 'should print to_s' do
         
     | 
| 
       30 
     | 
    
         
            -
                described_class.new('1.x').to_s. 
     | 
| 
      
 31 
     | 
    
         
            +
                expect(described_class.new('1.x').to_s).to eq('~> 1.0')
         
     | 
| 
       31 
32 
     | 
    
         
             
                s = described_class.new('>=1.1.0 <2.0.0').to_s
         
     | 
| 
       32 
     | 
    
         
            -
                s. 
     | 
| 
       33 
     | 
    
         
            -
                s. 
     | 
| 
      
 33 
     | 
    
         
            +
                expect(s).to include(">= 1.1.0")
         
     | 
| 
      
 34 
     | 
    
         
            +
                expect(s).to include("< 2.0.0")
         
     | 
| 
       34 
35 
     | 
    
         
             
              end
         
     | 
| 
       35 
36 
     | 
    
         | 
| 
       36 
37 
     | 
    
         
             
            end
         
     | 
| 
         @@ -26,7 +26,7 @@ module Librarian 
     | 
|
| 
       26 
26 
     | 
    
         
             
                    with_env "HOME" => "/path/to/home"
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
28 
     | 
    
         
             
                    it "finds the home" do
         
     | 
| 
       29 
     | 
    
         
            -
                      env. 
     | 
| 
      
 29 
     | 
    
         
            +
                      allow(env).to receive(:adapter_name).and_return("cat")
         
     | 
| 
       30 
30 
     | 
    
         
             
                      expect(env.config_db.underlying_home.to_s).to eq "/path/to/home"
         
     | 
| 
       31 
31 
     | 
    
         
             
                    end
         
     | 
| 
       32 
32 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -36,7 +36,7 @@ module Librarian 
     | 
|
| 
       36 
36 
     | 
    
         
             
                    with_env "HOME" => nil
         
     | 
| 
       37 
37 
     | 
    
         | 
| 
       38 
38 
     | 
    
         
             
                    it "finds the home" do
         
     | 
| 
       39 
     | 
    
         
            -
                      env. 
     | 
| 
      
 39 
     | 
    
         
            +
                      allow(env).to receive(:adapter_name).and_return("cat")
         
     | 
| 
       40 
40 
     | 
    
         
             
                      expect(env.config_db.underlying_home.to_s).to eq real_home
         
     | 
| 
       41 
41 
     | 
    
         
             
                    end
         
     | 
| 
       42 
42 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -58,7 +58,7 @@ module Librarian 
     | 
|
| 
       58 
58 
     | 
    
         
             
                    dependency = resolution.dependencies.first
         
     | 
| 
       59 
59 
     | 
    
         | 
| 
       60 
60 
     | 
    
         
             
                    # Note: it must be this order because this order is lexicographically sorted.
         
     | 
| 
       61 
     | 
    
         
            -
                    expect(dependency.requirement.to_s).to eq " 
     | 
| 
      
 61 
     | 
    
         
            +
                    expect(dependency.requirement.to_s).to eq "~> 1.1, != 1.2.6"
         
     | 
| 
       62 
62 
     | 
    
         
             
                  end
         
     | 
| 
       63 
63 
     | 
    
         | 
| 
       64 
64 
     | 
    
         
             
                  it "should give a dependency wth the expected source" do
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: librarianp
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Jay Feldblum
         
     | 
| 
         @@ -9,7 +9,7 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date:  
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2020-04-17 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: thor
         
     | 
| 
         @@ -17,14 +17,14 @@ dependencies: 
     | 
|
| 
       17 
17 
     | 
    
         
             
                requirements:
         
     | 
| 
       18 
18 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       19 
19 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       20 
     | 
    
         
            -
                    version: '0 
     | 
| 
      
 20 
     | 
    
         
            +
                    version: '1.0'
         
     | 
| 
       21 
21 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       22 
22 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       23 
23 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       24 
24 
     | 
    
         
             
                requirements:
         
     | 
| 
       25 
25 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       26 
26 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       27 
     | 
    
         
            -
                    version: '0 
     | 
| 
      
 27 
     | 
    
         
            +
                    version: '1.0'
         
     | 
| 
       28 
28 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       29 
29 
     | 
    
         
             
              name: rake
         
     | 
| 
       30 
30 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -45,14 +45,14 @@ dependencies: 
     | 
|
| 
       45 
45 
     | 
    
         
             
                requirements:
         
     | 
| 
       46 
46 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       47 
47 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       48 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 48 
     | 
    
         
            +
                    version: '3.0'
         
     | 
| 
       49 
49 
     | 
    
         
             
              type: :development
         
     | 
| 
       50 
50 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       51 
51 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       52 
52 
     | 
    
         
             
                requirements:
         
     | 
| 
       53 
53 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       54 
54 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       55 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 55 
     | 
    
         
            +
                    version: '3.0'
         
     | 
| 
       56 
56 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       57 
57 
     | 
    
         
             
              name: json
         
     | 
| 
       58 
58 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -73,14 +73,14 @@ dependencies: 
     | 
|
| 
       73 
73 
     | 
    
         
             
                requirements:
         
     | 
| 
       74 
74 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       75 
75 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       76 
     | 
    
         
            -
                    version: 0 
     | 
| 
      
 76 
     | 
    
         
            +
                    version: '1.0'
         
     | 
| 
       77 
77 
     | 
    
         
             
              type: :development
         
     | 
| 
       78 
78 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       79 
79 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       80 
80 
     | 
    
         
             
                requirements:
         
     | 
| 
       81 
81 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       82 
82 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       83 
     | 
    
         
            -
                    version: 0 
     | 
| 
      
 83 
     | 
    
         
            +
                    version: '1.0'
         
     | 
| 
       84 
84 
     | 
    
         
             
            description: A Framework for Bundlers, used by librarian-puppet.
         
     | 
| 
       85 
85 
     | 
    
         
             
            email:
         
     | 
| 
       86 
86 
     | 
    
         
             
            - y_feldblum@yahoo.com
         
     | 
| 
         @@ -94,7 +94,6 @@ files: 
     | 
|
| 
       94 
94 
     | 
    
         
             
            - ".travis.yml"
         
     | 
| 
       95 
95 
     | 
    
         
             
            - CHANGELOG.md
         
     | 
| 
       96 
96 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       97 
     | 
    
         
            -
            - Gemfile.lock
         
     | 
| 
       98 
97 
     | 
    
         
             
            - LICENSE.txt
         
     | 
| 
       99 
98 
     | 
    
         
             
            - README.md
         
     | 
| 
       100 
99 
     | 
    
         
             
            - Rakefile
         
     | 
| 
         @@ -200,9 +199,9 @@ require_paths: 
     | 
|
| 
       200 
199 
     | 
    
         
             
            - lib
         
     | 
| 
       201 
200 
     | 
    
         
             
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
       202 
201 
     | 
    
         
             
              requirements:
         
     | 
| 
       203 
     | 
    
         
            -
              - - " 
     | 
| 
      
 202 
     | 
    
         
            +
              - - "~>"
         
     | 
| 
       204 
203 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       205 
     | 
    
         
            -
                  version: ' 
     | 
| 
      
 204 
     | 
    
         
            +
                  version: '2.4'
         
     | 
| 
       206 
205 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       207 
206 
     | 
    
         
             
              requirements:
         
     | 
| 
       208 
207 
     | 
    
         
             
              - - ">="
         
     | 
| 
         @@ -210,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       210 
209 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       211 
210 
     | 
    
         
             
            requirements: []
         
     | 
| 
       212 
211 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       213 
     | 
    
         
            -
            rubygems_version: 2. 
     | 
| 
      
 212 
     | 
    
         
            +
            rubygems_version: 2.7.7
         
     | 
| 
       214 
213 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       215 
214 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       216 
215 
     | 
    
         
             
            summary: A Framework for Bundlers.
         
     | 
    
        data/Gemfile.lock
    DELETED
    
    | 
         @@ -1,233 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            PATH
         
     | 
| 
       2 
     | 
    
         
            -
              remote: .
         
     | 
| 
       3 
     | 
    
         
            -
              specs:
         
     | 
| 
       4 
     | 
    
         
            -
                librarianp (0.6.4)
         
     | 
| 
       5 
     | 
    
         
            -
                  thor (~> 0.15)
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
            GEM
         
     | 
| 
       8 
     | 
    
         
            -
              remote: https://rubygems.org/
         
     | 
| 
       9 
     | 
    
         
            -
              specs:
         
     | 
| 
       10 
     | 
    
         
            -
                diff-lcs (1.2.5)
         
     | 
| 
       11 
     | 
    
         
            -
                fakefs (0.4.2)
         
     | 
| 
       12 
     | 
    
         
            -
                ffi2-generators (0.1.1)
         
     | 
| 
       13 
     | 
    
         
            -
                json (1.8.2)
         
     | 
| 
       14 
     | 
    
         
            -
                rake (10.4.2)
         
     | 
| 
       15 
     | 
    
         
            -
                rspec (2.99.0)
         
     | 
| 
       16 
     | 
    
         
            -
                  rspec-core (~> 2.99.0)
         
     | 
| 
       17 
     | 
    
         
            -
                  rspec-expectations (~> 2.99.0)
         
     | 
| 
       18 
     | 
    
         
            -
                  rspec-mocks (~> 2.99.0)
         
     | 
| 
       19 
     | 
    
         
            -
                rspec-core (2.99.2)
         
     | 
| 
       20 
     | 
    
         
            -
                rspec-expectations (2.99.2)
         
     | 
| 
       21 
     | 
    
         
            -
                  diff-lcs (>= 1.1.3, < 2.0)
         
     | 
| 
       22 
     | 
    
         
            -
                rspec-mocks (2.99.3)
         
     | 
| 
       23 
     | 
    
         
            -
                rubysl (2.1.0)
         
     | 
| 
       24 
     | 
    
         
            -
                  rubysl-abbrev (~> 2.0)
         
     | 
| 
       25 
     | 
    
         
            -
                  rubysl-base64 (~> 2.0)
         
     | 
| 
       26 
     | 
    
         
            -
                  rubysl-benchmark (~> 2.0)
         
     | 
| 
       27 
     | 
    
         
            -
                  rubysl-bigdecimal (~> 2.0)
         
     | 
| 
       28 
     | 
    
         
            -
                  rubysl-cgi (~> 2.0)
         
     | 
| 
       29 
     | 
    
         
            -
                  rubysl-cgi-session (~> 2.0)
         
     | 
| 
       30 
     | 
    
         
            -
                  rubysl-cmath (~> 2.0)
         
     | 
| 
       31 
     | 
    
         
            -
                  rubysl-complex (~> 2.0)
         
     | 
| 
       32 
     | 
    
         
            -
                  rubysl-continuation (~> 2.0)
         
     | 
| 
       33 
     | 
    
         
            -
                  rubysl-coverage (~> 2.0)
         
     | 
| 
       34 
     | 
    
         
            -
                  rubysl-csv (~> 2.0)
         
     | 
| 
       35 
     | 
    
         
            -
                  rubysl-curses (~> 2.0)
         
     | 
| 
       36 
     | 
    
         
            -
                  rubysl-date (~> 2.0)
         
     | 
| 
       37 
     | 
    
         
            -
                  rubysl-delegate (~> 2.0)
         
     | 
| 
       38 
     | 
    
         
            -
                  rubysl-digest (~> 2.0)
         
     | 
| 
       39 
     | 
    
         
            -
                  rubysl-drb (~> 2.0)
         
     | 
| 
       40 
     | 
    
         
            -
                  rubysl-e2mmap (~> 2.0)
         
     | 
| 
       41 
     | 
    
         
            -
                  rubysl-english (~> 2.0)
         
     | 
| 
       42 
     | 
    
         
            -
                  rubysl-enumerator (~> 2.0)
         
     | 
| 
       43 
     | 
    
         
            -
                  rubysl-erb (~> 2.0)
         
     | 
| 
       44 
     | 
    
         
            -
                  rubysl-etc (~> 2.0)
         
     | 
| 
       45 
     | 
    
         
            -
                  rubysl-expect (~> 2.0)
         
     | 
| 
       46 
     | 
    
         
            -
                  rubysl-fcntl (~> 2.0)
         
     | 
| 
       47 
     | 
    
         
            -
                  rubysl-fiber (~> 2.0)
         
     | 
| 
       48 
     | 
    
         
            -
                  rubysl-fileutils (~> 2.0)
         
     | 
| 
       49 
     | 
    
         
            -
                  rubysl-find (~> 2.0)
         
     | 
| 
       50 
     | 
    
         
            -
                  rubysl-forwardable (~> 2.0)
         
     | 
| 
       51 
     | 
    
         
            -
                  rubysl-getoptlong (~> 2.0)
         
     | 
| 
       52 
     | 
    
         
            -
                  rubysl-gserver (~> 2.0)
         
     | 
| 
       53 
     | 
    
         
            -
                  rubysl-io-console (~> 2.0)
         
     | 
| 
       54 
     | 
    
         
            -
                  rubysl-io-nonblock (~> 2.0)
         
     | 
| 
       55 
     | 
    
         
            -
                  rubysl-io-wait (~> 2.0)
         
     | 
| 
       56 
     | 
    
         
            -
                  rubysl-ipaddr (~> 2.0)
         
     | 
| 
       57 
     | 
    
         
            -
                  rubysl-irb (~> 2.1)
         
     | 
| 
       58 
     | 
    
         
            -
                  rubysl-logger (~> 2.0)
         
     | 
| 
       59 
     | 
    
         
            -
                  rubysl-mathn (~> 2.0)
         
     | 
| 
       60 
     | 
    
         
            -
                  rubysl-matrix (~> 2.0)
         
     | 
| 
       61 
     | 
    
         
            -
                  rubysl-mkmf (~> 2.0)
         
     | 
| 
       62 
     | 
    
         
            -
                  rubysl-monitor (~> 2.0)
         
     | 
| 
       63 
     | 
    
         
            -
                  rubysl-mutex_m (~> 2.0)
         
     | 
| 
       64 
     | 
    
         
            -
                  rubysl-net-ftp (~> 2.0)
         
     | 
| 
       65 
     | 
    
         
            -
                  rubysl-net-http (~> 2.0)
         
     | 
| 
       66 
     | 
    
         
            -
                  rubysl-net-imap (~> 2.0)
         
     | 
| 
       67 
     | 
    
         
            -
                  rubysl-net-pop (~> 2.0)
         
     | 
| 
       68 
     | 
    
         
            -
                  rubysl-net-protocol (~> 2.0)
         
     | 
| 
       69 
     | 
    
         
            -
                  rubysl-net-smtp (~> 2.0)
         
     | 
| 
       70 
     | 
    
         
            -
                  rubysl-net-telnet (~> 2.0)
         
     | 
| 
       71 
     | 
    
         
            -
                  rubysl-nkf (~> 2.0)
         
     | 
| 
       72 
     | 
    
         
            -
                  rubysl-observer (~> 2.0)
         
     | 
| 
       73 
     | 
    
         
            -
                  rubysl-open-uri (~> 2.0)
         
     | 
| 
       74 
     | 
    
         
            -
                  rubysl-open3 (~> 2.0)
         
     | 
| 
       75 
     | 
    
         
            -
                  rubysl-openssl (~> 2.0)
         
     | 
| 
       76 
     | 
    
         
            -
                  rubysl-optparse (~> 2.0)
         
     | 
| 
       77 
     | 
    
         
            -
                  rubysl-ostruct (~> 2.0)
         
     | 
| 
       78 
     | 
    
         
            -
                  rubysl-pathname (~> 2.0)
         
     | 
| 
       79 
     | 
    
         
            -
                  rubysl-prettyprint (~> 2.0)
         
     | 
| 
       80 
     | 
    
         
            -
                  rubysl-prime (~> 2.0)
         
     | 
| 
       81 
     | 
    
         
            -
                  rubysl-profile (~> 2.0)
         
     | 
| 
       82 
     | 
    
         
            -
                  rubysl-profiler (~> 2.0)
         
     | 
| 
       83 
     | 
    
         
            -
                  rubysl-pstore (~> 2.0)
         
     | 
| 
       84 
     | 
    
         
            -
                  rubysl-pty (~> 2.0)
         
     | 
| 
       85 
     | 
    
         
            -
                  rubysl-rational (~> 2.0)
         
     | 
| 
       86 
     | 
    
         
            -
                  rubysl-resolv (~> 2.0)
         
     | 
| 
       87 
     | 
    
         
            -
                  rubysl-rexml (~> 2.0)
         
     | 
| 
       88 
     | 
    
         
            -
                  rubysl-rinda (~> 2.0)
         
     | 
| 
       89 
     | 
    
         
            -
                  rubysl-rss (~> 2.0)
         
     | 
| 
       90 
     | 
    
         
            -
                  rubysl-scanf (~> 2.0)
         
     | 
| 
       91 
     | 
    
         
            -
                  rubysl-securerandom (~> 2.0)
         
     | 
| 
       92 
     | 
    
         
            -
                  rubysl-set (~> 2.0)
         
     | 
| 
       93 
     | 
    
         
            -
                  rubysl-shellwords (~> 2.0)
         
     | 
| 
       94 
     | 
    
         
            -
                  rubysl-singleton (~> 2.0)
         
     | 
| 
       95 
     | 
    
         
            -
                  rubysl-socket (~> 2.0)
         
     | 
| 
       96 
     | 
    
         
            -
                  rubysl-stringio (~> 2.0)
         
     | 
| 
       97 
     | 
    
         
            -
                  rubysl-strscan (~> 2.0)
         
     | 
| 
       98 
     | 
    
         
            -
                  rubysl-sync (~> 2.0)
         
     | 
| 
       99 
     | 
    
         
            -
                  rubysl-syslog (~> 2.0)
         
     | 
| 
       100 
     | 
    
         
            -
                  rubysl-tempfile (~> 2.0)
         
     | 
| 
       101 
     | 
    
         
            -
                  rubysl-thread (~> 2.0)
         
     | 
| 
       102 
     | 
    
         
            -
                  rubysl-thwait (~> 2.0)
         
     | 
| 
       103 
     | 
    
         
            -
                  rubysl-time (~> 2.0)
         
     | 
| 
       104 
     | 
    
         
            -
                  rubysl-timeout (~> 2.0)
         
     | 
| 
       105 
     | 
    
         
            -
                  rubysl-tmpdir (~> 2.0)
         
     | 
| 
       106 
     | 
    
         
            -
                  rubysl-tsort (~> 2.0)
         
     | 
| 
       107 
     | 
    
         
            -
                  rubysl-un (~> 2.0)
         
     | 
| 
       108 
     | 
    
         
            -
                  rubysl-uri (~> 2.0)
         
     | 
| 
       109 
     | 
    
         
            -
                  rubysl-weakref (~> 2.0)
         
     | 
| 
       110 
     | 
    
         
            -
                  rubysl-webrick (~> 2.0)
         
     | 
| 
       111 
     | 
    
         
            -
                  rubysl-xmlrpc (~> 2.0)
         
     | 
| 
       112 
     | 
    
         
            -
                  rubysl-yaml (~> 2.0)
         
     | 
| 
       113 
     | 
    
         
            -
                  rubysl-zlib (~> 2.0)
         
     | 
| 
       114 
     | 
    
         
            -
                rubysl-abbrev (2.0.4)
         
     | 
| 
       115 
     | 
    
         
            -
                rubysl-base64 (2.0.0)
         
     | 
| 
       116 
     | 
    
         
            -
                rubysl-benchmark (2.0.1)
         
     | 
| 
       117 
     | 
    
         
            -
                rubysl-bigdecimal (2.0.2)
         
     | 
| 
       118 
     | 
    
         
            -
                rubysl-cgi (2.0.1)
         
     | 
| 
       119 
     | 
    
         
            -
                rubysl-cgi-session (2.0.1)
         
     | 
| 
       120 
     | 
    
         
            -
                rubysl-cmath (2.0.0)
         
     | 
| 
       121 
     | 
    
         
            -
                rubysl-complex (2.0.0)
         
     | 
| 
       122 
     | 
    
         
            -
                rubysl-continuation (2.0.0)
         
     | 
| 
       123 
     | 
    
         
            -
                rubysl-coverage (2.0.3)
         
     | 
| 
       124 
     | 
    
         
            -
                rubysl-csv (2.0.2)
         
     | 
| 
       125 
     | 
    
         
            -
                  rubysl-english (~> 2.0)
         
     | 
| 
       126 
     | 
    
         
            -
                rubysl-curses (2.0.1)
         
     | 
| 
       127 
     | 
    
         
            -
                rubysl-date (2.0.9)
         
     | 
| 
       128 
     | 
    
         
            -
                rubysl-delegate (2.0.1)
         
     | 
| 
       129 
     | 
    
         
            -
                rubysl-digest (2.0.3)
         
     | 
| 
       130 
     | 
    
         
            -
                rubysl-drb (2.0.1)
         
     | 
| 
       131 
     | 
    
         
            -
                rubysl-e2mmap (2.0.0)
         
     | 
| 
       132 
     | 
    
         
            -
                rubysl-english (2.0.0)
         
     | 
| 
       133 
     | 
    
         
            -
                rubysl-enumerator (2.0.0)
         
     | 
| 
       134 
     | 
    
         
            -
                rubysl-erb (2.0.2)
         
     | 
| 
       135 
     | 
    
         
            -
                rubysl-etc (2.0.3)
         
     | 
| 
       136 
     | 
    
         
            -
                  ffi2-generators (~> 0.1)
         
     | 
| 
       137 
     | 
    
         
            -
                rubysl-expect (2.0.0)
         
     | 
| 
       138 
     | 
    
         
            -
                rubysl-fcntl (2.0.4)
         
     | 
| 
       139 
     | 
    
         
            -
                  ffi2-generators (~> 0.1)
         
     | 
| 
       140 
     | 
    
         
            -
                rubysl-fiber (2.0.0)
         
     | 
| 
       141 
     | 
    
         
            -
                rubysl-fileutils (2.0.3)
         
     | 
| 
       142 
     | 
    
         
            -
                rubysl-find (2.0.1)
         
     | 
| 
       143 
     | 
    
         
            -
                rubysl-forwardable (2.0.1)
         
     | 
| 
       144 
     | 
    
         
            -
                rubysl-getoptlong (2.0.0)
         
     | 
| 
       145 
     | 
    
         
            -
                rubysl-gserver (2.0.0)
         
     | 
| 
       146 
     | 
    
         
            -
                  rubysl-socket (~> 2.0)
         
     | 
| 
       147 
     | 
    
         
            -
                  rubysl-thread (~> 2.0)
         
     | 
| 
       148 
     | 
    
         
            -
                rubysl-io-console (2.0.0)
         
     | 
| 
       149 
     | 
    
         
            -
                rubysl-io-nonblock (2.0.0)
         
     | 
| 
       150 
     | 
    
         
            -
                rubysl-io-wait (2.0.0)
         
     | 
| 
       151 
     | 
    
         
            -
                rubysl-ipaddr (2.0.0)
         
     | 
| 
       152 
     | 
    
         
            -
                rubysl-irb (2.1.1)
         
     | 
| 
       153 
     | 
    
         
            -
                  rubysl-e2mmap (~> 2.0)
         
     | 
| 
       154 
     | 
    
         
            -
                  rubysl-mathn (~> 2.0)
         
     | 
| 
       155 
     | 
    
         
            -
                  rubysl-thread (~> 2.0)
         
     | 
| 
       156 
     | 
    
         
            -
                rubysl-logger (2.1.0)
         
     | 
| 
       157 
     | 
    
         
            -
                rubysl-mathn (2.0.0)
         
     | 
| 
       158 
     | 
    
         
            -
                rubysl-matrix (2.1.0)
         
     | 
| 
       159 
     | 
    
         
            -
                  rubysl-e2mmap (~> 2.0)
         
     | 
| 
       160 
     | 
    
         
            -
                rubysl-mkmf (2.0.1)
         
     | 
| 
       161 
     | 
    
         
            -
                  rubysl-fileutils (~> 2.0)
         
     | 
| 
       162 
     | 
    
         
            -
                  rubysl-shellwords (~> 2.0)
         
     | 
| 
       163 
     | 
    
         
            -
                rubysl-monitor (2.0.0)
         
     | 
| 
       164 
     | 
    
         
            -
                rubysl-mutex_m (2.0.0)
         
     | 
| 
       165 
     | 
    
         
            -
                rubysl-net-ftp (2.0.1)
         
     | 
| 
       166 
     | 
    
         
            -
                rubysl-net-http (2.0.4)
         
     | 
| 
       167 
     | 
    
         
            -
                  rubysl-cgi (~> 2.0)
         
     | 
| 
       168 
     | 
    
         
            -
                  rubysl-erb (~> 2.0)
         
     | 
| 
       169 
     | 
    
         
            -
                  rubysl-singleton (~> 2.0)
         
     | 
| 
       170 
     | 
    
         
            -
                rubysl-net-imap (2.0.1)
         
     | 
| 
       171 
     | 
    
         
            -
                rubysl-net-pop (2.0.1)
         
     | 
| 
       172 
     | 
    
         
            -
                rubysl-net-protocol (2.0.1)
         
     | 
| 
       173 
     | 
    
         
            -
                rubysl-net-smtp (2.0.1)
         
     | 
| 
       174 
     | 
    
         
            -
                rubysl-net-telnet (2.0.0)
         
     | 
| 
       175 
     | 
    
         
            -
                rubysl-nkf (2.0.1)
         
     | 
| 
       176 
     | 
    
         
            -
                rubysl-observer (2.0.0)
         
     | 
| 
       177 
     | 
    
         
            -
                rubysl-open-uri (2.0.0)
         
     | 
| 
       178 
     | 
    
         
            -
                rubysl-open3 (2.0.0)
         
     | 
| 
       179 
     | 
    
         
            -
                rubysl-openssl (2.2.1)
         
     | 
| 
       180 
     | 
    
         
            -
                rubysl-optparse (2.0.1)
         
     | 
| 
       181 
     | 
    
         
            -
                  rubysl-shellwords (~> 2.0)
         
     | 
| 
       182 
     | 
    
         
            -
                rubysl-ostruct (2.0.4)
         
     | 
| 
       183 
     | 
    
         
            -
                rubysl-pathname (2.1.0)
         
     | 
| 
       184 
     | 
    
         
            -
                rubysl-prettyprint (2.0.3)
         
     | 
| 
       185 
     | 
    
         
            -
                rubysl-prime (2.0.1)
         
     | 
| 
       186 
     | 
    
         
            -
                rubysl-profile (2.0.0)
         
     | 
| 
       187 
     | 
    
         
            -
                rubysl-profiler (2.0.1)
         
     | 
| 
       188 
     | 
    
         
            -
                rubysl-pstore (2.0.0)
         
     | 
| 
       189 
     | 
    
         
            -
                rubysl-pty (2.0.3)
         
     | 
| 
       190 
     | 
    
         
            -
                rubysl-rational (2.0.1)
         
     | 
| 
       191 
     | 
    
         
            -
                rubysl-resolv (2.1.2)
         
     | 
| 
       192 
     | 
    
         
            -
                rubysl-rexml (2.0.4)
         
     | 
| 
       193 
     | 
    
         
            -
                rubysl-rinda (2.0.1)
         
     | 
| 
       194 
     | 
    
         
            -
                rubysl-rss (2.0.0)
         
     | 
| 
       195 
     | 
    
         
            -
                rubysl-scanf (2.0.0)
         
     | 
| 
       196 
     | 
    
         
            -
                rubysl-securerandom (2.0.0)
         
     | 
| 
       197 
     | 
    
         
            -
                rubysl-set (2.0.1)
         
     | 
| 
       198 
     | 
    
         
            -
                rubysl-shellwords (2.0.0)
         
     | 
| 
       199 
     | 
    
         
            -
                rubysl-singleton (2.0.0)
         
     | 
| 
       200 
     | 
    
         
            -
                rubysl-socket (2.0.1)
         
     | 
| 
       201 
     | 
    
         
            -
                rubysl-stringio (2.0.0)
         
     | 
| 
       202 
     | 
    
         
            -
                rubysl-strscan (2.0.0)
         
     | 
| 
       203 
     | 
    
         
            -
                rubysl-sync (2.0.0)
         
     | 
| 
       204 
     | 
    
         
            -
                rubysl-syslog (2.1.0)
         
     | 
| 
       205 
     | 
    
         
            -
                  ffi2-generators (~> 0.1)
         
     | 
| 
       206 
     | 
    
         
            -
                rubysl-tempfile (2.0.1)
         
     | 
| 
       207 
     | 
    
         
            -
                rubysl-thread (2.0.3)
         
     | 
| 
       208 
     | 
    
         
            -
                rubysl-thwait (2.0.0)
         
     | 
| 
       209 
     | 
    
         
            -
                rubysl-time (2.0.3)
         
     | 
| 
       210 
     | 
    
         
            -
                rubysl-timeout (2.0.0)
         
     | 
| 
       211 
     | 
    
         
            -
                rubysl-tmpdir (2.0.1)
         
     | 
| 
       212 
     | 
    
         
            -
                rubysl-tsort (2.0.1)
         
     | 
| 
       213 
     | 
    
         
            -
                rubysl-un (2.0.0)
         
     | 
| 
       214 
     | 
    
         
            -
                  rubysl-fileutils (~> 2.0)
         
     | 
| 
       215 
     | 
    
         
            -
                  rubysl-optparse (~> 2.0)
         
     | 
| 
       216 
     | 
    
         
            -
                rubysl-uri (2.0.0)
         
     | 
| 
       217 
     | 
    
         
            -
                rubysl-weakref (2.0.0)
         
     | 
| 
       218 
     | 
    
         
            -
                rubysl-webrick (2.0.0)
         
     | 
| 
       219 
     | 
    
         
            -
                rubysl-xmlrpc (2.0.0)
         
     | 
| 
       220 
     | 
    
         
            -
                rubysl-yaml (2.1.0)
         
     | 
| 
       221 
     | 
    
         
            -
                rubysl-zlib (2.0.1)
         
     | 
| 
       222 
     | 
    
         
            -
                thor (0.19.1)
         
     | 
| 
       223 
     | 
    
         
            -
             
     | 
| 
       224 
     | 
    
         
            -
            PLATFORMS
         
     | 
| 
       225 
     | 
    
         
            -
              ruby
         
     | 
| 
       226 
     | 
    
         
            -
             
     | 
| 
       227 
     | 
    
         
            -
            DEPENDENCIES
         
     | 
| 
       228 
     | 
    
         
            -
              fakefs
         
     | 
| 
       229 
     | 
    
         
            -
              json
         
     | 
| 
       230 
     | 
    
         
            -
              librarianp!
         
     | 
| 
       231 
     | 
    
         
            -
              rake
         
     | 
| 
       232 
     | 
    
         
            -
              rspec (~> 2.14)
         
     | 
| 
       233 
     | 
    
         
            -
              rubysl
         
     |