#1 Revive package
Opened 3 years ago by pvalena. Modified 3 years ago
rpms/ pvalena/rubygem-gemnasium-parser rebase  into  rawhide

file added
+1
@@ -0,0 +1,1 @@ 

+ /gemnasium-parser-*.gem

file removed
-1
@@ -1,1 +0,0 @@ 

- Orphaned for 6+ weeks

@@ -0,0 +1,153 @@ 

+ diff --git a/spec/gemnasium/parser/gemfile_spec.rb b/spec/gemnasium/parser/gemfile_spec.rb

+ index 1ea9582..920dae9 100644

+ --- a/spec/gemnasium/parser/gemfile_spec.rb

+ +++ b/spec/gemnasium/parser/gemfile_spec.rb

+ @@ -29,13 +29,13 @@ describe Gemnasium::Parser::Gemfile do

+    it "parses double quotes" do

+      content(%(gem "rake", ">= 0.8.7"))

+      dependency.name.should == "rake"

+ -    dependency.requirement.should == ">= 0.8.7"

+ +    dependency.requirement.should == Gem::Requirement.new([">= 0.8.7"])

+    end

+  

+    it "parses single quotes" do

+      content(%(gem 'rake', '>= 0.8.7'))

+      dependency.name.should == "rake"

+ -    dependency.requirement.should == ">= 0.8.7"

+ +    dependency.requirement.should == Gem::Requirement.new([">= 0.8.7"])

+    end

+  

+    it "ignores mixed quotes" do

+ @@ -46,25 +46,25 @@ describe Gemnasium::Parser::Gemfile do

+    it "parses gems with a period in the name" do

+      content(%(gem "pygment.rb", ">= 0.8.7"))

+      dependency.name.should == "pygment.rb"

+ -    dependency.requirement.should == ">= 0.8.7"

+ +    dependency.requirement.should == Gem::Requirement.new([">= 0.8.7"])

+    end

+  

+    it "parses non-requirement gems" do

+      content(%(gem "rake"))

+      dependency.name.should == "rake"

+ -    dependency.requirement.should == ">= 0"

+ +    dependency.requirement.should == Gem::Requirement.new([">= 0"])

+    end

+  

+    it "parses multi-requirement gems" do

+      content(%(gem "rake", ">= 0.8.7", "<= 0.9.2"))

+      dependency.name.should == "rake"

+ -    dependency.requirement.as_list.should == ["<= 0.9.2", ">= 0.8.7"]

+ +    dependency.requirement.as_list.should == [">= 0.8.7", "<= 0.9.2"]

+    end

+  

+    it "parses gems with options" do

+      content(%(gem "rake", ">= 0.8.7", :require => false))

+      dependency.name.should == "rake"

+ -    dependency.requirement.should == ">= 0.8.7"

+ +    dependency.requirement.should == Gem::Requirement.new([">= 0.8.7"])

+    end

+  

+    it "listens for gemspecs" do

+ @@ -278,13 +278,13 @@ describe Gemnasium::Parser::Gemfile do

+    it "parses parentheses" do

+      content(%(gem("rake", ">= 0.8.7")))

+      dependency.name.should == "rake"

+ -    dependency.requirement.should == ">= 0.8.7"

+ +    dependency.requirement.should == Gem::Requirement.new([">= 0.8.7"])

+    end

+  

+    it "parses gems followed by inline comments" do

