archive_2s 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :gemcutter
1
+ source :rubygems
2
2
 
3
3
  # Specify your gem's dependencies in archive_2s.gemspec
4
4
  gemspec
@@ -1,106 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- archive_2s (0.0.5)
4
+ archive_2s (0.0.6)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
8
8
  specs:
9
- actionmailer (3.1.1)
10
- actionpack (= 3.1.1)
11
- mail (~> 2.3.0)
12
- actionpack (3.1.1)
13
- activemodel (= 3.1.1)
14
- activesupport (= 3.1.1)
15
- builder (~> 3.0.0)
16
- erubis (~> 2.7.0)
17
- i18n (~> 0.6)
18
- rack (~> 1.3.2)
19
- rack-cache (~> 1.1)
20
- rack-mount (~> 0.8.2)
21
- rack-test (~> 0.6.1)
22
- sprockets (~> 2.0.2)
23
- activemodel (3.1.1)
24
- activesupport (= 3.1.1)
25
- builder (~> 3.0.0)
26
- i18n (~> 0.6)
27
- activerecord (3.1.1)
28
- activemodel (= 3.1.1)
29
- activesupport (= 3.1.1)
30
- arel (~> 2.2.1)
31
- tzinfo (~> 0.3.29)
32
- activeresource (3.1.1)
33
- activemodel (= 3.1.1)
34
- activesupport (= 3.1.1)
35
- activesupport (3.1.1)
36
- multi_json (~> 1.0)
37
- arel (2.2.1)
38
- builder (3.0.0)
39
- diff-lcs (1.1.3)
40
- erubis (2.7.0)
41
- hike (1.2.1)
42
- i18n (0.6.0)
43
- json (1.6.1)
44
- mail (2.3.0)
45
- i18n (>= 0.4.0)
46
- mime-types (~> 1.16)
47
- treetop (~> 1.4.8)
48
- mime-types (1.17.2)
49
- multi_json (1.0.3)
50
- polyglot (0.3.3)
51
- rack (1.3.5)
52
- rack-cache (1.1)
53
- rack (>= 0.4)
54
- rack-mount (0.8.3)
55
- rack (>= 1.0.0)
56
- rack-ssl (1.3.2)
57
- rack
58
- rack-test (0.6.1)
59
- rack (>= 1.0)
60
- rails (3.1.1)
61
- actionmailer (= 3.1.1)
62
- actionpack (= 3.1.1)
63
- activerecord (= 3.1.1)
64
- activeresource (= 3.1.1)
65
- activesupport (= 3.1.1)
66
- bundler (~> 1.0)
67
- railties (= 3.1.1)
68
- railties (3.1.1)
69
- actionpack (= 3.1.1)
70
- activesupport (= 3.1.1)
71
- rack-ssl (~> 1.3.2)
72
- rake (>= 0.8.7)
73
- rdoc (~> 3.4)
74
- thor (~> 0.14.6)
75
- rake (0.9.2.2)
76
- rdoc (3.11)
77
- json (~> 1.4)
78
- rspec (2.7.0)
79
- rspec-core (~> 2.7.0)
80
- rspec-expectations (~> 2.7.0)
81
- rspec-mocks (~> 2.7.0)
82
- rspec-core (2.7.1)
83
- rspec-expectations (2.7.0)
84
- diff-lcs (~> 1.1.2)
85
- rspec-mocks (2.7.0)
86
- sprockets (2.0.3)
87
- hike (~> 1.2)
88
- rack (~> 1.0)
89
- tilt (~> 1.1, != 1.3.0)
90
- sqlite3 (1.3.4)
91
- thor (0.14.6)
92
- tilt (1.3.3)
93
- treetop (1.4.10)
94
- polyglot
95
- polyglot (>= 0.3.1)
96
- tzinfo (0.3.31)
9
+ activerecord (2.3.14)
10
+ activesupport (= 2.3.14)
11
+ activesupport (2.3.14)
97
12
 
98
13
  PLATFORMS
99
14
  ruby
100
15
 
101
16
  DEPENDENCIES
17
+ activerecord (~> 2.3.12)
102
18
  archive_2s!
103
- bundler (>= 1.0.0)
104
- rails
105
- rspec
106
- sqlite3
data/Rakefile CHANGED
@@ -1,16 +1,2 @@
1
1
  require 'bundler'
