summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2022-04-18 07:18:53 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2022-04-18 07:18:53 +0000
commitf13d4aa082328794919f77dbc340113e811a4985 (patch)
tree14595ce82b355d97aca66e6f9624f49d80b8ba2c
parent1b6ec6bd8723c03cfcbd4f482de4bf8602a90e1b (diff)
automatic import of rubygem-autoguidHEADmasterf36
-rw-r--r--.gitignore1
-rw-r--r--rubygem-autoguid.spec82
-rw-r--r--sources1
3 files changed, 84 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c58ed9f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/autoguid-1.1.gem
diff --git a/rubygem-autoguid.spec b/rubygem-autoguid.spec
new file mode 100644
index 0000000..a411248
--- /dev/null
+++ b/rubygem-autoguid.spec
@@ -0,0 +1,82 @@
+# Generated from autoguid-1.1.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name autoguid
+
+Name: rubygem-%{gem_name}
+Version: 1.1
+Release: 1%{?dist}
+Summary: Autoguid adds human readable uuids to your models
+License: MIT
+URL: http://hacktivism.cc
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+# BuildRequires: rubygem(rspec) >= 3.0.0
+# BuildRequires: rubygem(rspec) < 3.1
+# BuildRequires: rubygem(rspec) >= 3.0.0
+# BuildRequires: rubygem(sqlite3) >= 1.3.9
+# BuildRequires: rubygem(sqlite3) < 1.4
+# BuildRequires: rubygem(sqlite3) >= 1.3.9
+BuildArch: noarch
+
+%description
+Autoguid lets you trivially add human readable uuids to all
+your models, a whitelisted set of models, or a blacklisted set.
+Indices are automatically created based on a configuration option.
+There's also a rake task that will backfill these uuids into resources that
+have already been created.
+To get started, include the gem file, run `bundle install`, then run
+`rake autoguid:install`. From there, edit the config/initializers/autoguid.rb
+file to specifcy your configuration. Next, migrate your tables with
+`rake autoguid:migrate:up` and `rake autoguid:migrate:backfill` as required.
+`rake autoguid:migrate:drop_all` will drop all autoguid generated columns and
+the data in them. You can always change the config/initializers/autoguid.rb
+file
+and rerun `rake autoguid:migrate:up` to add autoguid to new models.
+
+
+%package doc
+Summary: Documentation for %{name}
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}.
+
+%prep
+%setup -q -n %{gem_name}-%{version}
+
+%build
+# Create the gem as gem install only works on a gem file
+gem build ../%{gem_name}-%{version}.gemspec
+
+# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
+# by default, so that we can move it into the buildroot in %%install
+%gem_install
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
+
+
+
+%check
+pushd .%{gem_instdir}
+# rspec spec
+popd
+
+%files
+%dir %{gem_instdir}
+%license %{gem_instdir}/MIT-LICENSE
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%{gem_instdir}/Rakefile
+
+%changelog
+* Mon Apr 18 2022 mockbuilder - 1.1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..1f4d8ff 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+670bfdd613a1698427c7cbb674763115 autoguid-1.1.gem