+      content(%(gem "rake", ">= 0.8.7" # Comment))

+      dependency.name.should == "rake"

+ -    dependency.requirement.should == ">= 0.8.7"

+ +    dependency.requirement.should == Gem::Requirement.new([">= 0.8.7"])

+    end

+  

+    it "parses oddly quoted gems" do

+ diff --git a/spec/gemnasium/parser/gemspec_spec.rb b/spec/gemnasium/parser/gemspec_spec.rb

+ index e783bbe..1b6c985 100644

+ --- a/spec/gemnasium/parser/gemspec_spec.rb

+ +++ b/spec/gemnasium/parser/gemspec_spec.rb

+ @@ -33,7 +33,7 @@ describe Gemnasium::Parser::Gemspec do

+        end

+      EOF

+      dependency.name.should == "rake"

+ -    dependency.requirement.should == ">= 0.8.7"

+ +    dependency.requirement.should == Gem::Requirement.new([">= 0.8.7"])

+    end

+  

+    it "parses single quotes" do

+ @@ -43,7 +43,7 @@ describe Gemnasium::Parser::Gemspec do

+        end

+      EOF

+      dependency.name.should == "rake"

+ -    dependency.requirement.should == ">= 0.8.7"

+ +    dependency.requirement.should == Gem::Requirement.new([">= 0.8.7"])

+    end

+  

+    it "ignores mixed quotes" do

+ @@ -62,7 +62,7 @@ describe Gemnasium::Parser::Gemspec do

+        end

+      EOF

+      dependency.name.should == "pygment.rb"

+ -    dependency.requirement.should == ">= 0.8.7"

+ +    dependency.requirement.should == Gem::Requirement.new([">= 0.8.7"])

+    end

+  

+    it "parses non-requirement gems" do

+ @@ -72,7 +72,7 @@ describe Gemnasium::Parser::Gemspec do

+        end

+      EOF

+      dependency.name.should == "rake"

+ -    dependency.requirement.should == ">= 0"

+ +    dependency.requirement.should == Gem::Requirement.new([">= 0"])

+    end

+  

+    it "parses multi-requirement gems" do

+ @@ -82,7 +82,7 @@ describe Gemnasium::Parser::Gemspec do

+        end

+      EOF

+      dependency.name.should == "rake"

+ -    dependency.requirement.as_list.should == ["<= 0.9.2", ">= 0.8.7"]

+ +    dependency.requirement.as_list.should == [">= 0.8.7", "<= 0.9.2"]

+    end

+  

+    it "parses single-element array requirement gems" do

+ @@ -92,7 +92,7 @@ describe Gemnasium::Parser::Gemspec do

+        end

+      EOF

+      dependency.name.should == "rake"

+ -    dependency.requirement.should == ">= 0.8.7"

+ +    dependency.requirement.should == Gem::Requirement.new([">= 0.8.7"])

+    end

+  

+    it "parses multi-element array requirement gems" do

+ @@ -102,7 +102,7 @@ describe Gemnasium::Parser::Gemspec do

+        end

+      EOF

+      dependency.name.should == "rake"

+ -    dependency.requirement.as_list.should == ["<= 0.9.2", ">= 0.8.7"]

+ +    dependency.requirement.as_list.should == [">= 0.8.7", "<= 0.9.2"]

+    end

+  

+    it "parses runtime gems" do

+ @@ -144,7 +144,7 @@ describe Gemnasium::Parser::Gemspec do

+        end

+      EOF

+      dependency.name.should == "rake"

+ -    dependency.requirement.should == ">= 0.8.7"

+ +    dependency.requirement.should == Gem::Requirement.new([">= 0.8.7"])

+    end

+  

+    it "parses gems followed by inline comments" do

+ @@ -154,6 +154,6 @@ describe Gemnasium::Parser::Gemspec do

+        end

+      EOF

+      dependency.name.should == "rake"

+ -    dependency.requirement.should == ">= 0.8.7"

+ +    dependency.requirement.should == Gem::Requirement.new([">= 0.8.7"])

+    end

+  end

+ -- 

+ 2.26.2

+ 

@@ -0,0 +1,104 @@ 

+ %global gem_name gemnasium-parser

+ 

+ Name: rubygem-%{gem_name}

+ Version: 0.1.9

+ Release: 11%{?dist}

+ Summary: Safely parse Gemfiles and gemspecs

+ License: MIT

+ URL: https://github.com/laserlemon/gemnasium-parser

+ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem

+ # Attempt to fix failures in tests

+ # https://github.com/gemnasium/gemnasium-parser/pull/35

+ Patch0: gemnasium-parser-0.1.9-fix-tests.patch

+ 

+ BuildRequires: ruby(release)

+ BuildRequires: rubygems-devel

+ BuildRequires: ruby

+ BuildRequires: rubygem(rspec-expectations)

+ # Bundler is required in lib/gemnasium/parser/gemfile.rb

+ BuildRequires: rubygem(bundler)

+ BuildRequires: %{_bindir}/rspec

+ BuildArch: noarch

+ 

+ %description

+ Safely parse Gemfiles and gemspecs.

+ 

+ 

+ %package doc

+ Summary: Documentation for %{name}

+ Requires: %{name} = %{version}-%{release}

+ BuildArch: noarch

+ 

+ %description doc

+ Documentation for %{name}.

+ 

+ %prep

+ %setup -q -n %{gem_name}-%{version}

+ 

+ # Rakefile is not executable, nor should be

+ sed -i '/^#!\/usr\/bin\/env/ d' Rakefile

+ 

+ %build

+ gem build ../%{gem_name}-%{version}.gemspec

+ %gem_install

+ 

+ %install

+ mkdir -p %{buildroot}%{gem_dir}

+ cp -a .%{gem_dir}/* \

+         %{buildroot}%{gem_dir}/

+ 

+ %check

+ pushd .%{gem_instdir}

+ cat %{PATCH0} | patch -p1 -F0

+ 

+ rspec spec

+ popd

+ 

+ %files

+ %dir %{gem_instdir}

+ %exclude %{gem_instdir}/.*

+ %license %{gem_instdir}/LICENSE

+ %{gem_libdir}

+ %exclude %{gem_cache}

+ %{gem_spec}

+ 

+ %files doc

+ %doc %{gem_docdir}

+ %doc %{gem_instdir}/CHANGELOG.md

+ %{gem_instdir}/Gemfile

+ %doc %{gem_instdir}/README.md

+ %{gem_instdir}/Rakefile

+ %{gem_instdir}/gemnasium-parser.gemspec

+ %{gem_instdir}/spec

+ 

+ %changelog

+ * Tue Jul 14 2020 Pavel Valena <pvalena@redhat.com> - 0.1.9-11

+ - Revive package.

+ 

+ * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-9

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

+ 

+ * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-8

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

+ 

+ * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-7

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

+ 

+ * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-6

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

+ 

+ * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-5

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

+ 

+ * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.9-4

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

+ 

+ * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.9-3

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

+ 

+ * Sat Dec 28 2013 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.1.9-2

+ - Rearrange %%files

+ - Remove more files during %%prep

+ 

+ * Mon Aug 05 2013 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.1.9-1

+ - Initial package

file added
+1
@@ -0,0 +1,1 @@ 

+ SHA512 (gemnasium-parser-0.1.9.gem) = 4c42001cec9af3c7284b2e2c43a92cf669bd26db5f435995073b8a43f7982f5f0750eb3c32c693907450ee1730d8c0f1707d56becce08d9baaa4106b60619c49