scoped_from 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,5 +1,5 @@
1
1
  .DS_Store
2
2
  .bundle
3
- .rvmrc
3
+ .rbenv-version
4
4
  pkg/*
5
5
  spec/test.sqlite3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- scoped_from (0.5.1)
4
+ scoped_from (0.6.0)
5
5
  activerecord (~> 3.2.0)
6
6
  activesupport (~> 3.2.0)
7
7
 
@@ -31,15 +31,12 @@ GEM
31
31
  multi_json (~> 1.0)
32
32
  arel (3.0.0)
33
33
  builder (3.0.0)
34
- columnize (0.3.6)
35
34
  diff-lcs (1.1.3)
36
35
  erubis (2.7.0)
37
36
  hike (1.2.1)
38
37
  i18n (0.6.0)
39
38
  journey (1.0.1)
40
39
  json (1.6.5)
41
- linecache (0.46)
42
- rbx-require-relative (> 0.0.4)
43
40
  multi_json (1.0.4)
44
41
  rack (1.4.1)
45
42
  rack-cache (1.1)
@@ -56,7 +53,6 @@ GEM
56
53
  rdoc (~> 3.4)
57
54
  thor (~> 0.14.6)
58
55
  rake (0.9.2.2)
59
- rbx-require-relative (0.0.5)
60
56
  rdoc (3.12)
61
57
  json (~> 1.4)
62
58
  rspec (2.8.0)
@@ -72,11 +68,6 @@ GEM
72
68
  activesupport (>= 3.0)
73
69
  railties (>= 3.0)
74
70
  rspec (~> 2.8.0)
75
- ruby-debug (0.10.4)
76
- columnize (>= 0.1)
77
- ruby-debug-base (~> 0.10.4.0)
78
- ruby-debug-base (0.10.4)
79
- linecache (>= 0.3)
80
71
  sprockets (2.1.2)
81
72
  hike (~> 1.2)
82
73
  rack (~> 1.0)
@@ -94,6 +85,5 @@ PLATFORMS
94
85
  DEPENDENCIES
95
86
  rspec (~> 2.8.0)
96
87
  rspec-rails (~> 2.8.0)
97
- ruby-debug
98
88
  scoped_from!
99
89
  sqlite3-ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.6.0
data/scoped_from.gemspec CHANGED
@@ -20,6 +20,5 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_development_dependency 'rspec', '~> 2.8.0'
22
22
  s.add_development_dependency 'rspec-rails', '~> 2.8.0'
23
- s.add_development_dependency 'ruby-debug'
24
23
  s.add_development_dependency 'sqlite3-ruby'
25
24
  end
@@ -1,3 +1,5 @@
1
+ # encoding: UTF-8
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe ScopedFrom::Query do
@@ -15,7 +15,7 @@ describe ScopedFrom do
15
15
  it 'is freezed' do
16
16
  expect {
17
17
  ScopedFrom.version.gsub!('.', '#')
18
- }.to raise_error(TypeError, "can't modify frozen string")
18
+ }.to raise_error(/can't modify frozen string/i)
19
19
  end
20
20
 
21
21
  end
metadata CHANGED
@@ -1,123 +1,78 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: scoped_from
3
- version: !ruby/object:Gem::Version
4
- hash: 9
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- - 1
10
- version: 0.5.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Alexis Toulotte
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-01-31 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-02-07 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: activerecord
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70097913921820 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 15
29
- segments:
30
- - 3
31
- - 2
32
- - 0
20
+ - !ruby/object:Gem::Version
33
21
  version: 3.2.0
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: activesupport
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70097913921820
25
+ - !ruby/object:Gem::Dependency
26
+ name: activesupport
27
+ requirement: &70097913920840 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
29
+ requirements:
42
30
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 15
45
- segments:
46
- - 3
47
- - 2
48
- - 0
31
+ - !ruby/object:Gem::Version
49
32
  version: 3.2.0
50
33
  type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: rspec
54
34
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70097913920840
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ requirement: &70097913920000 !ruby/object:Gem::Requirement
56
39
  none: false
57
- requirements:
40
+ requirements:
58
41
  - - ~>
59
- - !ruby/object:Gem::Version
60
- hash: 47
61
- segments:
62
- - 2
63
- - 8
64
- - 0
42
+ - !ruby/object:Gem::Version
65
43
  version: 2.8.0
66
44
  type: :development
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: rspec-rails
70
45
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70097913920000
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec-rails
49
+ requirement: &70097913919120 !ruby/object:Gem::Requirement
72
50
  none: false
73
- requirements:
51
+ requirements:
74
52
  - - ~>
75
- - !ruby/object:Gem::Version
76
- hash: 47
77
- segments:
78
- - 2
79
- - 8
80
- - 0
53
+ - !ruby/object:Gem::Version
81
54
  version: 2.8.0
82
55
  type: :development
83
- version_requirements: *id004
84
- - !ruby/object:Gem::Dependency
85
- name: ruby-debug
86
56
  prerelease: false
87
- requirement: &id005 !ruby/object:Gem::Requirement
88
- none: false
89
- requirements:
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- hash: 3
93
- segments:
94
- - 0
95
- version: "0"
96
- type: :development
97
- version_requirements: *id005
98
- - !ruby/object:Gem::Dependency
57
+ version_requirements: *70097913919120
58
+ - !ruby/object:Gem::Dependency
99
59
  name: sqlite3-ruby
100
- prerelease: false
101
- requirement: &id006 !ruby/object:Gem::Requirement
60
+ requirement: &70097913918540 !ruby/object:Gem::Requirement
102
61
  none: false
103
- requirements:
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- hash: 3
107
- segments:
108
- - 0
109
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
110
66
  type: :development
111
- version_requirements: *id006
112
- description: Provides a simple mapping between Active Record scopes and controller parameters for Ruby On Rails 3
67
+ prerelease: false
68
+ version_requirements: *70097913918540
69
+ description: Provides a simple mapping between Active Record scopes and controller
70
+ parameters for Ruby On Rails 3
113
71
  email: al@alweb.org
114
72
  executables: []
115
-
116
73
  extensions: []
117
-
118
74
  extra_rdoc_files: []
119
-
120
- files:
75
+ files:
121
76
  - .gitignore
122
77
  - .rspec
123
78
  - Gemfile
@@ -146,38 +101,35 @@ files:
146
101
  - spec/support/macros/user_macro.rb
147
102
  homepage: https://github.com/alexistoulotte/scoped_from
148
103
  licenses: []
149
-
150
104
  post_install_message:
151
105
  rdoc_options: []
152
-
153
- require_paths:
106
+ require_paths:
154
107
  - lib
155
- required_ruby_version: !ruby/object:Gem::Requirement
108
+ required_ruby_version: !ruby/object:Gem::Requirement
156
109
  none: false
157
- requirements:
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- hash: 3
161
- segments:
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ segments:
162
115
  - 0
163
- version: "0"
164
- required_rubygems_version: !ruby/object:Gem::Requirement
116
+ hash: -1127072327386759365
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
165
118
  none: false
166
- requirements:
167
- - - ">="
168
- - !ruby/object:Gem::Version
169
- hash: 3
170
- segments:
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ segments:
171
124
  - 0
172
- version: "0"
125
+ hash: -1127072327386759365
173
126
  requirements: []
174
-
175
127
  rubyforge_project: scoped_from
176
128
  rubygems_version: 1.8.15
177
129
  signing_key:
178
130
  specification_version: 3
179
131
  summary: Mapping between scopes and parameters for Rails
180
- test_files:
132
+ test_files:
181
133
  - spec/mocks/comment.rb
182
134
  - spec/mocks/comment_query.rb
183
135
  - spec/mocks/post.rb