roqua-support 0.1.21 → 0.1.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Appraisals +11 -0
- data/Gemfile +7 -4
- data/Gemfile.lock +94 -68
- data/Rakefile +1 -0
- data/circle.yml +11 -1
- data/gemfiles/rails41.gemfile +18 -0
- data/gemfiles/rails42.gemfile +18 -0
- data/gemfiles/rails50.gemfile +18 -0
- data/lib/roqua-support/version.rb +1 -1
- data/lib/roqua/core_ext/active_interaction/filters/date_time_as_unix_extension.rb +4 -4
- data/lib/roqua/core_ext/active_interaction/filters/duration_filter.rb +3 -3
- data/roqua-support.gemspec +2 -1
- metadata +23 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f36e6f001b52313927d2d638351d0b1f866de9a5
|
4
|
+
data.tar.gz: 72f97499903a15087ae6c1a503fcafb5c378de5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 031b4f77a3cc0b9299e91b756bc601fdb873f1c2219e4f6e44ddd226bfe2db24264234c8a4420bce7f9de9af9d196081baa318e687e1a04959bb87cb87289260
|
7
|
+
data.tar.gz: a0f94165908da53045baf2c24707f3e9a06efb187a4fec939d64bc2f824e9b3da69d2aa0bd696a7a866f36ef16bebc1d14942b4f9424d1ec9de1f5d13753d532
|
data/.gitignore
CHANGED
data/Appraisals
ADDED
data/Gemfile
CHANGED
@@ -3,11 +3,14 @@ source 'https://rubygems.org'
|
|
3
3
|
# Specify your gem's dependencies in roqua-support.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
+
gem 'appraisal'
|
7
|
+
|
6
8
|
group :test do
|
7
|
-
gem '
|
8
|
-
gem '
|
9
|
-
gem 'rspec-rails'
|
9
|
+
gem 'actionpack', '>= 4.0'
|
10
|
+
gem 'active_interaction', '~> 3.0'
|
10
11
|
gem 'combustion', '~> 0.5.2'
|
11
|
-
gem '
|
12
|
+
gem 'guard-rspec', '~> 4.2.6'
|
13
|
+
gem 'responders'
|
12
14
|
gem 'rspec-instrumentation-matcher'
|
15
|
+
gem 'rspec-rails'
|
13
16
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,110 +1,134 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
roqua-support (0.1.
|
5
|
-
|
4
|
+
roqua-support (0.1.22)
|
5
|
+
active_interaction (~> 3.0)
|
6
|
+
activesupport (>= 3.2, < 6)
|
6
7
|
naught (~> 1.0)
|
7
8
|
|
8
9
|
GEM
|
9
10
|
remote: https://rubygems.org/
|
10
11
|
specs:
|
11
|
-
actionpack (
|
12
|
-
actionview (=
|
13
|
-
activesupport (=
|
14
|
-
rack (~>
|
15
|
-
rack-test (~> 0.6.
|
16
|
-
|
17
|
-
|
12
|
+
actionpack (5.0.1)
|
13
|
+
actionview (= 5.0.1)
|
14
|
+
activesupport (= 5.0.1)
|
15
|
+
rack (~> 2.0)
|
16
|
+
rack-test (~> 0.6.3)
|
17
|
+
rails-dom-testing (~> 2.0)
|
18
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
19
|
+
actionview (5.0.1)
|
20
|
+
activesupport (= 5.0.1)
|
18
21
|
builder (~> 3.1)
|
19
22
|
erubis (~> 2.7.0)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
23
|
+
rails-dom-testing (~> 2.0)
|
24
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
25
|
+
active_interaction (3.4.0)
|
26
|
+
activemodel (>= 4, < 6)
|
27
|
+
activemodel (5.0.1)
|
28
|
+
activesupport (= 5.0.1)
|
29
|
+
activesupport (5.0.1)
|
30
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
31
|
+
i18n (~> 0.7)
|
28
32
|
minitest (~> 5.1)
|
29
|
-
thread_safe (~> 0.1)
|
30
33
|
tzinfo (~> 1.1)
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
34
|
+
appraisal (2.1.0)
|
35
|
+
bundler
|
36
|
+
rake
|
37
|
+
thor (>= 0.14.0)
|
38
|
+
builder (3.2.3)
|
39
|
+
coderay (1.1.1)
|
40
|
+
combustion (0.5.5)
|
36
41
|
activesupport (>= 3.0.0)
|
37
42
|
railties (>= 3.0.0)
|
38
43
|
thor (>= 0.14.6)
|
39
|
-
|
44
|
+
concurrent-ruby (1.0.4)
|
45
|
+
diff-lcs (1.3)
|
40
46
|
erubis (2.7.0)
|
41
|
-
ffi (1.9.
|
47
|
+
ffi (1.9.17)
|
42
48
|
formatador (0.2.5)
|
43
|
-
guard (2.
|
49
|
+
guard (2.14.0)
|
44
50
|
formatador (>= 0.2.4)
|
45
|
-
listen (
|
51
|
+
listen (>= 2.7, < 4.0)
|
46
52
|
lumberjack (~> 1.0)
|
53
|
+
nenv (~> 0.1)
|
54
|
+
notiffany (~> 0.0)
|
47
55
|
pry (>= 0.9.12)
|
56
|
+
shellany (~> 0.0)
|
48
57
|
thor (>= 0.18.1)
|
49
58
|
guard-rspec (4.2.10)
|
50
59
|
guard (~> 2.1)
|
51
60
|
rspec (>= 2.14, < 4.0)
|
52
|
-
hitimes (1.2.2)
|
53
61
|
i18n (0.7.0)
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
62
|
+
listen (3.1.5)
|
63
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
64
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
65
|
+
ruby_dep (~> 1.2)
|
66
|
+
loofah (2.0.3)
|
67
|
+
nokogiri (>= 1.5.9)
|
68
|
+
lumberjack (1.0.11)
|
60
69
|
method_source (0.8.2)
|
61
|
-
|
70
|
+
mini_portile2 (2.1.0)
|
71
|
+
minitest (5.10.1)
|
62
72
|
naught (1.1.0)
|
63
|
-
|
73
|
+
nenv (0.3.0)
|
74
|
+
nokogiri (1.7.0.1)
|
75
|
+
mini_portile2 (~> 2.1.0)
|
76
|
+
notiffany (0.1.1)
|
77
|
+
nenv (~> 0.1)
|
78
|
+
shellany (~> 0.0)
|
79
|
+
pry (0.10.4)
|
64
80
|
coderay (~> 1.1.0)
|
65
81
|
method_source (~> 0.8.1)
|
66
82
|
slop (~> 3.4)
|
67
|
-
rack (
|
83
|
+
rack (2.0.1)
|
68
84
|
rack-test (0.6.3)
|
69
85
|
rack (>= 1.0)
|
70
|
-
|
71
|
-
|
72
|
-
|
86
|
+
rails-dom-testing (2.0.2)
|
87
|
+
activesupport (>= 4.2.0, < 6.0)
|
88
|
+
nokogiri (~> 1.6)
|
89
|
+
rails-html-sanitizer (1.0.3)
|
90
|
+
loofah (~> 2.0)
|
91
|
+
railties (5.0.1)
|
92
|
+
actionpack (= 5.0.1)
|
93
|
+
activesupport (= 5.0.1)
|
94
|
+
method_source
|
73
95
|
rake (>= 0.8.7)
|
74
96
|
thor (>= 0.18.1, < 2.0)
|
75
|
-
rake (
|
76
|
-
rb-fsevent (0.9.
|
77
|
-
rb-inotify (0.9.
|
97
|
+
rake (12.0.0)
|
98
|
+
rb-fsevent (0.9.8)
|
99
|
+
rb-inotify (0.9.7)
|
78
100
|
ffi (>= 0.5.0)
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
rspec-
|
83
|
-
|
84
|
-
rspec-
|
85
|
-
rspec-
|
101
|
+
responders (2.3.0)
|
102
|
+
railties (>= 4.2.0, < 5.1)
|
103
|
+
rspec (3.5.0)
|
104
|
+
rspec-core (~> 3.5.0)
|
105
|
+
rspec-expectations (~> 3.5.0)
|
106
|
+
rspec-mocks (~> 3.5.0)
|
107
|
+
rspec-core (3.5.4)
|
108
|
+
rspec-support (~> 3.5.0)
|
109
|
+
rspec-expectations (3.5.0)
|
86
110
|
diff-lcs (>= 1.2.0, < 2.0)
|
87
|
-
rspec-support (~> 3.
|
111
|
+
rspec-support (~> 3.5.0)
|
88
112
|
rspec-instrumentation-matcher (0.0.4)
|
89
113
|
activesupport
|
90
114
|
rspec-expectations
|
91
|
-
rspec-mocks (3.
|
115
|
+
rspec-mocks (3.5.0)
|
92
116
|
diff-lcs (>= 1.2.0, < 2.0)
|
93
|
-
rspec-support (~> 3.
|
94
|
-
rspec-rails (3.
|
95
|
-
actionpack (>= 3.0
|
96
|
-
activesupport (>= 3.0
|
97
|
-
railties (>= 3.0
|
98
|
-
rspec-core (~> 3.
|
99
|
-
rspec-expectations (~> 3.
|
100
|
-
rspec-mocks (~> 3.
|
101
|
-
rspec-support (~> 3.
|
102
|
-
rspec-support (3.
|
117
|
+
rspec-support (~> 3.5.0)
|
118
|
+
rspec-rails (3.5.2)
|
119
|
+
actionpack (>= 3.0)
|
120
|
+
activesupport (>= 3.0)
|
121
|
+
railties (>= 3.0)
|
122
|
+
rspec-core (~> 3.5.0)
|
123
|
+
rspec-expectations (~> 3.5.0)
|
124
|
+
rspec-mocks (~> 3.5.0)
|
125
|
+
rspec-support (~> 3.5.0)
|
126
|
+
rspec-support (3.5.0)
|
127
|
+
ruby_dep (1.5.0)
|
128
|
+
shellany (0.0.1)
|
103
129
|
slop (3.6.0)
|
104
|
-
thor (0.19.
|
130
|
+
thor (0.19.4)
|
105
131
|
thread_safe (0.3.5)
|
106
|
-
timers (4.0.1)
|
107
|
-
hitimes
|
108
132
|
tzinfo (1.2.2)
|
109
133
|
thread_safe (~> 0.1)
|
110
134
|
|
@@ -112,16 +136,18 @@ PLATFORMS
|
|
112
136
|
ruby
|
113
137
|
|
114
138
|
DEPENDENCIES
|
115
|
-
actionpack (
|
116
|
-
active_interaction (~>
|
139
|
+
actionpack (>= 4.0)
|
140
|
+
active_interaction (~> 3.0)
|
141
|
+
appraisal
|
117
142
|
bundler (~> 1.0)
|
118
143
|
combustion (~> 0.5.2)
|
119
144
|
guard-rspec (~> 4.2.6)
|
120
145
|
rake
|
146
|
+
responders
|
121
147
|
roqua-support!
|
122
148
|
rspec (>= 2.12.0, < 4.0)
|
123
149
|
rspec-instrumentation-matcher
|
124
150
|
rspec-rails
|
125
151
|
|
126
152
|
BUNDLED WITH
|
127
|
-
1.
|
153
|
+
1.13.7
|
data/Rakefile
CHANGED
data/circle.yml
CHANGED
@@ -1,3 +1,13 @@
|
|
1
1
|
machine:
|
2
2
|
ruby:
|
3
|
-
version: 2.1
|
3
|
+
version: 2.3.1
|
4
|
+
dependencies:
|
5
|
+
override:
|
6
|
+
- bundle install
|
7
|
+
- gem install appraisal
|
8
|
+
- appraisal
|
9
|
+
test:
|
10
|
+
override:
|
11
|
+
- appraisal rails41 bundle exec rspec
|
12
|
+
- appraisal rails42 bundle exec rspec
|
13
|
+
- appraisal rails50 bundle exec rspec
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal"
|
6
|
+
gem "activesupport", "4.1"
|
7
|
+
|
8
|
+
group :test do
|
9
|
+
gem "actionpack", ">= 4.0"
|
10
|
+
gem "active_interaction", "~> 3.0"
|
11
|
+
gem "combustion", "~> 0.5.2"
|
12
|
+
gem "guard-rspec", "~> 4.2.6"
|
13
|
+
gem "responders"
|
14
|
+
gem "rspec-instrumentation-matcher"
|
15
|
+
gem "rspec-rails"
|
16
|
+
end
|
17
|
+
|
18
|
+
gemspec :path => "../"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal"
|
6
|
+
gem "activesupport", "4.2"
|
7
|
+
|
8
|
+
group :test do
|
9
|
+
gem "actionpack", ">= 4.0"
|
10
|
+
gem "active_interaction", "~> 3.0"
|
11
|
+
gem "combustion", "~> 0.5.2"
|
12
|
+
gem "guard-rspec", "~> 4.2.6"
|
13
|
+
gem "responders"
|
14
|
+
gem "rspec-instrumentation-matcher"
|
15
|
+
gem "rspec-rails"
|
16
|
+
end
|
17
|
+
|
18
|
+
gemspec :path => "../"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal"
|
6
|
+
gem "activesupport", "5.0"
|
7
|
+
|
8
|
+
group :test do
|
9
|
+
gem "actionpack", ">= 4.0"
|
10
|
+
gem "active_interaction", "~> 3.0"
|
11
|
+
gem "combustion", "~> 0.5.2"
|
12
|
+
gem "guard-rspec", "~> 4.2.6"
|
13
|
+
gem "responders"
|
14
|
+
gem "rspec-instrumentation-matcher"
|
15
|
+
gem "rspec-rails"
|
16
|
+
end
|
17
|
+
|
18
|
+
gemspec :path => "../"
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# allow datetimes to be given as unix times for activeinteractions
|
2
2
|
module RoquaDateTimeAsUnixFilterExtension
|
3
|
-
def cast(value)
|
3
|
+
def cast(value, interaction)
|
4
4
|
case value
|
5
5
|
when Numeric, /^[0-9]+$/
|
6
6
|
Time.at(value.to_i).to_datetime
|
7
7
|
when ''
|
8
|
-
super(nil)
|
8
|
+
super(nil, interaction)
|
9
9
|
else
|
10
10
|
super
|
11
11
|
end
|
@@ -15,12 +15,12 @@ ActiveInteraction::DateTimeFilter.include RoquaDateTimeAsUnixFilterExtension
|
|
15
15
|
|
16
16
|
# allow datetimes to be given as unix times as string
|
17
17
|
module RoquaTimeAsUnixFilterExtension
|
18
|
-
def cast(value)
|
18
|
+
def cast(value, interaction)
|
19
19
|
case value
|
20
20
|
when /^[0-9]+$/
|
21
21
|
Time.at(value.to_i)
|
22
22
|
when ''
|
23
|
-
super(nil)
|
23
|
+
super(nil, interaction)
|
24
24
|
else
|
25
25
|
super
|
26
26
|
end
|
@@ -22,15 +22,15 @@ module ActiveInteraction
|
|
22
22
|
class DurationFilter < Filter
|
23
23
|
register :duration
|
24
24
|
|
25
|
-
def cast(value)
|
25
|
+
def cast(value, interaction)
|
26
26
|
case value
|
27
27
|
when ActiveSupport::Duration
|
28
|
-
(value == 0 && strip?) ? super(nil) : value
|
28
|
+
(value == 0 && strip?) ? super(nil, interaction) : value
|
29
29
|
when Hash
|
30
30
|
if value[:value].present? && (value[:value].to_i != 0 || !strip?)
|
31
31
|
value[:value].to_i.send(value[:unit])
|
32
32
|
else
|
33
|
-
super(nil)
|
33
|
+
super(nil, interaction)
|
34
34
|
end
|
35
35
|
else
|
36
36
|
super
|
data/roqua-support.gemspec
CHANGED
@@ -18,8 +18,9 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
|
-
gem.add_dependency 'activesupport', '>= 3.2', '<
|
21
|
+
gem.add_dependency 'activesupport', '>= 3.2', '< 6'
|
22
22
|
gem.add_dependency 'naught', '~> 1.0'
|
23
|
+
gem.add_dependency 'active_interaction', '~> 3.0'
|
23
24
|
|
24
25
|
gem.add_development_dependency 'bundler', '~> 1.0'
|
25
26
|
gem.add_development_dependency 'rake'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roqua-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Veldthuis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '6'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '6'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: naught
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,6 +44,20 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: active_interaction
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '3.0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '3.0'
|
47
61
|
- !ruby/object:Gem::Dependency
|
48
62
|
name: bundler
|
49
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,6 +115,7 @@ files:
|
|
101
115
|
- ".gitignore"
|
102
116
|
- ".rspec"
|
103
117
|
- ".travis.yml"
|
118
|
+
- Appraisals
|
104
119
|
- CHANGELOG.md
|
105
120
|
- Gemfile
|
106
121
|
- Gemfile.lock
|
@@ -109,6 +124,9 @@ files:
|
|
109
124
|
- README.md
|
110
125
|
- Rakefile
|
111
126
|
- circle.yml
|
127
|
+
- gemfiles/rails41.gemfile
|
128
|
+
- gemfiles/rails42.gemfile
|
129
|
+
- gemfiles/rails50.gemfile
|
112
130
|
- lib/roqua-support.rb
|
113
131
|
- lib/roqua-support/version.rb
|
114
132
|
- lib/roqua/core_ext/active_interaction/filters/date_time_as_unix_extension.rb
|
@@ -169,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
187
|
version: '0'
|
170
188
|
requirements: []
|
171
189
|
rubyforge_project:
|
172
|
-
rubygems_version: 2.5.
|
190
|
+
rubygems_version: 2.5.2
|
173
191
|
signing_key:
|
174
192
|
specification_version: 4
|
175
193
|
summary: Helper objects and proxies used by a lot of RoQua applications
|