Fingertips-as_new-san 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/LICENSE +1 -1
  2. data/Rakefile +55 -0
  3. data/VERSION.yml +1 -1
  4. data/as_new-san.gemspec +30 -0
  5. data/rails/init.rb +1 -0
  6. metadata +12 -6
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright © 2008 Fingertips, Eloy Duran <eloy.de.enige@gmail.com>
1
+ Copyright © 2009 Fingertips, Eloy Duran <eloy.de.enige@gmail.com>
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Rakefile ADDED
@@ -0,0 +1,55 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |s|
7
+ s.name = "as_new-san"
8
+ s.homepage = "http://github.com/Fingertips/as_new-san"
9
+ s.email = "eloy.de.enige@gmail.com"
10
+ s.authors = ["Eloy Duran"]
11
+ s.summary = "A simple plugin which allows you to create records in the database, but treat them as if they were new records."
12
+ s.files = FileList['**/**'] # tmp until we've patched Jeweler to be able to easily add files to defaults
13
+ s.description = %{
14
+ The AsNewSan mixin makes it easier to create associations on a new Active
15
+ Record instance.
16
+
17
+ Use the as_new method to instantiate new empty objects that are immediately
18
+ saved to the database with a special flag marking them as new. Because new
19
+ instances are already stored in the database, you always have an id
20
+ available for creating associations. This means you can use the same views
21
+ and controller logic for new and edit actions which is especially helpful
22
+ when you are creating new associated objects using Ajax calls.
23
+ }
24
+ end
25
+
26
+ begin
27
+ require 'jewelry_portfolio/tasks'
28
+ JewelryPortfolio::Tasks.new do |p|
29
+ p.account = 'Fingertips'
30
+ end
31
+ rescue LoadError
32
+ puts "JewelryPortfolio not available. Install it with: sudo gem install Fingertips-jewelry_portfolio -s http://gems.github.com"
33
+ end
34
+
35
+ rescue LoadError
36
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
37
+ end
38
+
39
+ require 'rake/rdoctask'
40
+ Rake::RDocTask.new do |rdoc|
41
+ rdoc.rdoc_dir = 'rdoc'
42
+ rdoc.title = 'AsNewSan'
43
+ rdoc.options << '--line-numbers' << '--inline-source' << '--charset=utf-8'
44
+ rdoc.rdoc_files.include('README*', 'LICENSE')
45
+ rdoc.rdoc_files.include('lib/**/*.rb')
46
+ end
47
+
48
+ require 'rake/testtask'
49
+ Rake::TestTask.new(:test) do |test|
50
+ test.libs << 'lib' << 'test'
51
+ test.pattern = 'test/**/*_test.rb'
52
+ test.verbose = false
53
+ end
54
+
55
+ task :default => :test
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 0
4
+ :patch: 1
@@ -0,0 +1,30 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{as_new-san}
5
+ s.version = "0.1.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Eloy Duran"]
9
+ s.date = %q{2009-03-09}
10
+ s.description = %q{The AsNewSan mixin makes it easier to create associations on a new Active Record instance. Use the as_new method to instantiate new empty objects that are immediately saved to the database with a special flag marking them as new. Because new instances are already stored in the database, you always have an id available for creating associations. This means you can use the same views and controller logic for new and edit actions which is especially helpful when you are creating new associated objects using Ajax calls.}
11
+ s.email = %q{eloy.de.enige@gmail.com}
12
+ s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
13
+ s.files = ["as_new-san.gemspec", "lib", "lib/as_new_san.rb", "LICENSE", "rails", "rails/init.rb", "Rakefile", "README.rdoc", "test", "test/as_new_san_test.rb", "test/test_helper.rb", "VERSION.yml"]
14
+ s.has_rdoc = true
15
+ s.homepage = %q{http://github.com/Fingertips/as_new-san}
16
+ s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
17
+ s.require_paths = ["lib"]
18
+ s.rubygems_version = %q{1.3.1}
19
+ s.summary = %q{A simple plugin which allows you to create records in the database, but treat them as if they were new records.}
20
+
21
+ if s.respond_to? :specification_version then
22
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
+ s.specification_version = 2
24
+
25
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
26
+ else
27
+ end
28
+ else
29
+ end
30
+ end
data/rails/init.rb ADDED
@@ -0,0 +1 @@
1
+ require 'as_new_san'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Fingertips-as_new-san
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-06 00:00:00 -08:00
12
+ date: 2009-03-09 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -23,14 +23,20 @@ extra_rdoc_files:
23
23
  - README.rdoc
24
24
  - LICENSE
25
25
  files:
26
- - README.rdoc
27
- - VERSION.yml
26
+ - as_new-san.gemspec
27
+ - lib
28
28
  - lib/as_new_san.rb
29
+ - LICENSE
30
+ - rails
31
+ - rails/init.rb
32
+ - Rakefile
33
+ - README.rdoc
34
+ - test
29
35
  - test/as_new_san_test.rb
30
36
  - test/test_helper.rb
31
- - LICENSE
37
+ - VERSION.yml
32
38
  has_rdoc: true
33
- homepage: http://github.com/alloy/as_new_san
39
+ homepage: http://github.com/Fingertips/as_new-san
34
40
  post_install_message:
35
41
  rdoc_options:
36
42
  - --inline-source