constrainable 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,8 @@ module Bsm::Constrainable::Operation
3
3
 
4
4
  def parsed
5
5
  result = case value
6
+ when Range
7
+ [value.first, value.last]
6
8
  when /^ *(.+?) *\.{2,} *(.+?) *$/
7
9
  [$1, $2]
8
10
  else
metadata CHANGED
@@ -1,77 +1,56 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: constrainable
3
- version: !ruby/object:Gem::Version
4
- hash: 11
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.1
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- - 0
10
- version: 0.5.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Dimitrij Denissenko
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-09-01 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-10-21 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: abstract
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &24194140 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: activerecord
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *24194140
25
+ - !ruby/object:Gem::Dependency
26
+ name: activerecord
27
+ requirement: &24193560 !ruby/object:Gem::Requirement
38
28
  none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 7
43
- segments:
44
- - 3
45
- - 0
46
- - 0
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
47
32
  version: 3.0.0
48
33
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: activesupport
52
34
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *24193560
36
+ - !ruby/object:Gem::Dependency
37
+ name: activesupport
38
+ requirement: &24193060 !ruby/object:Gem::Requirement
54
39
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 7
59
- segments:
60
- - 3
61
- - 0
62
- - 0
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
63
43
  version: 3.0.0
64
44
  type: :runtime
65
- version_requirements: *id003
66
- description: Sanitizes simple and readable query parameters -great for building APIs & HTML filters
45
+ prerelease: false
46
+ version_requirements: *24193060
47
+ description: Sanitizes simple and readable query parameters -great for building APIs
48
+ & HTML filters
67
49
  email: dimitrij@blacksquaremedia.com
68
50
  executables: []
69
-
70
51
  extensions: []
71
-
72
52
  extra_rdoc_files: []
73
-
74
- files:
53
+ files:
75
54
  - README.markdown
76
55
  - lib/bsm/constrainable.rb
77
56
  - lib/bsm/constrainable/relation.rb
@@ -92,40 +71,26 @@ files:
92
71
  - lib/bsm/constrainable/schema.rb
93
72
  homepage: https://github.com/bsm/constrainable
94
73
  licenses: []
95
-
96
74
  post_install_message:
97
75
  rdoc_options: []
98
-
99
- require_paths:
76
+ require_paths:
100
77
  - lib
101
- required_ruby_version: !ruby/object:Gem::Requirement
78
+ required_ruby_version: !ruby/object:Gem::Requirement
102
79
  none: false
103
- requirements:
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- hash: 57
107
- segments:
108
- - 1
109
- - 8
110
- - 7
80
+ requirements:
81
+ - - ! '>='
82
+ - !ruby/object:Gem::Version
111
83
  version: 1.8.7
112
- required_rubygems_version: !ruby/object:Gem::Requirement
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
85
  none: false
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- hash: 23
118
- segments:
119
- - 1
120
- - 3
121
- - 6
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
122
89
  version: 1.3.6
123
90
  requirements: []
124
-
125
91
  rubyforge_project:
126
- rubygems_version: 1.8.5
92
+ rubygems_version: 1.8.10
127
93
  signing_key:
128
94
  specification_version: 3
129
95
  summary: Simple filtering for ActiveRecord
130
96
  test_files: []
131
-