dragonfly_extensions 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Manifest CHANGED
@@ -1,4 +1,3 @@
1
- Manifest.txt
2
1
  README.rdoc
3
2
  Rakefile
4
3
  dragonfly_extensions.gemspec
@@ -8,10 +7,8 @@ lib/dragonfly_extensions/attachable.rb
8
7
  lib/dragonfly_extensions/automatically_includable.rb
9
8
  lib/dragonfly_extensions/billable.rb
10
9
  lib/dragonfly_extensions/binnable.rb
11
- lib/dragonfly_extensions/delayed_jobs.rb
12
10
  lib/dragonfly_extensions/dragonfly_extensions.rb
13
11
  lib/dragonfly_extensions/identifiable.rb
14
- lib/dragonfly_extensions/legacy_connection.rb
15
12
  lib/dragonfly_extensions/measurable.rb
16
13
  lib/dragonfly_extensions/noteable.rb
17
14
  lib/dragonfly_extensions/product_attribute.rb
data/Rakefile CHANGED
@@ -3,11 +3,9 @@ require 'rubygems'
3
3
  require 'rake'
4
4
  require 'echoe'
5
5
 
6
- Echoe.new('dragonfly_extensions', '1.0.0') do |p|
7
- p.description = "Collection of Dragonfly Depot Extensions"
8
- p.url = "http://github.com/hmasing/Dragonfly---Extensions"
6
+ Echoe.new('dragonfly_extensions', '1.0.1') do |p|
7
+ p.description = "Collection of Dragonfly Depot Extensions [Probably not useful for anybody, ever]"
9
8
  p.author = "Hans Masing"
10
- p.email = "hmasing@dragonflydepot.com"
11
9
  p.ignore_pattern = ["tmp/*", "script/*"]
12
10
  p.development_dependencies = []
13
11
  end
@@ -2,21 +2,21 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{dragonfly_extensions}
5
- s.version = "1.0.0"
5
+ s.version = "1.0.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Hans Masing"]
9
9
  s.date = %q{2010-05-10}
