m2m_fast_insert 0.0.3 → 0.1.0

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/.rvmrc CHANGED
@@ -1,4 +1,4 @@
1
- rvm --create ruby-1.9.3-p125@m2m_fast_insert
1
+ rvm --create ruby-1.9.3-p448@m2m_fast_insert
2
2
  # Ensure that Bundler is installed, install it if it is not.
3
3
  if ! command -v bundle > /dev/null; then
4
4
  gem install bundler
data/Gemfile.lock CHANGED
@@ -1,96 +1,103 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- m2m_fast_insert (0.0.3)
4
+ m2m_fast_insert (0.1.0)
5
5
  activerecord (>= 3.0.0, < 4.0.0)
6
6
  activesupport (>= 3.0.0, < 4.0.0)
7
- rails (~> 3.0.13)
7
+ rails (>= 3.0.0, < 4.0.0)
8
8
 
9
9
  GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
- abstract (1.0.0)
13
- actionmailer (3.0.13)
14
- actionpack (= 3.0.13)
15
- mail (~> 2.2.19)
16
- actionpack (3.0.13)
17
- activemodel (= 3.0.13)
18
- activesupport (= 3.0.13)
19
- builder (~> 2.1.2)
20
- erubis (~> 2.6.6)
21
- i18n (~> 0.5.0)
22
- rack (~> 1.2.5)
23
- rack-mount (~> 0.6.14)
24
- rack-test (~> 0.5.7)
25
- tzinfo (~> 0.3.23)
26
- activemodel (3.0.13)
27
- activesupport (= 3.0.13)
28
- builder (~> 2.1.2)
29
- i18n (~> 0.5.0)
30
- activerecord (3.0.13)
31
- activemodel (= 3.0.13)
32
- activesupport (= 3.0.13)
33
- arel (~> 2.0.10)
34
- tzinfo (~> 0.3.23)
35
- activeresource (3.0.13)
36
- activemodel (= 3.0.13)
37
- activesupport (= 3.0.13)
38
- activesupport (3.0.13)
39
- arel (2.0.10)
40
- builder (2.1.2)
41
- diff-lcs (1.1.3)
42
- erubis (2.6.6)
43
- abstract (>= 1.0.0)
44
- i18n (0.5.0)
45
- json (1.7.3)
46
- mail (2.2.19)
47
- activesupport (>= 2.3.6)
48
- i18n (>= 0.4.0)
12
+ actionmailer (3.2.15)
13
+ actionpack (= 3.2.15)
14
+ mail (~> 2.5.4)
15
+ actionpack (3.2.15)
16
+ activemodel (= 3.2.15)
17
+ activesupport (= 3.2.15)
18
+ builder (~> 3.0.0)
19
+ erubis (~> 2.7.0)
20
+ journey (~> 1.0.4)
21
+ rack (~> 1.4.5)
22
+ rack-cache (~> 1.2)
23
+ rack-test (~> 0.6.1)
24
+ sprockets (~> 2.2.1)
25
+ activemodel (3.2.15)
26
+ activesupport (= 3.2.15)
27
+ builder (~> 3.0.0)
28
+ activerecord (3.2.15)
29
+ activemodel (= 3.2.15)
30
+ activesupport (= 3.2.15)
31
+ arel (~> 3.0.2)
32
+ tzinfo (~> 0.3.29)
33
+ activeresource (3.2.15)
34
+ activemodel (= 3.2.15)
35
+ activesupport (= 3.2.15)
36
+ activesupport (3.2.15)
37
+ i18n (~> 0.6, >= 0.6.4)
38
+ multi_json (~> 1.0)
39
+ arel (3.0.2)
40
+ builder (3.0.4)
41
+ diff-lcs (1.2.5)
42
+ erubis (2.7.0)
43
+ hike (1.2.3)
44
+ i18n (0.6.5)
45
+ journey (1.0.4)
46
+ json (1.8.1)
47
+ mail (2.5.4)
49
48
  mime-types (~> 1.16)
50
49
  treetop (~> 1.4.8)
51
- mime-types (1.18)
50
+ mime-types (1.25)
51
+ multi_json (1.8.2)
52
52
  polyglot (0.3.3)
53
- rack (1.2.5)
54
- rack-mount (0.6.14)
55
- rack (>= 1.0.0)
56
- rack-test (0.5.7)
53
+ rack (1.4.5)
54
+ rack-cache (1.2)
55
+ rack (>= 0.4)
56
+ rack-ssl (1.3.3)
57
+ rack
58
+ rack-test (0.6.2)
57
59
  rack (>= 1.0)
58
- rails (3.0.13)
59
- actionmailer (= 3.0.13)
60
- actionpack (= 3.0.13)
61
- activerecord (= 3.0.13)
62
- activeresource (= 3.0.13)
63
- activesupport (= 3.0.13)
60
+ rails (3.2.15)
61
+ actionmailer (= 3.2.15)
62
+ actionpack (= 3.2.15)
63
+ activerecord (= 3.2.15)
64
+ activeresource (= 3.2.15)
65
+ activesupport (= 3.2.15)
64
66
  bundler (~> 1.0)