2
- Bundler::GemHelper.install_tasks
3
- require 'rake'
4
- require 'rspec/core/rake_task'
5
-
6
- desc "Run all specs."
7
- RSpec::Core::RakeTask.new(:spec) do |t|
8
- t.pattern = 'spec/**/*_spec.rb'
9
- t.verbose = false
10
- end
11
-
12
- RSpec::Core::RakeTask.new(:rcov) do |t|
13
- t.rcov = true
14
- t.rcov_opts = %q[--exclude "spec,gems" --include-file "lib/archive_2s"]
15
- t.verbose = true
16
- end
2
+ Bundler::GemHelper.install_tasks
@@ -12,15 +12,9 @@ Gem::Specification.new do |s|
12
12
  s.description = "Sometimes you just need a descriptive value of an item you are archiving. This is what archive_2s was made for."
13
13
 
14
14
  s.required_rubygems_version = ">= 1.3.6"
15
- s.rubyforge_project = "archive_2s"
15
+ s.add_development_dependency "activerecord", "~> 2.3.12"
16
16
 
17
- s.add_development_dependency "bundler", ">= 1.0.0"
18
17
 
19
18
  s.files = `git ls-files`.split("\n")
20
- s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
21
19
  s.require_path = 'lib'
22
-
23
- s.add_development_dependency "rspec"
24
- s.add_development_dependency "rails"
25
- s.add_development_dependency "sqlite3"
26
20
  end
@@ -13,4 +13,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
13
13
  require 'rubygems'
14
14
  require 'bundler/setup'
15
15
 
16
- load Gem.bin_path('rspec-core', 'autospec')
16
+ load Gem.bin_path('rspec', 'autospec')
@@ -13,4 +13,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
13
13
  require 'rubygems'
14
14
  require 'bundler/setup'
15
15
 
16
- load Gem.bin_path('diff-lcs', 'htmldiff')
16
+ load Gem.bin_path('archive_2s', 'htmldiff')
data/bin/ldiff CHANGED
@@ -13,4 +13,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
13
13
  require 'rubygems'
14
14
  require 'bundler/setup'
15
15
 
16
- load Gem.bin_path('diff-lcs', 'ldiff')
16
+ load Gem.bin_path('archive_2s', 'ldiff')
data/bin/rails CHANGED
@@ -13,4 +13,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
13
13
  require 'rubygems'
14
14
  require 'bundler/setup'
15
15
 
16
- load Gem.bin_path('rails', 'rails')
16
+ load Gem.bin_path('archive_2s', 'rails')
@@ -13,4 +13,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
13
13
  require 'rubygems'
14
14
  require 'bundler/setup'
15
15
 
16
- load Gem.bin_path('thor', 'rake2thor')
16
+ load Gem.bin_path('archive_2s', 'rake2thor')
data/bin/rcov CHANGED
@@ -13,4 +13,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
13
13
  require 'rubygems'
14
14
  require 'bundler/setup'
15
15
 
16
- load Gem.bin_path('archive_2s', 'rcov')
16
+ load Gem.bin_path('rcov', 'rcov')
data/bin/rdebug CHANGED
@@ -13,4 +13,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
13
13
  require 'rubygems'
14
14
  require 'bundler/setup'
15
15
 
16
- load Gem.bin_path('archive_2s', 'rdebug')
16
+ load Gem.bin_path('ruby-debug', 'rdebug')
data/bin/rdoc CHANGED
@@ -13,4 +13,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
13
13
  require 'rubygems'
14
14
  require 'bundler/setup'
15
15
 
16
- load Gem.bin_path('rdoc', 'rdoc')
16
+ load Gem.bin_path('archive_2s', 'rdoc')
data/bin/ri CHANGED
@@ -13,4 +13,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
13
13
  require 'rubygems'
14
14
  require 'bundler/setup'
15
15
 
16
- load Gem.bin_path('rdoc', 'ri')
16
+ load Gem.bin_path('archive_2s', 'ri')
data/bin/rspec CHANGED
@@ -13,4 +13,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
13
13
  require 'rubygems'
14
14
  require 'bundler/setup'
15
15
 
16
- load Gem.bin_path('rspec-core', 'rspec')
16
+ load Gem.bin_path('archive_2s', 'rspec')
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'spec' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rspec', 'spec')
data/bin/thor CHANGED
@@ -13,4 +13,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
13
13
  require 'rubygems'
14
14
  require 'bundler/setup'
15
15
 
16
- load Gem.bin_path('thor', 'thor')
16
+ load Gem.bin_path('archive_2s', 'thor')
@@ -27,7 +27,7 @@ module Archive2s
27
27
  if self.archive_2s_args[:include_by_default]
28
28
  singleton.module_eval do
29
29
  def find(*args)
30
- self.find_with_archived(*args)
30
+ super rescue self.find_with_archived(args)
31
31
  end
32
32
  end
33
33
  end
