Skip to content
Browse files

Created gemspec command to create gemspecs in future, regenerated gem…

…spec. Much nicer.
  • Loading branch information...
1 parent 6d58dec commit f08c18ef695f2017745be8dbe05beb16d821edc5 @parndt parndt committed
Showing with 99 additions and 13 deletions.
  1. +29 −0 lib/gemspec.rb
  2. +70 −13 refinerycms-inquiries.gemspec
View
29 lib/gemspec.rb
@@ -0,0 +1,29 @@
+#!/usr/bin/env ruby
+version = '0.9.8.5'
+raise "Could not get version so gemspec can not be built" if version.nil?
+files = Dir.glob("**/*").flatten.reject do |file|
+ file =~ /\.gem$/
+end
+
+gemspec = <<EOF
+Gem::Specification.new do |s|
+ s.name = %q{refinerycms-inquiries}
+ s.version = %q{#{version}}
+ s.date = %q{#{Time.now.strftime('%Y-%m-%d')}}
+ s.summary = %q{Inquiry handling functionality for the Refinery CMS project.}
+ s.description = %q{Inquiry handling functionality extracted from Refinery CMS to allow you to have a contact form and manage inquiries in the Refinery backend.}
+ s.homepage = %q{http://refinerycms.com}
+ s.email = %q{info@refinerycms.com}
+ s.authors = ["Resolve Digital"]
+ s.require_paths = %w(lib)
+
+ s.files = [
+ '#{files.join("',\n '")}'
+ ]
+ s.require_path = 'lib'
+
+ s.add_dependency('filters_spam', '~> 0.2')
+end
+EOF
+
+File.open(File.expand_path("../../refinerycms-inquiries.gemspec", __FILE__), 'w').puts(gemspec)
View
83 refinerycms-inquiries.gemspec
@@ -1,18 +1,75 @@
Gem::Specification.new do |s|
- s.platform = Gem::Platform::RUBY
- s.name = 'refinerycms-inquiries'
- s.version = '0.9.8.4'
- s.summary = 'Inquiry handling functionality for the Refinery CMS project.'
- s.required_ruby_version = '>= 1.8.7'
- s.description = "Inquiry handling functionality extracted from Refinery CMS to allow you to have a contact form and manage inquiries in the Refinery backend."
- s.homepage = "http://refinerycms.com"
- s.email = "info@refinerycms.com"
- s.authors = ["Resolve Digital"]
+ s.name = %q{refinerycms-inquiries}
+ s.version = %q{0.9.8.5}
+ s.date = %q{2010-09-07}
+ s.summary = %q{Inquiry handling functionality for the Refinery CMS project.}
+ s.description = %q{Inquiry handling functionality extracted from Refinery CMS to allow you to have a contact form and manage inquiries in the Refinery backend.}
+ s.homepage = %q{http://refinerycms.com}
+ s.email = %q{info@refinerycms.com}
+ s.authors = ["Resolve Digital"]
+ s.require_paths = %w(lib)
- s.files = Dir['app/**/*', 'config/**/*', 'readme.md', 'license.md', 'lib/**/*']
+ s.files = [
+ 'app',
+ 'app/controllers',
+ 'app/controllers/admin',
+ 'app/controllers/admin/inquiries_controller.rb',
+ 'app/controllers/admin/inquiry_settings_controller.rb',
+ 'app/controllers/inquiries_controller.rb',
+ 'app/helpers',
+ 'app/helpers/inquiries_helper.rb',
+ 'app/mailers',
+ 'app/mailers/inquiry_mailer.rb',
+ 'app/models',
+ 'app/models/inquiry.rb',
+ 'app/models/inquiry_setting.rb',
+ 'app/views',
+ 'app/views/admin',
+ 'app/views/admin/inquiries',
+ 'app/views/admin/inquiries/_inquiry.html.erb',
+ 'app/views/admin/inquiries/_submenu.html.erb',
+ 'app/views/admin/inquiries/index.html.erb',
+ 'app/views/admin/inquiries/show.html.erb',
+ 'app/views/admin/inquiries/spam.html.erb',
+ 'app/views/admin/inquiry_settings',
+ 'app/views/admin/inquiry_settings/_confirmation_email_form.html.erb',
+ 'app/views/admin/inquiry_settings/_notification_recipients_form.html.erb',
+ 'app/views/admin/inquiry_settings/edit.html.erb',
+ 'app/views/inquiries',
+ 'app/views/inquiries/new.html.erb',
+ 'app/views/inquiries/thank_you.html.erb',
+ 'app/views/inquiry_mailer',
+ 'app/views/inquiry_mailer/confirmation.html.erb',
+ 'app/views/inquiry_mailer/notification.html.erb',
+ 'config',
+ 'config/locales',
+ 'config/locales/da.yml',
+ 'config/locales/de.yml',
+ 'config/locales/en.yml',
+ 'config/locales/es.yml',
+ 'config/locales/fr.yml',
+ 'config/locales/it.yml',
+ 'config/locales/lv.yml',
+ 'config/locales/nb.yml',
+ 'config/locales/nl.yml',
+ 'config/locales/pt-BR.yml',
+ 'config/locales/ru.yml',
+ 'config/locales/sl.yml',
+ 'config/locales/zh-CN.yml',
+ 'config/routes.rb',
+ 'features',
+ 'features/create_inquiries.feature',
+ 'features/manage_inquiries.feature',
+ 'features/step_definitions',
+ 'features/step_definitions/inquiry_steps.rb',
+ 'lib',
+ 'lib/gemspec.rb',
+ 'lib/inquiries.rb',
+ 'license.md',
+ 'readme.md',
+ 'refinerycms-inquiries.gemspec'
+ ]
s.require_path = 'lib'
- s.has_rdoc = true
-
- s.add_dependency('filters_spam', '~> 0.1')
+ s.add_dependency('filters_spam', '~> 0.2')
end

0 comments on commit f08c18e

Please sign in to comment.
Something went wrong with that request. Please try again.