riveter 0.0.9 → 0.0.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74d8def961e51f0a7f6f26a59c43706d7bb31120
4
- data.tar.gz: 16c4f3da3311735f04b0e2c68b04800798810079
3
+ metadata.gz: d1cc317e1db7298bd8e1565d4211ee934e7e233e
4
+ data.tar.gz: a1bf00732647d16fbd24adc6086d536636cd2b9e
5
5
  SHA512:
6
- metadata.gz: 7ea3a1acb287fef427f5e01d894797887f4e06270e3659ee3a0995379911737aa90893391aca188f90385779a5b69ffad928f6ed7b78aeb39b6971cc43ebc0ed
7
- data.tar.gz: df203ca816a3b17d3e26312889ac61269788052ffbc2b80253235a731c01aab29af2d9c87923b99edf15e89fd15353293c2161a314ab5b486b30838c107e7ebc
6
+ metadata.gz: a0540de528cf81af43047d05403fed4ff3ccb8eb14b113c8bd80eea840dc85a148b24c9aa7516bc74ad630e859505afe2c63fc24956d0cae6bf30025027beb44
7
+ data.tar.gz: 3971d6af53569df04c016f63e20930242a67b50a6000ad7ba973dec1aff490b75eea8d4b2a87cc8ba05feafd7352ace269fa0d47c80865aad4a860ffc3889b0a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- riveter (0.0.9)
4
+ riveter (0.0.10)
5
5
  actionpack (>= 4.1.0)
6
6
  activemodel (>= 4.1.0)
7
7
  activerecord (>= 4.1.0)
@@ -12,44 +12,45 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- actionmailer (4.1.4)
16
- actionpack (= 4.1.4)
17
- actionview (= 4.1.4)
15
+ actionmailer (4.1.5)
16
+ actionpack (= 4.1.5)
17
+ actionview (= 4.1.5)
18
18
  mail (~> 2.5.4)
19
- actionpack (4.1.4)
20
- actionview (= 4.1.4)
21
- activesupport (= 4.1.4)
19
+ actionpack (4.1.5)
20
+ actionview (= 4.1.5)
21
+ activesupport (= 4.1.5)
22
22
  rack (~> 1.5.2)
23
23
  rack-test (~> 0.6.2)
24
- actionview (4.1.4)
25
- activesupport (= 4.1.4)
24
+ actionview (4.1.5)
25
+ activesupport (= 4.1.5)
26
26
  builder (~> 3.1)
27
27
  erubis (~> 2.7.0)
28
- activemodel (4.1.4)
29
- activesupport (= 4.1.4)
28
+ activemodel (4.1.5)
29
+ activesupport (= 4.1.5)
30
30
  builder (~> 3.1)
31
- activerecord (4.1.4)
32
- activemodel (= 4.1.4)
33
- activesupport (= 4.1.4)
31
+ activerecord (4.1.5)
32
+ activemodel (= 4.1.5)
33
+ activesupport (= 4.1.5)
34
34
  arel (~> 5.0.0)
35
- activesupport (4.1.4)
35
+ activesupport (4.1.5)
36
36
  i18n (~> 0.6, >= 0.6.9)
37
37
  json (~> 1.7, >= 1.7.7)
38
38
  minitest (~> 5.1)
39
39
  thread_safe (~> 0.1)
40
40
  tzinfo (~> 1.1)
41
- ammeter (1.1.0)
41
+ ammeter (1.1.2)
42
42
  activesupport (>= 3.0)
43
43
  railties (>= 3.0)
44
44
  rspec-rails (>= 2.2)
45
45
  arel (5.0.1.20140414130214)
46
46
  builder (3.2.2)
47
- byebug (2.7.0)
48
- columnize (~> 0.3)
47
+ byebug (3.4.0)
48
+ columnize (~> 0.8)
49
49
  debugger-linecache (~> 1.2)
50
+ slop (~> 3.6)
50
51
  coderay (1.1.0)
51
52
  columnize (0.8.9)
52
- coveralls (0.7.0)
53
+ coveralls (0.7.1)
53
54
  multi_json (~> 1.3)
54
55
  rest-client
55
56
  simplecov (>= 0.7)
@@ -74,45 +75,45 @@ GEM
74
75
  treetop (~> 1.4.8)
75
76
  method_source (0.8.2)
76
77
  mime-types (1.25.1)
77
- minitest (5.4.0)
78
+ minitest (5.4.1)
78
79
  multi_json (1.10.1)
79
80
  netrc (0.7.7)
80
81
  polyglot (0.3.5)
81
- pry (0.10.0)
82
+ pry (0.10.1)
82
83
  coderay (~> 1.1.0)
83
84
  method_source (~> 0.8.1)
84
85
  slop (~> 3.4)
85
- pry-byebug (1.3.3)
86
- byebug (~> 2.7)
86
+ pry-byebug (2.0.0)
87
+ byebug (~> 3.4)
87
88
  pry (~> 0.10)
88
89
  rack (1.5.2)
89
90
  rack-test (0.6.2)
90
91
  rack (>= 1.0)
91
- rails (4.1.4)
92
- actionmailer (= 4.1.4)
93
- actionpack (= 4.1.4)
94
- actionview (= 4.1.4)
95
- activemodel (= 4.1.4)
96
- activerecord (= 4.1.4)
97
- activesupport (= 4.1.4)
92
+ rails (4.1.5)
93
+ actionmailer (= 4.1.5)
94
+ actionpack (= 4.1.5)
95
+ actionview (= 4.1.5)
96
+ activemodel (= 4.1.5)
97
+ activerecord (= 4.1.5)
98
+ activesupport (= 4.1.5)
98
99
  bundler (>= 1.3.0, < 2.0)