10
- s.description = %q{Collection of Dragonfly Depot Extensions}
11
- s.email = %q{hmasing@dragonflydepot.com}
12
- s.extra_rdoc_files = ["README.rdoc", "lib/dragonfly_extensions.rb", "lib/dragonfly_extensions/addressable.rb", "lib/dragonfly_extensions/attachable.rb", "lib/dragonfly_extensions/automatically_includable.rb", "lib/dragonfly_extensions/billable.rb", "lib/dragonfly_extensions/binnable.rb", "lib/dragonfly_extensions/delayed_jobs.rb", "lib/dragonfly_extensions/dragonfly_extensions.rb", "lib/dragonfly_extensions/identifiable.rb", "lib/dragonfly_extensions/legacy_connection.rb", "lib/dragonfly_extensions/measurable.rb", "lib/dragonfly_extensions/noteable.rb", "lib/dragonfly_extensions/product_attribute.rb", "lib/dragonfly_extensions/taggable_on.rb", "lib/dragonfly_extensions/uniqueable.rb"]
13
- s.files = ["Manifest.txt", "README.rdoc", "Rakefile", "dragonfly_extensions.gemspec", "lib/dragonfly_extensions.rb", "lib/dragonfly_extensions/addressable.rb", "lib/dragonfly_extensions/attachable.rb", "lib/dragonfly_extensions/automatically_includable.rb", "lib/dragonfly_extensions/billable.rb", "lib/dragonfly_extensions/binnable.rb", "lib/dragonfly_extensions/delayed_jobs.rb", "lib/dragonfly_extensions/dragonfly_extensions.rb", "lib/dragonfly_extensions/identifiable.rb", "lib/dragonfly_extensions/legacy_connection.rb", "lib/dragonfly_extensions/measurable.rb", "lib/dragonfly_extensions/noteable.rb", "lib/dragonfly_extensions/product_attribute.rb", "lib/dragonfly_extensions/taggable_on.rb", "lib/dragonfly_extensions/uniqueable.rb", "Manifest"]
14
- s.homepage = %q{http://github.com/hmasing/Dragonfly---Extensions}
10
+ s.description = %q{Collection of Dragonfly Depot Extensions [Probably not useful for anybody, ever]}
11
+ s.email = %q{}
12
+ s.extra_rdoc_files = ["README.rdoc", "lib/dragonfly_extensions.rb", "lib/dragonfly_extensions/addressable.rb", "lib/dragonfly_extensions/attachable.rb", "lib/dragonfly_extensions/automatically_includable.rb", "lib/dragonfly_extensions/billable.rb", "lib/dragonfly_extensions/binnable.rb", "lib/dragonfly_extensions/dragonfly_extensions.rb", "lib/dragonfly_extensions/identifiable.rb", "lib/dragonfly_extensions/measurable.rb", "lib/dragonfly_extensions/noteable.rb", "lib/dragonfly_extensions/product_attribute.rb", "lib/dragonfly_extensions/taggable_on.rb", "lib/dragonfly_extensions/uniqueable.rb"]
13
+ s.files = ["README.rdoc", "Rakefile", "dragonfly_extensions.gemspec", "lib/dragonfly_extensions.rb", "lib/dragonfly_extensions/addressable.rb", "lib/dragonfly_extensions/attachable.rb", "lib/dragonfly_extensions/automatically_includable.rb", "lib/dragonfly_extensions/billable.rb", "lib/dragonfly_extensions/binnable.rb", "lib/dragonfly_extensions/dragonfly_extensions.rb", "lib/dragonfly_extensions/identifiable.rb", "lib/dragonfly_extensions/measurable.rb", "lib/dragonfly_extensions/noteable.rb", "lib/dragonfly_extensions/product_attribute.rb", "lib/dragonfly_extensions/taggable_on.rb", "lib/dragonfly_extensions/uniqueable.rb", "Manifest"]
14
+ s.homepage = %q{}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Dragonfly_extensions", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = %q{dragonfly_extensions}
18
18
  s.rubygems_version = %q{1.3.6}
19
- s.summary = %q{Collection of Dragonfly Depot Extensions}
19
+ s.summary = %q{Collection of Dragonfly Depot Extensions [Probably not useful for anybody, ever]}
20
20
 
21
21
  if s.respond_to? :specification_version then
22
22
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Hans Masing
@@ -18,8 +18,8 @@ date: 2010-05-10 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
21
- description: Collection of Dragonfly Depot Extensions
22
- email: hmasing@dragonflydepot.com
21
+ description: Collection of Dragonfly Depot Extensions [Probably not useful for anybody, ever]
22
+ email: ""
23
23
  executables: []
24
24
 
25
25
  extensions: []
@@ -32,17 +32,14 @@ extra_rdoc_files:
32
32
  - lib/dragonfly_extensions/automatically_includable.rb
33
33
  - lib/dragonfly_extensions/billable.rb
34
34
  - lib/dragonfly_extensions/binnable.rb
35
- - lib/dragonfly_extensions/delayed_jobs.rb
36
35
  - lib/dragonfly_extensions/dragonfly_extensions.rb
37
36
  - lib/dragonfly_extensions/identifiable.rb
38
- - lib/dragonfly_extensions/legacy_connection.rb
39
37
  - lib/dragonfly_extensions/measurable.rb
40
38
  - lib/dragonfly_extensions/noteable.rb
41
39
  - lib/dragonfly_extensions/product_attribute.rb
42
40
  - lib/dragonfly_extensions/taggable_on.rb
43
41
  - lib/dragonfly_extensions/uniqueable.rb
44
42
  files:
45
- - Manifest.txt
46
43
  - README.rdoc
47
44
  - Rakefile
48
45
  - dragonfly_extensions.gemspec
@@ -52,10 +49,8 @@ files:
52
49
  - lib/dragonfly_extensions/automatically_includable.rb
53
50
  - lib/dragonfly_extensions/billable.rb
54
51
  - lib/dragonfly_extensions/binnable.rb
55
- - lib/dragonfly_extensions/delayed_jobs.rb
56
52
  - lib/dragonfly_extensions/dragonfly_extensions.rb
57
53
  - lib/dragonfly_extensions/identifiable.rb
58
- - lib/dragonfly_extensions/legacy_connection.rb
59
54
  - lib/dragonfly_extensions/measurable.rb
60
55
  - lib/dragonfly_extensions/noteable.rb
61
56
  - lib/dragonfly_extensions/product_attribute.rb
@@ -63,7 +58,7 @@ files:
63
58
  - lib/dragonfly_extensions/uniqueable.rb
64
59
  - Manifest
65
60
  has_rdoc: true
66
- homepage: http://github.com/hmasing/Dragonfly---Extensions
61
+ homepage: ""
67
62
  licenses: []
68
63
 
69
64
  post_install_message:
@@ -97,6 +92,6 @@ rubyforge_project: dragonfly_extensions
97
92
  rubygems_version: 1.3.6
98
93
  signing_key:
99
94
  specification_version: 3
100
- summary: Collection of Dragonfly Depot Extensions
95
+ summary: Collection of Dragonfly Depot Extensions [Probably not useful for anybody, ever]
101
96
  test_files: []
102
97
 
data/Manifest.txt DELETED
@@ -1,20 +0,0 @@
1
- Manifest.txt
2
- README.rdoc
3
- Rakefile
4
- dragonfly_extensions.gemspec
5
- lib/dragonfly_extensions.rb
6
- lib/dragonfly_extensions/addressable.rb
7
- lib/dragonfly_extensions/attachable.rb
8
- lib/dragonfly_extensions/automatically_includable.rb
9
- lib/dragonfly_extensions/billable.rb
10
- lib/dragonfly_extensions/binnable.rb
11
- lib/dragonfly_extensions/delayed_jobs.rb
12
- lib/dragonfly_extensions/dragonfly_extensions.rb
13
- lib/dragonfly_extensions/identifiable.rb
14
- lib/dragonfly_extensions/legacy_connection.rb
15
- lib/dragonfly_extensions/measurable.rb
16
- lib/dragonfly_extensions/noteable.rb
17
- lib/dragonfly_extensions/product_attribute.rb
18
- lib/dragonfly_extensions/taggable_on.rb
19
- lib/dragonfly_extensions/uniqueable.rb
20
- Manifest
@@ -1,32 +0,0 @@
1
- class DelayedProductBatch
2
- attr_accessor :batch_id
3
- def initialize(batch_id)
4
- self.batch_id = batch_id
5
- end
6
-
7
- def perform
8
- ProductBatch.process(ProductBatch.find(@batch_id))
9
- end
10
- end
11
-
12
- class DelayedInventoryBatch
13
- attr_accessor :batch_id
14
- def initialize(batch_id)
15
- self.batch_id = batch_id
16
- end
17
-
18
- def perform
19
- InventoryBatch.process(InventoryBatch.find(@batch_id))
20
- end
21
- end
22
-
23
- class DelayedProductAmazonSync
24
- attr_accessor :product_id
25
- def initialize(product_id)
26
- self.product_id = product_id
27
- end
28
-
29
- def perform
30
- Product.amazon_sync(Product.find(@product_id))
31
- end
32
- end
@@ -1,10 +0,0 @@
1
- #
2
- # Establish connections to the legacy database, using the pattern where a legacy model name
3
- # is prefaced with 'Legacy', ie - LegacyProduct, LegacyOrder
4
- #
5
- module LegacyConnection
6
- def self.included(base)
7
- base.establish_connection(ActiveRecord::Base.configurations["legacy_#{RAILS_ENV}"])
8
- base.table_name = base.model_name.gsub('Legacy','').downcase.pluralize
9
- end
10
- end