polisher 0.10.2 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +4 -4
  2. data/bin/binary_gem_resolver.rb +2 -2
  3. data/bin/bundler2yum.rb +51 -0
  4. data/bin/check_ruby_spec.rb +32 -0
  5. data/bin/gem_dependency_checker.rb +13 -242
  6. data/bin/gem_mapper.rb +27 -0
  7. data/bin/gems2update.rb +27 -0
  8. data/bin/git_gem_diff.rb +48 -0
  9. data/bin/git_gem_updater.rb +3 -3
  10. data/bin/missing_deps.rb +29 -0
  11. data/bin/polisher-config.rb +17 -0
  12. data/bin/ruby_rpm_spec_updater.rb +23 -2
  13. data/lib/polisher.rb +5 -12
  14. data/lib/polisher/adaptors/checker_loader.rb +78 -0
  15. data/lib/polisher/{upstream.rb → adaptors/upstream.rb} +1 -0
  16. data/lib/polisher/adaptors/version_checker.rb +57 -0
  17. data/lib/polisher/adaptors/version_checker/bodhi.rb +29 -0
  18. data/lib/polisher/adaptors/version_checker/errata.rb +29 -0
  19. data/lib/polisher/adaptors/version_checker/fedora.rb +29 -0
  20. data/lib/polisher/adaptors/version_checker/gem.rb +27 -0
  21. data/lib/polisher/adaptors/version_checker/git.rb +29 -0
  22. data/lib/polisher/adaptors/version_checker/koji.rb +29 -0
  23. data/lib/polisher/adaptors/version_checker/yum.rb +29 -0
  24. data/lib/polisher/cli/all.rb +22 -0
  25. data/lib/polisher/cli/bin/gem_dependency_checker.rb +85 -0
  26. data/lib/polisher/cli/bin/gem_mapper.rb +37 -0
  27. data/lib/polisher/cli/bin/gems2update.rb +86 -0
  28. data/lib/polisher/cli/bin/missing_deps.rb +35 -0
  29. data/lib/polisher/cli/conf.rb +18 -0
  30. data/lib/polisher/cli/default.rb +25 -0
  31. data/lib/polisher/cli/format.rb +130 -0
  32. data/lib/polisher/cli/sources.rb +106 -0
  33. data/lib/polisher/cli/specifier.rb +30 -0
  34. data/lib/polisher/cli/status.rb +50 -0
  35. data/lib/polisher/cli/targets.rb +88 -0
  36. data/lib/polisher/gem.rb +41 -338
  37. data/lib/polisher/gem/attributes.rb +20 -0
  38. data/lib/polisher/gem/dependencies.rb +63 -0
  39. data/lib/polisher/gem/diff.rb +39 -0
  40. data/lib/polisher/gem/files.rb +111 -0
  41. data/lib/polisher/gem/parser.rb +85 -0
  42. data/lib/polisher/gem/retriever.rb +137 -0
  43. data/lib/polisher/{gem_state.rb → gem/state.rb} +6 -6
  44. data/lib/polisher/gem/versions.rb +131 -0
  45. data/lib/polisher/gemfile.rb +20 -89
  46. data/lib/polisher/gemfile/attributes.rb +19 -0
  47. data/lib/polisher/gemfile/deps.rb +43 -0
  48. data/lib/polisher/gemfile/parser.rb +45 -0
  49. data/lib/polisher/git/pkg.rb +33 -238
  50. data/lib/polisher/git/pkg/attributes.rb +60 -0
  51. data/lib/polisher/git/pkg/builder.rb +47 -0
  52. data/lib/polisher/git/pkg/repo.rb +82 -0
  53. data/lib/polisher/git/pkg/updater.rb +53 -0
  54. data/lib/polisher/git/pkg/versions.rb +40 -0
  55. data/lib/polisher/git/project.rb +1 -1
  56. data/lib/polisher/git/repo.rb +79 -76
  57. data/lib/polisher/{vendor.rb → mixins/vendored_deps.rb} +4 -7
  58. data/lib/polisher/mixins/versioned_dependencies.rb +86 -0
  59. data/lib/polisher/record.rb +2 -0
  60. data/lib/polisher/rpm.rb +23 -0
  61. data/lib/polisher/rpm/patch.rb +10 -8
  62. data/lib/polisher/rpm/requirement.rb +33 -189
  63. data/lib/polisher/rpm/requirement/attributes.rb +43 -0
  64. data/lib/polisher/rpm/requirement/comparison.rb +97 -0
  65. data/lib/polisher/rpm/requirement/gem_reference.rb +46 -0
  66. data/lib/polisher/rpm/requirement/parser.rb +41 -0
  67. data/lib/polisher/rpm/spec.rb +97 -436
  68. data/lib/polisher/rpm/spec/check.rb +14 -0
  69. data/lib/polisher/rpm/spec/comparison.rb +64 -0
  70. data/lib/polisher/rpm/spec/files.rb +15 -0
  71. data/lib/polisher/rpm/spec/gem_files.rb +65 -0
  72. data/lib/polisher/rpm/spec/gem_reference.rb +59 -0
  73. data/lib/polisher/rpm/spec/gem_requirements.rb +73 -0
  74. data/lib/polisher/rpm/spec/parser.rb +106 -0
  75. data/lib/polisher/rpm/spec/requirements.rb +31 -0
  76. data/lib/polisher/rpm/spec/subpackages.rb +23 -0
  77. data/lib/polisher/rpm/spec/updater.rb +268 -0
  78. data/lib/polisher/specifier.rb +13 -0
  79. data/lib/polisher/targets.rb +36 -0
  80. data/lib/polisher/{apt.rb → targets/apt.rb} +1 -1
  81. data/lib/polisher/targets/bodhi.rb +43 -0
  82. data/lib/polisher/{bugzilla.rb → targets/bugzilla.rb} +1 -1
  83. data/lib/polisher/targets/errata.rb +55 -0
  84. data/lib/polisher/targets/errata/build.rb +24 -0
  85. data/lib/polisher/targets/fedora.rb +47 -0
  86. data/lib/polisher/targets/koji.rb +39 -0
  87. data/lib/polisher/targets/koji/builder.rb +38 -0
  88. data/lib/polisher/targets/koji/diff.rb +39 -0
  89. data/lib/polisher/targets/koji/rpc.rb +43 -0
  90. data/lib/polisher/targets/koji/versions.rb +67 -0
  91. data/lib/polisher/targets/rhn.rb +12 -0
  92. data/lib/polisher/targets/yum.rb +36 -0
  93. data/lib/polisher/{component.rb → util/component.rb} +3 -3
  94. data/lib/polisher/util/conf_helpers.rb +77 -0
  95. data/lib/polisher/util/config.rb +45 -0
  96. data/lib/polisher/util/core_ext.rb +59 -0
  97. data/lib/polisher/{error.rb → util/error.rb} +0 -0
  98. data/lib/polisher/{gem_cache.rb → util/gem_cache.rb} +1 -1
  99. data/lib/polisher/{git_cache.rb → util/git_cache.rb} +0 -0
  100. data/lib/polisher/{logger.rb → util/logger.rb} +2 -0
  101. data/lib/polisher/{tag_mapper.rb → util/tag_mapper.rb} +1 -1
  102. data/lib/polisher/version.rb +1 -1
  103. data/spec/{upstream_spec.rb → adaptors/upstream_spec.rb} +1 -1
  104. data/spec/{version_checker_spec.rb → adaptors/version_checker_spec.rb} +1 -6
  105. data/spec/data/activesupport-4.1.4.gem +0 -0
  106. data/spec/data/rubygem-activesupport-with-doc.spec +247 -0
  107. data/spec/data/rubygem-activesupport-without-requires.spec +232 -0
  108. data/spec/data/rubygem-activesupport.spec +0 -122
  109. data/spec/fixtures/gem_json.rb +49 -0
  110. data/spec/fixtures/gem_spec.rb +13 -0
  111. data/spec/fixtures/gemfile.rb +10 -0
  112. data/spec/fixtures/local_gem.rb +62 -0
  113. data/spec/fixtures/rpm_spec.rb +91 -0
  114. data/spec/gem/attributes_spec.rb +17 -0
  115. data/spec/gem/diff_spec.rb +80 -0
  116. data/spec/gem/files_spec.rb +171 -0
  117. data/spec/gem/parser_spec.rb +44 -0
  118. data/spec/gem/retriever_spec.rb +124 -0
  119. data/spec/gem/state_spec.rb +79 -0
  120. data/spec/gem/versions_spec.rb +148 -0
  121. data/spec/gem_spec.rb +5 -347
  122. data/spec/gemfile/deps_spec.rb +20 -0
  123. data/spec/gemfile/parser_spec.rb +26 -0
  124. data/spec/gemfile_spec.rb +0 -34
  125. data/spec/git/pkg/attributes_spec.rb +128 -0
  126. data/spec/git/pkg/builder_spec.rb +63 -0
  127. data/spec/git/pkg/repo_spec.rb +146 -0
  128. data/spec/git/pkg/updater_spec.rb +86 -0
  129. data/spec/git/pkg/versions_spec.rb +42 -0
  130. data/spec/git/pkg_spec.rb +21 -0
  131. data/spec/git/project_spec.rb +21 -0
  132. data/spec/git/repo_spec.rb +160 -0
  133. data/spec/{vendor_spec.rb → mixins/vendored_deps_spec.rb} +2 -4
  134. data/spec/mixins/versioned_dependencies_spec.rb +48 -0
  135. data/spec/rpm/patch_spec.rb +48 -0
  136. data/spec/rpm/requirement/attributes_spec.rb +34 -0
  137. data/spec/rpm/requirement/comparison_spec.rb +286 -0
  138. data/spec/rpm/requirement/gem_spec.rb +49 -0
  139. data/spec/rpm/requirement/parser_spec.rb +31 -0
  140. data/spec/rpm/requirement_spec.rb +8 -334
  141. data/spec/rpm/spec/check_spec.rb +25 -0
  142. data/spec/rpm/spec/comparison_spec.rb +55 -0
  143. data/spec/rpm/spec/files_spec.rb +17 -0
  144. data/spec/rpm/spec/gem_files_spec.rb +112 -0
  145. data/spec/rpm/spec/gem_reference_spec.rb +99 -0
  146. data/spec/rpm/spec/gem_requirement_spec.rb +38 -0
  147. data/spec/rpm/spec/parser_spec.rb +64 -0
  148. data/spec/rpm/spec/requirements_spec.rb +10 -0
  149. data/spec/rpm/spec/subpackages_spec.rb +38 -0
  150. data/spec/rpm/spec/updater_spec.rb +486 -0
  151. data/spec/rpm/spec_spec.rb +27 -174
  152. data/spec/spec_helper.rb +7 -107
  153. data/spec/support/coveralls.rb +10 -0
  154. data/spec/support/fixtures.rb +8 -0
  155. data/spec/support/paths.rb +20 -0
  156. data/spec/support/rspec.rb +20 -0
  157. data/spec/support/vcr.rb +11 -0
  158. data/spec/{bodhi_spec.rb → targets/bodhi_spec.rb} +3 -1
  159. data/spec/{errata_spec.rb → targets/errata_spec.rb} +2 -2
  160. data/spec/{fedora_spec.rb → targets/fedora_spec.rb} +3 -3
  161. data/spec/targets/koji/builder_spec.rb +48 -0
  162. data/spec/targets/koji/diff_spec.rb +36 -0
  163. data/spec/targets/koji/rpc_spec.rb +28 -0
  164. data/spec/{koji_spec.rb → targets/koji/versions_spec.rb} +1 -59
  165. data/spec/targets/koji_spec.rb +11 -0
  166. data/spec/{yum_spec.rb → targets/yum_spec.rb} +1 -1
  167. data/spec/{component_spec.rb → util/component_spec.rb} +1 -1
  168. data/spec/{core_spec.rb → util/core_ext_spec.rb} +2 -3
  169. metadata +278 -88
  170. data/lib/polisher/bodhi.rb +0 -23
  171. data/lib/polisher/config.rb +0 -32
  172. data/lib/polisher/core.rb +0 -101
  173. data/lib/polisher/errata.rb +0 -75
  174. data/lib/polisher/fedora.rb +0 -46
  175. data/lib/polisher/git.rb +0 -8
  176. data/lib/polisher/koji.rb +0 -159
  177. data/lib/polisher/rhn.rb +0 -15
  178. data/lib/polisher/version_checker.rb +0 -177
  179. data/lib/polisher/yum.rb +0 -37
  180. data/spec/git_spec.rb +0 -445