@@ -76,7 +76,7 @@ module Archive2s
76
76
  def find_with_archived(*args)
77
77
  begin
78
78
  #might as well try AR first
79
- super.find(*args)
79
+ super.find(args)
80
80
  rescue Exception => e
81
81
  #can only fetch archived by ids so don't attempt if there were extra args
82
82
  if args.flatten! && args.length != args.select{|i| i == i.to_i}.length
@@ -1,3 +1,3 @@
1
1
  module Archive2s
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -2,7 +2,7 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
2
  $LOAD_PATH.unshift(File.dirname(__FILE__))
3
3
  require 'active_record'
4
4
  require 'action_controller'
5
- require 'rspec'
5
+ require 'spec'
6
6
  require 'archive_2s'
7
7
  require 'sqlite3'
8
8
 
@@ -10,10 +10,6 @@ require 'sqlite3'
10
10
  # in ./support/ and its subdirectories.
11
11
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
12
12
 
13
- RSpec.configure do |config|
14
-
15
- end
16
-
17
13
  #ActiveRecord::Schema.verbose = false
18
14
  ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
19
15
 
metadata CHANGED
@@ -1,106 +1,36 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: archive_2s
3
- version: !ruby/object:Gem::Version
4
- hash: 21
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.6
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 5
10
- version: 0.0.5
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - SmashTank Apps, LLC
14
9
  - Eric Harrison
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-11-08 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- type: :development
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 23
30
- segments:
31
- - 1
32
- - 0
33
- - 0
34
- version: 1.0.0
35
- version_requirements: *id001
36
- name: bundler
37
- - !ruby/object:Gem::Dependency
38
- type: :development
39
- prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
13
+ date: 2011-11-08 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: activerecord
17
+ requirement: &2156806740 !ruby/object:Gem::Requirement
41
18
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 0
48
- version: "0"
49
- version_requirements: *id002
50
- name: rspec
51
- - !ruby/object:Gem::Dependency
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: 2.3.12
52
23
  type: :development
53
24
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
63
- version_requirements: *id003
64
- name: rails
65
- - !ruby/object:Gem::Dependency
66
- type: :development
67
- prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
69
- none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
77
- version_requirements: *id004
78
- name: sqlite3
79
- description: Sometimes you just need a descriptive value of an item you are archiving. This is what archive_2s was made for.
80
- email:
25
+ version_requirements: *2156806740
26
+ description: Sometimes you just need a descriptive value of an item you are archiving. This
27
+ is what archive_2s was made for.
28
+ email:
81
29
  - dev@smashtankapps.com
82
- executables:
83
- - autospec
84
- - erubis
85
- - htmldiff
86
- - ldiff
87
- - rackup
88
- - rails
89
- - rake
90
- - rake2thor
91
- - rcov
92
- - rdebug
93
- - rdoc
94
- - ri
95
- - rspec
96
- - thor
97
- - tilt
98
- - tt
30
+ executables: []
99
31
  extensions: []
100
-
101
32
  extra_rdoc_files: []
102
-
103
- files:
33
+ files:
104
34
  - .gitignore
105
35
  - .rvmrc
106
36
  - Gemfile
@@ -122,6 +52,7 @@ files:
122
52
  - bin/rdoc
123
53
  - bin/ri
124
54
  - bin/rspec
55
+ - bin/spec
125
56
  - bin/thor
126
57
  - bin/tilt
127
58
  - bin/tt
@@ -133,38 +64,26 @@ files:
133
64
  - spec/spec_helper.rb
134
65
  homepage: http://rubygems.org/gems/archive_2s
135
66
  licenses: []
136
-
137
67
  post_install_message:
138
68
  rdoc_options: []
139
-
140
- require_paths:
69
+ require_paths:
141
70
  - lib
142
- required_ruby_version: !ruby/object:Gem::Requirement
71
+ required_ruby_version: !ruby/object:Gem::Requirement
143
72
  none: false
144
- requirements:
145
- - - ">="
146
- - !ruby/object:Gem::Version
147
- hash: 3
148
- segments:
149
- - 0
150
- version: "0"
151
- required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
152
78
  none: false
153
- requirements:
154
- - - ">="
155
- - !ruby/object:Gem::Version
156
- hash: 23
157
- segments:
158
- - 1
159
- - 3
160
- - 6
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
161
82
  version: 1.3.6
162
83
  requirements: []
163
-
164
- rubyforge_project: archive_2s
84
+ rubyforge_project:
165
85
  rubygems_version: 1.8.10
166
86
  signing_key:
167
87
  specification_version: 3
168
88
  summary: A little gem that will archive the to_s of ActiveRecord Models
169
89
  test_files: []
170
-