Skip to content
Browse files

Version now set in spec file.

  • Loading branch information...
1 parent d2cef96 commit a84252d7c62d20c707ef195247ee88311dd315ee @aantix committed Nov 24, 2010
Showing with 74 additions and 51 deletions.
  1. +15 −16 Gemfile.lock
  2. +5 −2 Rakefile
  3. +0 −1 VERSION
  4. +1 −1 generators/sex_it_up/sex_it_up_generator.rb
  5. +2 −2 lib/sex_it_up.rb
  6. +51 −29 sex_it_up.gemspec
View
31 Gemfile.lock
@@ -1,28 +1,27 @@
GEM
specs:
abstract (1.0.0)
- actionpack (3.0.1)
- activemodel (= 3.0.1)
- activesupport (= 3.0.1)
+ actionpack (3.0.3)
+ activemodel (= 3.0.3)
+ activesupport (= 3.0.3)
builder (~> 2.1.2)
erubis (~> 2.6.6)
- i18n (~> 0.4.1)
+ i18n (~> 0.4)
rack (~> 1.2.1)
- rack-mount (~> 0.6.12)
- rack-test (~> 0.5.4)
+ rack-mount (~> 0.6.13)
+ rack-test (~> 0.5.6)
tzinfo (~> 0.3.23)
- activemodel (3.0.1)
- activesupport (= 3.0.1)
+ activemodel (3.0.3)
+ activesupport (= 3.0.3)
builder (~> 2.1.2)
- i18n (~> 0.4.1)
- activerecord (3.0.1)
- activemodel (= 3.0.1)
- activesupport (= 3.0.1)
- arel (~> 1.0.0)
+ i18n (~> 0.4)
+ activerecord (3.0.3)
+ activemodel (= 3.0.3)
+ activesupport (= 3.0.3)
+ arel (~> 2.0.2)
tzinfo (~> 0.3.23)
- activesupport (3.0.1)
- arel (1.0.1)
- activesupport (~> 3.0.0)
+ activesupport (3.0.3)
+ arel (2.0.3)
builder (2.1.2)
diff-lcs (1.1.2)
erubis (2.6.6)
View
7 Rakefile
@@ -13,13 +13,16 @@ require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "sex_it_up"
gem.summary = %Q{Replace your boring place-holder images with beautiful public domain images of history's greatest artwork and sculptures.}
- gem.description = %Q{TODO: longer description of your gem}
+ gem.description = %Q{SexItUp allows for the easy drop-in of public domain images for site mockups and user avatars.}
gem.email = "jjones@aantix.com"
gem.homepage = "http://github.com/aantix/sex_it_up"
gem.authors = ["Jim Jones"]
+ gem.require_path = 'lib'
+ gem.version = "1.0.0"
gem.add_development_dependency "paperclip", ">= 2.3.5"
gem.add_development_dependency "mechanize", ">= 1.0.0"
gem.add_development_dependency "google-search", ">= 1.0.2"
+ gem.files = %w(MIT-LICENSE README.textile Rakefile init.rb) + Dir.glob("{generators,lib,spec}/**/*")
end
Jeweler::RubygemsDotOrgTasks.new
@@ -41,7 +44,7 @@ Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "test-gem #{version}"
+ rdoc.title = "sex_it_up #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
View
1 VERSION
@@ -1 +0,0 @@
-0.0.0
View
2 generators/sex_it_up/sex_it_up_generator.rb
@@ -1,4 +1,4 @@
-class SexItUpGenerator < Rails::Generator::Base
+class SexItUpGenerator < Rails::Generator::NameBase
def manifest
record do |m|
View
4 lib/sex_it_up.rb
@@ -13,7 +13,7 @@
module SexItUp
class SexItUpImage < ActiveRecord::Base
- RESULT_LIMIT = 3
+ RESULT_LIMIT = 10
scope :random, lambda {
max_id = connection.select_value("select max(id) from #{self.table_name}")
@@ -112,7 +112,7 @@ def sexy_image(term, opts = {:width => 100, :height => 100})
style_hash = {style_sym => [style]}
sexy_image.set_attachment_sizes(style_hash)
- sexy_image.image.reprocess! unless File.exist?(sexy_image.image.path(style_sym))
+ sexy_image.image.reprocess! unless File.exist?(sexy_image.image.path(style_sym)) # No need for reprocessing if size already exists
tag = "<img"
tag += " class=\"#{opts[:class]}\"" if opts[:class]
View
80 sex_it_up.gemspec
@@ -1,6 +1,6 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
+# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
@@ -9,65 +9,87 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Jim Jones"]
- s.date = %q{2010-11-13}
- s.description = %q{TODO: longer description of your gem}
+ s.date = %q{2010-11-24}
+ s.description = %q{SexItUp allows for the easy drop-in of public domain images for site mockups and user avatars.}
s.email = %q{jjones@aantix.com}
s.extra_rdoc_files = [
"LICENSE",
- "README.rdoc"
+ "README.rdoc"
]
s.files = [
- ".document",
- ".gitignore",
- ".idea/.rakeTasks",
- ".idea/encodings.xml",
- ".idea/misc.xml",
- ".idea/modules.xml",
- ".idea/sex_it_up.iml",
- ".idea/vcs.xml",
- ".idea/workspace.xml",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "generators/sex_it_up/sex_it_up_generator.rb",
- "generators/sex_it_up/templates/sex_it_up_migration.rb.erb",
- "lib/sex_it_up.rb",
- "lib/tasks/sex_it_up.rb",
- "spec/sex_it_up_spec.rb",
- "spec/spec.opts",
- "spec/spec_helper.rb"
+ "Rakefile",
+ "generators/sex_it_up/sex_it_up_generator.rb",
+ "generators/sex_it_up/templates/sex_it_up_migration.rb.erb",
+ "lib/sex_it_up.rb",
+ "lib/tasks/sex_it_up.rb",
+ "spec/factories/Plato_and_Aristotle_in_The_School_of_Athens,_by_italian_Rafael.jpg",
+ "spec/factories/sex_it_up_image_factory.rb",
+ "spec/helpers/sex_it_up_helper.rb",
+ "spec/initializers/paperclip.rb",
+ "spec/schema.rb",
+ "spec/sex_it_up_spec.rb",
+ "spec/spec_helper.rb"
]
s.homepage = %q{http://github.com/aantix/sex_it_up}
- s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{Replace your boring place-holder images with beautiful public domain images of history's greatest artwork and sculptures.}
s.test_files = [
+ "spec/factories/sex_it_up_image_factory.rb",
+ "spec/helpers/sex_it_up_helper.rb",
+ "spec/initializers/paperclip.rb",
+ "spec/schema.rb",
"spec/sex_it_up_spec.rb",
- "spec/spec_helper.rb"
+ "spec/spec_helper.rb"
]
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<activerecord>, [">= 3.0.1"])
+ s.add_runtime_dependency(%q<actionpack>, [">= 3.0.1"])
+ s.add_runtime_dependency(%q<paperclip>, [">= 2.3.5"])
+ s.add_runtime_dependency(%q<mechanize>, [">= 1.0.0"])
+ s.add_runtime_dependency(%q<google-search>, [">= 1.0.2"])
+ s.add_development_dependency(%q<factory_girl>, ["= 1.3.2"])
+ s.add_development_dependency(%q<rspec-rails>, ["~> 2.1.0"])
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
+ s.add_development_dependency(%q<sqlite3-ruby>, ["~> 1.3.1"])
s.add_development_dependency(%q<paperclip>, [">= 2.3.5"])
s.add_development_dependency(%q<mechanize>, [">= 1.0.0"])
s.add_development_dependency(%q<google-search>, [">= 1.0.2"])
- s.add_development_dependency(%q<rspec>, ["= 1.3.0"])
else
+ s.add_dependency(%q<activerecord>, [">= 3.0.1"])
+ s.add_dependency(%q<actionpack>, [">= 3.0.1"])
+ s.add_dependency(%q<paperclip>, [">= 2.3.5"])
+ s.add_dependency(%q<mechanize>, [">= 1.0.0"])
+ s.add_dependency(%q<google-search>, [">= 1.0.2"])
+ s.add_dependency(%q<factory_girl>, ["= 1.3.2"])
+ s.add_dependency(%q<rspec-rails>, ["~> 2.1.0"])
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
+ s.add_dependency(%q<sqlite3-ruby>, ["~> 1.3.1"])
s.add_dependency(%q<paperclip>, [">= 2.3.5"])
s.add_dependency(%q<mechanize>, [">= 1.0.0"])
s.add_dependency(%q<google-search>, [">= 1.0.2"])
- s.add_dependency(%q<rspec>, ["= 1.3.0"])
end
else
+ s.add_dependency(%q<activerecord>, [">= 3.0.1"])
+ s.add_dependency(%q<actionpack>, [">= 3.0.1"])
+ s.add_dependency(%q<paperclip>, [">= 2.3.5"])
+ s.add_dependency(%q<mechanize>, [">= 1.0.0"])
+ s.add_dependency(%q<google-search>, [">= 1.0.2"])
+ s.add_dependency(%q<factory_girl>, ["= 1.3.2"])
+ s.add_dependency(%q<rspec-rails>, ["~> 2.1.0"])
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
+ s.add_dependency(%q<sqlite3-ruby>, ["~> 1.3.1"])
s.add_dependency(%q<paperclip>, [">= 2.3.5"])
s.add_dependency(%q<mechanize>, [">= 1.0.0"])
s.add_dependency(%q<google-search>, [">= 1.0.2"])
- s.add_dependency(%q<rspec>, ["= 1.3.0"])
end
end

0 comments on commit a84252d

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