@@ -0,0 +1,59 @@
1
+ # Polisher Core Ruby Extensions
2
+ #
3
+ # Licensed under the MIT license
4
+ # Copyright (C) 2013-2014 Red Hat, Inc.
5
+
6
+ class String
7
+ # Return bool indicating if self is a path to a gem
8
+ def gem?
9
+ File.extname(self) == ".gem"
10
+ end
11
+
12
+ # Return bool indicating if self is a path to a gemspec
13
+ def gemspec?
14
+ File.extname(self) == ".gemspec"
15
+ end
16
+
17
+ # Return bool indicating if self is a path to a Gemfile
18
+ def gemfile?
19
+ File.basename(self) == "Gemfile"
20
+ end
21
+
22
+ # Remove and replace all occurances of rpm macros in self with non-rpm
23
+ # macro correspondents. If no rpm macro is specified macro will
24
+ # simply be removed
25
+ def unrpmize
26
+ require 'polisher/rpm/spec'
27
+ matchers = Polisher::RPM::Spec::FILE_MACRO_MATCHERS
28
+ replacements = Polisher::RPM::Spec::FILE_MACRO_REPLACEMENTS
29
+ f = matchers.inject(self) { |file, matcher| file.gsub(matcher, '') }
30
+ f = replacements.keys.inject(f) { |file, r| file.gsub(Regexp.new(r), replacements[r]) }
31
+ f
32
+ end
33
+
34
+ # Replace all occurrances of non-rpm macro strings in self with
35
+ # their macro correspondences and add %doc macro or lib's bin path
36
+ # if necessary
37
+ def rpmize
38
+ require 'polisher/gem'
39
+ require 'polisher/rpm/spec'
40
+ matchers = Polisher::RPM::Spec::FILE_MACRO_MATCHERS
41
+ replacements = Polisher::RPM::Spec::FILE_MACRO_REPLACEMENTS.invert
42
+ f = replacements.keys.inject(self) { |file, r| file.gsub(r, replacements[r]) }
43
+
44
+ special = (matchers + replacements.values).any? { |matcher| f =~ /^#{matcher}.*/ }
45
+ f = special ? f : "%{gem_instdir}/#{f}"
46
+
47
+ include_lib_bin = (f =~ /\A%{_bindir}.*/)
48
+ f = include_lib_bin ? "#{f}\n%{gem_instdir}/#{self}" : f
49
+
50
+ doc_file = Polisher::Gem.doc_file?(self) || Polisher::Gem.license_file?(self)
51
+ mark_as_doc = doc_file && !(self =~ /%doc .*/)
52
+ f = mark_as_doc ? "%doc #{f}" : f
53
+ f
54
+ end
55
+
56
+ def to_polisher_class
57
+ "Polisher::#{self}".constantize
58
+ end
59
+ end
File without changes
@@ -23,7 +23,7 @@ module Polisher
23
23
 
24
24
  def self.get(name, version)
25
25
  path = path_for(name, version)
26
- File.exists?(path) ? File.read(path) : nil
26
+ File.exist?(path) ? File.read(path) : nil
27
27
  end
28
28
 
29
29
  def self.set(name, version, gem)
@@ -3,6 +3,8 @@
3
3
  # Licensed under the MIT license
4
4
  # Copyright (C) 2014 Red Hat, Inc.
5
5
 
6
+ require 'logger'
7
+
6
8
  module Polisher
7
9
  module Logging
8
10
  # This is the magical bit that gets mixed into your classes
@@ -4,7 +4,7 @@
4
4
  # Licensed under the MIT license
5
5
  # Copyright (C) 2013-2014 Red Hat, Inc.
6
6
 
7
- require 'polisher/core'
7
+ require 'polisher/util/conf_helpers'
8
8
 
9
9
  module Polisher
10
10
  class TagMapper
@@ -1,3 +1,3 @@
1
1
  module Polisher
2
- VERSION = "0.10.2"
2
+ VERSION = "0.11.1"
3
3
  end
@@ -3,7 +3,7 @@
3
3
  # Licensed under the MIT license
4
4
  # Copyright (C) 2013-2014 Red Hat, Inc.
5
5
 
6
- require 'polisher/upstream'
6
+ require 'polisher/adaptors/upstream'
7
7
 
8
8
  module Polisher
9
9
  describe Upstream do
@@ -3,7 +3,7 @@
3
3
  # Licensed under the MIT license
4
4
  # Copyright (C) 2013-2014 Red Hat, Inc.
5
5
 
6
- require 'polisher/version_checker'
6
+ require 'polisher/adaptors/version_checker'
7
7
 
8
8
  module Polisher
9
9
  describe VersionChecker do
@@ -89,9 +89,4 @@ module Polisher
89
89
  it "retrieves most relevant version of package in configured targets"
90
90
  end
91
91
  end # describe VersionChecker
92
-
93
- describe VersionedDependencies do
94
- it "retrieves versions of each dependency in configured targets"
95
- it "invokes block with targets / versions"
96
- end # described VersionedDependencies
97
92
  end # module Polisher
@@ -0,0 +1,247 @@
1
+ %global gem_name activesupport
2
+
3
+ Summary: Support and utility classes used by the Rails framework
4
+ Name: rubygem-%{gem_name}
5
+ Epoch: 1
6
+ Version: 4.0.0
7
+ Release: 1%{?dist}
8
+ Group: Development/Languages
9
+ License: MIT
10
+ URL: http://www.rubyonrails.org
11
+
12
+ Source0: http://rubygems.org/downloads/activesupport-%{version}.gem
13
+
14
+ # Also the activesupport gem doesn't ship with the test suite like the other
15
+ # Rails rpms, you may check it out like so
16
+ # git clone http://github.com/rails/rails.git
17
+ # cd rails/activesupport/
18
+ # git checkout v4.0.0
19
+ # tar czvf activesupport-4.0.0-tests.tgz test/
20
+ Source2: activesupport-%{version}-tests.tgz
21
+
22
+ # Removes code which breaks the test suite due to a
23
+ # dependency on a file in the greater rails proj
24
+ Patch1: activesupport-tests-fix.patch
25
+
26
+ # We need to add the bigdecimal dependency to gemspec, otherwise it won't be
27
+ # loaded. The reason for this is unbundling it from ruby libdir and moving
28
+ # it under %%{gem_dir} (therefore if not in Gemfile, it won't be found).
29
+ Patch4: activesupport-add-bigdecimal-dependency.patch
30
+
31
+ Requires: ruby(rubygems)
32
+ Requires: ruby(release)
33
+ # Let's keep Requires and BuildRequires sorted alphabeticaly
34
+ Requires: rubygem(bigdecimal)
35
+ Requires: rubygem(dalli)
36
+ Requires: rubygem(i18n) >= 0.6
37
+ Requires: rubygem(i18n) < 1.0
38
+ Requires: rubygem(minitest) >= 4.2
39
+ Requires: rubygem(minitest) < 5
40
+ Requires: rubygem(multi_json) >= 1.0
41
+ Requires: rubygem(multi_json) < 2
42
+ Requires: rubygem(rack)
43
+ Requires: rubygem(thread_safe)
44
+ Requires: rubygem(tzinfo) >= 0.3.37
45
+ Requires: rubygem(tzinfo) < 0.4.0
46
+ BuildRequires: rubygems-devel
47
+ BuildRequires: rubygem(bigdecimal)
48
+ BuildRequires: rubygem(builder)
49
+ BuildRequires: rubygem(dalli)
50
+ BuildRequires: rubygem(i18n) >= 0.6
51
+ BuildRequires: rubygem(i18n) < 1.0
52
+ BuildRequires: rubygem(minitest)
53
+ BuildRequires: rubygem(mocha)
54
+ BuildRequires: rubygem(multi_json) >= 1.0
55
+ BuildRequires: rubygem(multi_json) < 2
56
+ BuildRequires: rubygem(rack)
57
+ BuildRequires: rubygem(thread_safe)
58
+ BuildRequires: rubygem(tzinfo) >= 0.3.37
59
+ BuildRequires: rubygem(tzinfo) < 0.4.0
60
+ BuildArch: noarch
61
+ Provides: rubygem(%{gem_name}) = %{version}
62
+
63
+ %description
64
+ Utility library which carries commonly used classes and
65
+ goodies from the Rails framework
66
+
67
+ %package doc
68
+ Requires: rubygem(foo)
69
+ BuildRequires: rubygem(bar)
70
+
71
+ %description
72
+ Documentation for activesupport.
73
+
74
+ %prep
75
+ %setup -q -c -T
76
+ %gem_install -n %{SOURCE0}
77
+
78
+ # move the tests into place
79
+ tar xzvf %{SOURCE2} -C .%{gem_instdir}
80
+
81
+
82
+ pushd .%{gem_instdir}
83
+ %patch1 -p0
84
+ popd
85
+
86
+ pushd .%{gem_dir}
87
+ #%%patch4 -p1
88
+ popd
89
+
90
+ %build
91
+
92
+ %install
93
+ rm -rf %{buildroot}
94
+ mkdir -p %{buildroot}%{gem_dir}
95
+ cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
96
+
97
+ %check
98
+ pushd %{buildroot}%{gem_instdir}
99
+
100
+ ruby -Ilib:test -e "Dir.glob('./test/**/*_test.rb').each {|t| require t}"
101
+ popd
102
+
103
+ %files
104
+ %dir %{gem_instdir}
105
+ %doc %{gem_instdir}/CHANGELOG.md
106
+ %{gem_libdir}
107
+ %doc %{gem_instdir}/MIT-LICENSE
108
+ %doc %{gem_instdir}/README.rdoc
109
+ %{gem_cache}
110
+ %{gem_spec}
111
+
112
+ %files doc
113
+ %doc %{gem_docdir}
114
+ %{gem_instdir}/test
115
+
116
+
117
+ %changelog
118
+ * Fri Aug 09 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.0-2
119
+ - Fix: add minitest to requires
120
+
121
+ * Tue Jul 30 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.0-1
122
+ - Update to ActiveSupport 4.0.0.
123
+
124
+ * Tue Mar 19 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.13-1
125
+ - Update to ActiveSupport 3.2.13.
126
+
127
+ * Fri Mar 01 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.12-2
128
+ - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
129
+
130
+ * Tue Feb 12 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.12-1
131
+ - Update to ActiveSupport 3.2.12.
132
+
133
+ * Wed Jan 09 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.11-1
134
+ - Update to ActiveSupport 3.2.11.
135
+
136
+ * Thu Jan 03 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.10-1
137
+ - Update to ActiveSupport 3.2.10.
138
+
139
+ * Mon Aug 13 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.2.8-1
140
+ - Update to ActiveSupport 3.2.8.
141
+
142
+ * Mon Jul 30 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.2.7-1
143
+ - Update to ActiveSupport 3.2.7.
144
+
145
+ * Wed Jul 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.2.6-1
146
+ - Update to ActiveSupport 3.2.6.
147
+ - Removed unneeded BuildRoot tag.
148
+ - Tests no longer fail with newer versions of Mocha, remove workaround.
149
+
150
+ * Fri Jun 15 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.0.15-1
151
+ - Update to ActiveSupport 3.0.15.
152
+
153
+ * Fri Jun 01 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.0.13-1
154
+ - Update to ActiveSupport 3.0.13.
155
+
156
+ * Wed Apr 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-5
157
+ - Add the bigdecimal dependency to gemspec.
158
+
159
+ * Fri Mar 16 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-4
160
+ - The CVE patch name now contains the CVE id.
161
+
162
+ * Mon Mar 05 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-3
163
+ - Patch for CVE-2012-1098
164
+
165
+ * Tue Jan 24 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-1
166
+ - Rebuilt for Ruby 1.9.3.
167
+ - Update to ActiveSupport 3.0.11.
168
+
169
+ * Mon Aug 22 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.10-1
170
+ - Update to ActiveSupport 3.0.10
171
+
172
+ * Fri Jul 01 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.9-1
173
+ - Update to ActiveSupport 3.0.9
174
+ - Changed %%define into %%global
175
+ - Removed unnecessary %%clean section
176
+
177
+ * Thu Jun 16 2011 Mo Morsi <mmorsi@redhat.com> - 1:3.0.5-3
178
+ - Reverting accidental change adding a few gem flags
179
+
180
+ * Thu Jun 16 2011 Mo Morsi <mmorsi@redhat.com> - 1:3.0.5-2
181
+ - Include fix for CVE-2011-2197
182
+
183
+ * Thu Mar 24 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.5-1
184
+ - Update to ActiveSupport 3.0.5
185
+ - Remove Rake dependnecy
186
+
187
+ * Mon Feb 14 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-4
188
+ - fix bad dates in the spec changelog
189
+
190
+ * Thu Feb 10 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-3
191
+ - include i18n runtime dependency
192
+
193
+ * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.3-2
194
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
195
+
196
+ * Mon Jan 10 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-1
197
+ - update to rails 3
198
+
199
+ * Wed Aug 25 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-2
200
+ - bumped version
201
+
202
+ * Wed Aug 04 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-1
203
+ - Update to 2.3.8
204
+ - Added check section with rubygem-mocha dependency
205
+ - Added upsteam Rakefile and test suite to run tests
206
+
207
+ * Thu Jan 28 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1:2.3.5-1
208
+ - Update to 2.3.5
209
+
210
+ * Wed Oct 7 2009 David Lutterkort <lutter@redhat.com> - 1:2.3.4-2
211
+ - Bump Epoch to ensure upgrade path from F-11
212
+
213
+ * Mon Sep 7 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.3.4-1
214
+ - Update to 2.3.4 (bug 520843, CVE-2009-3009)
215
+
216
+ * Sun Jul 26 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 2.3.3-1
217
+ - New upstream version
218
+
219
+ * Mon Mar 16 2009 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 2.3.2-1
220
+ - New upstream version
221
+
222
+ * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-2
223
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
224
+
225
+ * Mon Nov 24 2008 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 2.2.2-1
226
+ - New upstream version
227
+
228
+ * Tue Sep 16 2008 David Lutterkort <dlutter@redhat.com> - 2.1.1-1
229
+ - New version (fixes CVE-2008-4094)
230
+
231
+ * Thu Jul 31 2008 Michael Stahnke <stahnma@fedoraproject.org> - 2.1.0-1
232
+ - New Upstream
233
+
234
+ * Mon Apr 07 2008 David Lutterkort <dlutter@redhat.com> - 2.0.2-1
235
+ - New version
236
+
237
+ * Mon Dec 10 2007 David Lutterkort <dlutter@redhat.com> - 2.0.1-1
238
+ - New version
239
+
240
+ * Wed Nov 28 2007 David Lutterkort <dlutter@redhat.com> - 1.4.4-3
241
+ - Fix buildroot
242
+
243
+ * Tue Nov 13 2007 David Lutterkort <dlutter@redhat.com> - 1.4.4-2
244
+ - Install README and CHANGELOG in _docdir
245
+
246
+ * Tue Oct 30 2007 David Lutterkort <dlutter@redhat.com> - 1.4.4-1
247
+ - Initial package
@@ -0,0 +1,232 @@
1
+ %global gem_name activesupport
2
+
3
+ Summary: Support and utility classes used by the Rails framework
4
+ Name: rubygem-%{gem_name}
5
+ Epoch: 1
6
+ Version: 4.0.0
7
+ Release: 1%{?dist}
8
+ Group: Development/Languages
9
+ License: MIT
10
+ URL: http://www.rubyonrails.org
11
+
12
+ Source0: http://rubygems.org/downloads/activesupport-%{version}.gem
13
+
14
+ # Also the activesupport gem doesn't ship with the test suite like the other
15
+ # Rails rpms, you may check it out like so
16
+ # git clone http://github.com/rails/rails.git
17
+ # cd rails/activesupport/
18
+ # git checkout v4.0.0
19
+ # tar czvf activesupport-4.0.0-tests.tgz test/
20
+ Source2: activesupport-%{version}-tests.tgz
21
+
22
+ # Removes code which breaks the test suite due to a
23
+ # dependency on a file in the greater rails proj
24
+ Patch1: activesupport-tests-fix.patch
25
+
26
+ # We need to add the bigdecimal dependency to gemspec, otherwise it won't be
27
+ # loaded. The reason for this is unbundling it from ruby libdir and moving
28
+ # it under %%{gem_dir} (therefore if not in Gemfile, it won't be found).
29
+ Patch4: activesupport-add-bigdecimal-dependency.patch
30
+
31
+ BuildRequires: rubygems-devel
32
+ BuildRequires: rubygem(bigdecimal)
33
+ BuildRequires: rubygem(builder)
34
+ BuildRequires: rubygem(dalli)
35
+ BuildRequires: rubygem(i18n) >= 0.6
36
+ BuildRequires: rubygem(i18n) < 1.0
37
+ BuildRequires: rubygem(minitest)
38
+ BuildRequires: rubygem(mocha)
39
+ BuildRequires: rubygem(multi_json) >= 1.0
40
+ BuildRequires: rubygem(multi_json) < 2
41
+ BuildRequires: rubygem(rack)
42
+ BuildRequires: rubygem(thread_safe)
43
+ BuildRequires: rubygem(tzinfo) >= 0.3.37
44
+ BuildRequires: rubygem(tzinfo) < 0.4.0
45
+ BuildArch: noarch
46
+ Provides: rubygem(%{gem_name}) = %{version}
47
+
48
+ %description
49
+ Utility library which carries commonly used classes and
50
+ goodies from the Rails framework
51
+
52
+ %package doc
53
+ Requires: rubygem(foo)
54
+ BuildRequires: rubygem(bar)
55
+
56
+ %description
57
+ Documentation for activesupport.
58
+
59
+ %prep
60
+ %setup -q -c -T
61
+ %gem_install -n %{SOURCE0}
62
+
63
+ # move the tests into place
64
+ tar xzvf %{SOURCE2} -C .%{gem_instdir}
65
+
66
+
67
+ pushd .%{gem_instdir}
68
+ %patch1 -p0
69
+ popd
70
+
71
+ pushd .%{gem_dir}
72
+ #%%patch4 -p1
73
+ popd
74
+
75
+ %build
76
+
77
+ %install
78
+ rm -rf %{buildroot}
79
+ mkdir -p %{buildroot}%{gem_dir}
80
+ cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
81
+
82
+ %check
83
+ pushd %{buildroot}%{gem_instdir}
84
+
85
+ ruby -Ilib:test -e "Dir.glob('./test/**/*_test.rb').each {|t| require t}"
86
+ popd
87
+
88
+ %files
89
+ %dir %{gem_instdir}
90
+ %doc %{gem_instdir}/CHANGELOG.md
91
+ %{gem_libdir}
92
+ %doc %{gem_instdir}/MIT-LICENSE
93
+ %doc %{gem_instdir}/README.rdoc
94
+ %{gem_cache}
95
+ %{gem_spec}
96
+
97
+ %files doc
98
+ %doc %{gem_docdir}
99
+ %{gem_instdir}/test
100
+
101
+
102
+ %changelog
103
+ * Fri Aug 09 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.0-2
104
+ - Fix: add minitest to requires
105
+
106
+ * Tue Jul 30 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.0-1
107
+ - Update to ActiveSupport 4.0.0.
108
+
109
+ * Tue Mar 19 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.13-1
110
+ - Update to ActiveSupport 3.2.13.
111
+
112
+ * Fri Mar 01 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.12-2
113
+ - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
114
+
115
+ * Tue Feb 12 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.12-1
116
+ - Update to ActiveSupport 3.2.12.
117
+
118
+ * Wed Jan 09 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.11-1
119
+ - Update to ActiveSupport 3.2.11.
120
+
121
+ * Thu Jan 03 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.10-1
122
+ - Update to ActiveSupport 3.2.10.
123
+
124
+ * Mon Aug 13 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.2.8-1
125
+ - Update to ActiveSupport 3.2.8.
126
+
127
+ * Mon Jul 30 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.2.7-1
128
+ - Update to ActiveSupport 3.2.7.
129
+
130
+ * Wed Jul 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.2.6-1
131
+ - Update to ActiveSupport 3.2.6.
132
+ - Removed unneeded BuildRoot tag.
133
+ - Tests no longer fail with newer versions of Mocha, remove workaround.
134
+
135
+ * Fri Jun 15 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.0.15-1
136
+ - Update to ActiveSupport 3.0.15.
137
+
138
+ * Fri Jun 01 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.0.13-1
139
+ - Update to ActiveSupport 3.0.13.
140
+
141
+ * Wed Apr 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-5
142
+ - Add the bigdecimal dependency to gemspec.
143
+
144
+ * Fri Mar 16 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-4
145
+ - The CVE patch name now contains the CVE id.
146
+
147
+ * Mon Mar 05 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-3
148
+ - Patch for CVE-2012-1098
149
+
150
+ * Tue Jan 24 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-1
151
+ - Rebuilt for Ruby 1.9.3.
152
+ - Update to ActiveSupport 3.0.11.
153
+
154
+ * Mon Aug 22 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.10-1
155
+ - Update to ActiveSupport 3.0.10
156
+
157
+ * Fri Jul 01 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.9-1
158
+ - Update to ActiveSupport 3.0.9
159
+ - Changed %%define into %%global
160
+ - Removed unnecessary %%clean section
161
+
162
+ * Thu Jun 16 2011 Mo Morsi <mmorsi@redhat.com> - 1:3.0.5-3
163
+ - Reverting accidental change adding a few gem flags
164
+
165
+ * Thu Jun 16 2011 Mo Morsi <mmorsi@redhat.com> - 1:3.0.5-2
166
+ - Include fix for CVE-2011-2197
167
+
168
+ * Thu Mar 24 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.5-1
169
+ - Update to ActiveSupport 3.0.5
170
+ - Remove Rake dependnecy
171
+
172
+ * Mon Feb 14 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-4
173
+ - fix bad dates in the spec changelog
174
+
175
+ * Thu Feb 10 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-3
176
+ - include i18n runtime dependency
177
+
178
+ * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.3-2
179
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
180
+
181
+ * Mon Jan 10 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-1
182
+ - update to rails 3
183
+
184
+ * Wed Aug 25 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-2
185
+ - bumped version
186
+
187
+ * Wed Aug 04 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-1
188
+ - Update to 2.3.8
189
+ - Added check section with rubygem-mocha dependency
190
+ - Added upsteam Rakefile and test suite to run tests
191
+
192
+ * Thu Jan 28 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1:2.3.5-1
193
+ - Update to 2.3.5
194
+
195
+ * Wed Oct 7 2009 David Lutterkort <lutter@redhat.com> - 1:2.3.4-2
196
+ - Bump Epoch to ensure upgrade path from F-11
197
+
198
+ * Mon Sep 7 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.3.4-1
199
+ - Update to 2.3.4 (bug 520843, CVE-2009-3009)
200
+
201
+ * Sun Jul 26 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 2.3.3-1
202
+ - New upstream version
203
+
204
+ * Mon Mar 16 2009 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 2.3.2-1
205
+ - New upstream version
206
+
207
+ * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-2
208
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
209
+
210
+ * Mon Nov 24 2008 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 2.2.2-1
211
+ - New upstream version
212
+
213
+ * Tue Sep 16 2008 David Lutterkort <dlutter@redhat.com> - 2.1.1-1
214
+ - New version (fixes CVE-2008-4094)
215
+
216
+ * Thu Jul 31 2008 Michael Stahnke <stahnma@fedoraproject.org> - 2.1.0-1
217
+ - New Upstream
218
+
219
+ * Mon Apr 07 2008 David Lutterkort <dlutter@redhat.com> - 2.0.2-1
220
+ - New version
221
+
222
+ * Mon Dec 10 2007 David Lutterkort <dlutter@redhat.com> - 2.0.1-1
223
+ - New version
224
+
225
+ * Wed Nov 28 2007 David Lutterkort <dlutter@redhat.com> - 1.4.4-3
226
+ - Fix buildroot
227
+
228
+ * Tue Nov 13 2007 David Lutterkort <dlutter@redhat.com> - 1.4.4-2
229
+ - Install README and CHANGELOG in _docdir
230
+
231
+ * Tue Oct 30 2007 David Lutterkort <dlutter@redhat.com> - 1.4.4-1
232
+ - Initial package