65
- railties (= 3.0.13)
66
- railties (3.0.13)
67
- actionpack (= 3.0.13)
68
- activesupport (= 3.0.13)
67
+ railties (= 3.2.15)
68
+ railties (3.2.15)
69
+ actionpack (= 3.2.15)
70
+ activesupport (= 3.2.15)
71
+ rack-ssl (~> 1.3.2)
69
72
  rake (>= 0.8.7)
70
73
  rdoc (~> 3.4)
71
- thor (~> 0.14.4)
72
- rake (0.9.2.2)
73
- rdoc (3.12)
74
+ thor (>= 0.14.6, < 2.0)
75
+ rake (10.1.0)
76
+ rdoc (3.12.2)
74
77
  json (~> 1.4)
75
- rspec (2.10.0)
76
- rspec-core (~> 2.10.0)
77
- rspec-expectations (~> 2.10.0)
78
- rspec-mocks (~> 2.10.0)
79
- rspec-core (2.10.1)
80
- rspec-expectations (2.10.0)
81
- diff-lcs (~> 1.1.3)
82
- rspec-mocks (2.10.1)
83
- rspec-rails (2.10.1)
78
+ rspec-core (2.14.7)
79
+ rspec-expectations (2.14.4)
80
+ diff-lcs (>= 1.1.3, < 2.0)
81
+ rspec-mocks (2.14.4)
82
+ rspec-rails (2.14.0)
84
83
  actionpack (>= 3.0)
85
84
  activesupport (>= 3.0)
86
85
  railties (>= 3.0)
87
- rspec (~> 2.10.0)
88
- sqlite3 (1.3.6)
89
- thor (0.14.6)
90
- treetop (1.4.10)
86
+ rspec-core (~> 2.14.0)
87
+ rspec-expectations (~> 2.14.0)
88
+ rspec-mocks (~> 2.14.0)
89
+ sprockets (2.2.2)
90
+ hike (~> 1.2)
91
+ multi_json (~> 1.0)
92
+ rack (~> 1.0)
93
+ tilt (~> 1.1, != 1.3.0)
94
+ sqlite3 (1.3.8)
95
+ thor (0.18.1)
96
+ tilt (1.4.1)
97
+ treetop (1.4.15)
91
98
  polyglot
92
99
  polyglot (>= 0.3.1)
93
- tzinfo (0.3.33)
100
+ tzinfo (0.3.38)
94
101
 
95
102
  PLATFORMS
96
103
  ruby
data/README.markdown CHANGED
@@ -1,6 +1,7 @@
1
1
  # M2mFastInsert
2
2
 
3
3
  [![TravisCI](https://secure.travis-ci.org/jphenow/m2m_fast_insert.png "TravisCI")](http://travis-ci.org/jphenow/m2m_fast_insert "Travis-CI M2MFastInsert")
4
+ [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/jphenow/m2m_fast_insert)
4
5
  [Ruby Gems](https://rubygems.org/gems/m2m_fast_insert)
5
6
 
6
7
  # Why
@@ -30,3 +31,8 @@ end
30
31
  ```
31
32
 
32
33
  This project rocks and uses MIT-LICENSE.
34
+
35
+ # TODO
36
+
37
+ * Allow options for how hard to fail with missing ID or ID params
38
+ * Fall back to the rails-y insert on an empty ID?
@@ -35,4 +35,4 @@ module M2MFastInsert
35
35
  end
36
36
  end
37
37
  end
38
- ActiveRecord::AutosaveAssociation::ClassMethods.send :include, M2MFastInsert::HasAndBelongsToManyOverride
38
+ ActiveRecord::Associations::ClassMethods.send :include, M2MFastInsert::HasAndBelongsToManyOverride
@@ -1,3 +1,3 @@
1
1
  module M2MFastInsert
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
22
22
  s.require_paths = ["lib"]
23
23
 
24
- s.add_dependency "rails", "~> 3.0.13"
24
+ s.add_dependency "rails", [">= 3.0.0", "< 4.0.0"]
25
25
  s.add_runtime_dependency('activerecord', [">= 3.0.0", "< 4.0.0"])
26
26
  s.add_runtime_dependency('activesupport', [">= 3.0.0", "< 4.0.0"])
27
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: m2m_fast_insert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-17 00:00:00.000000000 Z
12
+ date: 2013-11-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 3.0.13
21
+ version: 3.0.0
22
+ - - <
23
+ - !ruby/object:Gem::Version
24
+ version: 4.0.0
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
25
28
  none: false
26
29
  requirements:
27
- - - ~>
30
+ - - ! '>='
28
31
  - !ruby/object:Gem::Version
29
- version: 3.0.13
32
+ version: 3.0.0
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ version: 4.0.0
30
36
  - !ruby/object:Gem::Dependency
31
37
  name: activerecord
32
38
  requirement: !ruby/object:Gem::Requirement
@@ -160,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
166
  version: '0'
161
167
  segments:
162
168
  - 0
163
- hash: 3375167432438345074
169
+ hash: -1663646844121288765
164
170
  required_rubygems_version: !ruby/object:Gem::Requirement
165
171
  none: false
166
172
  requirements:
@@ -169,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
175
  version: '0'
170
176
  segments:
171
177
  - 0
172
- hash: 3375167432438345074
178
+ hash: -1663646844121288765
173
179
  requirements: []
174
180
  rubyforge_project: m2m_fast_insert
175
181
  rubygems_version: 1.8.24