99
- railties (= 4.1.4)
100
+ railties (= 4.1.5)
100
101
  sprockets-rails (~> 2.0)
101
- railties (4.1.4)
102
- actionpack (= 4.1.4)
103
- activesupport (= 4.1.4)
102
+ railties (4.1.5)
103
+ actionpack (= 4.1.5)
104
+ activesupport (= 4.1.5)
104
105
  rake (>= 0.8.7)
105
106
  thor (>= 0.18.1, < 2.0)
106
107
  rake (10.3.2)
107
108
  rest-client (1.7.2)
108
109
  mime-types (>= 1.16, < 3.0)
109
110
  netrc (~> 0.7)
110
- rspec-core (3.0.3)
111
+ rspec-core (3.0.4)
111
112
  rspec-support (~> 3.0.0)
112
- rspec-expectations (3.0.3)
113
+ rspec-expectations (3.0.4)
113
114
  diff-lcs (>= 1.2.0, < 2.0)
114
115
  rspec-support (~> 3.0.0)
115
- rspec-mocks (3.0.3)
116
+ rspec-mocks (3.0.4)
116
117
  rspec-support (~> 3.0.0)
117
118
  rspec-rails (3.0.2)
118
119
  actionpack (>= 3.0)
@@ -122,7 +123,7 @@ GEM
122
123
  rspec-expectations (~> 3.0.0)
123
124
  rspec-mocks (~> 3.0.0)
124
125
  rspec-support (~> 3.0.0)
125
- rspec-support (3.0.3)
126
+ rspec-support (3.0.4)
126
127
  shoulda-matchers (2.6.2)
127
128
  activesupport (>= 3.0.0)
128
129
  simplecov (0.9.0)
@@ -136,7 +137,7 @@ GEM
136
137
  multi_json (~> 1.0)
137
138
  rack (~> 1.0)
138
139
  tilt (~> 1.1, != 1.3.0)
139
- sprockets-rails (2.1.3)
140
+ sprockets-rails (2.1.4)
140
141
  actionpack (>= 3.0)
141
142
  activesupport (>= 3.0)
142
143
  sprockets (~> 2.8)
@@ -146,11 +147,11 @@ GEM
146
147
  thread_safe (0.3.4)
147
148
  tilt (1.4.1)
148
149
  timeliness (0.3.7)
149
- tins (1.3.0)
150
+ tins (1.3.2)
150
151
  treetop (1.4.15)
151
152
  polyglot
152
153
  polyglot (>= 0.3.1)
153
- tzinfo (1.2.1)
154
+ tzinfo (1.2.2)
154
155
  thread_safe (~> 0.1)
155
156
  validates_timeliness (3.0.14)
156
157
  timeliness (~> 0.3.6)
@@ -5,30 +5,30 @@
5
5
 
6
6
  %h2 Search
7
7
 
8
- = enquiry_form_for(@enquiry, :html => {:class => 'form-horizontal'}) do |f|
8
+ = enquiry_form_for(@enquiry, :html => {:class => 'form-horizontal'}) do |f|
9
9
  <% if defined?(SimpleForm) -%>
10
- = f.error_notification
10
+ = f.error_notification
11
11
  <% else -%>
12
- - if f.object.errors.any?
13
- #error_explanation
14
- %h2= "#{pluralize(f.object.errors.count, "error")} prohibited performing this enquiry:"
15
- %ul
16
- - f.object.errors.full_messages.each do |msg|
17
- %li= msg
12
+ - if f.object.errors.any?
13
+ #error_explanation
14
+ %h2= "#{pluralize(f.object.errors.count, "error")} prohibited performing this enquiry:"
15
+ %ul
16
+ - f.object.errors.full_messages.each do |msg|
17
+ %li= msg
18
18
  <%end -%>
19
19
 
20
- .form-inputs
20
+ .form-inputs
21
21
  <% if filter_attributes.any? -%>
22
22
  <% filter_attributes.each do |attribute| -%>
23
- = f.input :<%= attribute.name %><%= attribute.inject_options %>
23
+ = f.input :<%= attribute.name %><%= attribute.inject_options %>
24
24
  <% end -%>
25
25
  <% else -%>
26
- -# TODO: provide inputs for each attribute
26
+ -# TODO: provide inputs for each attribute
27
27
  <% end -%>
28
28
 
29
- .form-actions
30
- = f.submit
31
- = f.reset
29
+ .form-actions
30
+ = f.submit
31
+ = f.reset
32
32
 
33
33
  .results
34
34
 
@@ -115,7 +115,6 @@ module Riveter
115
115
  :validate => true
116
116
  }.merge(options)
117
117
 
118
- required = options[:required] == true
119
118
  converter = block_given? ? block : Converters.converter_for(:boolean)
120
119
 
121
120
  attr_reader_with_converter name, converter
@@ -38,7 +38,7 @@ module Riveter
38
38
  return false unless self.can_perform?
39
39
 
40
40
  # all good, perform the action
41
- self.perform *args
41
+ self.perform(*args)
42
42
  end
43
43
 
44
44
  protected
@@ -91,7 +91,7 @@ module Riveter
91
91
 
92
92
  # make compatible with an ActiveRelation
93
93
  def find_each_with_order(&block)
94
- self.each &block if block_given?
94
+ self.each(&block) if block_given?
95
95
  end
96
96
 
97
97
  alias_method :find_each, :find_each_with_order
@@ -1,3 +1,3 @@
1
1
  module Riveter
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riveter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Stefano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-29 00:00:00.000000000 Z
11
+ date: 2014-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties